code
stringlengths
3
10M
language
stringclasses
31 values
/+ + Copyright (c) Charles Petzold, 1998. + Ported to the D Programming Language by Andrej Mitrovic, 2011. +/ module Bricks1; import core.memory; import core.runtime; import core.thread; import std.conv; import std.math; import std.range; import std.string; import std.utf; auto toUTF16z(S)(S s) { return toUTFz!(const(wchar)*)(s); } pragma(lib, "gdi32.lib"); import win32.windef; import win32.winuser; import win32.wingdi; import win32.winbase; import resource; string appName = "Bricks1"; string description = "LoadBitmap Demo"; HINSTANCE hinst; extern (Windows) int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { int result; void exceptionHandler(Throwable e) { throw e; } try { Runtime.initialize(&exceptionHandler); result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow); Runtime.terminate(&exceptionHandler); } catch (Throwable o) { MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION); result = 0; } return result; } int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { hinst = hInstance; HACCEL hAccel; HWND hwnd; MSG msg; WNDCLASS wndclass; wndclass.style = CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc = &WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = hInstance; wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION); wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH); wndclass.lpszMenuName = appName.toUTF16z; wndclass.lpszClassName = appName.toUTF16z; if (!RegisterClass(&wndclass)) { MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR); return 0; } hwnd = CreateWindow(appName.toUTF16z, // window class name description.toUTF16z, // window caption WS_OVERLAPPEDWINDOW, // window style CW_USEDEFAULT, // initial x position CW_USEDEFAULT, // initial y position CW_USEDEFAULT, // initial x size CW_USEDEFAULT, // initial y size NULL, // parent window handle NULL, // window menu handle hInstance, // program instance handle NULL); // creation parameters ShowWindow(hwnd, iCmdShow); UpdateWindow(hwnd); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } extern (Windows) LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { static HBITMAP hBitmap; static int cxClient, cyClient, cxSource, cySource; BITMAP bitmap; HDC hdc, hdcMem; HINSTANCE hInstance; int x, y; PAINTSTRUCT ps; switch (message) { case WM_CREATE: hInstance = (cast(LPCREATESTRUCT)lParam).hInstance; hBitmap = LoadBitmap(hInstance, "Bricks"); GetObject(hBitmap, BITMAP.sizeof, &bitmap); cxSource = bitmap.bmWidth; cySource = bitmap.bmHeight; return 0; case WM_SIZE: cxClient = LOWORD(lParam); cyClient = HIWORD(lParam); return 0; case WM_PAINT: hdc = BeginPaint(hwnd, &ps); hdcMem = CreateCompatibleDC(hdc); SelectObject(hdcMem, hBitmap); for (y = 0; y < cyClient; y += cySource) for (x = 0; x < cxClient; x += cxSource) { BitBlt(hdc, x, y, cxSource, cySource, hdcMem, 0, 0, SRCCOPY); } DeleteDC(hdcMem); EndPaint(hwnd, &ps); return 0; case WM_DESTROY: DeleteObject(hBitmap); PostQuitMessage(0); return 0; default: } return DefWindowProc(hwnd, message, wParam, lParam); }
D
import std.stdio; import qte5; // Графическая библиотека QtE5 import core.runtime; // Обработка входных параметров const strRed = "background: red"; void main(string[] ards) { string s = `<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Utf-8"> </head> <body> <h2>При контроле эхо - методом измеряют следующие характеристики несплошности (выберите наиболее полный ответ):</h2> <hr> <h3>1) глубину расположения;</h3> <h3>2) координаты, эквивалентные и условные размеры;</h3> <h3>3) амплитуду эхосигнала;</h3> <h3>4) местоположение несплошности относительно начала координат.</h3> </body> </html>`; bool fDebug = true; if (1 == LoadQt(dll.QtE5Widgets, fDebug)) return; QApplication app = new QApplication(&Runtime.cArgs.argc, Runtime.cArgs.argv, 1); // ---- код программы QTextEdit asa = new QTextEdit(null); asa.setHtml(s); asa.show(); asa.setReadOnly(true); // writeln("--->", asa.parentQtObj()); // writeln("===>", asa.toPlainText!string()); // writeln("===>", asa.toHtml!string()); // ---- app.exec(); }
D
import std.array; import std.stdio; import std.json; import mainloop; import resources; import gamescreen; import world; import gametime; import dsfml.graphics; class LoadingScreen: Screen { private int stage; private Text text; private RenderWindow win; override void init() { stage = 0; Fonts.load; text = new Text; text.setFont(Fonts.heading); text.setCharacterSize(80); text.setColor(Color.Red); text.setStyle(Text.Style.Bold); } override void setWindow(RenderWindow w) { win = w; } private void loadingText(string str) { text.setString(str); auto bounds = text.getGlobalBounds; text.origin = Vector2f(bounds.width/2, bounds.height/2); } override void event(Event e) { } override void update(double dt) { if(stage == 1) { Images.load; // Things.load; } if(stage == 2) { World w = new World(40, 40, .4); w.makeTerrain; w.addTerrainFeatures; GameTime t = new GameTime; w.setGameTime(t); w.generatePlaces; Mainloop.changeScreen(new GameScreen(w, t)); } } override void updateInactive(double dt) { } override void draw() { if(stage == 1) { loadingText("Generating map..."); stage = 2; } if(stage == 0) { loadingText("Loading textures..."); stage = 1; } text.position = Vector2f(win.size.x/2, win.size.y/2); win.draw(text); } override void finish() { } }
D
module mach.text.str.settings; private: import mach.traits : Unqual, isRange; import mach.text.parse.numeric : WriteFloatSettings; public: /// Determines which types to include type information for when stringifying. /// For almost all cases, the default case of None will be preferable as it /// shows values but never types. Higher levels like Some and All are mainly /// present for debugging, in case it's important to know specifically what /// type that values are. struct StrSettings{ alias Default = Concise; static enum TypeDetail: int{ /// Strings describe value, but not type. None = 0, /// Strings describe value and type, but not qualifications e.g. `const`. Unqual = 1, /// Strings describe value and type, including qualifications. Full = 2, } string typestring(TypeDetail detail, T)() const{ static if(detail is TypeDetail.Unqual) return Unqual!T.stringof; else static if(detail is TypeDetail.Full) return T.stringof; return ""; } string typelabel(T, bool asrange = false)() const{ string getlabel(){ static if(is(T == struct)){ return this.showstructlabel ? "struct:" : ""; }else static if(is(T == class)){ return this.showclasslabel ? "class:" : ""; }else static if(is(T == union)){ return this.showunionlabel ? "union:" : ""; }else{ return ""; } } static if(isRange!T){ return getlabel() ~ "range:"; }else static if(asrange){ return getlabel() ~ "asrange:"; }else{ return getlabel(); } } string typeprefix( TypeDetail detail, T, bool label = true, bool asrange = false )() const{ static if(label){ return this.typelabel!(T, asrange) ~ this.typestring!(detail, T); }else{ return this.typestring!(detail, T); } } /// Whether to show type info for enum members. TypeDetail showenumtype = TypeDetail.None; /// Whether to show type info for pointers. TypeDetail showpointertype = TypeDetail.None; /// Whether to show type info for integers. TypeDetail showintegertype = TypeDetail.None; /// Whether to show type info for floats. TypeDetail showfloattype = TypeDetail.None; /// Whether to show type info for imaginary numbers. TypeDetail showimaginarytype = TypeDetail.None; /// Whether to show type info for complex numbers. TypeDetail showcomplextype = TypeDetail.None; /// Whether to show type info for characters. TypeDetail showcharactertype = TypeDetail.None; /// Whether to show type info for strings. TypeDetail showstringtype = TypeDetail.None; /// Whether to show type info for string-like iterables. TypeDetail showstringliketype = TypeDetail.None; /// Whether to show type info for arrays. TypeDetail showarraytype = TypeDetail.None; /// Whether to show type info for associative arrays. TypeDetail showassociativearraytype = TypeDetail.None; /// Whether to show type info for iterables. TypeDetail showiterabletype = TypeDetail.None; /// Whether to show type info for classes. TypeDetail showclasstype = TypeDetail.None; /// Whether to show type info for structs. TypeDetail showstructtype = TypeDetail.None; /// Whether to show type info for unions. TypeDetail showuniontype = TypeDetail.None; /// Whether to label strings produced from structs with "struct:". bool showstructlabel = false; /// Whether to label strings produced from classes with "class:". bool showclasslabel = false; /// Whether to label strings produced from unions with "union:". bool showunionlabel = false; /// Whether to label strings produced from ranges with "range:". bool showrangelabel = false; /// Whether to omit surrounding single quotes when a character is passed /// directly to `str`. bool omitcharquotes = true; /// Whether to omit surrounding single quotes when a string is passed /// directly to `str`. bool omitstringquotes = true; /// Whether to ignore a `toString` method when it's the default and very /// uninformative Object.toString. bool ignoreobjecttostring = true; /// Whether to show type info when `toString` is used to produce a string. TypeDetail showtostringtype = TypeDetail.None; /// Whether to show struct, class, and union labels when `toString` is used. /// If true, the `showstructlabel`, `showclasslabel`, `showunionlabel`, and /// `showrangelabel` flags are used. If false, labels are not shown. bool showtostringlabels = false; /// Whether to stringify the result of `value.asrange` as available, when /// the value would otherwise be stringified in the form `{field: value}`. bool valueasrange = true; /// Settings for float stringification. WriteFloatSettings floatsettings = { PosNaNLiteral: "nan", NegNaNLiteral: "-nan", PosInfLiteral: "infinity", NegInfLiteral: "-infinity", trailingfraction: false, }; /// Include a minimum of contextual information with stringified values. static enum StrSettings Concise = {}; /// Provide some contextual information for stringified values. static enum StrSettings Medium = { showenumtype: TypeDetail.Unqual, showpointertype: TypeDetail.Unqual, showcharactertype: TypeDetail.Unqual, showstringtype: TypeDetail.Unqual, showstringliketype: TypeDetail.Full, showiterabletype: TypeDetail.Full, showclasstype: TypeDetail.Full, showstructtype: TypeDetail.Full, showuniontype: TypeDetail.Full, showstructlabel: false, showclasslabel: false, showunionlabel: true, showrangelabel: true, }; /// Provide a lot of contextual information for stringified values. static enum StrSettings Verbose = { showenumtype: TypeDetail.Unqual, showpointertype: TypeDetail.Full, showintegertype: TypeDetail.Unqual, showfloattype: TypeDetail.Unqual, showimaginarytype: TypeDetail.Unqual, showcomplextype: TypeDetail.Unqual, showcharactertype: TypeDetail.Unqual, showstringtype: TypeDetail.Unqual, showstringliketype: TypeDetail.Full, showarraytype: TypeDetail.Full, showassociativearraytype: TypeDetail.Full, showiterabletype: TypeDetail.Full, showclasstype: TypeDetail.Full, showstructtype: TypeDetail.Full, showuniontype: TypeDetail.Full, showstructlabel: true, showclasslabel: true, showunionlabel: true, showrangelabel: true, omitcharquotes: false, omitstringquotes: false, showtostringtype: TypeDetail.Full, showtostringlabels: true, }; /// Provide the maximum amount of contextual information for stringified /// values. static enum StrSettings Maximum = { showenumtype: TypeDetail.Full, showpointertype: TypeDetail.Full, showintegertype: TypeDetail.Full, showfloattype: TypeDetail.Full, showimaginarytype: TypeDetail.Full, showcomplextype: TypeDetail.Full, showcharactertype: TypeDetail.Full, showstringtype: TypeDetail.Full, showstringliketype: TypeDetail.Full, showarraytype: TypeDetail.Full, showassociativearraytype: TypeDetail.Full, showiterabletype: TypeDetail.Full, showclasstype: TypeDetail.Full, showstructtype: TypeDetail.Full, showuniontype: TypeDetail.Full, showstructlabel: true, showclasslabel: true, showunionlabel: true, showrangelabel: true, omitcharquotes: false, omitstringquotes: false, showtostringtype: TypeDetail.Full, showtostringlabels: true, }; }
D
// ELF-specific support for sections with shared libraries. // Copyright (C) 2019-2022 Free Software Foundation, Inc. // GCC is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free // Software Foundation; either version 3, or (at your option) any later // version. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License // for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. module gcc.sections.elf; version (MIPS32) version = MIPS_Any; version (MIPS64) version = MIPS_Any; version (RISCV32) version = RISCV_Any; version (RISCV64) version = RISCV_Any; version (S390) version = IBMZ_Any; version (SystemZ) version = IBMZ_Any; version (CRuntime_Glibc) enum SharedELF = true; else version (CRuntime_Musl) enum SharedELF = true; else version (FreeBSD) enum SharedELF = true; else version (NetBSD) enum SharedELF = true; else version (OpenBSD) enum SharedELF = true; else version (DragonFlyBSD) enum SharedELF = true; else version (CRuntime_UClibc) enum SharedELF = true; else version (Solaris) enum SharedELF = true; else enum SharedELF = false; static if (SharedELF): import core.memory; import core.stdc.config; import core.stdc.stdio; import core.stdc.stdlib : calloc, exit, free, malloc, EXIT_FAILURE; import core.stdc.string : strlen; version (linux) { import core.sys.linux.dlfcn; import core.sys.linux.elf; import core.sys.linux.link; } else version (FreeBSD) { import core.sys.freebsd.dlfcn; import core.sys.freebsd.sys.elf; import core.sys.freebsd.sys.link_elf; } else version (NetBSD) { import core.sys.netbsd.dlfcn; import core.sys.netbsd.sys.elf; import core.sys.netbsd.sys.link_elf; } else version (OpenBSD) { import core.sys.openbsd.dlfcn; import core.sys.openbsd.sys.elf; import core.sys.openbsd.sys.link_elf; } else version (DragonFlyBSD) { import core.sys.dragonflybsd.dlfcn; import core.sys.dragonflybsd.sys.elf; import core.sys.dragonflybsd.sys.link_elf; } else version (Solaris) { import core.sys.solaris.dlfcn; import core.sys.solaris.link; import core.sys.solaris.sys.elf; import core.sys.solaris.sys.link; } else { static assert(0, "unimplemented"); } import core.sys.posix.pthread; import rt.deh; import rt.dmain2; import rt.minfo; import core.internal.container.array; import core.internal.container.hashtab; import gcc.builtins; import gcc.config; import gcc.sections.common; alias DSO SectionGroup; struct DSO { static int opApply(scope int delegate(ref DSO) dg) { foreach (dso; _loadedDSOs) { if (auto res = dg(*dso)) return res; } return 0; } static int opApplyReverse(scope int delegate(ref DSO) dg) { foreach_reverse (dso; _loadedDSOs) { if (auto res = dg(*dso)) return res; } return 0; } @property immutable(ModuleInfo*)[] modules() const nothrow @nogc { return _moduleGroup.modules; } @property ref inout(ModuleGroup) moduleGroup() inout return nothrow @nogc { return _moduleGroup; } @property inout(void[])[] gcRanges() inout nothrow @nogc { return _gcRanges[]; } private: invariant() { safeAssert(_moduleGroup.modules.length > 0, "No modules for DSO."); safeAssert(_tlsMod || !_tlsSize, "Inconsistent TLS fields for DSO."); } ModuleGroup _moduleGroup; Array!(void[]) _gcRanges; size_t _tlsMod; size_t _tlsSize; version (Shared) { Array!(void[]) _codeSegments; // array of code segments Array!(DSO*) _deps; // D libraries needed by this DSO void* _handle; // corresponding handle } // get the TLS range for the executing thread void[] tlsRange() const nothrow @nogc { return getTLSRange(_tlsMod, _tlsSize); } } /**** * Boolean flag set to true while the runtime is initialized. */ __gshared bool _isRuntimeInitialized; /**** * Gets called on program startup just before GC is initialized. */ void initSections() nothrow @nogc { _isRuntimeInitialized = true; } /*** * Gets called on program shutdown just after GC is terminated. */ void finiSections() nothrow @nogc { _isRuntimeInitialized = false; } alias ScanDG = void delegate(void* pbeg, void* pend) nothrow; version (Shared) { import gcc.sections : pinLoadedLibraries, unpinLoadedLibraries, inheritLoadedLibraries, cleanupLoadedLibraries; /*** * Called once per thread; returns array of thread local storage ranges */ Array!(ThreadDSO)* initTLSRanges() @nogc nothrow { return &_loadedDSOs(); } void finiTLSRanges(Array!(ThreadDSO)* tdsos) @nogc nothrow { // Nothing to do here. tdsos used to point to the _loadedDSOs instance // in the dying thread's TLS segment and as such is not valid anymore. // The memory for the array contents was already reclaimed in // cleanupLoadedLibraries(). } void scanTLSRanges(Array!(ThreadDSO)* tdsos, scope ScanDG dg) nothrow { version (GNU_EMUTLS) { import gcc.emutls; _d_emutls_scan(dg); } else { foreach (ref tdso; *tdsos) dg(tdso._tlsRange.ptr, tdso._tlsRange.ptr + tdso._tlsRange.length); } } size_t sizeOfTLS() nothrow @nogc { auto tdsos = initTLSRanges(); size_t sum; foreach (ref tdso; *tdsos) sum += tdso._tlsRange.length; return sum; } // interface for core.thread to inherit loaded libraries pragma(mangle, gcc.sections.pinLoadedLibraries.mangleof) void* pinLoadedLibraries() nothrow @nogc { auto res = cast(Array!(ThreadDSO)*)calloc(1, Array!(ThreadDSO).sizeof); res.length = _loadedDSOs.length; foreach (i, ref tdso; _loadedDSOs) { (*res)[i] = tdso; if (tdso._addCnt) { // Increment the dlopen ref for explicitly loaded libraries to pin them. const success = .dlopen(linkMapForHandle(tdso._pdso._handle).l_name, RTLD_LAZY) !is null; safeAssert(success, "Failed to increment dlopen ref."); (*res)[i]._addCnt = 1; // new array takes over the additional ref count } } return res; } pragma(mangle, gcc.sections.unpinLoadedLibraries.mangleof) void unpinLoadedLibraries(void* p) nothrow @nogc { auto pary = cast(Array!(ThreadDSO)*)p; // In case something failed we need to undo the pinning. foreach (ref tdso; *pary) { if (tdso._addCnt) { auto handle = tdso._pdso._handle; safeAssert(handle !is null, "Invalid library handle."); .dlclose(handle); } } pary.reset(); .free(pary); } // Called before TLS ctors are ran, copy over the loaded libraries // of the parent thread. pragma(mangle, gcc.sections.inheritLoadedLibraries.mangleof) void inheritLoadedLibraries(void* p) nothrow @nogc { safeAssert(_loadedDSOs.empty, "DSOs have already been registered for this thread."); _loadedDSOs.swap(*cast(Array!(ThreadDSO)*)p); .free(p); foreach (ref dso; _loadedDSOs) { // the copied _tlsRange corresponds to parent thread dso.updateTLSRange(); } } // Called after all TLS dtors ran, decrements all remaining dlopen refs. pragma(mangle, gcc.sections.cleanupLoadedLibraries.mangleof) void cleanupLoadedLibraries() nothrow @nogc { foreach (ref tdso; _loadedDSOs) { if (tdso._addCnt == 0) continue; auto handle = tdso._pdso._handle; safeAssert(handle !is null, "Invalid DSO handle."); for (; tdso._addCnt > 0; --tdso._addCnt) .dlclose(handle); } // Free the memory for the array contents. _loadedDSOs.reset(); } } else { /*** * Called once per thread; returns array of thread local storage ranges */ Array!(void[])* initTLSRanges() nothrow @nogc { auto rngs = &_tlsRanges(); if (rngs.empty) { foreach (ref pdso; _loadedDSOs) rngs.insertBack(pdso.tlsRange()); } return rngs; } void finiTLSRanges(Array!(void[])* rngs) nothrow @nogc { rngs.reset(); } void scanTLSRanges(Array!(void[])* rngs, scope ScanDG dg) nothrow { version (GNU_EMUTLS) { import gcc.emutls; _d_emutls_scan(dg); } else { foreach (rng; *rngs) dg(rng.ptr, rng.ptr + rng.length); } } size_t sizeOfTLS() nothrow @nogc { auto rngs = initTLSRanges(); size_t sum; foreach (rng; *rngs) sum += rng.length; return sum; } } private: version (Shared) { /* * Array of thread local DSO metadata for all libraries loaded and * initialized in this thread. * * Note: * A newly spawned thread will inherit these libraries. * Note: * We use an array here to preserve the order of * initialization. If that became a performance issue, we * could use a hash table and enumerate the DSOs during * loading so that the hash table values could be sorted when * necessary. */ struct ThreadDSO { DSO* _pdso; static if (_pdso.sizeof == 8) uint _refCnt, _addCnt; else static if (_pdso.sizeof == 4) ushort _refCnt, _addCnt; else static assert(0, "unimplemented"); void[] _tlsRange; alias _pdso this; // update the _tlsRange for the executing thread void updateTLSRange() nothrow @nogc { _tlsRange = _pdso.tlsRange(); } } @property ref Array!(ThreadDSO) _loadedDSOs() @nogc nothrow { static Array!(ThreadDSO) x; return x; } /* * Set to true during rt_loadLibrary/rt_unloadLibrary calls. */ bool _rtLoading; /* * Hash table to map link_map* to corresponding DSO*. * The hash table is protected by a Mutex. */ __gshared pthread_mutex_t _handleToDSOMutex; @property ref HashTab!(void*, DSO*) _handleToDSO() @nogc nothrow { __gshared HashTab!(void*, DSO*) x; return x; } } else { /* * Static DSOs loaded by the runtime linker. This includes the * executable. These can't be unloaded. */ @property ref Array!(DSO*) _loadedDSOs() @nogc nothrow { __gshared Array!(DSO*) x; return x; } /* * Thread local array that contains TLS memory ranges for each * library initialized in this thread. */ @property ref Array!(void[]) _tlsRanges() @nogc nothrow { static Array!(void[]) x; return x; } enum _rtLoading = false; } /////////////////////////////////////////////////////////////////////////////// // Compiler to runtime interface. /////////////////////////////////////////////////////////////////////////////// /* * This data structure is generated by the compiler, and then passed to * _d_dso_registry(). */ struct CompilerDSOData { size_t _version; // currently 1 void** _slot; // can be used to store runtime data immutable(object.ModuleInfo*)* _minfo_beg, _minfo_end; // array of modules in this object file } T[] toRange(T)(T* beg, T* end) { return beg[0 .. end - beg]; } /* For each shared library and executable, the compiler generates code that * sets up CompilerDSOData and calls _d_dso_registry(). * A pointer to that code is inserted into both the .ctors and .dtors * segment so it gets called by the loader on startup and shutdown. */ extern(C) void _d_dso_registry(CompilerDSOData* data) { // only one supported currently safeAssert(data._version >= 1, "Incompatible compiler-generated DSO data version."); // no backlink => register if (*data._slot is null) { immutable firstDSO = _loadedDSOs.empty; if (firstDSO) initLocks(); DSO* pdso = cast(DSO*).calloc(1, DSO.sizeof); assert(typeid(DSO).initializer().ptr is null); *data._slot = pdso; // store backlink in library record pdso._moduleGroup = ModuleGroup(toRange(data._minfo_beg, data._minfo_end)); dl_phdr_info info = void; const headerFound = findDSOInfoForAddr(data._slot, &info); safeAssert(headerFound, "Failed to find image header."); scanSegments(info, pdso); version (Shared) { auto handle = handleForAddr(data._slot); getDependencies(info, pdso._deps); pdso._handle = handle; setDSOForHandle(pdso, pdso._handle); if (!_rtLoading) { /* This DSO was not loaded by rt_loadLibrary which * happens for all dependencies of an executable or * the first dlopen call from a C program. * In this case we add the DSO to the _loadedDSOs of this * thread with a refCnt of 1 and call the TlsCtors. */ immutable ushort refCnt = 1, addCnt = 0; _loadedDSOs.insertBack(ThreadDSO(pdso, refCnt, addCnt, pdso.tlsRange())); } } else { foreach (p; _loadedDSOs) safeAssert(p !is pdso, "DSO already registered."); _loadedDSOs.insertBack(pdso); _tlsRanges.insertBack(pdso.tlsRange()); } // don't initialize modules before rt_init was called (see Bugzilla 11378) if (_isRuntimeInitialized) { registerGCRanges(pdso); // rt_loadLibrary will run tls ctors, so do this only for dlopen immutable runTlsCtors = !_rtLoading; runModuleConstructors(pdso, runTlsCtors); } } // has backlink => unregister else { DSO* pdso = cast(DSO*)*data._slot; *data._slot = null; // don't finalizes modules after rt_term was called (see Bugzilla 11378) if (_isRuntimeInitialized) { // rt_unloadLibrary already ran tls dtors, so do this only for dlclose immutable runTlsDtors = !_rtLoading; runModuleDestructors(pdso, runTlsDtors); unregisterGCRanges(pdso); // run finalizers after module dtors (same order as in rt_term) version (Shared) runFinalizers(pdso); } version (Shared) { if (!_rtLoading) { /* This DSO was not unloaded by rt_unloadLibrary so we * have to remove it from _loadedDSOs here. */ foreach (i, ref tdso; _loadedDSOs) { if (tdso._pdso == pdso) { _loadedDSOs.remove(i); break; } } } unsetDSOForHandle(pdso, pdso._handle); } else { // static DSOs are unloaded in reverse order safeAssert(pdso == _loadedDSOs.back, "DSO being unregistered isn't current last one."); _loadedDSOs.popBack(); } freeDSO(pdso); // last DSO being unloaded => shutdown registry if (_loadedDSOs.empty) { version (Shared) { safeAssert(_handleToDSO.empty, "_handleToDSO not in sync with _loadedDSOs."); _handleToDSO.reset(); } finiLocks(); version (GNU_EMUTLS) { import gcc.emutls; _d_emutls_destroy(); } } } } /////////////////////////////////////////////////////////////////////////////// // Dynamic loading /////////////////////////////////////////////////////////////////////////////// // Shared D libraries are only supported when linking against a shared druntime library. version (Shared) { ThreadDSO* findThreadDSO(DSO* pdso) nothrow @nogc { foreach (ref tdata; _loadedDSOs) if (tdata._pdso == pdso) return &tdata; return null; } void incThreadRef(DSO* pdso, bool incAdd) { if (auto tdata = findThreadDSO(pdso)) // already initialized { if (incAdd && ++tdata._addCnt > 1) return; ++tdata._refCnt; } else { foreach (dep; pdso._deps) incThreadRef(dep, false); immutable ushort refCnt = 1, addCnt = incAdd ? 1 : 0; _loadedDSOs.insertBack(ThreadDSO(pdso, refCnt, addCnt, pdso.tlsRange())); pdso._moduleGroup.runTlsCtors(); } } void decThreadRef(DSO* pdso, bool decAdd) { auto tdata = findThreadDSO(pdso); safeAssert(tdata !is null, "Failed to find thread DSO."); safeAssert(!decAdd || tdata._addCnt > 0, "Mismatching rt_unloadLibrary call."); if (decAdd && --tdata._addCnt > 0) return; if (--tdata._refCnt > 0) return; pdso._moduleGroup.runTlsDtors(); foreach (i, ref td; _loadedDSOs) if (td._pdso == pdso) _loadedDSOs.remove(i); foreach (dep; pdso._deps) decThreadRef(dep, false); } extern(C) void* rt_loadLibrary(const char* name) { immutable save = _rtLoading; _rtLoading = true; scope (exit) _rtLoading = save; auto handle = .dlopen(name, RTLD_LAZY); if (handle is null) return null; // if it's a D library if (auto pdso = dsoForHandle(handle)) incThreadRef(pdso, true); return handle; } extern(C) int rt_unloadLibrary(void* handle) { if (handle is null) return false; immutable save = _rtLoading; _rtLoading = true; scope (exit) _rtLoading = save; // if it's a D library if (auto pdso = dsoForHandle(handle)) decThreadRef(pdso, true); return .dlclose(handle) == 0; } } /////////////////////////////////////////////////////////////////////////////// // Helper functions /////////////////////////////////////////////////////////////////////////////// void initLocks() nothrow @nogc { version (Shared) !pthread_mutex_init(&_handleToDSOMutex, null) || assert(0); } void finiLocks() nothrow @nogc { version (Shared) !pthread_mutex_destroy(&_handleToDSOMutex) || assert(0); } void runModuleConstructors(DSO* pdso, bool runTlsCtors) { pdso._moduleGroup.sortCtors(); pdso._moduleGroup.runCtors(); if (runTlsCtors) pdso._moduleGroup.runTlsCtors(); } void runModuleDestructors(DSO* pdso, bool runTlsDtors) { if (runTlsDtors) pdso._moduleGroup.runTlsDtors(); pdso._moduleGroup.runDtors(); } void registerGCRanges(DSO* pdso) nothrow @nogc { foreach (rng; pdso._gcRanges) GC.addRange(rng.ptr, rng.length); } void unregisterGCRanges(DSO* pdso) nothrow @nogc { foreach (rng; pdso._gcRanges) GC.removeRange(rng.ptr); } version (Shared) void runFinalizers(DSO* pdso) { foreach (seg; pdso._codeSegments) GC.runFinalizers(seg); } void freeDSO(DSO* pdso) nothrow @nogc { pdso._gcRanges.reset(); version (Shared) { pdso._codeSegments.reset(); pdso._deps.reset(); pdso._handle = null; } .free(pdso); } version (Shared) { @nogc nothrow: link_map* linkMapForHandle(void* handle) { static if (__traits(compiles, RTLD_DI_LINKMAP)) { link_map* map; const success = dlinfo(handle, RTLD_DI_LINKMAP, &map) == 0; safeAssert(success, "Failed to get DSO info."); return map; } else version (OpenBSD) { safeAssert(handle !is null, "Failed to get DSO info."); return cast(link_map*)handle; } else static assert(0, "unimplemented"); } DSO* dsoForHandle(void* handle) { DSO* pdso; !pthread_mutex_lock(&_handleToDSOMutex) || assert(0); if (auto ppdso = handle in _handleToDSO) pdso = *ppdso; !pthread_mutex_unlock(&_handleToDSOMutex) || assert(0); return pdso; } void setDSOForHandle(DSO* pdso, void* handle) { !pthread_mutex_lock(&_handleToDSOMutex) || assert(0); safeAssert(handle !in _handleToDSO, "DSO already registered."); _handleToDSO[handle] = pdso; !pthread_mutex_unlock(&_handleToDSOMutex) || assert(0); } void unsetDSOForHandle(DSO* pdso, void* handle) { !pthread_mutex_lock(&_handleToDSOMutex) || assert(0); safeAssert(_handleToDSO[handle] == pdso, "Handle doesn't match registered DSO."); _handleToDSO.remove(handle); !pthread_mutex_unlock(&_handleToDSOMutex) || assert(0); } void getDependencies(in ref dl_phdr_info info, ref Array!(DSO*) deps) { // get the entries of the .dynamic section ElfW!"Dyn"[] dyns; foreach (ref phdr; info.dlpi_phdr[0 .. info.dlpi_phnum]) { if (phdr.p_type == PT_DYNAMIC) { auto p = cast(ElfW!"Dyn"*)(info.dlpi_addr + (phdr.p_vaddr & ~(size_t.sizeof - 1))); dyns = p[0 .. phdr.p_memsz / ElfW!"Dyn".sizeof]; break; } } // find the string table which contains the sonames const(char)* strtab; foreach (dyn; dyns) { if (dyn.d_tag == DT_STRTAB) { version (CRuntime_Musl) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else version (linux) { // This might change in future glibc releases (after 2.29) as dynamic sections // are not required to be read-only on RISC-V. This was copy & pasted from MIPS // while upstreaming RISC-V support. Otherwise MIPS is the only arch which sets // in glibc: #define DL_RO_DYN_SECTION 1 version (RISCV_Any) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else version (MIPS_Any) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else strtab = cast(const(char)*)dyn.d_un.d_ptr; } else version (FreeBSD) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else version (NetBSD) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else version (OpenBSD) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else version (DragonFlyBSD) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else version (Solaris) strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate else static assert(0, "unimplemented"); break; } } foreach (dyn; dyns) { immutable tag = dyn.d_tag; if (!(tag == DT_NEEDED || tag == DT_AUXILIARY || tag == DT_FILTER)) continue; // soname of the dependency auto name = strtab + dyn.d_un.d_val; // get handle without loading the library auto handle = handleForName(name); // the runtime linker has already loaded all dependencies safeAssert(handle !is null, "Failed to get library handle."); // if it's a D library if (auto pdso = dsoForHandle(handle)) deps.insertBack(pdso); // append it to the dependencies } } void* handleForName(const char* name) { version (Solaris) enum refCounted = false; else version (OpenBSD) enum refCounted = false; else enum refCounted = true; static if (__traits(compiles, RTLD_NOLOAD)) enum flags = (RTLD_NOLOAD | RTLD_LAZY); else enum flags = RTLD_LAZY; auto handle = .dlopen(name, flags); static if (refCounted) { if (handle !is null) .dlclose(handle); // drop reference count } return handle; } } /////////////////////////////////////////////////////////////////////////////// // Elf program header iteration /////////////////////////////////////////////////////////////////////////////// /************ * Scan segments in Linux dl_phdr_info struct and store * the TLS and writeable data segments in *pdso. */ void scanSegments(in ref dl_phdr_info info, DSO* pdso) nothrow @nogc { foreach (ref phdr; info.dlpi_phdr[0 .. info.dlpi_phnum]) { switch (phdr.p_type) { case PT_LOAD: if (phdr.p_flags & PF_W) // writeable data segment { auto beg = cast(void*)(info.dlpi_addr + (phdr.p_vaddr & ~(size_t.sizeof - 1))); pdso._gcRanges.insertBack(beg[0 .. phdr.p_memsz]); } version (Shared) if (phdr.p_flags & PF_X) // code segment { auto beg = cast(void*)(info.dlpi_addr + (phdr.p_vaddr & ~(size_t.sizeof - 1))); pdso._codeSegments.insertBack(beg[0 .. phdr.p_memsz]); } break; case PT_TLS: // TLS segment version (GNU_EMUTLS) { } else { safeAssert(!pdso._tlsSize, "Multiple TLS segments in image header."); static if (OS_Have_Dlpi_Tls_Modid) { pdso._tlsMod = info.dlpi_tls_modid; pdso._tlsSize = phdr.p_memsz; } else version (Solaris) { struct Rt_map { Link_map rt_public; const char* rt_pathname; c_ulong rt_padstart; c_ulong rt_padimlen; c_ulong rt_msize; uint rt_flags; uint rt_flags1; c_ulong rt_tlsmodid; } Rt_map* map; version (Shared) dlinfo(handleForName(info.dlpi_name), RTLD_DI_LINKMAP, &map); else dlinfo(RTLD_SELF, RTLD_DI_LINKMAP, &map); // Until Solaris 11.4, tlsmodid for the executable is 0. // Let it start at 1 as the rest of the code expects. pdso._tlsMod = map.rt_tlsmodid + 1; pdso._tlsSize = phdr.p_memsz; } else { pdso._tlsMod = 0; pdso._tlsSize = 0; } } break; default: break; } } } /************************** * Input: * result where the output is to be written; dl_phdr_info is an OS struct * Returns: * true if found, and *result is filled in * References: * http://linux.die.net/man/3/dl_iterate_phdr */ bool findDSOInfoForAddr(in void* addr, dl_phdr_info* result=null) nothrow @nogc { version (linux) enum IterateManually = true; else version (NetBSD) enum IterateManually = true; else version (OpenBSD) enum IterateManually = true; else version (Solaris) enum IterateManually = true; else enum IterateManually = false; static if (IterateManually) { static struct DG { const(void)* addr; dl_phdr_info* result; } extern(C) int callback(dl_phdr_info* info, size_t sz, void* arg) nothrow @nogc { auto p = cast(DG*)arg; if (findSegmentForAddr(*info, p.addr)) { if (p.result !is null) *p.result = *info; return 1; // break; } return 0; // continue iteration } auto dg = DG(addr, result); /* OS function that walks through the list of an application's shared objects and * calls 'callback' once for each object, until either all shared objects * have been processed or 'callback' returns a nonzero value. */ return dl_iterate_phdr(&callback, &dg) != 0; } else version (FreeBSD) { return !!_rtld_addr_phdr(addr, result); } else version (DragonFlyBSD) { return !!_rtld_addr_phdr(addr, result); } else static assert(0, "unimplemented"); } /********************************* * Determine if 'addr' lies within shared object 'info'. * If so, return true and fill in 'result' with the corresponding ELF program header. */ bool findSegmentForAddr(in ref dl_phdr_info info, in void* addr, ElfW!"Phdr"* result=null) nothrow @nogc { if (addr < cast(void*)info.dlpi_addr) // less than base address of object means quick reject return false; foreach (ref phdr; info.dlpi_phdr[0 .. info.dlpi_phnum]) { auto beg = cast(void*)(info.dlpi_addr + phdr.p_vaddr); if (cast(size_t)(addr - beg) < phdr.p_memsz) { if (result !is null) *result = phdr; return true; } } return false; } /************************** * Input: * addr an internal address of a DSO * Returns: * the dlopen handle for that DSO or null if addr is not within a loaded DSO */ version (Shared) void* handleForAddr(void* addr) nothrow @nogc { Dl_info info = void; if (dladdr(addr, &info) != 0) return handleForName(info.dli_fname); return null; } /////////////////////////////////////////////////////////////////////////////// // TLS module helper /////////////////////////////////////////////////////////////////////////////// /* * Returns: the TLS memory range for a given module and the calling * thread or null if that module has no TLS. * * Note: This will cause the TLS memory to be eagerly allocated. */ struct tls_index { version (CRuntime_Glibc) { // For x86_64, fields are of type uint64_t, this is important for x32 // where tls_index would otherwise have the wrong size. // See https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86_64/dl-tls.h version (X86_64) { ulong ti_module; ulong ti_offset; } else { c_ulong ti_module; c_ulong ti_offset; } } else { size_t ti_module; size_t ti_offset; } } extern(C) void* __tls_get_addr(tls_index* ti) nothrow @nogc; extern(C) void* __ibmz_get_tls_offset(tls_index *ti) nothrow @nogc; /* The dynamic thread vector (DTV) pointers may point 0x8000 past the start of * each TLS block. This is at least true for PowerPC and Mips platforms. * See: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/powerpc/dl-tls.h;h=f7cf6f96ebfb505abfd2f02be0ad0e833107c0cd;hb=HEAD#l34 * https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mips/dl-tls.h;h=93a6dc050cb144b9f68b96fb3199c60f5b1fcd18;hb=HEAD#l32 * https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/riscv/dl-tls.h;h=ab2d860314de94c18812bc894ff6b3f55368f20f;hb=HEAD#l32 */ version (X86) enum TLS_DTV_OFFSET = 0x0; else version (X86_64) enum TLS_DTV_OFFSET = 0x0; else version (ARM) enum TLS_DTV_OFFSET = 0x0; else version (AArch64) enum TLS_DTV_OFFSET = 0x0; else version (RISCV32) enum TLS_DTV_OFFSET = 0x800; else version (RISCV64) enum TLS_DTV_OFFSET = 0x800; else version (HPPA) enum TLS_DTV_OFFSET = 0x0; else version (SPARC) enum TLS_DTV_OFFSET = 0x0; else version (SPARC64) enum TLS_DTV_OFFSET = 0x0; else version (PPC) enum TLS_DTV_OFFSET = 0x8000; else version (PPC64) enum TLS_DTV_OFFSET = 0x8000; else version (MIPS32) enum TLS_DTV_OFFSET = 0x8000; else version (MIPS64) enum TLS_DTV_OFFSET = 0x8000; else version (IBMZ_Any) enum TLS_DTV_OFFSET = 0x0; else static assert( false, "Platform not supported." ); void[] getTLSRange(size_t mod, size_t sz) nothrow @nogc { if (mod == 0) return null; version (GNU_EMUTLS) return null; // Handled in scanTLSRanges(). else { version (Solaris) { static if (!OS_Have_Dlpi_Tls_Modid) mod -= 1; } // base offset auto ti = tls_index(mod, 0); version (CRuntime_Musl) return (__tls_get_addr(&ti)-TLS_DTV_OFFSET)[0 .. sz]; else version (IBMZ_Any) { // IBM Z only provides __tls_get_offset instead of __tls_get_addr // which returns an offset relative to the thread pointer. auto addr = __ibmz_get_tls_offset(&ti); addr = addr + cast(c_ulong)__builtin_thread_pointer(); return addr[0 .. sz]; } else return (__tls_get_addr(&ti)-TLS_DTV_OFFSET)[0 .. sz]; } }
D
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Mail/Config+Mail.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.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/JSON.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SMTP.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/FormData.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/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Console.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/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/Branches.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sessions.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/WebSockets.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/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/Vapor.build/Config+Mail~partial.swiftmodule : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.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/JSON.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SMTP.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/FormData.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/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Console.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/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/Branches.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sessions.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/WebSockets.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/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/Vapor.build/Config+Mail~partial.swiftdoc : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.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/JSON.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SMTP.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/FormData.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/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Console.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/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/Branches.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Sessions.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/WebSockets.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 /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/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 std.stdio; module parser; string to_d(string arg) { string temp = "import shell;"; int i = 0; while(i!=arg.length) { if(arg[i]=='(') { temp~="shell(["; } else if(arg[i]==')') { temp~="])"; } else { temp~=arg[i]; } } return temp; }
D
/* This file contains an example on how to use the transitive visitor. It implements a visitor which computes the average function length from a *.d file. */ module examples.avg; import ddmd.astbase; import ddmd.parse; import ddmd.transitivevisitor; import ddmd.globals; import ddmd.id; import ddmd.identifier; import std.stdio; import std.file; class FunctionLengthVisitor : TransitiveVisitor { alias visit = super.visit; ulong[] lengths; double getAvgLen(ASTBase.Module m) { m.accept(this); if (lengths.length == 0) return 0; import std.algorithm; return double(lengths.sum)/lengths.length; } override void visitFuncBody(ASTBase.FuncDeclaration fd) { lengths ~= fd.endloc.linnum - fd.loc.linnum; super.visitFuncBody(fd); } } void main() { string fname = "examples/testavg.d"; Id.initialize(); global._init(); global.params.isLinux = true; global.params.is64bit = (size_t.sizeof == 8); global.params.useUnitTests = true; ASTBase.Type._init(); auto id = Identifier.idPool(fname); auto m = new ASTBase.Module(&(fname.dup)[0], id, false, false); auto input = readText(fname); scope p = new Parser!ASTBase(m, input, false); p.nextToken(); m.members = p.parseModule(); scope visitor = new FunctionLengthVisitor(); writeln("Average function length: ", visitor.getAvgLen(m)); }
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range; void get(Args...)(ref Args args) { import std.traits, std.meta, std.typecons; static if (Args.length == 1) { alias Arg = Args[0]; static if (isArray!Arg) { static if (isSomeChar!(ElementType!Arg)) { args[0] = readln.chomp.to!Arg; } else { args[0] = readln.split.to!Arg; } } else static if (isTuple!Arg) { auto input = readln.split; static foreach (i; 0..Fields!Arg.length) { args[0][i] = input[i].to!(Fields!Arg[i]); } } else { args[0] = readln.chomp.to!Arg; } } else { auto input = readln.split; assert(input.length == Args.length); static foreach (i; 0..Args.length) { args[i] = input[i].to!(Args[i]); } } } void get_lines(Args...)(size_t N, ref Args args) { import std.traits, std.range; static foreach (i; 0..Args.length) { static assert(isArray!(Args[i])); args[i].length = N; } foreach (i; 0..N) { static if (Args.length == 1) { get(args[0][i]); } else { auto input = readln.split; static foreach (j; 0..Args.length) { args[j][i] = input[j].to!(ElementType!(Args[j])); } } } } void main() { int T; get(T); while (T--) { int N; long K; get(N, K); long[] ps; get(ps); long r, q = ps[0]; foreach (p; ps[1..$]) { auto a = p * 100; auto b = q * K; if (a > b) { auto c = (a - b + K - 1) / K; q += c; r += c; } q += p; } writeln(r); } } /* 100 <= 20100 20200 <= 20101 */
D
instance DIA_Dar_EXIT(C_Info) { npc = SLD_810_Dar; nr = 999; condition = DIA_Dar_EXIT_Condition; information = DIA_Dar_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Dar_EXIT_Condition() { return TRUE; }; func void DIA_Dar_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Dar_Hallo(C_Info) { npc = SLD_810_Dar; nr = 1; condition = DIA_Dar_Hallo_Condition; information = DIA_Dar_Hallo_Info; permanent = FALSE; description = "Что ты куришь?"; }; func int DIA_Dar_Hallo_Condition() { return TRUE; }; func void DIA_Dar_Hallo_Info() { AI_Output(other,self,"DIA_Dar_Hallo_15_00"); //Что ты куришь? AI_Output(self,other,"DIA_Dar_Hallo_03_01"); //Хочешь затянуться? Info_ClearChoices(DIA_Dar_Hallo); Info_AddChoice(DIA_Dar_Hallo,"Нет.",DIA_Dar_Hallo_Nein); Info_AddChoice(DIA_Dar_Hallo,"Конечно.",DIA_Dar_Hallo_Ja); }; func void DIA_Dar_Hallo_Ja() { AI_Output(other,self,"DIA_Dar_Hallo_Ja_15_00"); //Конечно. B_GiveInvItems(self,other,ItMi_Joint,1); B_UseItem(other,ItMi_Joint); AI_Output(self,other,"DIA_Dar_Hallo_Ja_03_01"); //Неплохо, да? AI_Output(other,self,"DIA_Dar_Hallo_Ja_15_02"); //Где ты взял эту траву? CreateInvItem(self,ItMi_Joint); B_UseItem(self,ItMi_Joint); AI_Output(self,other,"DIA_Dar_Hallo_Ja_03_03"); //(усмехается) У меня свои источники. Info_ClearChoices(DIA_Dar_Hallo); }; func void DIA_Dar_Hallo_Nein() { AI_Output(other,self,"DIA_Dar_Hallo_Nein_15_00"); //Нет. Info_ClearChoices(DIA_Dar_Hallo); }; var int Dar_einmal; instance DIA_Dar_PERM(C_Info) { npc = SLD_810_Dar; nr = 2; condition = DIA_Dar_PERM_Condition; information = DIA_Dar_PERM_Info; permanent = TRUE; description = "Ты что-нибудь делаешь еще, кроме как куришь?"; }; func int DIA_Dar_PERM_Condition() { if(Npc_KnowsInfo(other,DIA_Dar_Hallo)) { return TRUE; }; }; func void DIA_Dar_PERM_Info() { AI_Output(other,self,"DIA_Dar_PERM_15_00"); //Ты что-нибудь делаешь еще, кроме как куришь? if((Dar_LostAgainstCipher == TRUE) && (Dar_einmal == FALSE)) { AI_Output(self,other,"DIA_Dar_PERM_03_01"); //(саркастически) Иногда я позволяю всяким мстительным болотным наркоманам задать мне взбучку... Dar_einmal = TRUE; } else { AI_Output(self,other,"DIA_Dar_PERM_03_02"); //Сейчас нет. }; }; instance DIA_Dar_WannaJoin(C_Info) { npc = SLD_810_Dar; nr = 3; condition = DIA_Dar_WannaJoin_Condition; information = DIA_Dar_WannaJoin_Info; permanent = FALSE; description = "Я хочу присоединиться к наемникам. Ты не возражаешь?"; }; func int DIA_Dar_WannaJoin_Condition() { if(Npc_KnowsInfo(other,DIA_Dar_Hallo) && (other.guild == GIL_NONE)) { return TRUE; }; }; func void DIA_Dar_WannaJoin_Info() { AI_Output(other,self,"DIA_Dar_WannaJoin_15_00"); //Я хочу присоединиться к наемникам. Ты не возражаешь? if(Dar_LostAgainstCipher == FALSE) { AI_Output(self,other,"DIA_Dar_WannaJoin_03_01"); //Мне все равно. } else { AI_Output(self,other,"DIA_Dar_Kameradenschwein_03_01"); //Я ни за что не проголосую за тебя. SCKnowsSLDVotes = TRUE; AI_StopProcessInfos(self); }; }; instance DIA_Dar_DuDieb(C_Info) { npc = SLD_810_Dar; nr = 4; condition = DIA_Dar_DuDieb_Condition; information = DIA_Dar_DuDieb_Info; permanent = FALSE; description = "Сифер сказал мне, что кто-то украл у него тюк болотной травы..."; }; func int DIA_Dar_DuDieb_Condition() { if(Npc_KnowsInfo(other,DIA_Cipher_TradeWhat) && (MIS_Cipher_Paket == LOG_Running)) { return TRUE; }; }; func void DIA_Dar_DuDieb_Info() { AI_Output(other,self,"DIA_Dar_DuDieb_15_00"); //Сифер сказал мне, что кто-то украл у него тюк болотной травы... AI_Output(self,other,"DIA_Dar_DuDieb_03_01"); //(смеется идиотским приглушенным смехом) AI_Output(other,self,"DIA_Dar_DuDieb_15_02"); //Ты ничего не знаешь об этом? AI_Output(self,other,"DIA_Dar_DuDieb_03_03"); //(очень коротко) Нет. Dar_Verdacht = TRUE; }; instance DIA_Dar_WoPaket(C_Info) { npc = SLD_810_Dar; nr = 4; condition = DIA_Dar_WoPaket_Condition; information = DIA_Dar_WoPaket_Info; permanent = TRUE; description = "Где тюк?"; }; func int DIA_Dar_WoPaket_Condition() { if(Npc_KnowsInfo(other,DIA_Dar_DuDieb) && (Dar_Dieb == FALSE) && (MIS_Cipher_Paket == LOG_Running)) { return TRUE; }; }; func void DIA_Dar_WoPaket_Info() { AI_Output(other,self,"DIA_Dar_WoPaket_15_00"); //(угрожающе) Где тюк? if(self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_LOST) { AI_Output(self,other,"DIA_Dar_WoPaket_03_01"); //Хорошо, хорошо, хорошо. Я продал его какому-то идиоту в городе. AI_Output(self,other,"DIA_Dar_WoPaket_03_02"); //Это было в гавани. Я не помню, как он выглядел. AI_Output(other,self,"DIA_Dar_WoPaket_15_03"); //Может, тебе нужна еще одна хорошая встряска? AI_Output(self,other,"DIA_Dar_WoPaket_03_04"); //Если честно, я был обкуренный в хлам. Я совершенно не представляю, как этот парень выглядел. AI_Output(self,other,"DIA_Dar_WoPaket_03_05"); //Это было в гавани около кораблестроителей. Это все, что я помню. Dar_Dieb = TRUE; B_LogEntry(Topic_CipherPaket,"Дар признал, что украл тюк с травой. Он продал ее в портовом квартале Хориниса, около кораблестроителей."); } else { AI_Output(self,other,"DIA_Dar_WoPaket_03_06"); //Что я могу знать? }; }; instance DIA_Dar_AufsMaul(C_Info) { npc = SLD_810_Dar; nr = 5; condition = DIA_Dar_AufsMaul_Condition; information = DIA_Dar_AufsMaul_Info; permanent = FALSE; description = "Я вышибу эту информацию из тебя!"; }; func int DIA_Dar_AufsMaul_Condition() { if(Npc_KnowsInfo(other,DIA_Dar_DuDieb) && (Dar_Dieb == FALSE) && (self.aivar[AIV_LastFightAgainstPlayer] != FIGHT_LOST)) { return TRUE; }; }; func void DIA_Dar_AufsMaul_Info() { AI_Output(other,self,"DIA_Dar_AufsMaul_15_00"); //Я вышибу эту информацию из тебя! AI_Output(self,other,"DIA_Dar_AufsMaul_03_01"); //Расслабься. Я слишком обкурился, чтобы драться с тобой! B_GiveInvItems(self,other,ItMi_Joint,1); AI_Output(self,other,"DIA_Dar_AufsMaul_03_02"); //Вот, затянись! }; instance DIA_Dar_Kameradenschwein(C_Info) { npc = SLD_810_Dar; nr = 1; condition = DIA_Dar_Kameradenschwein_Condition; information = DIA_Dar_Kameradenschwein_Info; permanent = FALSE; important = TRUE; }; func int DIA_Dar_Kameradenschwein_Condition() { if(Dar_LostAgainstCipher == TRUE) { self.aivar[AIV_LastFightComment] = FALSE; return TRUE; }; }; func void DIA_Dar_Kameradenschwein_Info() { AI_Output(self,other,"DIA_Dar_Kameradenschwein_03_00"); //Трепач! Ты сказал Сиферу, что я взял его траву! if(Npc_KnowsInfo(other,DIA_Dar_WannaJoin) && (other.guild == GIL_NONE)) { AI_Output(self,other,"DIA_Dar_Kameradenschwein_03_01"); //Я ни за что не проголосую за тебя. SCKnowsSLDVotes = TRUE; }; AI_StopProcessInfos(self); Npc_ExchangeRoutine(self,"Start"); }; instance DIA_Dar_Pilztabak(C_Info) { npc = SLD_810_Dar; nr = 6; condition = DIA_Dar_Pilztabak_Condition; information = DIA_Dar_Pilztabak_Info; permanent = FALSE; description = "Ты когда-нибудь пробовал грибной табак?"; }; func int DIA_Dar_Pilztabak_Condition() { if(Npc_HasItems(other,ItMi_PilzTabak) && Npc_KnowsInfo(other,DIA_Dar_Hallo)) { return TRUE; }; }; func void DIA_Dar_Pilztabak_Info() { AI_Output(other,self,"DIA_Dar_Pilztabak_15_00"); //Ты когда-нибудь пробовал грибной табак? AI_Output(self,other,"DIA_Dar_Pilztabak_03_01"); //Звучит интересно. Дай его сюда. B_GiveInvItems(other,self,ItMi_PilzTabak,1); Npc_RemoveInvItem(self,ItMi_PilzTabak); AI_Output(self,other,"DIA_Dar_Pilztabak_03_02"); //Так, попробуем... CreateInvItem(self,ItMi_Joint); B_UseItem(self,ItMi_Joint); AI_Output(self,other,"DIA_Dar_Pilztabak_03_03"); //Ты когда-нибудь курил его сам? AI_Output(other,self,"DIA_Dar_Pilztabak_15_04"); //Ну... CreateInvItem(self,ItMi_Joint); B_UseItem(self,ItMi_Joint); AI_Output(self,other,"DIA_Dar_Pilztabak_03_05"); //Курил или нет? AI_Output(other,self,"DIA_Dar_Pilztabak_15_06"); //Мне было некогда... AI_Output(self,other,"DIA_Dar_Pilztabak_03_07"); //Ох, черт! AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); AI_Output(self,other,"DIA_Dar_Pilztabak_03_08"); //Святой Робар! AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Dar_Pilztabak_03_09"); //Это дерьмо слишком крутое! Даже и не вздумай пробовать! B_GivePlayerXP(XP_Ambient); }; instance DIA_Dar_ORCRING(C_Info) { npc = SLD_810_Dar; nr = 4; condition = DIA_Dar_ORCRING_Condition; information = DIA_Dar_ORCRING_Info; description = "Похоже, часть наемников исчезла."; }; func int DIA_Dar_ORCRING_Condition() { if(MIS_ReadyforChapter4 == TRUE) { return TRUE; }; }; func void DIA_Dar_ORCRING_Info() { AI_Output(other,self,"DIA_Dar_ORCRING_15_00"); //Похоже, часть наемников исчезла. AI_Output(self,other,"DIA_Dar_ORCRING_03_01"); //Конечно. Это так. Сильвио сейчас очень далеко, и он увел с собой половину людей. AI_Output(self,other,"DIA_Dar_ORCRING_03_02"); //Мне плевать. У меня будет больше шансов показать себя и заслужить уважение Ли. Для этого нужно сделать что-нибудь громкое. AI_Output(self,other,"DIA_Dar_ORCRING_03_03"); //Если я смогу принести доказательство, что действительно крутой парень, возможно, я даже смогу стать одним из телохранителей Ли. Info_ClearChoices(DIA_Dar_ORCRING); Info_AddChoice(DIA_Dar_ORCRING,"Меня это не интересует.",DIA_Dar_ORCRING_no); Info_AddChoice(DIA_Dar_ORCRING,"Крутой парень? Ты?",DIA_Dar_ORCRING_necken); if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG) || (hero.guild == GIL_KDF)) { Info_AddChoice(DIA_Dar_ORCRING,"Как это должно выглядеть?",DIA_Dar_ORCRING_wie); }; }; func void DIA_Dar_ORCRING_necken() { AI_Output(other,self,"DIA_Dar_ORCRING_necken_15_00"); //Крутой парень? Ты? AI_Output(self,other,"DIA_Dar_ORCRING_necken_03_01"); //(злобно) Ох, ладно, заткнись. Ты-то вообще кто такой? if((hero.guild == GIL_MIL) || (hero.guild == GIL_PAL)) { AI_Output(self,other,"DIA_Dar_ORCRING_necken_03_02"); //Какой-то надутый простофиля из города. Тебе вообще ничего не светит. }; if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG)) { AI_Output(self,other,"DIA_Dar_ORCRING_necken_03_03"); //Ты здесь всего пару дней и уже задрал нос выше облаков. }; if(hero.guild == GIL_KDF) { AI_Output(self,other,"DIA_Dar_ORCRING_necken_03_04"); //Кого ты хочешь напугать этой своей магической чушью? Только не меня. }; if((hero.guild == GIL_MIL) || (hero.guild == GIL_PAL)) { AI_Output(self,other,"DIA_Dar_ORCRING_necken_03_05"); //И даже, если подумать, раскроить твой череп - именно то, что мне нужно, чтобы заслужить уважение Ли и его парней. Info_ClearChoices(DIA_Dar_ORCRING); Info_AddChoice(DIA_Dar_ORCRING,"У меня нет времени на эту чушь.",DIA_Dar_ORCRING_necken_no); Info_AddChoice(DIA_Dar_ORCRING,"Ладно. Попробуй.",DIA_Dar_ORCRING_necken_schlagen); } else { AI_Output(self,other,"DIA_Dar_ORCRING_necken_03_06"); //Ты подожди. Я найду способ произвести впечатление на Ли. }; }; var int Dar_FightAgainstPaladin; func void DIA_Dar_ORCRING_necken_schlagen() { Dar_FightAgainstPaladin = TRUE; AI_Output(other,self,"DIA_Dar_ORCRING_necken_schlagen_15_00"); //Ладно. Попробуй. AI_Output(self,other,"DIA_Dar_ORCRING_necken_schlagen_03_01"); //Ох, я не могу ждать. AI_StopProcessInfos(self); B_Attack(self,other,AR_NONE,1); }; func void DIA_Dar_ORCRING_necken_no() { AI_Output(other,self,"DIA_Dar_ORCRING_necken_no_15_00"); //У меня нет времени на эту чушь. AI_Output(self,other,"DIA_Dar_ORCRING_necken_no_03_01"); //О, да. Ты же рыцарь правосудия, как я мог забыть. Жаль. Я думал, что у тебя больше мужества. AI_StopProcessInfos(self); }; func void DIA_Dar_ORCRING_wie() { AI_Output(other,self,"DIA_Dar_ORCRING_wie_15_00"); //Как это должно выглядеть? AI_Output(self,other,"DIA_Dar_ORCRING_wie_03_01"); //Я не знаю точно. Какой-нибудь трофей орков вполне подошел бы. AI_Output(self,other,"DIA_Dar_ORCRING_wie_03_02"); //Что-нибудь вроде эмблемы лидера орков, ну или что-то вроде. Знамя, нарукавная нашивка или кольцо, ну, ты понял. AI_Output(self,other,"DIA_Dar_ORCRING_wie_03_03"); //Я не могу произвести впечатление без этого. Это очевидно. Log_CreateTopic(TOPIC_Dar_BringOrcEliteRing,LOG_MISSION); Log_SetTopicStatus(TOPIC_Dar_BringOrcEliteRing,LOG_Running); B_LogEntry(TOPIC_Dar_BringOrcEliteRing,"Дар хочет стать важной шишкой в рядах наемников. Он хочет заполучить трофей орков. Знамя, нарукавную нашивку, кольцо, или еще что-нибудь."); MIS_Dar_BringOrcEliteRing = LOG_Running; Info_ClearChoices(DIA_Dar_ORCRING); }; func void DIA_Dar_ORCRING_no() { AI_Output(other,self,"DIA_Dar_ORCRING_no_15_00"); //Меня это не интересует. AI_Output(self,other,"DIA_Dar_ORCRING_no_03_01"); //(злобно) Конечно, нет. Я бы очень удивился, если бы это было не так. Info_ClearChoices(DIA_Dar_ORCRING); }; instance DIA_Dar_FIGHTAGAINSTPALOVER(C_Info) { npc = SLD_810_Dar; nr = 4; condition = DIA_Dar_FIGHTAGAINSTPALOVER_Condition; information = DIA_Dar_FIGHTAGAINSTPALOVER_Info; important = TRUE; }; func int DIA_Dar_FIGHTAGAINSTPALOVER_Condition() { if((Dar_FightAgainstPaladin == TRUE) && ((hero.guild == GIL_MIL) || (hero.guild == GIL_PAL))) { return TRUE; }; }; func void DIA_Dar_FIGHTAGAINSTPALOVER_Info() { AI_Output(self,other,"DIA_Dar_FIGHTAGAINSTPALOVER_03_00"); //Хорошо, я знаю, что Ли не особенно разозлится, если я опять сцеплюсь с тобой. AI_Output(self,other,"DIA_Dar_FIGHTAGAINSTPALOVER_03_01"); //Я не хочу заводить себе здесь врагов. Так что забудем об этом, хорошо? B_GivePlayerXP(XP_Ambient); AI_StopProcessInfos(self); }; instance DIA_Dar_BRINGORCELITERING(C_Info) { npc = SLD_810_Dar; nr = 4; condition = DIA_Dar_BRINGORCELITERING_Condition; information = DIA_Dar_BRINGORCELITERING_Info; description = "Я принес трофей орков, который ты искал."; }; func int DIA_Dar_BRINGORCELITERING_Condition() { if((MIS_Dar_BringOrcEliteRing == LOG_Running) && ((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG) || (hero.guild == GIL_KDF)) && Npc_HasItems(other,ItRi_OrcEliteRing)) { return TRUE; }; }; func void DIA_Dar_BRINGORCELITERING_Info() { AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_15_00"); //Я принес трофей орков, который ты искал. AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_03_01"); //Что ты там принес мне? AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_15_02"); //Кольцо предводителя орков. AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_03_03"); //Ух ты, в таком случае... Что ты хочешь за него? MIS_Dar_BringOrcEliteRing = LOG_SUCCESS; Info_ClearChoices(DIA_Dar_BRINGORCELITERING); Info_AddChoice(DIA_Dar_BRINGORCELITERING,"Что ты можешь предложить мне?",DIA_Dar_BRINGORCELITERING_was); if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG)) { Info_AddChoice(DIA_Dar_BRINGORCELITERING,"Заплати мне золотом.",DIA_Dar_BRINGORCELITERING_geld); }; }; func void DIA_Dar_BRINGORCELITERING_geld() { AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_geld_15_00"); //Заплати мне золотом. if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG)) { AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_geld_03_01"); //Ммм. 600 золотых монет? AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_geld_15_02"); //Что? }; AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_geld_03_03"); //Ладно. Я дам тебе 1200 монет. if((hero.guild == GIL_SLD) || (hero.guild == GIL_DJG)) { AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_geld_03_04"); //Забирай их или оставь себе это кольцо. }; Info_ClearChoices(DIA_Dar_BRINGORCELITERING); Info_AddChoice(DIA_Dar_BRINGORCELITERING,"Этого недостаточно.",DIA_Dar_BRINGORCELITERING_geld_no); Info_AddChoice(DIA_Dar_BRINGORCELITERING,"Договорились. Держи кольцо.",DIA_Dar_BRINGORCELITERING_geld_ok); }; func void DIA_Dar_BRINGORCELITERING_geld_ok() { AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_geld_ok_15_00"); //Договорились. Держи кольцо. B_GiveInvItems(other,self,ItRi_OrcEliteRing,1); AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_geld_ok_03_01"); //Спасибо. Не терпится услышать, что скажут другие об этом. Npc_ExchangeRoutine(self,"Start"); CreateInvItems(self,ItMi_Gold,1200); B_GiveInvItems(self,other,ItMi_Gold,1200); B_GivePlayerXP(XP_Dar_BringOrcEliteRing); Info_ClearChoices(DIA_Dar_BRINGORCELITERING); }; func void DIA_Dar_BRINGORCELITERING_geld_no() { AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_geld_no_15_00"); //Этого недостаточно. AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_geld_no_03_01"); //А я думаю, что это слишком много. Этот бизнес не нравится мне. Не хочу обидеть. Info_ClearChoices(DIA_Dar_BRINGORCELITERING); }; func void DIA_Dar_BRINGORCELITERING_was() { AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_was_15_00"); //Что ты можешь предложить мне? AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_was_03_01"); //Ладно, забирай деньги, либо этот амулет, который я... ну, скажем, приобрел недавно. AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_was_03_02"); //Он повысит твою ловкость. Я сам испытывал его. Info_ClearChoices(DIA_Dar_BRINGORCELITERING); Info_AddChoice(DIA_Dar_BRINGORCELITERING,"Заплати мне золотом.",DIA_Dar_BRINGORCELITERING_geld); Info_AddChoice(DIA_Dar_BRINGORCELITERING,"Давай мне амулет.",DIA_Dar_BRINGORCELITERING_was_am); }; func void DIA_Dar_BRINGORCELITERING_was_am() { AI_Output(other,self,"DIA_Dar_BRINGORCELITERING_was_am_15_00"); //Давай мне амулет. AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_was_am_03_01"); //Конечно. Пусть он доставит тебе радость. Теперь давай мне это кольцо. B_GiveInvItems(other,self,ItRi_OrcEliteRing,1); CreateInvItems(self,ItAm_Dex_01,1); B_GiveInvItems(self,other,ItAm_Dex_01,1); B_GivePlayerXP(XP_Dar_BringOrcEliteRing); AI_Output(self,other,"DIA_Dar_BRINGORCELITERING_was_am_03_02"); //Теперь я счастлив. Npc_ExchangeRoutine(self,"Start"); Info_ClearChoices(DIA_Dar_BRINGORCELITERING); };
D
module kratos.resource.loader.sceneloader; import kratos.resource.loader.internal; import kratos.ecs; import kratos.graphics.mesh; import vibe.data.json; import derelict.assimp3.assimp; import kratos.graphics.renderstate; import kratos.resource.loader.renderstateloader; import kgl3n.vector; //import std.experimental.logger; Scene loadScene(string name) { auto data = activeFileSystem.get(name); import std.algorithm : among; if(data.extension.among("scene", "entity")) { return loadSceneKratos(data); } else { return loadSceneAssimp(data); } } private Scene loadSceneKratos(RawFileData data) { return Scene.deserialize(parseJsonString(data.asText), &loadJson); } version(KratosDisableAssimp) { private void loadSceneAssimp(RawFileData data) { assert(false, "Assimp support has been disabled, enable to load non-ksm meshes"); } } else { private Scene loadSceneAssimp(RawFileData data) { auto scene = new Scene(data.name); import std.string : toStringz, toLower; import std.exception : enforce; import std.container : Array; import kgl3n.matrix; import kratos.component.transform; import kratos.component.camera; import kratos.component.meshrenderer; import std.algorithm : map; import std.conv : to; //info("Importing Scene ", name); auto importedScene = aiImportFileFromMemory( data.data.ptr, data.data.length.to!uint, aiProcess_CalcTangentSpace | aiProcess_JoinIdenticalVertices | aiProcess_Triangulate | aiProcess_GenSmoothNormals | aiProcess_ImproveCacheLocality | aiProcess_FindInvalidData | aiProcess_GenUVCoords | aiProcess_FindInstances , data.extension.toLower.toStringz ); enforce(importedScene, "Error while loading scene"); scope(exit) aiReleaseImport(importedScene); //info("Importing ", importedScene.mNumMeshes, " meshes"); auto loadedMeshes = Array!Mesh(importedScene.mMeshes[0..importedScene.mNumMeshes].map!(a => loadMesh(a))); //info("Importing ", importedScene.mNumMaterials, " materials"); auto loadedMaterials = Array!RenderState(importedScene.mMaterials[0..importedScene.mNumMaterials].map!(a => loadMaterial(a))); void loadNode(const aiNode* node, Transform parent) { auto entity = scene.createEntity(node.mName.data[0 .. node.mName.length].idup); //info("Importing Node ", entity.name); auto transform = entity.components.add!Transform; transform.parent = parent; transform.localTransformation = Transformation.fromMatrix(*(cast(mat4*)&node.mTransformation)); foreach(meshIndex; 0..node.mNumMeshes) { auto meshRenderer = entity.components.add!MeshRenderer; import kratos.graphics.renderablemesh : renderableMesh; meshRenderer.mesh = renderableMesh(loadedMeshes[node.mMeshes[meshIndex]], loadedMaterials[importedScene.mMeshes[node.mMeshes[meshIndex]].mMaterialIndex]); } foreach(childIndex; 0..node.mNumChildren) { loadNode(node.mChildren[childIndex], transform); } } loadNode(importedScene.mRootNode, null); return scene; } } private Mesh loadMesh(const aiMesh* mesh) { //info("Importing Mesh '", mesh.mName.data[0..mesh.mName.length], '\''); import kratos.graphics.shadervariable; VertexAttributes attributes; attributes.add(VertexAttribute.fromAggregateType!vec3("position")); if(mesh.mNormals) attributes.add(VertexAttribute.fromAggregateType!vec3("normal")); if(mesh.mTangents) attributes.add(VertexAttribute.fromAggregateType!vec3("tangent")); if(mesh.mBitangents) attributes.add(VertexAttribute.fromAggregateType!vec3("bitangent")); foreach(i, texCoordChannel; mesh.mTextureCoords) { import std.conv : text; if(texCoordChannel) attributes.add(VertexAttribute.fromBasicType!float(mesh.mNumUVComponents[i], "texCoord" ~ i.text)); } float[] buffer; assert(attributes.totalByteSize % float.sizeof == 0); buffer.reserve(attributes.totalByteSize / float.sizeof * mesh.mNumVertices); foreach(vertexIndex; 0..mesh.mNumVertices) { static void appendVector(ref float[] buffer, aiVector3D vector, size_t numElements = 3) { auto vectorSlice = (&vector.x)[0..numElements]; buffer ~= vectorSlice; } appendVector(buffer, mesh.mVertices[vertexIndex]); if(mesh.mNormals) appendVector(buffer, mesh.mNormals[vertexIndex]); if(mesh.mTangents) appendVector(buffer, mesh.mTangents[vertexIndex]); if(mesh.mBitangents) appendVector(buffer, mesh.mBitangents[vertexIndex]); foreach(channelIndex, texCoordChannel; mesh.mTextureCoords) { if(texCoordChannel) appendVector(buffer, texCoordChannel[vertexIndex], mesh.mNumUVComponents[channelIndex]); } } import kratos.graphics.bo; auto vbo = VBO(cast(void[])buffer, attributes); IBO createIndices(T)() { T[] indices; indices.reserve(mesh.mNumFaces * 3); foreach(i; 0..mesh.mNumFaces) { auto face = mesh.mFaces[i]; assert(face.mNumIndices == 3); foreach(index; face.mIndices[0 .. face.mNumIndices]) { import std.conv; indices ~= index.to!T; } } return IBO(indices); } auto ibo = mesh.mNumVertices < ushort.max ? createIndices!ushort : createIndices!uint; return MeshManager.create(ibo, vbo); } private RenderState loadMaterial(const aiMaterial* material) { import kratos.resource.loader.textureloader; RenderState renderState = RenderStateLoader.get("RenderStates/DefaultImport.renderstate"); static struct TextureProperties { string uniformName; aiTextureType textureType; string defaultTexture = "Textures/White.png"; } foreach(properties; [ TextureProperties("diffuseTexture", aiTextureType_DIFFUSE), TextureProperties("specularTexture", aiTextureType_SPECULAR), TextureProperties("emissiveTexture", aiTextureType_EMISSIVE, "Textures/Black.png") ]) { aiString path; if(aiGetMaterialTexture(material, properties.textureType, 0, &path) == aiReturn_SUCCESS) { renderState.shader[properties.uniformName] = TextureLoader.get(path.data[0..path.length].idup); } else { renderState.shader[properties.uniformName] = TextureLoader.get(properties.defaultTexture); } } auto ambientColor = vec4(1, 1, 1, 1); aiGetMaterialColor(material, AI_MATKEY_COLOR_AMBIENT, 0, 0, cast(aiColor4D*)&ambientColor); auto diffuseColor = vec4(1, 1, 1, 1); aiGetMaterialColor(material, AI_MATKEY_COLOR_DIFFUSE, 0, 0, cast(aiColor4D*)&diffuseColor); auto specularColor = vec4(1, 1, 1, 1); aiGetMaterialColor(material, AI_MATKEY_COLOR_SPECULAR, 0, 0, cast(aiColor4D*)&specularColor); auto emissiveColor = vec4(0, 0, 0, 0); aiGetMaterialColor(material, AI_MATKEY_COLOR_EMISSIVE, 0, 0, cast(aiColor4D*)&emissiveColor); renderState.shader["ambientColor"] = ambientColor.rgb; renderState.shader["diffuseColor"] = diffuseColor; renderState.shader["specularColor"] = specularColor; renderState.shader["emissiveColor"] = emissiveColor.rgb; return renderState; } shared static this() { DerelictASSIMP3.load(); } shared static ~this() { DerelictASSIMP3.unload(); }
D
instance DIA_AssignTalkChief(C_Info) { nr = 1; condition = DIA_AssignTalkChief_condition; information = DIA_AssignTalkChief_info; permanent = TRUE; important = TRUE; }; func int DIA_AssignTalkChief_condition() { if(self.vars[0] == TRUE) { return TRUE; }; }; func void DIA_AssignTalkChief_info() { var int DayNow; DayNow = Wld_GetDay(); if(self.voice == 12) { AI_Output(self,other,"DIA_AssignTalkChief_01_00"); //Вонючий вор! } else if(self.voice == 10) { AI_Output(self,other,"DIA_AssignTalkChief_01_01"); //Ты, грязный вор! } else if(self.voice == 1) { AI_Output(self,other,"DIA_AssignTalkChief_01_02"); //Ты, грязный ворюга! } else if(self.voice == 14) { AI_Output(self,other,"DIA_AssignTalkChief_01_03"); //Ты, грязный ворюга! } else if(self.voice == 7) { AI_Output(self,other,"DIA_AssignTalkChief_01_04"); //Грязный воришка! } else if(self.voice == 4) { AI_Output(self,other,"DIA_AssignTalkChief_01_05"); //Ты, грязный вор! } else if((self.voice == 16) || (self.voice == 17)) { AI_Output(self,other,"DIA_AssignTalkChief_01_07"); //Ах ты вор! } else { AI_Output(self,other,"DIA_AssignTalkChief_01_06"); //Грязный ворюга! }; if((self.voice == 16) || (self.voice == 17)) { } else { AI_Output(self,other,"DIA_AssignTalkChief_01_08"); //Неужели ты думал, что я не замечу твоего воровства?! }; Info_ClearChoices(dia_assigntalkchief); Info_AddChoice(dia_assigntalkchief,"Ну, укуси меня!",dia_assigntalkchief_biteme); Info_AddChoice(dia_assigntalkchief,"Может, забудем об этом?",dia_assigntalkchief_helpyou); if(self.aivar[AIV_MM_WuselEnd] < DayNow) { Info_AddChoice(dia_assigntalkchief,"О чем ты? Не понимаю...",dia_assigntalkchief_knowrhetorika); }; }; func void dia_assigntalkchief_biteme() { HERO_CANESCAPEFROMGOTCHA = FALSE; HERO_PAYPRICEFROMGOTCHA = FALSE; self.vars[0] = FALSE; AI_Output(other,self,"DIA_AssignTalkChief_BiteMe_01_00"); //Ну, укуси меня! if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_BiteMe_F1_01_01"); //Ты об этом пожалеешь! } else { AI_Output(self,other,"DIA_AssignTalkChief_BiteMe_F2_01_01"); //Ты об этом пожалеешь! }; } else { AI_Output(self,other,"DIA_AssignTalkChief_BiteMe_01_01"); //Ты об этом пожалеешь! }; AI_StopProcessInfos(self); B_Attack(self,other,AR_Theft,1); }; func void dia_assigntalkchief_helpyou() { var int payrand; payrand = Hlp_Random(100); HERO_CANESCAPEFROMGOTCHA = FALSE; self.vars[0] = FALSE; AI_Output(other,self,"DIA_AssignTalkChief_HelpYou_01_01"); //Может, забудем об этом? if(payrand >= 75) { HERO_PAYPRICEFROMGOTCHA = 200; } else if(payrand >= 50) { HERO_PAYPRICEFROMGOTCHA = 100; } else if(payrand >= 25) { HERO_PAYPRICEFROMGOTCHA = 50; } else { HERO_PAYPRICEFROMGOTCHA = FALSE; }; if((self.guild == GIL_PAL) || (self.guild == GIL_KDF)) { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_02"); //Слуга Инноса не имеет дел с ворами, вроде тебя! AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_03"); //Так что теперь поздно просить прощения. AI_StopProcessInfos(self); B_Attack(self,other,AR_Theft,1); } else if(self.guild == GIL_KDW) { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_04"); //Слуга Аданоса не станет имееть дел с ворами! AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_05"); //Так что теперь поздно просить прощения. AI_StopProcessInfos(self); B_Attack(self,other,AR_Theft,1); } else if(HERO_PAYPRICEFROMGOTCHA == FALSE) { if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F1_01_06"); //Забудь об этом, ублюдок! AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F1_01_07"); //Ты еще пожалеешь, что связался со мной. } else { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F2_01_06"); //Забудь об этом, ублюдок! AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F2_01_07"); //Ты еще пожалеешь, что связался со мной. }; } else { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_06"); //Забудь об этом, ублюдок! AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_07"); //Ты еще пожалеешь, что связался со мной. }; AI_StopProcessInfos(self); B_Attack(self,other,AR_Theft,1); } else { if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F1_01_08"); //Хммм...(в раздумьях) Ну хорошо. Я согласна. AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F1_01_09"); //Но тебе придется заплатить за свою дерзость. } else { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F2_01_08"); //Хммм...(в раздумьях) Ну хорошо. Я согласна. AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_F2_01_09"); //Но тебе придется заплатить за свою дерзость. }; } else { AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_08"); //Хммм...(в раздумьях) Ну хорошо. Я согласен. AI_Output(self,other,"DIA_AssignTalkChief_HelpYou_01_09"); //Но тебе придется заплатить за свою дерзость. }; AI_Output(other,self,"DIA_AssignTalkChief_HelpYou_01_10"); //И сколько? B_Say_Gold(self,other,HERO_PAYPRICEFROMGOTCHA); Info_ClearChoices(dia_assigntalkchief); if(Npc_HasItems(other,ItMi_Gold) >= HERO_PAYPRICEFROMGOTCHA) { Info_AddChoice(dia_assigntalkchief,"Ладно! Держи свое золото.",dia_assigntalkchief_dealpay); }; Info_AddChoice(dia_assigntalkchief,"Забудь об этом.",dia_assigntalkchief_nopay); }; }; func void dia_assigntalkchief_dealpay() { AI_Output(other,self,"DIA_AssignTalkChief_DealPay_01_01"); //Ладно! Держи свое золото. B_GiveInvItems(other,self,ItMi_Gold,HERO_PAYPRICEFROMGOTCHA); if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_DealPay_F1_01_02"); //Вот и славно. Считай, что я ничего не видела. } else { AI_Output(self,other,"DIA_AssignTalkChief_DealPay_F2_01_02"); //Вот и славно. Считай, что я ничего не видела. }; } else { AI_Output(self,other,"DIA_AssignTalkChief_DealPay_01_02"); //Вот и славно. Считай, что я ничего не видел. }; HERO_PAYPRICEFROMGOTCHA = FALSE; AI_StopProcessInfos(self); }; func void dia_assigntalkchief_nopay() { AI_Output(other,self,"DIA_AssignTalkChief_NoPay_01_01"); //Забудь об этом. if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_NoPay_F1_01_02"); //Ну как хочешь! Тогда не обижайся. } else { AI_Output(self,other,"DIA_AssignTalkChief_NoPay_F2_01_02"); //Ну как хочешь! Тогда не обижайся. }; } else { AI_Output(self,other,"DIA_AssignTalkChief_NoPay_01_02"); //Ну как хочешь! Тогда не обижайся. }; HERO_PAYPRICEFROMGOTCHA = FALSE; AI_StopProcessInfos(self); B_Attack(self,other,AR_Theft,1); }; func void dia_assigntalkchief_knowrhetorika() { AI_Output(other,self,"DIA_AssignTalkChief_KnowRhetorika_01_01"); //О чем ты? Не понимаю... if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_KnowRhetorika_F1_01_02"); //Немыслимо! Тебя поймали за руку, а у тебя все еще хватает наглости отрицать это! } else { AI_Output(self,other,"DIA_AssignTalkChief_KnowRhetorika_F2_01_02"); //Немыслимо! Тебя поймали за руку, а у тебя все еще хватает наглости отрицать это! }; } else { AI_Output(self,other,"DIA_AssignTalkChief_KnowRhetorika_01_02"); //Немыслимо! Тебя поймали за руку, а у тебя все еще хватает наглости отрицать это! }; AI_Output(other,self,"DIA_AssignTalkChief_KnowRhetorika_01_03"); //Я не собирался у тебя ничего красть! Тебе это показалось. if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_KnowRhetorika_F1_01_04"); //И ты наивно полагаешь, что я поверю в эту чушь?! } else { AI_Output(self,other,"DIA_AssignTalkChief_KnowRhetorika_F2_01_04"); //И ты наивно полагаешь, что я поверю в эту чушь?! }; } else { AI_Output(self,other,"DIA_AssignTalkChief_KnowRhetorika_01_04"); //И ты наивно полагаешь, что я поверю в эту чушь?! }; Info_ClearChoices(dia_assigntalkchief); Info_AddChoice(dia_assigntalkchief,"(попытаться убедить)",dia_assigntalkchief_tellme); }; func void dia_assigntalkchief_tellme() { var int rhetorikarand; rhetorikarand = Hlp_Random(50); AI_Output(other,self,"DIA_AssignTalkChief_TellMe_01_01"); //Ну как, теперь веришь? self.aivar[AIV_MM_WuselEnd] = Wld_GetDay(); if(RhetorikSkillValue[1] > rhetorikarand) { HERO_CANESCAPEFROMGOTCHA = FALSE; HERO_PAYPRICEFROMGOTCHA = FALSE; self.vars[0] = FALSE; TempRhetLearnSuccess += 1; if(TempRhetLearnSuccess >= 10) { if(RhetorikSkillValue[1] < 100) { RhetorikSkillValue[1] = RhetorikSkillValue[1] + 1; AI_Print("Риторика + 1"); }; TempRhetLearnSuccess = FALSE; }; if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_TellMe_F1_01_02"); //Ладно, ладно... Считай, что убедил меня! Пожалуй, мне действительно все это лишь показалось. } else { AI_Output(self,other,"DIA_AssignTalkChief_TellMe_F2_01_02"); //Ладно, ладно... Считай, что убедил меня! Пожалуй, мне действительно все это лишь показалось. }; } else { AI_Output(self,other,"DIA_AssignTalkChief_TellMe_01_02"); //Ладно, ладно... Считай, что убедил меня! Пожалуй, мне действительно все это лишь показалось. }; AI_Output(other,self,"DIA_AssignTalkChief_TellMe_01_03"); //Само собой. Info_ClearChoices(dia_assigntalkchief); } else { TempRhetLearnFail += 1; if(TempRhetLearnFail >= 20) { if(RhetorikSkillValue[1] < 100) { RhetorikSkillValue[1] = RhetorikSkillValue[1] + 1; AI_Print("Риторика + 1"); }; TempRhetLearnFail = FALSE; }; if((self.voice == 16) || (self.voice == 17)) { if(self.voice == 16) { AI_Output(self,other,"DIA_AssignTalkChief_TellMe_F1_01_04"); //Нет! Ты абсолютно не убедил меня в правоте своих слов. } else { AI_Output(self,other,"DIA_AssignTalkChief_TellMe_F2_01_04"); //Нет! Ты абсолютно не убедил меня в правоте своих слов. }; } else { AI_Output(self,other,"DIA_AssignTalkChief_TellMe_01_04"); //Нет! Ты абсолютно не убедил меня в правоте своих слов. }; AI_Output(other,self,"DIA_AssignTalkChief_TellMe_01_05"); //Что же, очень жаль. Info_ClearChoices(dia_assigntalkchief); Info_AddChoice(dia_assigntalkchief,"Ну, укуси меня!",dia_assigntalkchief_biteme); Info_AddChoice(dia_assigntalkchief,"Может, тогда как-нибудь уладим это недоразумение?",dia_assigntalkchief_helpyou); }; }; func void B_AssignTalkChief(var C_Npc slf) { if(slf.vars[0] == TRUE) { DIA_AssignTalkChief.npc = Hlp_GetInstanceID(slf); }; };
D
/* GML parser * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org> * Understanding is not required. Only obedience. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ module gaem.parser.gentokens is aliced; string[] tokens = [ "false", "true", "all", "noone", "self", "other", "global", "not", "and", "or", "xor", "break", "continue", "switch", "case", "default", "div", "mod", "do", "until", "repeat", "while", "if", "else", "for", "return", "exit", "var", "globalvar", "with", "pi", "function", //"with_object", ]; struct SpTk { string text; string name; } SpTk[] sptk = [ SpTk("+", "Add"), SpTk("-", "Sub"), SpTk("*", "Mul"), SpTk("/", "RDiv"), SpTk("&", "BitAnd"), SpTk("|", "BitOr"), SpTk("^", "BitXor"), SpTk("~", "BitNeg"), SpTk("&&", "LogAnd"), SpTk("||", "LogOr"), SpTk("^^", "LogXor"), SpTk("!", "LogNot"), SpTk("<", "Less"), SpTk(">", "Great"), SpTk("<=", "LessEqu"), SpTk(">=", "GreatEqu"), SpTk("==", "Equ"), SpTk("!=", "NotEqu"), SpTk("=", "Ass"), SpTk("+=", "AssAdd"), SpTk("-=", "AssSub"), SpTk("*=", "AssMul"), SpTk("/=", "AssDiv"), SpTk("&=", "AssBitAnd"), SpTk("|=", "AssBitOr"), SpTk("^=", "AssBitXor"), SpTk("<<=", "AssLShift"), SpTk(">>=", "AssRShift"), SpTk(";", "Semi"), SpTk(":", "Colon"), SpTk(",", "Comma"), SpTk(".", "Dot"), SpTk("{", "LCurly"), SpTk("}", "RCurly"), SpTk("(", "LParen"), SpTk(")", "RParen"), SpTk("[", "LBracket"), SpTk("]", "RBracket"), SpTk("<<", "LShift"), SpTk(">>", "RShift"), SpTk("++", "PlusPlus"), SpTk("--", "MinusMinus"), ]; void main () { import std.algorithm; import std.array; import std.stdio; tokens = tokens.sort!((a, b) => a < b).array; { bool[string] tk; foreach (string s; tokens) { if (s in tk) assert(0, "duplicate token: "~s); tk[s] = true; } foreach (ref st; sptk) { if (st.text in tk) assert(0, "duplicate token: "~st.text); tk[st.text] = true; } } bool[string] tnm; auto fo = File("tokens.d", "w"); fo.writeln(`/* GML parser * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org> * Understanding is not required. Only obedience. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */`); fo.writeln("module gaem.parser.tokens;"); // fo.write enum fo.writeln(); fo.writeln(); fo.writeln("enum Keyword {"); fo.writeln(" NoKW,"); foreach (string n; tokens) { import std.uni : toLower, toUpper; string tename = n[0..1].toUpper~n[1..$].toLower; if (tename in tnm) assert(0, "duplicate token name: "~tename); tnm[tename] = true; fo.writeln(" ", tename, ","); } foreach (ref ti; sptk) { if (ti.name in tnm) assert(0, "duplicate token name: "~ti.name); tnm[ti.name] = true; fo.writeln(" ", ti.name, ","); } fo.writeln("}"); fo.writeln(); fo.writeln(); fo.writeln("__gshared immutable Keyword[string] keywords;"); fo.writeln("__gshared immutable string[int] keywordstx;"); fo.writeln(); fo.writeln(); fo.writeln("shared static this () {"); fo.writeln(" keywords = ["); foreach (string n; tokens) { import std.uni : toLower, toUpper; fo.writeln(" \"", n, "\": Keyword.", n[0..1].toUpper, n[1..$].toLower, ","); } foreach (ref ti; sptk) fo.writeln(" \"", ti.text, "\": Keyword.", ti.name, ","); fo.writeln(" ];"); fo.writeln(" keywordstx = ["); foreach (string n; tokens) { import std.uni : toLower, toUpper; fo.writeln(" Keyword.", n[0..1].toUpper, n[1..$].toLower, ": \"", n, "\","); } foreach (ref ti; sptk) fo.writeln(" Keyword.", ti.name, ": \"", ti.text, "\","); fo.writeln(" ];"); fo.writeln("}"); fo.writeln(); fo.writeln(); fo.writeln("static string keywordtext (uint id) {"); fo.writeln(" if (auto kw = id in keywordstx) return *kw;"); fo.writeln(" return \"<unknown>\";"); fo.writeln("}"); }
D
a road (especially that part of a road) over which vehicles travel
D
#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Based on opensm script from openfabrics.org, # Copyright (c) 2006 Mellanox Technologies. All rights reserved. # Distributed under the terms of the GNU General Public License v2 depend() { need openib after net # ip net seems to be needed to perform management. } prog=/usr/sbin/opensm start() { ebegin "Starting OpenSM Infiniband Subnet Manager" start-stop-daemon --start --background --exec $prog -- $OPTIONS eend $? } stop() { ebegin "Stopping OpenSM Infiniband Subnet Manager" start-stop-daemon --stop --exec $prog eend $? }
D
/Users/pramonowang/Desktop/anyhour/DerivedData/anyhour/Build/Intermediates/anyhour.build/Debug-iphoneos/anyhour.build/Objects-normal/armv7/AnyHourCustomCell.o : /Users/pramonowang/Desktop/anyhour/anyhour/MyAnnotation.swift /Users/pramonowang/Desktop/anyhour/ShowMapViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/SearchMapViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AnyHourCustomCell.swift /Users/pramonowang/Desktop/anyhour/anyhour/Restaurant.swift /Users/pramonowang/Desktop/anyhour/anyhour/ViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AnyHourTableViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreLocation.swiftmodule /Users/pramonowang/Desktop/anyhour/DerivedData/anyhour/Build/Intermediates/anyhour.build/Debug-iphoneos/anyhour.build/Objects-normal/armv7/AnyHourCustomCell~partial.swiftmodule : /Users/pramonowang/Desktop/anyhour/anyhour/MyAnnotation.swift /Users/pramonowang/Desktop/anyhour/ShowMapViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/SearchMapViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AnyHourCustomCell.swift /Users/pramonowang/Desktop/anyhour/anyhour/Restaurant.swift /Users/pramonowang/Desktop/anyhour/anyhour/ViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AnyHourTableViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreLocation.swiftmodule /Users/pramonowang/Desktop/anyhour/DerivedData/anyhour/Build/Intermediates/anyhour.build/Debug-iphoneos/anyhour.build/Objects-normal/armv7/AnyHourCustomCell~partial.swiftdoc : /Users/pramonowang/Desktop/anyhour/anyhour/MyAnnotation.swift /Users/pramonowang/Desktop/anyhour/ShowMapViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/SearchMapViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AnyHourCustomCell.swift /Users/pramonowang/Desktop/anyhour/anyhour/Restaurant.swift /Users/pramonowang/Desktop/anyhour/anyhour/ViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AnyHourTableViewController.swift /Users/pramonowang/Desktop/anyhour/anyhour/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreLocation.swiftmodule
D
/* ==== Vibe.d HTTP/2 Webserver Example ==== */ /* Supports both HTTP and HTTPS transport */ /* Transparent (WIP: exposing settings) */ /* ========================================= */ import vibe.http.server; import vibe.stream.tls; import vibe.http.internal.http2.http2 : http2Callback; // ALPN negotiation import vibe.core.core : runApplication; /* ==== declare two handlers (could use the same one) ==== */ void handleReq(HTTPServerRequest req, HTTPServerResponse res) @safe { if (res.httpVersion == HTTPVersion.HTTP_2) res.writeBody("Hello, you connected to "~req.path~"! This response is sent through HTTP/2\n"); else res.writeBody("Hello, World! You connected through HTTP/1, try using HTTP/2!\n"); } void tlsHandleReq(HTTPServerRequest req, HTTPServerResponse res) @safe { if (req.httpVersion == HTTPVersion.HTTP_2) res.writeBody("Hello, you connected to "~req.path~"! This response is sent through HTTP/2 with TLS\n"); else res.writeBody("Hello, World! You connected through HTTP/1 with TLS, try using HTTP/2!\n"); } // sends a very big data frame void bigHandleReq(size_t DIM)(HTTPServerRequest req, HTTPServerResponse res) @trusted { import vibe.utils.array : FixedAppender; import std.range : iota; FixedAppender!(immutable(char)[], DIM) appender; if (req.path == "/") { foreach(i; iota(1,DIM-4)) appender.put('1'); appender.put(['O','k','!', '\n']); res.writeBody(appender.data); } } void main() { //import vibe.core.log; //setLogLevel(LogLevel.trace); /* ==== cleartext HTTP/2 support (h2c) ==== */ auto settings = HTTPServerSettings(); settings.port = 8090; settings.bindAddresses = ["127.0.0.1"]; listenHTTP!handleReq(settings); /* ==== cleartext HTTP/2 support (h2c) with a heavy DATA frame ==== */ auto bigSettings = HTTPServerSettings(); settings.port = 8092; settings.bindAddresses = ["127.0.0.1"]; listenHTTP!(bigHandleReq!100000)(settings); /* ========== HTTPS (h2) support ========== */ HTTPServerSettings tlsSettings; tlsSettings.port = 8091; tlsSettings.bindAddresses = ["127.0.0.1"]; /// setup TLS context by using cert and key in example rootdir tlsSettings.tlsContext = createTLSContext(TLSContextKind.server); tlsSettings.tlsContext.useCertificateChainFile("server.crt"); tlsSettings.tlsContext.usePrivateKeyFile("server.key"); // set alpn callback to support HTTP/2 protocol negotiation tlsSettings.tlsContext.alpnCallback(http2Callback); listenHTTP!tlsHandleReq(tlsSettings); /* ========== HTTPS (h2) support with a heavy DATA frame ========== */ HTTPServerSettings bigTLSSettings; bigTLSSettings.port = 8093; bigTLSSettings.bindAddresses = ["127.0.0.1"]; /// setup TLS context by using cert and key in example rootdir bigTLSSettings.tlsContext = createTLSContext(TLSContextKind.server); bigTLSSettings.tlsContext.useCertificateChainFile("server.crt"); bigTLSSettings.tlsContext.usePrivateKeyFile("server.key"); // set alpn callback to support HTTP/2 protocol negotiation bigTLSSettings.tlsContext.alpnCallback(http2Callback); auto l = listenHTTP!(bigHandleReq!100000)(bigTLSSettings); scope(exit) l.stopListening(); /* ========== Run both `listenHTTP` handlers ========== */ // UNCOMMENT to run runApplication(); }
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; void main() { auto nm = readln.split.to!(int[]); auto N = nm[0]; auto M = nm[1]; writeln(N * (N-1) / 2 + M * (M-1) / 2); }
D
instance DIA_Abuyin_EXIT(C_Info) { npc = VLK_456_Abuyin; nr = 999; condition = DIA_Abuyin_EXIT_Condition; information = DIA_Abuyin_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Abuyin_EXIT_Condition() { return TRUE; }; func void DIA_Abuyin_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Abuyin_PICKPOCKET(C_Info) { npc = VLK_456_Abuyin; nr = 900; condition = DIA_Abuyin_PICKPOCKET_Condition; information = DIA_Abuyin_PICKPOCKET_Info; permanent = TRUE; description = PICKPOCKET_COMM; }; func int DIA_Abuyin_PICKPOCKET_Condition() { return C_Beklauen(75,200); }; func void DIA_Abuyin_PICKPOCKET_Info() { Info_ClearChoices(DIA_Abuyin_PICKPOCKET); Info_AddChoice(DIA_Abuyin_PICKPOCKET,Dialog_Back,DIA_Abuyin_PICKPOCKET_BACK); Info_AddChoice(DIA_Abuyin_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Abuyin_PICKPOCKET_DoIt); }; func void DIA_Abuyin_PICKPOCKET_DoIt() { B_Beklauen(); Info_ClearChoices(DIA_Abuyin_PICKPOCKET); }; func void DIA_Abuyin_PICKPOCKET_BACK() { Info_ClearChoices(DIA_Abuyin_PICKPOCKET); }; instance DIA_Abuyin_Hallo(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Hallo_Condition; information = DIA_Abuyin_Hallo_Info; permanent = FALSE; important = TRUE; }; func int DIA_Abuyin_Hallo_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_Abuyin_Hallo_Info() { AI_Output(self,other,"DIA_Addon_Abuyin_Hallo_13_00"); //(přemítá) Zvláštní. Připadáš mi povědomý, cizinče... AI_Output(self,other,"DIA_Addon_Abuyin_Hallo_13_01"); //No... nesmírné jsou tajemství času a vesmíru... Á, omluv mou nezdvořilost, synu trpělivosti. Ještě jsem tě ani nepřivítal... AI_Output(self,other,"DIA_Addon_Abuyin_Hallo_13_02"); //Vítej, příteli. Sedni si na koberec a vychutnej si vodní dýmku. }; instance DIA_Abuyin_du(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_du_Condition; information = DIA_Abuyin_du_Info; permanent = FALSE; description = "Kdo jsi?"; }; func int DIA_Abuyin_du_Condition() { return TRUE; }; func void DIA_Abuyin_du_Info() { AI_Output(other,self,"DIA_Abuyin_du_15_00"); //Kdo jsi? AI_Output(self,other,"DIA_Abuyin_du_13_01"); //Jmenuju se Abú Džín ibn Džadír ibn Omar Chalíd ben Hádží al-Šarídí. Jsem věštcem a prorokem, astrologem a dodavatelem tabáku. }; instance DIA_Abuyin_Kraut(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Kraut_Condition; information = DIA_Abuyin_Kraut_Info; permanent = FALSE; description = "Jaký druh tabáku nabízíš?"; }; func int DIA_Abuyin_Kraut_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du)) { return TRUE; }; }; func void DIA_Abuyin_Kraut_Info() { AI_Output(other,self,"DIA_Abuyin_Kraut_15_00"); //Jaký druh tabáku nabízíš? AI_Output(self,other,"DIA_Abuyin_Kraut_13_01"); //Mé dýmky jsou naplněny pikantním a osvěžujícím jablečným tabákem. AI_Output(self,other,"DIA_Abuyin_Kraut_13_02"); //Posluž si, kdykoli budeš chtít, syne dobrodružství. }; instance DIA_Abuyin_anderen(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_anderen_Condition; information = DIA_Abuyin_anderen_Info; permanent = FALSE; description = "Máš i jiný tabák?"; }; func int DIA_Abuyin_anderen_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_Kraut)) { return TRUE; }; }; func void DIA_Abuyin_anderen_Info() { B_GivePlayerXP(50); AI_Output(other,self,"DIA_Abuyin_anderen_15_00"); //Máš i jiný tabák? AI_Output(self,other,"DIA_Abuyin_anderen_13_01"); //Nabízím pouze ten nejlepší tabák. Tato jablečná směs má podobné vlastnosti jako tabák z mé domoviny, Jižních ostrovů. AI_Output(self,other,"DIA_Abuyin_anderen_13_02"); //Ale samozřejmě se nijak nebráním vyzkoušet jakýkoli jiný druh - pokud tedy někdo dokáže vyrobit opravdu dobrý tabák. AI_Output(other,self,"DIA_Abuyin_anderen_15_03"); //Jak se to dělá? AI_Output(self,other,"DIA_Abuyin_anderen_13_04"); //Jako základ doporučuju můj jablečný tabák. A pak můžeš vyzkoušet kombinace s dalšími ingrediencemi. AI_Output(self,other,"DIA_Abuyin_anderen_13_05"); //Výroba probíhá v alchymistické koloně a vyžaduje základní znalosti alchymie. AbuyinTellTabak = TRUE; Log_CreateTopic(TOPIC_TalentAlchemy,LOG_NOTE); B_LogEntry(TOPIC_TalentAlchemy,"Abuyin mi řekl, jak vytvořit nový druh tabáku. Jako základ musím použít jablečný tabák a na alchymistickém stolu ho smíchat s nějakou další přísadou."); }; instance DIA_Abuyin_Woher(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Woher_Condition; information = DIA_Abuyin_Woher_Info; permanent = FALSE; description = "Kde se dá sehnat jablečný tabák?"; }; func int DIA_Abuyin_Woher_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_anderen)) { return TRUE; }; }; func void DIA_Abuyin_Woher_Info() { AI_Output(other,self,"DIA_Abuyin_Woher_15_00"); //Kde se dá sehnat jablečný tabák? AI_Output(self,other,"DIA_Abuyin_Woher_13_01"); //Dám ti dvě dávky. Je jen na tvé moudrosti, jak s ním naložíš. AI_Output(self,other,"DIA_Abuyin_Woher_13_02"); //Pokud budeš chtít další, zajdi přímo za Zuridem, mistrem lektvarů. Dělá si svůj vlastní tabák a také ho samozřejmě prodává. B_GiveInvItems(self,other,ItMi_ApfelTabak,2); }; func void B_TabakProbieren() { AI_Output(self,other,"DIA_Abuyin_Mischung_Nichts_13_00"); //Nech mě ten tabák vyzkoušet. CreateInvItems(self,ItMi_Joint,1); B_UseItem(self,ItMi_Joint); AI_Output(self,other,"DIA_Abuyin_Mischung_Nichts_13_01"); //Ne, obávám se, že mi tahle směs nebude vyhovovat. Ale možná se ti podaří nalézt někoho jiného, kdo ehm... ocení takovou delikatesu. }; var int Test_SumpfTabak; var int Test_PilzTabak; var int Test_DoppelTabak; var int Test_Honigtabak; var int Test_Hasish; instance DIA_Abuyin_Mischung(C_Info) { npc = VLK_456_Abuyin; nr = 10; condition = DIA_Abuyin_Mischung_Condition; information = DIA_Abuyin_Mischung_Info; permanent = TRUE; description = "Mám novou směs tabáku..."; }; func int DIA_Abuyin_Mischung_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_anderen) && (Abuyin_DoneSpiltz == FALSE) && ((Npc_HasItems(other,ItMi_SumpfTabak) >= 1) || (Npc_HasItems(other,ItMi_PilzTabak) >= 1) || (Npc_HasItems(other,ItMi_Hasish) >= 1) || (Npc_HasItems(other,ItMi_DoppelTabak) >= 1) || (Npc_HasItems(other,ItMi_Honigtabak) >= 1))) { return TRUE; }; }; func void DIA_Abuyin_Mischung_Info() { AI_Output(other,self,"DIA_Abuyin_Mischung_15_00"); //Mám novou směs tabáku... Info_ClearChoices(DIA_Abuyin_Mischung); Info_AddChoice(DIA_Abuyin_Mischung,Dialog_Back,DIA_Abuyin_Mischung_BACK); if((Npc_HasItems(other,ItMi_SumpfTabak) >= 1) && (Test_SumpfTabak == FALSE)) { Info_AddChoice(DIA_Abuyin_Mischung,PRINT_KRAUT,DIA_Abuyin_Mischung_Sumpf); }; if((Npc_HasItems(other,ItMi_PilzTabak) >= 1) && (Test_PilzTabak == FALSE)) { Info_AddChoice(DIA_Abuyin_Mischung,PRINT_PILZ,DIA_Abuyin_Mischung_Pilz); }; if((Npc_HasItems(other,ItMi_DoppelTabak) >= 1) && (Test_DoppelTabak == FALSE)) { Info_AddChoice(DIA_Abuyin_Mischung,PRINT_DOPPEL,DIA_Abuyin_Mischung_Doppel); }; if((Npc_HasItems(other,ItMi_Honigtabak) >= 1) && (Test_Honigtabak == FALSE)) { Info_AddChoice(DIA_Abuyin_Mischung,PRINT_HONIG,DIA_Abuyin_Mischung_Super); }; if((Npc_HasItems(other,ItMi_Hasish) >= 1) && (Test_Hasish == FALSE)) { Info_AddChoice(DIA_Abuyin_Mischung,PRINT_GANDJA,DIA_Abuyin_Mischung_MegaSuper); }; }; func void DIA_Abuyin_Mischung_BACK() { Info_ClearChoices(DIA_Abuyin_Mischung); }; func void DIA_Abuyin_Mischung_Sumpf() { B_GiveInvItems(other,self,ItMi_SumpfTabak,1); Test_SumpfTabak = TRUE; B_TabakProbieren(); Info_ClearChoices(DIA_Abuyin_Mischung); }; func void DIA_Abuyin_Mischung_Pilz() { B_GiveInvItems(other,self,ItMi_PilzTabak,1); Test_PilzTabak = TRUE; B_TabakProbieren(); Info_ClearChoices(DIA_Abuyin_Mischung); }; func void DIA_Abuyin_Mischung_Doppel() { B_GiveInvItems(other,self,ItMi_DoppelTabak,1); Test_DoppelTabak = TRUE; B_TabakProbieren(); Info_ClearChoices(DIA_Abuyin_Mischung); }; func void DIA_Abuyin_Mischung_Super() { B_GiveInvItems(other,self,ItMi_Honigtabak,1); AI_Output(self,other,"DIA_Abuyin_Mischung_Super_13_00"); //Nech mě ten tabák vyzkoušet. CreateInvItems(self,ItMi_Joint,1); B_UseItem(self,ItMi_Joint); AI_Output(self,other,"DIA_Abuyin_Mischung_Super_13_01"); //Chutná to přímo neuvěřitelně! Nikdy jsem v celém svém životě nic lepšího nekouřil! AI_Output(self,other,"DIA_Abuyin_Mischung_Super_13_02"); //Jak jsi tu směs připravil? AI_Output(other,self,"DIA_Abuyin_Mischung_Super_15_03"); //Smíchal jsem tabák s medem. AI_Output(self,other,"DIA_Abuyin_Mischung_Super_13_04"); //To se ti opravdu povedlo, otče umění mísení. Byl bych potěšen, kdybych směl své nuzné dýmky naplnit tak vzácnou směsí. AI_Output(other,self,"DIA_Abuyin_Mischung_Super_15_05"); //Tak je naplň. AI_Output(self,other,"DIA_Abuyin_Mischung_Super_13_06"); //Díky, synu velkorysosti. Žádná jiná směs nemůže být tak dobrá jako tato. Koupím od tebe veškerou směs tohoto druhu, co mi přineseš. Abuyin_Honigtabak = TRUE; Test_Honigtabak = TRUE; if((Abuyin_Hasish == TRUE) && (Abuyin_Honigtabak == TRUE)) { Abuyin_DoneSpiltz = TRUE; }; B_GivePlayerXP(XP_Ambient * 2); Info_ClearChoices(DIA_Abuyin_Mischung); }; func void DIA_Abuyin_Mischung_MegaSuper() { AI_Output(self,other,"DIA_Abuyin_Mischung_MegaSuper_13_00"); //Co je to? AI_Output(other,self,"DIA_Abuyin_Mischung_MegaSuper_13_01"); //Zkus to! Bude se vám to líbit... AI_Output(self,other,"DIA_Abuyin_Mischung_MegaSuper_13_02"); //Dobře, pojď sem. B_GiveInvItems(other,self,ItMi_Hasish,1); Npc_RemoveInvItems(self,ItMi_Hasish,1); CreateInvItems(self,itmi_specialjoint,1); Abuyin_Hasish = TRUE; Test_Hasish = TRUE; if((Abuyin_Hasish == TRUE) && (Abuyin_Honigtabak == TRUE)) { Abuyin_DoneSpiltz = TRUE; }; AI_StopProcessInfos(self); if(C_BodyStateContains(self,BS_SIT)) { AI_Standup(self); AI_TurnToNPC(self,other); }; AI_UseItem(self,itmi_specialjoint); Npc_SetRefuseTalk(self,5); hero.aivar[AIV_INVINCIBLE] = FALSE; }; instance DIA_Abuyin_Mischung_MegaSuper_Ok(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Mischung_MegaSuper_Ok_Condition; information = DIA_Abuyin_Mischung_MegaSuper_Ok_Info; permanent = FALSE; important = TRUE; }; func int DIA_Abuyin_Mischung_MegaSuper_Ok_Condition() { if(Abuyin_Hasish == TRUE) { return TRUE; }; }; func void DIA_Abuyin_Mischung_MegaSuper_Ok_Info() { B_GivePlayerXP(XP_Ambient * 5); AI_Output(self,other,"DIA_Abuyin_Mischung_MegaSuper_Ok_13_03"); //Och... (přichází k sobě) Co to bylo a jak jsi to připravil. AI_Output(other,self,"DIA_Abuyin_Mischung_MegaSuper_Ok_13_04"); //To zůstane mým malým tajemstvím. AI_Output(self,other,"DIA_Abuyin_Mischung_MegaSuper_Ok_15_05"); //To byla fantazie, nic takového jsem v životě ještě nezažil! AI_Output(other,self,"DIA_Abuyin_Mischung_MegaSuper_Ok_13_06"); //No, tak si ho nech. AI_Output(self,other,"DIA_Abuyin_Mischung_MegaSuper_Ok_15_07"); //To se neboj. Hmm... zábavná věc! AI_Output(self,other,"DIA_Abuyin_Mischung_MegaSuper_Ok_15_08"); //Podívej, zatím ho nikomu nedávej! Nikdy nevíš... }; instance DIA_Abuyin_Trade(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Trade_Condition; information = DIA_Abuyin_Trade_Info; permanent = TRUE; description = "Mám pro tebe trochu medového tabáku."; }; func int DIA_Abuyin_Trade_Condition() { if((Abuyin_Honigtabak == TRUE) && (Npc_HasItems(other,ItMi_Honigtabak) >= 1)) { return TRUE; }; }; func void DIA_Abuyin_Trade_Info() { var int TabakExp; Abuyin_Score = FALSE; Abuyin_Score = Npc_HasItems(other,ItMi_Honigtabak) * VALUE_ItMi_HonigTabak; TabakExp = FALSE; TabakExp = Npc_HasItems(other,ItMi_Honigtabak); B_GivePlayerXP(TabakExp * 50); AI_Output(other,self,"DIA_Abuyin_Trade_15_00"); //Mám pro tebe trochu medového tabáku. B_GiveInvItems(other,self,ItMi_Honigtabak,Npc_HasItems(other,ItMi_Honigtabak)); Npc_RemoveInvItems(self,ItMi_Honigtabak,Npc_HasItems(self,ItMi_Honigtabak)); AI_Output(self,other,"DIA_Abuyin_Trade_13_01"); //Obchodovat s tebou je mi neskonalým potěšením. B_GiveInvItems(self,other,ItMi_Gold,Abuyin_Score); }; instance DIA_Abuyin_Herb(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Herb_Condition; information = DIA_Abuyin_Herb_Info; permanent = FALSE; description = "Zajímal by tě tenhle balíček drog?"; }; func int DIA_Abuyin_Herb_Condition() { if(Npc_HasItems(other,ItMi_HerbPaket) >= 1) { return TRUE; }; }; func void DIA_Abuyin_Herb_Info() { AI_Output(other,self,"DIA_Abuyin_Herb_15_00"); //Zajímal by tě tenhle balíček drog? AI_Output(self,other,"DIA_Abuyin_Herb_13_01"); //Balík bylinek - neříkej, že to je tráva z bažin. Ó, dej to pryč, synu lehkovážnosti. AI_Output(self,other,"DIA_Abuyin_Herb_13_02"); //Jestli mě s tím chytí městské stráže, pošlou mě rovnou za mříže - a ty nedopadneš o moc lépe! AI_Output(self,other,"DIA_Abuyin_Herb_13_03"); //Pokud chceš tu zásobu prodat, dám ti jednu radu - opusť tohle město. AI_Output(self,other,"DIA_Abuyin_Herb_13_04"); //Pokus se toho zbavit někde za hradbami. Všechno, co za to můžeš dostat tady, je spousta trablů. }; instance DIA_Abuyin_Weissagung(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Weissagung_Condition; information = DIA_Abuyin_Weissagung_Info; permanent = FALSE; description = "Dokážeš mi předpovědět budoucnost?"; }; func int DIA_Abuyin_Weissagung_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du) && (Kapitel == 1)) { return TRUE; }; }; func void DIA_Abuyin_Weissagung_Info() { AI_Output(other,self,"DIA_Abuyin_Weissagung_15_00"); //Dokážeš mi předpovědět budoucnost? AI_Output(self,other,"DIA_Abuyin_Weissagung_13_01"); //Za menší poplatek jsem ti k službám, ó otče velkorysosti. AI_Output(other,self,"DIA_Abuyin_Weissagung_15_02"); //Kolik chceš? AI_Output(self,other,"DIA_Abuyin_Weissagung_13_03"); //Za pouhých 25 zlatých budu kvůli tobě riskovat pohled skrze čas. AI_Output(self,other,"DIA_Abuyin_Weissagung_13_04"); //Ale pamatuj - budoucnost je vždycky nejistá. Vše, co mohu udělat, je zběžně prolétnout několik útržků času. }; instance DIA_Abuyin_Zukunft(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Zukunft_Condition; information = DIA_Abuyin_Zukunft_Info; permanent = TRUE; description = "Předpověz mi budoucnost (zaplatit 25 zlatých)."; }; var int DIA_Abuyin_Zukunft_permanent; func int DIA_Abuyin_Zukunft_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_Weissagung) && (DIA_Abuyin_Zukunft_permanent == FALSE) && (Kapitel == 1)) { return TRUE; }; }; func void DIA_Abuyin_Zukunft_Info() { AI_Output(other,self,"DIA_Abuyin_Zukunft_15_00"); //Předpověz mi mou budoucnost. if(B_GiveInvItems(other,self,ItMi_Gold,25)) { AI_Output(self,other,"DIA_Abuyin_Zukunft_13_01"); //Dobrá, hledači vědomostí. Teď se musím dostat do hypnotického stavu. Jsi připraven? Info_ClearChoices(DIA_Abuyin_Zukunft); Info_AddChoice(DIA_Abuyin_Zukunft,"Jsem připraven.",DIA_Abuyin_Zukunft_Trance); } else { AI_Output(self,other,"DIA_Abuyin_Zukunft_13_02"); //Ó, otče mincí, žádám tě o 25 zlatých, za to, že nahlédnu do budoucnosti. }; }; func void DIA_Abuyin_Zukunft_Trance() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_Zukunft_Trance_13_00"); //(v transu) ... Skřeti... hlídají vstup... stará chodba... Hornické údolí... AI_Output(self,other,"DIA_Abuyin_Zukunft_Trance_13_01"); //(v transu) ... Muž v zářivé zbroji... mág... je s ním tvůj přítel... čeká na tebe... AI_Output(self,other,"DIA_Abuyin_Zukunft_Trance_13_02"); //(v transu) ... Oheň! Útok... mocná stvoření... plameny... mnoho... jich zemře... AI_Output(self,other,"DIA_Addon_Abuyin_Zukunft_Trance_13_00"); //(v tranzu) ... co je to... Město... ruiny... Quarhodron v Jharkendaru... AI_Output(self,other,"DIA_Addon_Abuyin_Zukunft_Trance_13_01"); //(v tranzu) ... nazývá se... Quarhodron v Jharkendaru! AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_Zukunft_Trance_13_03"); //... Je mi líto, ale vize je u konce. Už tu není nic, co bych mohl spatřit. DIA_Abuyin_Zukunft_permanent = TRUE; Abuyin_Zukunft = 1; Info_ClearChoices(DIA_Abuyin_Zukunft); B_GivePlayerXP(XP_Ambient * 4); }; instance DIA_Abuyin_Nochmal(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Nochmal_Condition; information = DIA_Abuyin_Nochmal_Info; permanent = TRUE; description = "Můžeš mi udělat ještě další proroctví?"; }; func int DIA_Abuyin_Nochmal_Condition() { if(Kapitel == Abuyin_Zukunft) { return TRUE; }; }; func void DIA_Abuyin_Nochmal_Info() { AI_Output(other,self,"DIA_Abuyin_Nochmal_15_00"); //Můžeš mi udělat ještě další proroctví? AI_Output(self,other,"DIA_Abuyin_Nochmal_13_01"); //Ó synu záhadné budoucnosti, není v mé moci poodhalit závoj času. AI_Output(self,other,"DIA_Abuyin_Nochmal_13_02"); //Pouze pokud mi čas sešle další znamení, budu schopen se do něj podívat znovu. if(Abuyin_Erzaehlt == FALSE) { AI_Output(other,self,"DIA_Abuyin_Nochmal_15_03"); //A kdy to bude? AI_Output(self,other,"DIA_Abuyin_Nochmal_13_04"); //Až se budoucnost stane přítomností a ty budeš pokračovat ve své cestě. Abuyin_Erzaehlt = TRUE; }; }; func void B_Abuyin_Weissagung() { AI_Output(other,self,"B_Abuyin_Weissagung_15_00"); //Můžeš mi předpovědět budoucnost? AI_Output(self,other,"B_Abuyin_Weissagung_13_01"); //Ano, čas postoupil a já ti na oplátku za několik mincí sdělím proroctví. AI_Output(other,self,"B_Abuyin_Weissagung_15_02"); //Kolik? }; instance DIA_Abuyin_Weissagung2(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Weissagung2_Condition; information = DIA_Abuyin_Weissagung2_Info; permanent = FALSE; description = "Můžeš věštit mou budoucnost?"; }; func int DIA_Abuyin_Weissagung2_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du) && (Kapitel == 2)) { return TRUE; }; }; func void DIA_Abuyin_Weissagung2_Info() { B_Abuyin_Weissagung(); AI_Output(self,other,"DIA_Abuyin_Weissagung2_13_00"); //Za pouhých 100 zlatých budu kvůli tobě riskovat pohled skrze čas. }; instance DIA_Abuyin_Zukunft2(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Zukunft2_Condition; information = DIA_Abuyin_Zukunft2_Info; permanent = TRUE; description = "Předpověz mi budoucnost (zaplatit 100 zlatých)."; }; var int DIA_Abuyin_Zukunft2_permanent; func int DIA_Abuyin_Zukunft2_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_Weissagung2) && (DIA_Abuyin_Zukunft2_permanent == FALSE) && (Kapitel == 2)) { return TRUE; }; }; func void DIA_Abuyin_Zukunft2_Info() { AI_Output(other,self,"DIA_Abuyin_Zukunft2_15_00"); //Předpověz mi mou budoucnost. if(B_GiveInvItems(other,self,ItMi_Gold,100)) { AI_Output(self,other,"DIA_Abuyin_Zukunft2_13_01"); //Dobrá, synu udatnosti. Teď se dostanu do hypnotického stavu. Jsi připraven? Info_ClearChoices(DIA_Abuyin_Zukunft2); Info_AddChoice(DIA_Abuyin_Zukunft2,"Jsem připraven.",DIA_Abuyin_Zukunft2_Trance); } else { AI_Output(self,other,"DIA_Abuyin_Zukunft2_13_02"); //Ó otče mincí, žádám tě o 100 zlatých za to, že nahlédnu do budoucnosti. }; }; func void DIA_Abuyin_Zukunft2_Trance() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_Zukunft2_Trance_13_00"); //(v transu) ... Žoldák... bude tě potřebovat... strašná vražda... Oko... AI_Output(self,other,"DIA_Abuyin_Zukunft2_Trance_13_01"); //(v transu) ... zlověstní stoupenci... přicházejí... hledají tebe... strážce padne... AI_Output(self,other,"DIA_Abuyin_Zukunft2_Trance_13_02"); //(v transu) ... ale tři se spojí... jedině pak získáš, co ti náleží... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_Zukunft2_Trance_13_03"); //To je vše. Není nic, co bych ještě mohl spatřit. DIA_Abuyin_Zukunft2_permanent = TRUE; Abuyin_Zukunft = 2; Info_ClearChoices(DIA_Abuyin_Zukunft2); B_GivePlayerXP(XP_Ambient * 4); }; instance DIA_Abuyin_Weissagung3(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Weissagung3_Condition; information = DIA_Abuyin_Weissagung3_Info; permanent = FALSE; description = "Můžeš věštit mou budoucnost?"; }; func int DIA_Abuyin_Weissagung3_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du) && (Kapitel == 3)) { return TRUE; }; }; func void DIA_Abuyin_Weissagung3_Info() { B_Abuyin_Weissagung(); AI_Output(self,other,"DIA_Abuyin_Weissagung3_13_00"); //Za pouhých 250 zlatých budu kvůli tobě riskovat pohled skrze čas. }; instance DIA_Abuyin_Zukunft3(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Zukunft3_Condition; information = DIA_Abuyin_Zukunft3_Info; permanent = TRUE; description = "Předpověz mi budoucnost (zaplatit 250 zlatých)."; }; var int DIA_Abuyin_Zukunft3_permanent; func int DIA_Abuyin_Zukunft3_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_Weissagung3) && (DIA_Abuyin_Zukunft3_permanent == FALSE) && (Kapitel == 3)) { return TRUE; }; }; func void DIA_Abuyin_Zukunft3_Info() { AI_Output(other,self,"DIA_Abuyin_Zukunft3_15_00"); //Předpověz mi budoucnost. if(B_GiveInvItems(other,self,ItMi_Gold,250)) { AI_Output(self,other,"DIA_Abuyin_Zukunft3_13_01"); //Dobrá, synu vědomostí. Teď se dostanu do hypnotického stavu. Jsi připraven? Info_ClearChoices(DIA_Abuyin_Zukunft3); Info_AddChoice(DIA_Abuyin_Zukunft3,"Jsem připraven.",DIA_Abuyin_Zukunft3_Trance); } else { AI_Output(self,other,"DIA_Abuyin_Zukunft3_13_02"); //Ó otče mincí, žádám tě o 250 zlatých za to, že nahlédnu do budoucnosti. }; }; func void DIA_Abuyin_Zukunft3_Trance() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_Zukunft3_Trance_13_00"); //(v transu) ... musíš donutit... co není osud nikoho jiného, pouze tvůj... AI_Output(self,other,"DIA_Abuyin_Zukunft3_Trance_13_01"); //(v transu) ... přes sníh a oheň... přes led a plameny... AI_Output(self,other,"DIA_Abuyin_Zukunft3_Trance_13_02"); //(v transu) ... Muži v podivné zbroji... bažiny... ještěrani... čekají na tebe... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_Zukunft3_Trance_13_03"); //To je vše. Není nic, co bych ještě mohl spatřit. DIA_Abuyin_Zukunft3_permanent = TRUE; Abuyin_Zukunft = 3; Info_ClearChoices(DIA_Abuyin_Zukunft3); B_GivePlayerXP(XP_Ambient * 4); }; instance DIA_Abuyin_Weissagung4(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Weissagung4_Condition; information = DIA_Abuyin_Weissagung4_Info; permanent = FALSE; description = "Můžeš věštit mou budoucnost?"; }; func int DIA_Abuyin_Weissagung4_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du) && (Kapitel == 4)) { return TRUE; }; }; func void DIA_Abuyin_Weissagung4_Info() { B_Abuyin_Weissagung(); AI_Output(self,other,"DIA_Abuyin_Weissagung4_13_00"); //Za pouhých 500 zlatých budu kvůli tobě riskovat pohled skrze čas. }; instance DIA_Abuyin_Zukunft4(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Zukunft4_Condition; information = DIA_Abuyin_Zukunft4_Info; permanent = TRUE; description = "Předpověz mi budoucnost (zaplatit 500 zlatých)."; }; var int DIA_Abuyin_Zukunft4_permanent; func int DIA_Abuyin_Zukunft4_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_Weissagung4) && (DIA_Abuyin_Zukunft4_permanent == FALSE) && (Kapitel == 4)) { return TRUE; }; }; func void DIA_Abuyin_Zukunft4_Info() { AI_Output(other,self,"DIA_Abuyin_Zukunft4_15_00"); //Předpověz mi mou budoucnost. if(B_GiveInvItems(other,self,ItMi_Gold,500)) { AI_Output(self,other,"DIA_Abuyin_Zukunft4_13_01"); //Dobrá, synu vědomostí. Teď se dostanu do hypnotického stavu. Jsi připraven? Info_ClearChoices(DIA_Abuyin_Zukunft4); Info_AddChoice(DIA_Abuyin_Zukunft4,"Jsem připraven.",DIA_Abuyin_Zukunft4_Trance); } else { AI_Output(self,other,"DIA_Abuyin_Zukunft4_13_02"); //Ó otče mincí, žádám tě o 500 zlatých za to, že nahlédnu do budoucnosti. }; }; func void DIA_Abuyin_Zukunft4_Trance() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_Zukunft4_Trance_13_00"); //(v transu) ... místo vědomostí... jiná země... temné místo široko daleko... AI_Output(self,other,"DIA_Abuyin_Zukunft4_Trance_13_01"); //(v transu) ... udatní společníci... musíš zvolit... AI_Output(self,other,"DIA_Abuyin_Zukunft4_Trance_13_02"); //(v transu) ... chrám... leží osamocen v Adanově říši... skrytý v mlze... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_Zukunft4_Trance_13_03"); //To je vše. Není nic, co bych ještě mohl spatřit. DIA_Abuyin_Zukunft4_permanent = TRUE; Abuyin_Zukunft = 4; Info_ClearChoices(DIA_Abuyin_Zukunft4); B_GivePlayerXP(XP_Ambient * 4); }; instance DIA_Abuyin_Weissagung5(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Weissagung5_Condition; information = DIA_Abuyin_Weissagung5_Info; permanent = FALSE; description = "Můžeš věštit mou budoucnost?"; }; func int DIA_Abuyin_Weissagung5_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du) && (Kapitel == 5)) { return TRUE; }; }; func void DIA_Abuyin_Weissagung5_Info() { B_Abuyin_Weissagung(); AI_Output(self,other,"DIA_Abuyin_Weissagung5_13_00"); //Za pouhých 1000 zlatých budu kvůli tobě riskovat pohled skrze čas. }; instance DIA_Abuyin_Zukunft5(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = DIA_Abuyin_Zukunft5_Condition; information = DIA_Abuyin_Zukunft5_Info; permanent = TRUE; description = "Předpověz mi budoucnost (zaplatit 1000 zlatých)."; }; var int DIA_Abuyin_Zukunft5_permanent; func int DIA_Abuyin_Zukunft5_Condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_Weissagung5) && (DIA_Abuyin_Zukunft5_permanent == FALSE) && (Kapitel == 5)) { return TRUE; }; }; func void DIA_Abuyin_Zukunft5_Info() { AI_Output(other,self,"DIA_Abuyin_Zukunft5_15_00"); //Předpověz mi mou budoucnost. if(B_GiveInvItems(other,self,ItMi_Gold,1000)) { AI_Output(self,other,"DIA_Abuyin_Zukunft5_13_01"); //Dobrá, synu vědomostí. Teď se dostanu do hypnotického stavu. Jsi připraven? Info_ClearChoices(DIA_Abuyin_Zukunft5); Info_AddChoice(DIA_Abuyin_Zukunft5,"Jsem připraven.",DIA_Abuyin_Zukunft5_Trance); } else { AI_Output(self,other,"DIA_Abuyin_Zukunft5_13_02"); //Ó, otče mincí, žádám tě o 1000 zlatých za to, že nahlédnu do budoucnosti! }; }; func void DIA_Abuyin_Zukunft5_Trance() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_Zukunft5_Trance_13_00"); //(v transu) ... Temnota pohltí zemi... zlo zvítězí... AI_Output(self,other,"DIA_Abuyin_Zukunft5_Trance_13_01"); //(v transu) ... král prohraje válku se skřety... AI_Output(self,other,"DIA_Abuyin_Zukunft5_Trance_13_02"); //(v transu) ... vrátíš se, ale nenalezneš klidu... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_Zukunft5_Trance_13_03"); //To je vše. Není nic, co bych ještě mohl spatřit. DIA_Abuyin_Zukunft5_permanent = TRUE; Abuyin_Zukunft = 5; Info_ClearChoices(DIA_Abuyin_Zukunft5); B_GivePlayerXP(XP_Ambient * 4); }; instance DIA_ABUYIN_TELLGUARDIANS(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = dia_abuyin_tellguardians_condition; information = dia_abuyin_tellguardians_info; permanent = FALSE; description = "Mám otázku."; }; func int dia_abuyin_tellguardians_condition() { if(Npc_KnowsInfo(other,DIA_Abuyin_du) && (GUARDIAN_WAY == TRUE)) { return TRUE; }; }; func void dia_abuyin_tellguardians_info() { AI_Output(other,self,"DIA_Abuyin_TellGuardians_01_02"); //Něco divného se děje kolem mě, a nemohu pochopit co to je. AI_Output(self,other,"DIA_Abuyin_TellGuardians_01_03"); //Hmmm... (pozorně sleduje) To je zajímavé! I já kolem tebe cítím auru tajemství. AI_Output(other,self,"DIA_Abuyin_TellGuardians_01_05"); //Může mi pomoci tvůj dar vidět budoucnost? AI_Output(self,other,"DIA_Abuyin_TellGuardians_01_06"); //Nó... (nejistý) Můžu to zkusit. AI_Output(self,other,"DIA_Abuyin_TellGuardians_01_07"); //Nicméně jak jsi pochopil - nemůžu úplně odpovědět na tvé otázky. ABUYIN_TELLGUARDIANS = TRUE; }; instance DIA_ABUYIN_FINDMEGUARDIANS(C_Info) { npc = VLK_456_Abuyin; nr = 2; condition = dia_abuyin_findmeguardians_condition; information = dia_abuyin_findmeguardians_info; permanent = TRUE; description = "Řekni mi co víš."; }; func int dia_abuyin_findmeguardians_condition() { if((ABUYIN_TELLGUARDIANS == TRUE) && (TELLABOUTALL == FALSE)) { return TRUE; }; }; func void dia_abuyin_findmeguardians_info() { AI_Output(other,self,"DIA_Abuyin_FindMeGuardians_01_00"); //Řekni mi co víš. AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_01_01"); //Dobrá. Připraven?! Info_ClearChoices(dia_abuyin_findmeguardians); if(MIS_DAGOTTEST == FALSE) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_dagot); } else if((DAGOT_AGREE == TRUE) && (MIS_MORIUSTEST == FALSE)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_morius); } else if((MORIUS_AGREE == TRUE) && (MIS_TEGONTEST == FALSE)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_tegon); } else if((TEGON_AGREE == TRUE) && (MIS_KELIOSTEST == FALSE) && (Kapitel >= 3)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_kelios); } else if((KELIOS_AGREE == TRUE) && (MIS_DEMOSTEST == FALSE) && (Kapitel >= 3)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_demos); } else if((DEMOS_AGREE == TRUE) && (MIS_FARIONTEST == FALSE) && (Kapitel >= 3)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_farion); } else if((FARION_AGREE == TRUE) && (MIS_GADERTEST == FALSE) && (Kapitel >= 4)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_gader); } else if((GADER_AGREE == TRUE) && (MIS_NARUSTEST == FALSE) && (Kapitel >= 4)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_narus); } else if((NARUS_AGREE == TRUE) && (MIS_WAKONTEST == FALSE) && (Kapitel >= 4)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_wakon); } else if((WAKON_AGREE == TRUE) && (MIS_STONNOSTEST == FALSE) && (Kapitel >= 4)) { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_stonnos); } else { Info_AddChoice(dia_abuyin_findmeguardians,"Připraven.",dia_abuyin_findmeguardians_noone); }; }; func void dia_abuyin_findmeguardians_dagot() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Dagot_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Dagot_01_01"); //... Jdi dlouhou cestu a tam se pomodli k Innosovi - Jedině tak najdeš to, co hledáš... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Dagot_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_morius() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Morius_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Morius_01_01"); //... Kamenná pevnost od nikud, ti zjeví klíč k porozumění... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Morius_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_tegon() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Tegon_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Tegon_01_01"); //... Po cestě přes temný les, kudy bys šel s přítelem, po horské cestě kolem podivného tábora. Cíl tvé cesty leží na náhorní plošině vysoko v horách. AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Tegon_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_kelios() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Kelios_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Kelios_01_01"); //... Občas jen z výšky můžeš spatřit město... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Kelios_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_demos() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Demos_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Demos_01_01"); //... Řeka... Vodopád... Most... Vrata... A pak strach a smrt... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Demos_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_farion() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Farion_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Farion_01_01"); //... Hledej zdroje záchrany - a budeš oceněn... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Farion_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_gader() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Gader_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Gader_01_01"); //... Dlouhá cesta k magickému kruhu hluboko v horách... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Gader_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_narus() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Narus_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Narus_01_01"); //... Náhorní plošina... Farma... Voda... Hodně vody, padající dolů... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Narus_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_wakon() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Wakon_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Wakon_01_01"); //... V polích na křižovatce dvou cest, najdeš co hledáš... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Wakon_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_stonnos() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Stonnos_01_00"); //... (snaží se soustředit) ... Poslouchej mě, poutníku! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Stonnos_01_01"); //... Kruh z magických kamenů tě volá, synu hledej a objevuj... AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_Stonnos_01_02"); //To je vše! Doufám, že to bude stačit k tomu, abys pochopil co dělat. TELLABOUTALL = TRUE; Info_ClearChoices(dia_abuyin_findmeguardians); }; func void dia_abuyin_findmeguardians_noone() { AI_PlayAni(self,"T_MAGRUN_2_HEASHOOT"); Wld_PlayEffect("SPELLFX_TELEPORT",self,self,0,0,0,FALSE); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_NoOne_01_00"); //... (snaží se soustředit) ... Ne... AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_NoOne_01_01"); //... To je nemožné! AI_PlayAni(self,"T_HEASHOOT_2_STAND"); AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_NoOne_01_02"); //Odpusť... (lítostivě) Ale mé vize jsou plné mlhy! AI_Output(self,other,"DIA_Abuyin_FindMeGuardians_NoOne_01_03"); //Nemůžu ti sdělit nic nového. AI_Output(other,self,"DIA_Abuyin_FindMeGuardians_NoOne_01_04"); //Chápu. Info_ClearChoices(dia_abuyin_findmeguardians); };
D
/** * TypeInfo support code. * * Copyright: Copyright Digital Mars 2004 - 2009. * License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Walter Bright */ /* Copyright Digital Mars 2004 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module rt.typeinfo.ti_Areal; private import rt.typeinfo.ti_real; private import rt.util.hash; // real[] class TypeInfo_Ae : TypeInfo_Array { override bool opEquals(Object o) { return TypeInfo.opEquals(o); } override string toString() const { return "real[]"; } override size_t getHash(in void* p) @trusted const { real[] s = *cast(real[]*)p; return rt.util.hash.hashOf(s.ptr, s.length * real.sizeof); } override bool equals(in void* p1, in void* p2) const { real[] s1 = *cast(real[]*)p1; real[] s2 = *cast(real[]*)p2; size_t len = s1.length; if (len != s2.length) return false; for (size_t u = 0; u < len; u++) { if (!TypeInfo_e._equals(s1[u], s2[u])) return false; } return true; } override int compare(in void* p1, in void* p2) const { real[] s1 = *cast(real[]*)p1; real[] s2 = *cast(real[]*)p2; size_t len = s1.length; if (s2.length < len) len = s2.length; for (size_t u = 0; u < len; u++) { int c = TypeInfo_e._compare(s1[u], s2[u]); if (c) return c; } if (s1.length < s2.length) return -1; else if (s1.length > s2.length) return 1; return 0; } override @property inout(TypeInfo) next() inout { return cast(inout)typeid(real); } } // ireal[] class TypeInfo_Aj : TypeInfo_Ae { override string toString() const { return "ireal[]"; } override @property inout(TypeInfo) next() inout { return cast(inout)typeid(ireal); } }
D
INSTANCE Info_Mod_Ruprecht_Hi (C_INFO) { npc = Mod_7418_OUT_Ruprecht_REL; nr = 1; condition = Info_Mod_Ruprecht_Hi_Condition; information = Info_Mod_Ruprecht_Hi_Info; permanent = 0; important = 0; description = "Wer bist du?"; }; FUNC INT Info_Mod_Ruprecht_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Ruprecht_Hi_Info() { B_Say (hero, self, "$WHOAREYOU"); AI_Output(self, hero, "Info_Mod_Ruprecht_Hi_13_00"); //Mein Name ist Ruprecht. Ich ziehe von meinem Ersparten durch die Länder und lerne fremde Kulturen kennen. Die Wirtshauskultur, vor allem. }; INSTANCE Info_Mod_Ruprecht_FrueherGemacht (C_INFO) { npc = Mod_7418_OUT_Ruprecht_REL; nr = 1; condition = Info_Mod_Ruprecht_FrueherGemacht_Condition; information = Info_Mod_Ruprecht_FrueherGemacht_Info; permanent = 0; important = 0; description = "Was hast du früher gemacht?"; }; FUNC INT Info_Mod_Ruprecht_FrueherGemacht_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Ruprecht_Hi)) { return 1; }; }; FUNC VOID Info_Mod_Ruprecht_FrueherGemacht_Info() { AI_Output(hero, self, "Info_Mod_Ruprecht_FrueherGemacht_15_00"); //Was hast du früher gemacht? AI_Output(self, hero, "Info_Mod_Ruprecht_FrueherGemacht_13_01"); //(wortkarg) Ich war lange im Krieg. }; INSTANCE Info_Mod_Ruprecht_Truhe (C_INFO) { npc = Mod_7418_OUT_Ruprecht_REL; nr = 1; condition = Info_Mod_Ruprecht_Truhe_Condition; information = Info_Mod_Ruprecht_Truhe_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Ruprecht_Truhe_Condition() { if (Mod_LeonhardRuprecht == 2) { return 1; }; }; FUNC VOID Info_Mod_Ruprecht_Truhe_Info() { AI_Output(self, hero, "Info_Mod_Ruprecht_Truhe_13_00"); //Warte mal einen Augenblick. Was hast du gerade da oben gesucht? AI_Output(hero, self, "Info_Mod_Ruprecht_Truhe_15_01"); //Nichts Besonderes. AI_Output(self, hero, "Info_Mod_Ruprecht_Truhe_13_02"); //Dann zeig mal her. if (Npc_HasItems(hero, ItRi_Ruprecht) == 1) { AI_Output(self, hero, "Info_Mod_Ruprecht_Truhe_13_03"); //So, du wolltest also meinen Ring stehlen. B_GiveInvItems (hero, self, ItRi_Ruprecht, 1); if (Kapitel < 3) { AI_Output(self, hero, "Info_Mod_Ruprecht_Truhe_13_04"); //Mal sehen, was Anselm dazu sagen wird, wenn ich es ihm erzähle. }; Mod_LeonhardRuprecht = 3; } else { AI_Output(self, hero, "Info_Mod_Ruprecht_Truhe_13_05"); //Tut mir Leid, dass ich so unfreundlich war, aber du wärst nicht der Erste, der hinter meinen Besitztümern her ist. }; }; INSTANCE Info_Mod_Ruprecht_Freudenspender (C_INFO) { npc = Mod_7418_OUT_Ruprecht_REL; nr = 1; condition = Info_Mod_Ruprecht_Freudenspender_Condition; information = Info_Mod_Ruprecht_Freudenspender_Info; permanent = 0; important = 0; description = "Ich hab' hier Freudenspender ..."; }; FUNC INT Info_Mod_Ruprecht_Freudenspender_Condition() { if (Npc_HasItems(hero, ItMi_Freudenspender) >= 1) && (Mod_Freudenspender < 5) && (Npc_KnowsInfo(hero, Info_Mod_Sabine_Hi)) { return TRUE; }; }; FUNC VOID Info_Mod_Ruprecht_Freudenspender_Info() { AI_Output(hero, self, "Info_Mod_Ruprecht_Freudenspender_15_00"); //Ich hab' hier Freudenspender ... AI_Output(self, hero, "Info_Mod_Ruprecht_Freudenspender_13_01"); //Danke, aber ich möchte nichts. }; INSTANCE Info_Mod_Ruprecht_Pickpocket (C_INFO) { npc = Mod_7418_OUT_Ruprecht_REL; nr = 1; condition = Info_Mod_Ruprecht_Pickpocket_Condition; information = Info_Mod_Ruprecht_Pickpocket_Info; permanent = 1; important = 0; description = Pickpocket_120; }; FUNC INT Info_Mod_Ruprecht_Pickpocket_Condition() { C_Beklauen (103, ItMi_Gold, 500); }; FUNC VOID Info_Mod_Ruprecht_Pickpocket_Info() { Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); Info_AddChoice (Info_Mod_Ruprecht_Pickpocket, DIALOG_BACK, Info_Mod_Ruprecht_Pickpocket_BACK); Info_AddChoice (Info_Mod_Ruprecht_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Ruprecht_Pickpocket_DoIt); }; FUNC VOID Info_Mod_Ruprecht_Pickpocket_BACK() { Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); }; FUNC VOID Info_Mod_Ruprecht_Pickpocket_DoIt() { if (B_Beklauen() == TRUE) { Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); } else { Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); Info_AddChoice (Info_Mod_Ruprecht_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Ruprecht_Pickpocket_Beschimpfen); Info_AddChoice (Info_Mod_Ruprecht_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Ruprecht_Pickpocket_Bestechung); Info_AddChoice (Info_Mod_Ruprecht_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Ruprecht_Pickpocket_Herausreden); }; }; FUNC VOID Info_Mod_Ruprecht_Pickpocket_Beschimpfen() { B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN"); B_Say (self, hero, "$DIRTYTHIEF"); Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); AI_StopProcessInfos (self); B_Attack (self, hero, AR_Theft, 1); }; FUNC VOID Info_Mod_Ruprecht_Pickpocket_Bestechung() { B_Say (hero, self, "$PICKPOCKET_BESTECHUNG"); var int rnd; rnd = r_max(99); if (rnd < 25) || ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50)) || ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100)) || ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200)) { B_Say (self, hero, "$DIRTYTHIEF"); Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); AI_StopProcessInfos (self); B_Attack (self, hero, AR_Theft, 1); } else { if (rnd >= 75) { B_GiveInvItems (hero, self, ItMi_Gold, 200); } else if (rnd >= 50) { B_GiveInvItems (hero, self, ItMi_Gold, 100); } else if (rnd >= 25) { B_GiveInvItems (hero, self, ItMi_Gold, 50); }; B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01"); Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); AI_StopProcessInfos (self); }; }; FUNC VOID Info_Mod_Ruprecht_Pickpocket_Herausreden() { B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN"); if (r_max(99) < Mod_Verhandlungsgeschick) { B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01"); Info_ClearChoices (Info_Mod_Ruprecht_Pickpocket); } else { B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02"); }; }; INSTANCE Info_Mod_Ruprecht_EXIT (C_INFO) { npc = Mod_7418_OUT_Ruprecht_REL; nr = 1; condition = Info_Mod_Ruprecht_EXIT_Condition; information = Info_Mod_Ruprecht_EXIT_Info; permanent = 1; important = 0; description = DIALOG_ENDE; }; FUNC INT Info_Mod_Ruprecht_EXIT_Condition() { return 1; }; FUNC VOID Info_Mod_Ruprecht_EXIT_Info() { AI_StopProcessInfos (self); };
D
/Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BubbleChartData.o : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineScatterCandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/CombinedHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLimitLine.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartAxisRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartFillFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ScatterChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ScatterChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CombinedChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartXAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataBaseFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/LineChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/PieChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartYAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/RadarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimationEasing.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/CandleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/HorizontalBarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/RadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartLegendRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartColorTemplates.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CandleStickChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartSelectionDetail.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineRadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/LineChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ScatterChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CandleStickChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataApproximatorFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarLineChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartDataRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartViewPortHandler.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineScatterCandleRadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartMarker.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/BarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieRadarChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimator.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BubbleChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BubbleChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartDefaultXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CombinedChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartComponentBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CombinedChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartUtils.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlight.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLegend.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartRange.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/HorizontalBarChartView.swift /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Supporting\ Files/Charts.h /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BubbleChartData~partial.swiftmodule : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineScatterCandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/CombinedHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLimitLine.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartAxisRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartFillFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ScatterChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ScatterChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CombinedChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartXAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataBaseFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/LineChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/PieChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartYAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/RadarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimationEasing.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/CandleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/HorizontalBarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/RadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartLegendRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartColorTemplates.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CandleStickChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartSelectionDetail.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineRadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/LineChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ScatterChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CandleStickChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataApproximatorFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarLineChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartDataRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartViewPortHandler.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineScatterCandleRadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartMarker.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/BarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieRadarChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimator.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BubbleChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BubbleChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartDefaultXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CombinedChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartComponentBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CombinedChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartUtils.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlight.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLegend.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartRange.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/HorizontalBarChartView.swift /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Supporting\ Files/Charts.h /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BubbleChartData~partial.swiftdoc : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineScatterCandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/CombinedHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLimitLine.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartAxisRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartFillFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ScatterChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ScatterChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CombinedChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartXAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataBaseFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/LineChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/PieChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartYAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/RadarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimationEasing.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/CandleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/HorizontalBarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/RadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartLegendRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartColorTemplates.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CandleStickChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartSelectionDetail.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineRadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/LineChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ScatterChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CandleStickChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataApproximatorFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarLineChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartDataRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartViewPortHandler.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineScatterCandleRadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartMarker.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/BarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieRadarChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimator.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BubbleChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BubbleChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartDefaultXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CombinedChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartComponentBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CombinedChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartUtils.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlight.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLegend.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartRange.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/HorizontalBarChartView.swift /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Supporting\ Files/Charts.h /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
D
/// module std.experimental.allocator.building_blocks.null_allocator; /** $(D NullAllocator) is an emphatically empty implementation of the allocator interface. Although it has no direct use, it is useful as a "terminator" in composite allocators. */ struct NullAllocator { import std.typecons : Ternary; /** $(D NullAllocator) advertises a relatively large _alignment equal to 64 KB. This is because $(D NullAllocator) never actually needs to honor this alignment and because composite allocators using $(D NullAllocator) shouldn't be unnecessarily constrained. */ enum uint alignment = 64 * 1024; // /// Returns $(D n). //size_t goodAllocSize(size_t n) shared const //{ return .goodAllocSize(this, n); } /// Always returns $(D null). void[] allocate(size_t) shared { return null; } /// Always returns $(D null). void[] alignedAllocate(size_t, uint) shared { return null; } /// Always returns $(D null). void[] allocateAll() shared { return null; } /** These methods return $(D false). Precondition: $(D b is null). This is because there is no other possible legitimate input. */ bool expand(ref void[] b, size_t s) shared { assert(b is null); return s == 0; } /// Ditto bool reallocate(ref void[] b, size_t) shared { assert(b is null); return false; } /// Ditto bool alignedReallocate(ref void[] b, size_t, uint) shared { assert(b is null); return false; } /// Returns $(D Ternary.no). pure nothrow @safe @nogc Ternary owns(const void[]) shared const { return Ternary.no; } /** Returns $(D Ternary.no). */ pure nothrow @safe @nogc Ternary resolveInternalPointer(const void*, ref void[]) shared const { return Ternary.no; } /** No-op. Precondition: $(D b is null) */ bool deallocate(void[] b) shared { assert(b is null); return true; } /** No-op. */ bool deallocateAll() shared { return true; } /** Returns $(D Ternary.yes). */ Ternary empty() shared const { return Ternary.yes; } /** Returns the $(D shared) global instance of the $(D NullAllocator). */ static shared NullAllocator instance; } @system unittest { assert(NullAllocator.instance.alignedAllocate(100, 0) is null); assert(NullAllocator.instance.allocateAll() is null); auto b = NullAllocator.instance.allocate(100); assert(b is null); assert(NullAllocator.instance.expand(b, 0)); assert(!NullAllocator.instance.expand(b, 42)); assert(!NullAllocator.instance.reallocate(b, 42)); assert(!NullAllocator.instance.alignedReallocate(b, 42, 0)); NullAllocator.instance.deallocate(b); NullAllocator.instance.deallocateAll(); import std.typecons : Ternary; assert(NullAllocator.instance.empty() == Ternary.yes); assert((() nothrow @safe @nogc => NullAllocator.instance.owns(null))() == Ternary.no); void[] p; assert((() nothrow @safe @nogc => NullAllocator.instance.resolveInternalPointer(null, p))() == Ternary.no); }
D
/Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/Philosophers.build/main.swift.o : /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/Sources/Philosophers/main.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/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PhilosophersLib.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/SwiftProductGenerator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/Philosophers.build/main~partial.swiftmodule : /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/Sources/Philosophers/main.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/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PhilosophersLib.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/SwiftProductGenerator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/Philosophers.build/main~partial.swiftdoc : /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/Sources/Philosophers/main.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/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PhilosophersLib.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/SwiftProductGenerator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/ella/Desktop/UNI2/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/nabil/Downloads/AlbumsMnager/Build/Intermediates/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationPacman.o : /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Presenter/NVActivityIndicatorViewable.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorShape.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorAnimationDelegate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBlank.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationPacman.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Presenter/NVActivityIndicatorPresenter.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScaleParty.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/nabil/Downloads/AlbumsMnager/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/nabil/Downloads/AlbumsMnager/Build/Intermediates/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/nabil/Downloads/AlbumsMnager/Build/Intermediates/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationPacman~partial.swiftmodule : /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Presenter/NVActivityIndicatorViewable.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorShape.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorAnimationDelegate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBlank.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationPacman.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Presenter/NVActivityIndicatorPresenter.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScaleParty.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/nabil/Downloads/AlbumsMnager/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/nabil/Downloads/AlbumsMnager/Build/Intermediates/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/nabil/Downloads/AlbumsMnager/Build/Intermediates/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationPacman~partial.swiftdoc : /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Presenter/NVActivityIndicatorViewable.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorShape.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorAnimationDelegate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBlank.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationPacman.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Presenter/NVActivityIndicatorPresenter.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView.swift /Users/nabil/Downloads/AlbumsMnager/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationLineScaleParty.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/nabil/Downloads/AlbumsMnager/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/nabil/Downloads/AlbumsMnager/Build/Intermediates/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
#!/usr/bin/env dub /+ dub.json: { "name": "flex_plot_test_double_dist", "dependencies": {"flex_common_pack": {"path": "./flex_common_pack"}}, "versions": ["Flex_logging", "Flex_single"] } +/ /** Default flex testing distribution. */ void test(S, F)(in F test) { import std.math : pow; import std.conv : to; auto f0 = (S x) => -pow(x, 4) + 5 * x * x - 4; auto f1 = (S x) => 10 * x - 4 * pow(x, 3); auto f2 = (S x) => 10 - 12 * x * x; enum name = "dist_double_dist"; foreach (c; [0.1, 0.5, 1]) test.plot(name ~ "_a_" ~ c.to!string, f0, f1, f2, c, [-3.0, -1.5, 0.0, 1.5, 3]); foreach (c; [-0.9, -0.5, -0.2, 0]) { test.plot(name ~ "_b_" ~ c.to!string, f0, f1, f2, c, [-S.infinity, -2.1, -1.05, 0.1, 1.2, 2, S.infinity]); test.plot(name ~ "_c_" ~ c.to!string, f0, f1, f2, c, [-S.infinity, -1, 0, 1, S.infinity]); test.plot(name ~ "_d_" ~ c.to!string, f0, f1, f2, c, [-2, 0, 1.5], -4, 6); } foreach (c; [-2, -1.5, -1]) test.plot(name ~ "_e_" ~ c.to!string, f0, f1, f2, c, [-3.0, -2.1, -1.05, 0.1, 1.2, 3]); } version(Flex_single) void main() { import flex_common; alias T = double; auto cf = CFlex!T(5_000, "plots", 1.1); test!T(cf); }
D
// URL: https://atcoder.jp/contests/typical90/tasks/typical90_z import std.algorithm, std.array, std.bitmanip, std.container, std.conv, std.format, std.functional, std.math, std.range, std.traits, std.typecons, std.stdio, std.string; version(unittest) {} else void main() { int N; io.getV(N); auto g = Graph(N); foreach (_; 0..N-1) { int Ai, Bi; io.getV(Ai, Bi); g.addEdgeB(Ai-1, Bi-1); } auto t = g.tree(0); auto s = 0; foreach (i; 0..N) if (t.depth[i]%2 == 0) ++s; auto r = new int[](N/2), c = 0; foreach (i; 0..N) { if (t.depth[i]%2 == (s >= N/2 ? 0 : 1)) { r[c++] = i+1; if (c >= N/2) break; } } io.put(r); } import lib.graph.graph; import lib.graph.tree; auto io = IO!()(); import lib.io;
D
/** DGui project file. Copyright: Trogu Antonio Davide 2011-2013 License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Trogu Antonio Davide */ module dgui.core.controls.scrollablecontrol; public import dgui.core.controls.reflectedcontrol; public import dgui.core.events.mouseeventargs; public import dgui.core.events.scrolleventargs; abstract class ScrollableControl: ReflectedControl { public Event!(Control, ScrollEventArgs) scroll; public Event!(Control, MouseWheelEventArgs) mouseWheel; protected final void scrollWindow(ScrollWindowDirection swd, int amount) { this.scrollWindow(swd, amount, nullRect); } protected final void scrollWindow(ScrollWindowDirection swd, int amount, Rect rectScroll) { if(this.created) { switch(swd) { case ScrollWindowDirection.left: ScrollWindowEx(this._handle, amount, 0, null, rectScroll == nullRect ? null : &rectScroll.rect, null, null, SW_INVALIDATE); break; case ScrollWindowDirection.up: ScrollWindowEx(this._handle, 0, amount, null, rectScroll == nullRect ? null : &rectScroll.rect, null, null, SW_INVALIDATE); break; case ScrollWindowDirection.right: ScrollWindowEx(this._handle, -amount, 0, null, rectScroll == nullRect ? null : &rectScroll.rect, null, null, SW_INVALIDATE); break; case ScrollWindowDirection.down: ScrollWindowEx(this._handle, 0, -amount, null, rectScroll == nullRect ? null : &rectScroll.rect, null, null, SW_INVALIDATE); break; default: break; } } } protected void onMouseWheel(MouseWheelEventArgs e) { this.mouseWheel(this, e); } protected void onScroll(ScrollEventArgs e) { this.scroll(this, e); } protected override void wndProc(ref Message m) { switch(m.msg) { case WM_MOUSEWHEEL: { short delta = GetWheelDelta(m.wParam); scope MouseWheelEventArgs e = new MouseWheelEventArgs(Point(LOWORD(m.lParam), HIWORD(m.lParam)), cast(MouseKeys)m.wParam, delta > 0 ? MouseWheel.up : MouseWheel.down); this.onMouseWheel(e); this.originalWndProc(m); } break; case WM_VSCROLL, WM_HSCROLL: { ScrollDirection sd = m.msg == WM_VSCROLL ? ScrollDirection.vertical : ScrollDirection.horizontal; ScrollMode sm = cast(ScrollMode)m.wParam; scope ScrollEventArgs e = new ScrollEventArgs(sd, sm); this.onScroll(e); this.originalWndProc(m); } break; default: break; } super.wndProc(m); } }
D
module UnrealScript.UTGame.UTKillingSpreeMessage; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.UTGame.UTLocalMessage; import UnrealScript.Engine.PlayerReplicationInfo; import UnrealScript.Core.UObject; import UnrealScript.Engine.PlayerController; import UnrealScript.Engine.SoundNodeWave; extern(C++) interface UTKillingSpreeMessage : UTLocalMessage { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class UTGame.UTKillingSpreeMessage")); } private static __gshared UTKillingSpreeMessage mDefaultProperties; @property final static UTKillingSpreeMessage DefaultProperties() { mixin(MGDPC("UTKillingSpreeMessage", "UTKillingSpreeMessage UTGame.Default__UTKillingSpreeMessage")); } static struct Functions { private static __gshared { ScriptFunction mGetFontSize; ScriptFunction mGetString; ScriptFunction mClientReceive; ScriptFunction mAnnouncementSound; } public @property static final { ScriptFunction GetFontSize() { mixin(MGF("mGetFontSize", "Function UTGame.UTKillingSpreeMessage.GetFontSize")); } ScriptFunction GetString() { mixin(MGF("mGetString", "Function UTGame.UTKillingSpreeMessage.GetString")); } ScriptFunction ClientReceive() { mixin(MGF("mClientReceive", "Function UTGame.UTKillingSpreeMessage.ClientReceive")); } ScriptFunction AnnouncementSound() { mixin(MGF("mAnnouncementSound", "Function UTGame.UTKillingSpreeMessage.AnnouncementSound")); } } } @property final auto ref { ScriptString EndSpreeNoteTrailer() { mixin(MGPC("ScriptString", 316)); } SoundNodeWave SpreeSound() { mixin(MGPC("SoundNodeWave", 292)); } ScriptString SelfSpreeNote() { mixin(MGPC("ScriptString", 220)); } ScriptString SpreeNote() { mixin(MGPC("ScriptString", 148)); } ScriptString MultiKillString() { mixin(MGPC("ScriptString", 136)); } ScriptString EndFemaleSpree() { mixin(MGPC("ScriptString", 124)); } ScriptString EndSelfSpree() { mixin(MGPC("ScriptString", 112)); } ScriptString EndSpreeNote() { mixin(MGPC("ScriptString", 100)); } } final: static int GetFontSize(int Switch, PlayerReplicationInfo RelatedPRI1, PlayerReplicationInfo RelatedPRI2, PlayerReplicationInfo pLocalPlayer) { ubyte params[20]; params[] = 0; *cast(int*)params.ptr = Switch; *cast(PlayerReplicationInfo*)&params[4] = RelatedPRI1; *cast(PlayerReplicationInfo*)&params[8] = RelatedPRI2; *cast(PlayerReplicationInfo*)&params[12] = pLocalPlayer; StaticClass.ProcessEvent(Functions.GetFontSize, params.ptr, cast(void*)0); return *cast(int*)&params[16]; } static ScriptString GetString(int* Switch = null, bool* bPRI1HUD = null, PlayerReplicationInfo* RelatedPRI_1 = null, PlayerReplicationInfo* RelatedPRI_2 = null, UObject* OptionalObject = null) { ubyte params[32]; params[] = 0; if (Switch !is null) *cast(int*)params.ptr = *Switch; if (bPRI1HUD !is null) *cast(bool*)&params[4] = *bPRI1HUD; if (RelatedPRI_1 !is null) *cast(PlayerReplicationInfo*)&params[8] = *RelatedPRI_1; if (RelatedPRI_2 !is null) *cast(PlayerReplicationInfo*)&params[12] = *RelatedPRI_2; if (OptionalObject !is null) *cast(UObject*)&params[16] = *OptionalObject; StaticClass.ProcessEvent(Functions.GetString, params.ptr, cast(void*)0); return *cast(ScriptString*)&params[20]; } static void ClientReceive(PlayerController P, int* Switch = null, PlayerReplicationInfo* RelatedPRI_1 = null, PlayerReplicationInfo* RelatedPRI_2 = null, UObject* OptionalObject = null) { ubyte params[20]; params[] = 0; *cast(PlayerController*)params.ptr = P; if (Switch !is null) *cast(int*)&params[4] = *Switch; if (RelatedPRI_1 !is null) *cast(PlayerReplicationInfo*)&params[8] = *RelatedPRI_1; if (RelatedPRI_2 !is null) *cast(PlayerReplicationInfo*)&params[12] = *RelatedPRI_2; if (OptionalObject !is null) *cast(UObject*)&params[16] = *OptionalObject; StaticClass.ProcessEvent(Functions.ClientReceive, params.ptr, cast(void*)0); } static SoundNodeWave AnnouncementSound(int MessageIndex, UObject OptionalObject, PlayerController PC) { ubyte params[16]; params[] = 0; *cast(int*)params.ptr = MessageIndex; *cast(UObject*)&params[4] = OptionalObject; *cast(PlayerController*)&params[8] = PC; StaticClass.ProcessEvent(Functions.AnnouncementSound, params.ptr, cast(void*)0); return *cast(SoundNodeWave*)&params[12]; } }
D
module engine.spawn.timedarea; import dsfml.graphics; import star.entity; import engine.spawn.area; import engine.spawn.spawner; class TimedAreaSpawner : SpawnArea { static immutable(float) minInterval = 0.05; protected float startInterval; protected float interval; protected EntityDetails details; private float timer = 0; this(EntityManager entities, FloatRect spawnArea, float pInterval, EntityDetails pDetails) { super(entities, spawnArea); startInterval = pInterval; interval = pInterval; details = pDetails; } final float getInterval() { return interval; } final void setInterval(float pInterval) { if (pInterval < minInterval) { interval = minInterval; } else { interval = pInterval; } } final void resetInterval() { interval = startInterval; } final void update(float delta) { timer += delta; if (timer >= interval) { spawn(details); timer = 0; } } }
D
// Define module module kimp.cryptor; // Import exception and coversation modules import std.exception, std.conv; /** * Excepion class for Cryptor * See_Also: Cryptor, Exception */ class CryptException : Exception { /** * Default constructor for Cryptor * Params: * msg = Excpetion's message (With error) * file = Exception file * line = Exception line */ this(string msg, string file = __FILE__, size_t line = __LINE__) @safe { super(msg, file, line); // Just call parent's constructor } } /** * Class for crypting and decrypting passwords */ class Cryptor { /** * Crypt message by XOR letters from message and letters from key * Params: * msg = Message for crypting * key = Key for crypting * Throws: * CryptException if key is wrong */ public static string xorCrypt(immutable string msg, immutable string key) @safe { enforce!CryptException(key.length != 0, "Key is wrong (length mustn\'t be 0)"); string result = "";// result.length = msg.length; for (ulong i = 0; i < msg.length; i++) { result ~= to!ubyte(msg[i]) ^ to!ubyte(key[i % key.length]); } return result; } /// Unit tests for xorCrypt @safe unittest { assert(xorCrypt("abcd", "abcd") == "\0\0\0\0"); assert(xorCrypt("Hello", "w") == [0x3f, 0x12, 0x1b, 0x1b, 0x18]); assert(xorCrypt(xorCrypt("Message", "key"), "key") == to!string("Message")); } /** * Decrypt message by XOR letters from message and letters from key * Params: * msg = Message for decrypting * key = Key for decrypting * Throws: * CryptException if key is wrong */ alias xorDecrypt=xorCrypt; }
D
module goldengine.stack; ///Simple stack class using a dynamic array public class Stack(T) { private T[] mItems; T pop() { T ret = null; if (mItems.length > 0) { ret = top(); mItems.length = mItems.length -1; } return ret; } T top() { if (mItems.length > 0) { return mItems[$-1]; } else { return null; } } void push(T item) { mItems ~= item; } size_t count() { return mItems.length; } void clear() { mItems = null; } T opIndex(size_t idx) { return mItems[idx]; } }
D
// ****************** // SPL_LightningFlash // ****************** const int SPL_Cost_LightningFlash = 15; const int SPL_Damage_LightningFlash = 150; const int SPL_ZAPPED_DAMAGE_PER_SEC = 2; const int SPL_TIME_SHORTZAPPED = 2; INSTANCE Spell_LightningFlash (C_Spell_Proto) { time_per_mana = 0; damage_per_level = SPL_Damage_LightningFlash; damageType = DAM_MAGIC; }; func int Spell_Logic_LightningFlash (var int manaInvested) //Parameter wird hier nicht gebraucht { if (Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll)) { return SPL_SENDCAST; } else if (self.attribute[ATR_MANA] >= SPL_Cost_LightningFlash) { return SPL_SENDCAST; } else //nicht genug Mana { return SPL_SENDSTOP; }; }; func void Spell_Cast_LightningFlash() { 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_LightningFlash; }; self.aivar[AIV_SelectSpell] += 1; };
D
/Users/julia/ruhackathon/target/debug/deps/cfg_if-0116836400fb5b1a.rmeta: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs /Users/julia/ruhackathon/target/debug/deps/libcfg_if-0116836400fb5b1a.rlib: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs /Users/julia/ruhackathon/target/debug/deps/cfg_if-0116836400fb5b1a.d: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs:
D
/** XXX Authors: Daniel Keep Copyright: 2006, Daniel Keep License: BSD v2 (http://opensource.org/licenses/bsd-license.php). **/ /** Copyright © 2006 Daniel Keep All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of this software, 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 claro.graphics.cairooo.gradient; private { import claro.graphics.cairo.cairo; import claro.graphics.cairooo.enums; import claro.graphics.cairooo.exceptions; import claro.graphics.cairooo.pattern; } abstract class Gradient : Pattern { protected: this(cairo_pattern_t* handle, bool takeref) { super(handle, takeref); } public: // // cairo api members // void addColorStopRGB(double offset, double red, double green, double blue) { scope(success) checkStatus(); cairo_pattern_add_color_stop_rgb(this.handle, offset, red, green, blue); } void addColorStopRGBA(double offset, double red, double green, double blue, double alpha) { scope(success) checkStatus(); cairo_pattern_add_color_stop_rgba(this.handle, offset, red, green, blue, alpha); } }
D
// @@@DEPRECATED_2017-06@@@ /** * $(RED Deprecated. Use $(D core.stdc.stdlib) or the appropriate * core.sys.posix.* modules instead. This module will be removed in June * 2017.) * * C's &lt;process.h&gt; * Authors: Walter Bright, Digital Mars, www.digitalmars.com * License: Public Domain */ deprecated("Import core.stdc.stdlib or the appropriate core.sys.posix.* modules instead") module std.c.process; import core.stdc.stddef; public import core.stdc.stdlib : exit, abort, system; extern (C): //These declarations are not defined or used elsewhere. void _c_exit(); void _cexit(); void _dodtors(); int getpid(); enum { WAIT_CHILD, WAIT_GRANDCHILD } int cwait(int *,int,int); int wait(int *); int execlpe(in char *, in char *,...); //These constants are undefined elsewhere and only used in the deprecated part //of std.process. enum { _P_WAIT, _P_NOWAIT, _P_OVERLAY } //These declarations are defined for Posix in core.sys.posix.unistd but unused //from here. void _exit(int); int execl(in char *, in char *,...); int execle(in char *, in char *,...); int execlp(in char *, in char *,...); //All of these except for execvpe are defined for Posix in core.sys.posix.unistd //and only used in the old part of std.process. int execv(in char *, in char **); int execve(in char *, in char **, in char **); int execvp(in char *, in char **); int execvpe(in char *, in char **, in char **); //All these Windows declarations are not publicly defined elsewhere and only //spawnvp is used once in a deprecated function in std.process. version (Windows) { uint _beginthread(void function(void *),uint,void *); extern (Windows) alias stdfp = uint function (void *); uint _beginthreadex(void* security, uint stack_size, stdfp start_addr, void* arglist, uint initflag, uint* thrdaddr); void _endthread(); void _endthreadex(uint); int spawnl(int, in char *, in char *,...); int spawnle(int, in char *, in char *,...); int spawnlp(int, in char *, in char *,...); int spawnlpe(int, in char *, in char *,...); int spawnv(int, in char *, in char **); int spawnve(int, in char *, in char **, in char **); int spawnvp(int, in char *, in char **); int spawnvpe(int, in char *, in char **, in char **); int _wsystem(in wchar_t *); int _wspawnl(int, in wchar_t *, in wchar_t *, ...); int _wspawnle(int, in wchar_t *, in wchar_t *, ...); int _wspawnlp(int, in wchar_t *, in wchar_t *, ...); int _wspawnlpe(int, in wchar_t *, in wchar_t *, ...); int _wspawnv(int, in wchar_t *, in wchar_t **); int _wspawnve(int, in wchar_t *, in wchar_t **, in wchar_t **); int _wspawnvp(int, in wchar_t *, in wchar_t **); int _wspawnvpe(int, in wchar_t *, in wchar_t **, in wchar_t **); int _wexecl(in wchar_t *, in wchar_t *, ...); int _wexecle(in wchar_t *, in wchar_t *, ...); int _wexeclp(in wchar_t *, in wchar_t *, ...); int _wexeclpe(in wchar_t *, in wchar_t *, ...); int _wexecv(in wchar_t *, in wchar_t **); int _wexecve(in wchar_t *, in wchar_t **, in wchar_t **); int _wexecvp(in wchar_t *, in wchar_t **); int _wexecvpe(in wchar_t *, in wchar_t **, in wchar_t **); }
D
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Console.build/Bar/Progress/Console+ProgressBar.swift.o : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/String+ANSI.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Utilities/Bool+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/Terminal+Command.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Command.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Runnable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Style/Console+ConsoleStyle.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Style/ConsoleStyle.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Value.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Ask.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/ConsoleColor+Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Ephemeral.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/ConsoleProtocol.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/FileHandle+Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/Pipe+Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Utilities/String+Trim.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Confirm.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Option.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Run.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Group.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Bar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Loading/Console+LoadingBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Loading/LoadingBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Progress/Console+ProgressBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Progress/ProgressBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Clear/ConsoleClear.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Center.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Color/ConsoleColor.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/ConsoleError.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Options.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Argument.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Command+Print.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Print.swift /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/libc.swiftmodule /usr/lib/swift/linux/x86_64/Glibc.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Core.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Debugging.swiftmodule /usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /usr/lib/swift/linux/x86_64/Foundation.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Bits.swiftmodule /usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /usr/lib/swift/linux/x86_64/glibc.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CHTTP.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CSQLite.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Console.build/Console+ProgressBar~partial.swiftmodule : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/String+ANSI.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Utilities/Bool+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/Terminal+Command.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Command.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Runnable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Style/Console+ConsoleStyle.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Style/ConsoleStyle.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Value.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Ask.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/ConsoleColor+Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Ephemeral.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/ConsoleProtocol.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/FileHandle+Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/Pipe+Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Utilities/String+Trim.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Confirm.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Option.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Run.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Group.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Bar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Loading/Console+LoadingBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Loading/LoadingBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Progress/Console+ProgressBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Progress/ProgressBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Clear/ConsoleClear.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Center.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Color/ConsoleColor.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/ConsoleError.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Options.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Argument.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Command+Print.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Print.swift /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/libc.swiftmodule /usr/lib/swift/linux/x86_64/Glibc.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Core.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Debugging.swiftmodule /usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /usr/lib/swift/linux/x86_64/Foundation.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Bits.swiftmodule /usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /usr/lib/swift/linux/x86_64/glibc.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CHTTP.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CSQLite.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Console.build/Console+ProgressBar~partial.swiftdoc : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/String+ANSI.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Utilities/Bool+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/Terminal+Command.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Command.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Runnable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Style/Console+ConsoleStyle.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Style/ConsoleStyle.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Value.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Ask.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/ConsoleColor+Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Terminal/Terminal.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Ephemeral.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/ConsoleProtocol.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/FileHandle+Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/Pipe+Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Stream/Stream.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Utilities/String+Trim.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Confirm.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Option.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Run.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Group.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Bar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Loading/Console+LoadingBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Loading/LoadingBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Progress/Console+ProgressBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Bar/Progress/ProgressBar.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Clear/ConsoleClear.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Center.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Color/ConsoleColor.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/ConsoleError.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Options.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Argument.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Command/Command+Print.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/console.git-5126077550814951831/Sources/Console/Console/Console+Print.swift /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/libc.swiftmodule /usr/lib/swift/linux/x86_64/Glibc.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Core.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Debugging.swiftmodule /usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /usr/lib/swift/linux/x86_64/Foundation.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Bits.swiftmodule /usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /usr/lib/swift/linux/x86_64/glibc.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CHTTP.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CSQLite.build/module.modulemap
D
/** * Authors: Steve Teale - steve.teale@britseyeview.com * * Date: 2007/05/19 * History: V0.1 * License: Use freely for any purpose. */ module bevutils.propertyfile; import std.string; import std.stdio; import std.stream; import std.regexp; import bevutils.tinyxml; /** * A class to facilitate reading of XML property files. * * Currently supports string, int, string[] and int[] properties. * * Two styles of XML are supported: * ------------------------------------------------------ <?xml version="1.0" ?> <Properties layout="1"> <constr type="string">Driver=SQL Server;DSN=MySQL1</constr> <logpath type="string">d:\logs</logpath> <numlogs type="int">10</numlogs> <maxlogsize type="int">1000000</maxlogsize> <watchdirs type="string[]"> <item>d:\A</item> <item>d:\B</item> <item>d:\C</item> </watchdirs> <thingie type="int[]"> <item>1</item> <item>2</item> <item>3</item> </thingie> </Properties> * ------------------------------------------------------ * and: * ------------------------------------------------------ <?xml version="1.0" ?> <Properties layout="2"> <constr type="string" value="Driver=SQL Server;DSN=MySQL1" /> <logpath type="string" value="d:\logs" /> <numlogs type="int" value="10" /> <maxlogsize type="int" value="1000000" /> <watchdirs type="string[]"> <item value="d:\A" /> <item value="d:\B" /> <item value="d:\C" /> </watchdirs> <thingie type="int[]"> <item value="1" /> <item value="2" /> <item value="3" /> </thingie> </Properties> * ------------------------------------------------------ */ class PropertyFile { private: struct Property { int type; union { char[] s; int i; char[][] as; int[] ai; } } Property [char[]] _props; static RegExp irex; public: static this() { irex = RegExp("-?[0-9]{1,10}"); } /** * Constructor from a file name * * Params: * filepath = Fully qualified file name. */ this(char[] filepath) { File file = new File(filepath); char[] text = file.toString(); TinyXML tx = new TinyXML(text); Tag t = tx.Context; char[] layout = t.getValue("layout"); int lt = (layout == "1")? 1: 2; int n = t.Tags; for (int i = 0; i < n; i++) { Tag x = cast(Tag) t[i, TinyXML.TAG]; char[] type = x.getValue("type"); char[] name = x.Name; char[] val; Property p; switch (type) { case "int": val = (lt == 1)? x.FirstText: x.getValue("value"); int m = irex.find(val); if (m != 0 || irex.post.length > 0) throw new Exception(name ~ " Value " ~ val ~ " does not match the specified type."); p.i = cast(int) std.string.atoi(val); p.type = 1; _props[name] = p; break; case "int[]": handleIntArray(x, name, lt); break; case "string[]": handleStringArray(x, name, lt); break; default: val = (lt == 1)? x.FirstText: x.getValue("value"); p.s = val; p.type = 0; _props[name] = p; break; } } } /** * Determine if a property is present by name. * * Params: * s = Popery name. */ bool opCall(char[] s) { return !((s in _props) is null); } /** * Get an integer property value. * * Params: * name = Property name. */ int getInt(char[] name) { if (!(name in _props)) throw new Exception("No such property"); Property p = _props[name]; if (p.type != 1) throw new Exception("Property " ~ name ~ " is not of type int"); return p.i; } /** * Get a string property value. * * Params: * name = Property name. */ char[] getString(char[] name) { if (!(name in _props)) throw new Exception("No such property"); Property p = _props[name]; if (p.type != 0) throw new Exception("Property " ~ name ~ " is not of type string"); return p.s; } /** * Get an int array property value. * * Params: * name = Property name. */ int[] getIntArray(char[] name) { if (!(name in _props)) throw new Exception("No such property"); Property p = _props[name]; if (p.type != 3) throw new Exception("Property " ~ name ~ " is not of type int[]"); return p.ai; } /** * Get an string array property value. * * Params: * name = Property name. */ char[][] getStringArray(char[] name) { if (!(name in _props)) throw new Exception("No such property"); Property p = _props[name]; if (p.type != 2) throw new Exception("Property " ~ name ~ " is not of type string[]"); return p.as; } private: private void handleIntArray(Tag x, char[] name, int lt) { Property p; int tc = x.Tags; int[] a; a.length = tc; for (int i = 0; i < tc; i++) { Tag t = cast(Tag) x[i, TinyXML.TAG]; char[] s = (lt == 1)? t.FirstText: t.getValue("value"); int n = irex.find(s); if (n != 0 || irex.post.length > 0) throw new Exception(name ~ " array element " ~ s ~ " does not match the specified type."); n = cast(int) std.string.atoi(s); a[i] = n; } p.ai = a; p.type = 3; _props[name] = p; } private void handleStringArray(Tag x, char[] name, int lt) { Property p; int tc = x.Tags; char[][] a; a.length = tc; for (int i = 0; i < tc; i++) { Tag t = cast(Tag) x[i, TinyXML.TAG]; a[i] = (lt == 1)? t.FirstText: t.getValue("value"); } p.as = a; p.type = 2; _props[name] = p; } } /+ void main(char[][] args) { PropertyFile pf = new PropertyFile("d:\\d\\test2.xml"); writefln(pf.getString("constr")); writefln(pf.getString("logpath")); int n = pf.getInt("numlogs"); writefln("%d", n); n = pf.getInt("maxlogsize"); writefln("%d", n); char[][] as = pf.getStringArray("watchdirs"); for (int i = 0; i < as.length; i++) writefln(as[i]); int[] ai = pf.getIntArray("thingie"); for (int i = 0; i < ai.length; i++) writefln("%d", ai[i]); } +/
D
module test.linalg; import tango.stdc.stdio; import auxc.gsl.gsl_linalg; public { void test_linalg_ludecomp() { double a_data[] = [ 0.18, 0.60, 0.57, 0.96, 0.41, 0.24, 0.99, 0.58, 0.14, 0.30, 0.97, 0.66, 0.51, 0.13, 0.19, 0.85 ]; double b_data[] = [ 1.0, 2.0, 3.0, 4.0 ]; gsl_matrix_view m = gsl_matrix_view_array (cast(double*) a_data, cast(uint) 4, cast(uint) 4); gsl_vector_view b = gsl_vector_view_array (cast(double*) b_data, cast(uint) 4); gsl_vector *x = gsl_vector_alloc (4); int s; gsl_permutation * p = gsl_permutation_alloc (4); gsl_linalg_LU_decomp (&m.matrix, p, &s); gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); printf ("x = \n"); gsl_vector_fprintf (stdout, x, "%g"); gsl_permutation_free (p); gsl_vector_free (x); } }
D
module tile.tileset; import std.conv; import std.stdio; import allegro5.allegro; import allegro5.allegro_image; import graphics; import tile.tile; class Tileset { this(string filename) { intended_filename = filename; // For now, we just load a default... graphics.length = tile_names.max + 1; graphics[tile_names.plains] = new StaticImage("resources/plains.png"); graphics[tile_names.water] = new StaticImage("resources/water.png"); graphics[tile_names.forest] = new StaticImage("resources/forest.png"); graphics[tile_names.farmland] = new StaticImage("resources/farmland.png"); graphics[tile_names.farmland_with_food] = new StaticImage("resources/farmland_with_food.png"); graphics[tile_names.cursor] = new StaticImage("resources/cursor.png"); graphics[tile_names.house] = new StaticImage("resources/house.png"); graphics[tile_names.apartments] = new StaticImage("resources/apartments.png"); graphics[tile_names.office] = new StaticImage("resources/office.png"); graphics[tile_names.disaster_location] = new StaticImage("resources/disaster_location.png"); graphics[tile_names.hospital] = new StaticImage("resources/hospital.png"); graphics[tile_names.road] = new StaticImage("resources/road.png"); } void draw_tile(int tile_graphics_index, int draw_x, int draw_y) { graphics[tile_graphics_index].draw(draw_x, draw_y); } private: Graphic[] graphics; string intended_filename; }
D
/Users/ankitatdelhii/Downloads/MVVM_Twitter/build/MVVM_Twitter.build/Debug-iphonesimulator/MVVM_Twitter.build/Objects-normal/x86_64/FilterCell.o : /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/AuthService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/UserService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/TweetService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/SceneDelegate.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/AppDelegate.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/viewmodel/TweetCellViewModel.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/viewmodel/ProfileHeaderViewModel.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/UserCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/FilterCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/TweetCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/ProfileHeader.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/FeedController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ProfileController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ExploreController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/Authentication/LoginController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/Authentication/RegistrationController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/MainTabBarController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/NotificationsController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ConversationsController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/TweetController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/UploadTweetController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/model/User.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Utilities.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Extensions.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Constants.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/model/Tweet.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/ProfileFilterView.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/CaptionTextView.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/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+GIF.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FirebaseInstanceID-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImage-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+Metadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+ForceDecode.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIButton+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSButton+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImageView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImageView+HighlightedWebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDDiskCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDMemoryCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageFrame.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDefine.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCacheDefine.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSData+ImageContentType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/Firebase/CoreOnly/Sources/Firebase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCacheConfig.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderConfig.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuth.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+Transform.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIView+WebCacheOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageTransition.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageRep.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRApp.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageLoader.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloader.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFederatedAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGameCenterAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageHEICCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageGIFCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageAPNGCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageIOCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageIOAnimatedCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCachesManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageLoadersManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCodersManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImagePrefetcher.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderResponseModifier.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderRequestModifier.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageTransformer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCoderHelper.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUser.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCacheKeyFilter.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImagePlayer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCacheSerializer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageError.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageOptionsProcessor.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageIndicator.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderDecryptor.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageGraphics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthSettings.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIROptions.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+MultiFormat.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCompat.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthTokenResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageListResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+MemoryCacheCost.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageView.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSImage+Compatibility.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/Firebase/CoreOnly/Sources/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/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/ankitatdelhii/Downloads/MVVM_Twitter/build/MVVM_Twitter.build/Debug-iphonesimulator/MVVM_Twitter.build/Objects-normal/x86_64/FilterCell~partial.swiftmodule : /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/AuthService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/UserService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/TweetService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/SceneDelegate.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/AppDelegate.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/viewmodel/TweetCellViewModel.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/viewmodel/ProfileHeaderViewModel.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/UserCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/FilterCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/TweetCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/ProfileHeader.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/FeedController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ProfileController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ExploreController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/Authentication/LoginController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/Authentication/RegistrationController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/MainTabBarController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/NotificationsController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ConversationsController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/TweetController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/UploadTweetController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/model/User.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Utilities.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Extensions.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Constants.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/model/Tweet.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/ProfileFilterView.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/CaptionTextView.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/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+GIF.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FirebaseInstanceID-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImage-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+Metadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+ForceDecode.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIButton+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSButton+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImageView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImageView+HighlightedWebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDDiskCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDMemoryCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageFrame.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDefine.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCacheDefine.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSData+ImageContentType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/Firebase/CoreOnly/Sources/Firebase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCacheConfig.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderConfig.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuth.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+Transform.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIView+WebCacheOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageTransition.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageRep.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRApp.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageLoader.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloader.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFederatedAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGameCenterAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageHEICCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageGIFCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageAPNGCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageIOCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageIOAnimatedCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCachesManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageLoadersManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCodersManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImagePrefetcher.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderResponseModifier.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderRequestModifier.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageTransformer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCoderHelper.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUser.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCacheKeyFilter.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImagePlayer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCacheSerializer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageError.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageOptionsProcessor.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageIndicator.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderDecryptor.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageGraphics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthSettings.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIROptions.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+MultiFormat.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCompat.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthTokenResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageListResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+MemoryCacheCost.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageView.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSImage+Compatibility.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/Firebase/CoreOnly/Sources/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/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/ankitatdelhii/Downloads/MVVM_Twitter/build/MVVM_Twitter.build/Debug-iphonesimulator/MVVM_Twitter.build/Objects-normal/x86_64/FilterCell~partial.swiftdoc : /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/AuthService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/UserService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/API/TweetService.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/SceneDelegate.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/AppDelegate.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/viewmodel/TweetCellViewModel.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/viewmodel/ProfileHeaderViewModel.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/UserCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/FilterCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/TweetCell.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/ProfileHeader.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/FeedController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ProfileController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ExploreController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/Authentication/LoginController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/Authentication/RegistrationController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/MainTabBarController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/NotificationsController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/ConversationsController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/TweetController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Controller/UploadTweetController.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/model/User.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Utilities.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Extensions.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/Utils/Constants.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/model/Tweet.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/ProfileFilterView.swift /Users/ankitatdelhii/Downloads/MVVM_Twitter/MVVM_Twitter/view/CaptionTextView.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/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+GIF.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Headers/FirebaseInstanceID-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImage-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth-umbrella.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+Metadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+ForceDecode.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIButton+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSButton+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImageView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageView+WebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImageView+HighlightedWebCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDDiskCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDMemoryCache.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageFrame.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDefine.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCacheDefine.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSData+ImageContentType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/Firebase/CoreOnly/Sources/Firebase.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCacheConfig.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderConfig.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuth.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+Transform.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIView+WebCacheOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderOperation.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageTransition.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageRep.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRApp.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageLoader.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloader.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFederatedAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGameCenterAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageHEICCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageGIFCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageAPNGCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageIOCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageIOAnimatedCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCoder.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCachesManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageLoadersManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCodersManager.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImagePrefetcher.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderResponseModifier.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderRequestModifier.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageTransformer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageCoderHelper.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUser.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCacheKeyFilter.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImagePlayer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCacheSerializer.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageError.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageOptionsProcessor.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageIndicator.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageDownloaderDecryptor.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDImageGraphics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthSettings.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIROptions.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+MultiFormat.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDWebImageCompat.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthTokenResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageListResult.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/UIImage+MemoryCacheCost.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/SDAnimatedImageView.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Headers/NSImage+Compatibility.h /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/Firebase/CoreOnly/Sources/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseInstanceID/FirebaseInstanceID.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/SDWebImage/SDWebImage.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/build/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Modules/module.modulemap /Users/ankitatdelhii/Downloads/MVVM_Twitter/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/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
behave in a patronizing and condescending manner do something that one considers to be below one's dignity debase oneself morally, act in an undignified, unworthy, or dishonorable way treat condescendingly (used of behavior or attitude) characteristic of those who treat others with condescension
D
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Deprecated.o : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Variadic.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Void.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/FutureType.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Collection+Future.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+DoCatch.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Global.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Transform.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Flatten.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Map.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Worker.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/QueueHandler.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/AsyncError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Deprecated~partial.swiftmodule : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Variadic.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Void.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/FutureType.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Collection+Future.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+DoCatch.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Global.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Transform.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Flatten.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Map.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Worker.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/QueueHandler.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/AsyncError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Deprecated~partial.swiftdoc : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Variadic.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Void.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/FutureType.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Collection+Future.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+DoCatch.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Global.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Transform.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Flatten.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Map.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Worker.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/QueueHandler.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/AsyncError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
D
instance DIA_AGON_EXIT(C_INFO) { npc = nov_603_agon; nr = 999; condition = dia_agon_exit_condition; information = dia_agon_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_agon_exit_condition() { return TRUE; }; func void dia_agon_exit_info() { AI_StopProcessInfos(self); }; instance DIA_AGON_HELLO(C_INFO) { npc = nov_603_agon; nr = 2; condition = dia_agon_hello_condition; information = dia_agon_hello_info; permanent = FALSE; important = TRUE; }; func int dia_agon_hello_condition() { if(Npc_IsInState(self,zs_talk) && (MIS_SCHNITZELJAGD == FALSE) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void dia_agon_hello_info() { AI_Output(self,other,"DIA_Agon_Hello_07_00"); //(презрительно) Что тебе нужно? }; instance DIA_AGON_WURST(C_INFO) { npc = nov_603_agon; nr = 2; condition = dia_agon_wurst_condition; information = dia_agon_wurst_info; permanent = FALSE; description = "Вот, у меня есть баранья колбаса для тебя."; }; func int dia_agon_wurst_condition() { if((KAPITEL == 1) && (MIS_GORAXESSEN == LOG_RUNNING) && (Npc_HasItems(self,itfo_schafswurst) == 0) && (Npc_HasItems(other,itfo_schafswurst) >= 1)) { return TRUE; }; }; func void dia_agon_wurst_info() { var string novizetext; var string novizeleft; AI_Output(other,self,"DIA_Agon_Wurst_15_00"); //Вот, у меня есть баранья колбаса для тебя. AI_Output(self,other,"DIA_Agon_Wurst_07_01"); //Овечья колбаса, овечий сыр... овечье молоко... меня уже тошнит от одного их вида. AI_Output(other,self,"DIA_Agon_Wurst_15_02"); //Так ты хочешь колбасу или нет? AI_Output(self,other,"DIA_Agon_Wurst_07_03"); //Ладно, давай ее сюда! b_giveinvitems(other,self,itfo_schafswurst,1); WURST_GEGEBEN = WURST_GEGEBEN + 1; CreateInvItems(self,itfo_sausage,1); b_useitem(self,itfo_sausage); novizeleft = IntToString(13 - WURST_GEGEBEN); novizetext = ConcatStrings(novizeleft,PRINT_NOVIZENLEFT); AI_PrintScreen(novizetext,-1,YPOS_GOLDGIVEN,FONT_SCREENSMALL,3); }; instance DIA_AGON_NEW(C_INFO) { npc = nov_603_agon; nr = 1; condition = dia_agon_new_condition; information = dia_agon_new_info; permanent = FALSE; description = "Я новичок здесь."; }; func int dia_agon_new_condition() { if((MIS_SCHNITZELJAGD == FALSE) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void dia_agon_new_info() { AI_Output(other,self,"DIA_Agon_New_15_00"); //Я новичок здесь. AI_Output(self,other,"DIA_Agon_New_07_01"); //Я вижу. AI_Output(self,other,"DIA_Agon_New_07_02"); //Если у тебя еще нет работы, поговори с Парланом. Он поручит тебе что-нибудь. }; instance DIA_AGON_YOUANDBABO(C_INFO) { npc = nov_603_agon; nr = 1; condition = dia_agon_youandbabo_condition; information = dia_agon_youandbabo_info; permanent = FALSE; description = "Что произошло между тобой и Бабо?"; }; func int dia_agon_youandbabo_condition() { if(Npc_KnowsInfo(other,dia_opolos_monastery) && (MIS_SCHNITZELJAGD == FALSE) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void dia_agon_youandbabo_info() { AI_Output(other,self,"DIA_Agon_YouAndBabo_15_00"); //Что произошло между тобой и Бабо? AI_Output(self,other,"DIA_Agon_YouAndBabo_07_01"); //Тебе не стоит верить всему, что ты слышишь. AI_Output(self,other,"DIA_Agon_YouAndBabo_07_02"); //(настойчиво) Давай проясним кое-что: я буду поступать так, как сочту нужным. Так, как предопределил мне Иннос. AI_Output(self,other,"DIA_Agon_YouAndBabo_07_03"); //Я никому не позволю встать у меня на пути, и уж конечно не этому простофиле Бабо. Info_ClearChoices(dia_agon_youandbabo); Info_AddChoice(dia_agon_youandbabo,"Разве мы, послушники, не должны поддерживать друг друга?",dia_agon_youandbabo_alltogether); Info_AddChoice(dia_agon_youandbabo,"Одному Инносу ведомо, каким путем должны мы идти.",dia_agon_youandbabo_innosway); Info_AddChoice(dia_agon_youandbabo,"Я думаю, мы поладим.",dia_agon_youandbabo_understand); }; func void dia_agon_youandbabo_alltogether() { AI_Output(other,self,"DIA_Agon_YouAndBabo_AllTogether_15_00"); //Разве мы, послушники, не должны поддерживать друг друга? AI_Output(self,other,"DIA_Agon_YouAndBabo_AllTogether_07_01"); //Вы, остальные, можете поддерживать друг друга сколько хотите. AI_Output(self,other,"DIA_Agon_YouAndBabo_AllTogether_07_02"); //Но, пожалуйста, не трать мое время. (холодно) Никто не смеет стоять у меня на пути. Info_ClearChoices(dia_agon_youandbabo); }; func void dia_agon_youandbabo_innosway() { AI_Output(other,self,"DIA_Agon_YouAndBabo_InnosWay_15_00"); //Одному Инносу ведомо, каким путем должны мы идти. AI_Output(self,other,"DIA_Agon_YouAndBabo_InnosWay_07_01"); //Моя семья всегда пользовалась благосклонностью Инноса, и ничто не изменит это. Info_ClearChoices(dia_agon_youandbabo); }; func void dia_agon_youandbabo_understand() { AI_Output(other,self,"DIA_Agon_YouAndBabo_Understand_15_00"); //Я думаю, мы поладим. AI_Output(self,other,"DIA_Agon_YouAndBabo_Understand_07_01"); //Надеюсь. Когда я стану магом, я замолвлю за тебя словечко. Info_ClearChoices(dia_agon_youandbabo); }; instance DIA_AGON_GETHERB(C_INFO) { npc = nov_603_agon; nr = 1; condition = dia_agon_getherb_condition; information = dia_agon_getherb_info; permanent = TRUE; description = "Что ты выращиваешь здесь?"; }; func int dia_agon_getherb_condition() { if(MIS_SCHNITZELJAGD == FALSE) { return TRUE; }; }; func void dia_agon_getherb_info() { AI_Output(other,self,"DIA_Agon_GetHerb_15_00"); //Что ты выращиваешь здесь? AI_Output(self,other,"DIA_Agon_GetHerb_07_01"); //Мы пытаемся вырастить лечебные травы, из которых мастер Неорас готовит зелья. }; instance DIA_AGON_GOLEMDEAD(C_INFO) { npc = nov_603_agon; nr = 1; condition = dia_agon_golemdead_condition; information = dia_agon_golemdead_info; permanent = FALSE; important = TRUE; }; func int dia_agon_golemdead_condition() { if((MIS_SCHNITZELJAGD == LOG_RUNNING) && Npc_IsDead(magic_golem)) { return TRUE; }; }; func void dia_agon_golemdead_info() { AI_Output(self,other,"DIA_Agon_GolemDead_07_00"); //(торжествующе) Ты опоздал! AI_Output(self,other,"DIA_Agon_GolemDead_07_01"); //Я был здесь первым! Я победил! Info_ClearChoices(dia_agon_golemdead); Info_AddChoice(dia_agon_golemdead,"(угрожающе) Только если тебе удастся выбраться отсюда живым.",dia_agon_golemdead_noway); Info_AddChoice(dia_agon_golemdead,"Заткнись!",dia_agon_golemdead_shutup); Info_AddChoice(dia_agon_golemdead,"Поздравляю, ты действительно заслужил это.",dia_agon_golemdead_congrat); }; func void dia_agon_golemdead_noway() { AI_Output(other,self,"DIA_Agon_GolemDead_NoWay_15_00"); //(угрожающе) Только если тебе удастся выбраться отсюда живым. AI_Output(self,other,"DIA_Agon_GolemDead_NoWay_07_01"); //Ты хочешь убить меня? У тебя ничего не получится. AI_StopProcessInfos(self); b_attack(self,other,AR_NONE,1); }; func void dia_agon_golemdead_shutup() { AI_Output(other,self,"DIA_Agon_GolemDead_ShutUp_15_00"); //Заткнись! AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_07_01"); //(насмешливо) Это бесполезно, ты проиграл! Смирись с этим. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_07_02"); //Только мне суждено стать магом. Info_ClearChoices(dia_agon_golemdead); Info_AddChoice(dia_agon_golemdead,"Черта с два. Этот сундук мой.",dia_agon_golemdead_shutup_mychest); Info_AddChoice(dia_agon_golemdead,"Ты победил.",dia_agon_golemdead_shutup_youwin); }; func void dia_agon_golemdead_shutup_mychest() { AI_Output(other,self,"DIA_Agon_GolemDead_ShutUp_MyChest_15_00"); //Черта с два. Этот сундук мой. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_MyChest_07_01"); //(в ярости) Нет, ты не сделаешь этого. Я убью тебя. AI_StopProcessInfos(self); b_attack(self,other,AR_NONE,1); }; func void dia_agon_golemdead_shutup_youwin() { AI_Output(other,self,"DIA_Agon_GolemDead_ShutUp_YouWin_15_00"); //Ты победил. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_YouWin_07_01"); //(в ярости) Нет, тебе не обмануть меня. Ты пытаешься избавиться от меня. AI_Output(self,other,"DIA_Agon_GolemDead_ShutUp_YouWin_07_02"); //Я не допущу этого! AI_StopProcessInfos(self); b_attack(self,other,AR_NONE,1); }; func void dia_agon_golemdead_congrat() { AI_Output(other,self,"DIA_Agon_GolemDead_Congrat_15_00"); //Поздравляю, ты действительно заслужил это. AI_Output(self,other,"DIA_Agon_GolemDead_Congrat_07_01"); //(недоверчиво) Что это значит? Что ты задумал? AI_Output(other,self,"DIA_Agon_GolemDead_Congrat_15_02"); //Ты о чем это? AI_Output(self,other,"DIA_Agon_GolemDead_Congrat_07_03"); //(нервно) Ты хочешь оспорить мою победу. Ты хочешь убить меня и забрать всю славу себе! AI_Output(self,other,"DIA_Agon_GolemDead_Congrat_07_04"); //У тебя ничего не выйдет! AI_StopProcessInfos(self); b_attack(self,other,AR_NONE,1); }; instance DIA_AGON_GOLEMLIVES(C_INFO) { npc = nov_603_agon; nr = 1; condition = dia_agon_golemlives_condition; information = dia_agon_golemlives_info; permanent = FALSE; important = TRUE; }; func int dia_agon_golemlives_condition() { if((MIS_SCHNITZELJAGD == LOG_RUNNING) && (Npc_IsDead(magic_golem) == FALSE)) { return TRUE; }; }; func void dia_agon_golemlives_info() { AI_Output(self,other,"DIA_Agon_GolemLives_07_00"); //(удивленно) Ты нашел это место раньше меня. Этого не может быть... AI_Output(self,other,"DIA_Agon_GolemLives_07_01"); //(решительно) Этого не может быть! Я не позволю это. AI_Output(self,other,"DIA_Agon_GolemLives_07_02"); //Твой труп никогда никто не найдет. AI_StopProcessInfos(self); b_attack(self,other,AR_NONE,0); }; instance DIA_AGON_PERM(C_INFO) { npc = nov_603_agon; nr = 2; condition = dia_agon_perm_condition; information = dia_agon_perm_info; permanent = TRUE; description = "Как дела?"; }; func int dia_agon_perm_condition() { if((KAPITEL >= 3) && (other.guild != GIL_KDF)) { return TRUE; }; }; func void dia_agon_perm_info() { AI_Output(other,self,"DIA_Agon_Perm_15_00"); //Как дела? if(other.guild == GIL_PAL) { AI_Output(self,other,"DIA_Agon_Perm_07_01"); //Ох, спасибо за твою заботу, о, паладин. Я наслаждаюсь работой, и я уверен, что скоро меня выберут в маги. } else { AI_Output(self,other,"DIA_Agon_Perm_07_02"); //(надменно) Ты всего лишь гость здесь, в монастыре Инноса. Поэтому ты должен вести себя соответствующе и не отрывать меня от работы. Прощай. }; }; instance DIA_AGON_PICKPOCKET(C_INFO) { npc = nov_603_agon; nr = 900; condition = dia_agon_pickpocket_condition; information = dia_agon_pickpocket_info; permanent = TRUE; description = PICKPOCKET_40; }; func int dia_agon_pickpocket_condition() { return c_beklauen(23,12); }; func void dia_agon_pickpocket_info() { Info_ClearChoices(dia_agon_pickpocket); Info_AddChoice(dia_agon_pickpocket,DIALOG_BACK,dia_agon_pickpocket_back); Info_AddChoice(dia_agon_pickpocket,DIALOG_PICKPOCKET,dia_agon_pickpocket_doit); }; func void dia_agon_pickpocket_doit() { b_beklauen(); Info_ClearChoices(dia_agon_pickpocket); }; func void dia_agon_pickpocket_back() { Info_ClearChoices(dia_agon_pickpocket); };
D
/++ Templates used to check primitives and range primitives for arrays with multi-dimensional like API support. Note: UTF strings behaves like common arrays in Mir. `std.uni.byCodePoint` can be used to create a range of characters. License: $(HTTP www.apache.org/licenses/LICENSE-2.0, Apache-2.0) Authors: Ilia Ki, $(HTTP erdani.com, Andrei Alexandrescu), David Simcha, and $(HTTP jmdavisprog.com, Jonathan M Davis). Credit for some of the ideas in building this module goes to $(HTTP fantascienza.net/leonardo/so/, Leonardo Maffi) +/ module mir.primitives; import mir.internal.utility; import mir.math.common: optmath; import std.traits; @optmath: /++ Returns: `true` if `R` has a `length` member that returns an integral type implicitly convertible to `size_t`. `R` does not have to be a range. +/ enum bool hasLength(R) = is(typeof( (const R r, inout int = 0) { size_t l = r.length; })); /// @safe version(mir_core_test) unittest { static assert(hasLength!(char[])); static assert(hasLength!(int[])); static assert(hasLength!(inout(int)[])); struct B { size_t length() const { return 0; } } struct C { @property size_t length() const { return 0; } } static assert(hasLength!(B)); static assert(hasLength!(C)); } /++ Returns: `true` if `R` has a `shape` member that returns an static array type of size_t[N]. +/ enum bool hasShape(R) = is(typeof( (const R r, inout int = 0) { auto l = r.shape; alias F = typeof(l); import std.traits; static assert(isStaticArray!F); static assert(is(ForeachType!F == size_t)); })); /// @safe version(mir_core_test) unittest { static assert(hasShape!(char[])); static assert(hasShape!(int[])); static assert(hasShape!(inout(int)[])); struct B { size_t length() const { return 0; } } struct C { @property size_t length() const { return 0; } } static assert(hasShape!(B)); static assert(hasShape!(C)); } /// auto shape(Range)(scope const auto ref Range range) @property if (hasLength!Range || hasShape!Range) { static if (__traits(hasMember, Range, "shape")) { return range.shape; } else { size_t[1] ret; ret[0] = range.length; return ret; } } /// version(mir_core_test) unittest { static assert([2, 2, 2].shape == [3]); } /// template DimensionCount(T) { import mir.ndslice.slice: Slice, SliceKind; /// Extracts dimension count from a $(LREF Slice). Alias for $(LREF isSlice). static if(is(T : Slice!(Iterator, N, kind), Iterator, size_t N, SliceKind kind)) enum size_t DimensionCount = N; else static if (hasShape!T) enum size_t DimensionCount = typeof(T.init.shape).length; else enum size_t DimensionCount = 1; } package(mir) bool anyEmptyShape(size_t N)(scope const auto ref size_t[N] shape) @property { foreach (i; Iota!N) if (shape[i] == 0) return true; return false; } /// bool anyEmpty(Range)(scope auto ref Range range) @property if (hasShape!Range || __traits(hasMember, Range, "anyEmpty") || is(ReturnType!((Range r) => r.empty) == bool)) { static if (__traits(hasMember, Range, "anyEmpty")) { return range.anyEmpty; } else static if (__traits(hasMember, Range, "shape")) { return anyEmptyShape(range.shape); } else { return range.empty; } } /// size_t elementCount(Range)(scope const auto ref Range range) @property if (hasShape!Range || __traits(hasMember, Range, "elementCount")) { static if (__traits(hasMember, Range, "elementCount")) { return range.elementCount; } else { auto sh = range.shape; size_t ret = sh[0]; foreach(i; Iota!(1, sh.length)) { ret *= sh[i]; } return ret; } } deprecated("use elementCount instead") alias elementsCount = elementCount; /++ Returns the element type of a struct with `.DeepElement` inner alias or a type of common array. Returns `ForeachType` if struct does not have `.DeepElement` member. +/ template DeepElementType(S) if (is(S == struct) || is(S == class) || is(S == interface)) { static if (__traits(hasMember, S, "DeepElement")) alias DeepElementType = S.DeepElement; else alias DeepElementType = ForeachType!S; } /// ditto alias DeepElementType(S : T[], T) = T; /+ ARRAY PRIMITIVES +/ pragma(inline, true): /// bool empty(size_t dim = 0, T)(scope const T[] ar) if (!dim) { return !ar.length; } /// version(mir_core_test) unittest { assert((int[]).init.empty); assert(![1].empty!0); // Slice-like API } /// ref inout(T) front(size_t dim = 0, T)(scope return inout(T)[] ar) if (!dim && !is(Unqual!T[] == void[])) { assert(ar.length, "Accessing front of an empty array."); return ar[0]; } /// version(mir_core_test) unittest { assert(*&[3, 4].front == 3); // access be ref assert([3, 4].front!0 == 3); // Slice-like API } /// ref inout(T) back(size_t dim = 0, T)(scope return inout(T)[] ar) if (!dim && !is(Unqual!T[] == void[])) { assert(ar.length, "Accessing back of an empty array."); return ar[$ - 1]; } /// version(mir_core_test) unittest { assert(*&[3, 4].back == 4); // access be ref assert([3, 4].back!0 == 4); // Slice-like API } /// void popFront(size_t dim = 0, T)(scope ref inout(T)[] ar) if (!dim && !is(Unqual!T[] == void[])) { assert(ar.length, "Evaluating popFront() on an empty array."); ar = ar[1 .. $]; } /// version(mir_core_test) unittest { auto ar = [3, 4]; ar.popFront; assert(ar == [4]); ar.popFront!0; // Slice-like API assert(ar == []); } /// void popBack(size_t dim = 0, T)(scope ref inout(T)[] ar) if (!dim && !is(Unqual!T[] == void[])) { assert(ar.length, "Evaluating popBack() on an empty array."); ar = ar[0 .. $ - 1]; } /// version(mir_core_test) unittest { auto ar = [3, 4]; ar.popBack; assert(ar == [3]); ar.popBack!0; // Slice-like API assert(ar == []); } /// size_t popFrontN(size_t dim = 0, T)(scope ref inout(T)[] ar, size_t n) if (!dim && !is(Unqual!T[] == void[])) { n = ar.length < n ? ar.length : n; ar = ar[n .. $]; return n; } /// version(mir_core_test) unittest { auto ar = [3, 4]; ar.popFrontN(1); assert(ar == [4]); ar.popFrontN!0(10); // Slice-like API assert(ar == []); } /// size_t popBackN(size_t dim = 0, T)(scope ref inout(T)[] ar, size_t n) if (!dim && !is(Unqual!T[] == void[])) { n = ar.length < n ? ar.length : n; ar = ar[0 .. $ - n]; return n; } /// version(mir_core_test) unittest { auto ar = [3, 4]; ar.popBackN(1); assert(ar == [3]); ar.popBackN!0(10); // Slice-like API assert(ar == []); } /// void popFrontExactly(size_t dim = 0, T)(scope ref inout(T)[] ar, size_t n) if (!dim && !is(Unqual!T[] == void[])) { assert(ar.length >= n, "Evaluating *.popFrontExactly(n) on an array with length less then n."); ar = ar[n .. $]; } /// version(mir_core_test) unittest { auto ar = [3, 4, 5]; ar.popFrontExactly(2); assert(ar == [5]); ar.popFrontExactly!0(1); // Slice-like API assert(ar == []); } /// void popBackExactly(size_t dim = 0, T)(scope ref inout(T)[] ar, size_t n) if (!dim && !is(Unqual!T[] == void[])) { assert(ar.length >= n, "Evaluating *.popBackExactly(n) on an array with length less then n."); ar = ar[0 .. $ - n]; } /// version(mir_core_test) unittest { auto ar = [3, 4, 5]; ar.popBackExactly(2); assert(ar == [3]); ar.popBackExactly!0(1); // Slice-like API assert(ar == []); } /// size_t length(size_t d : 0, T)(in T[] array) if (d == 0) { return array.length; } /// version(mir_core_test) unittest { assert([1, 2].length!0 == 2); assert([1, 2].elementCount == 2); } /// inout(T)[] save(T)(scope return inout(T)[] array) { return array; } /// version(mir_core_test) unittest { auto a = [1, 2]; assert(a is a.save); } /** Returns `true` if `R` is an input range. An input range must define the primitives `empty`, `popFront`, and `front`. The following code should compile for any input range. ---- R r; // can define a range object if (r.empty) {} // can test for empty r.popFront(); // can invoke popFront() auto h = r.front; // can get the front of the range of non-void type ---- The following are rules of input ranges are assumed to hold true in all Phobos code. These rules are not checkable at compile-time, so not conforming to these rules when writing ranges or range based code will result in undefined behavior. $(UL $(LI `r.empty` returns `false` if and only if there is more data available in the range.) $(LI `r.empty` evaluated multiple times, without calling `r.popFront`, or otherwise mutating the range object or the underlying data, yields the same result for every evaluation.) $(LI `r.front` returns the current element in the range. It may return by value or by reference.) $(LI `r.front` can be legally evaluated if and only if evaluating `r.empty` has, or would have, equaled `false`.) $(LI `r.front` evaluated multiple times, without calling `r.popFront`, or otherwise mutating the range object or the underlying data, yields the same result for every evaluation.) $(LI `r.popFront` advances to the next element in the range.) $(LI `r.popFront` can be called if and only if evaluating `r.empty` has, or would have, equaled `false`.) ) Also, note that Phobos code assumes that the primitives `r.front` and `r.empty` are $(BIGOH 1) time complexity wise or "cheap" in terms of running time. $(BIGOH) statements in the documentation of range functions are made with this assumption. Params: R = type to be tested Returns: `true` if R is an input range, `false` if not */ enum bool isInputRange(R) = is(typeof(R.init) == R) && is(ReturnType!((R r) => r.empty) == bool) && is(typeof((return ref R r) => r.front)) && !is(ReturnType!((R r) => r.front) == void) && is(typeof((R r) => r.popFront)); /** Returns `true` if `R` is an infinite input range. An infinite input range is an input range that has a statically-defined enumerated member called `empty` that is always `false`, for example: ---- struct MyInfiniteRange { enum bool empty = false; ... } ---- */ template isInfinite(R) { static if (isInputRange!R && __traits(compiles, { enum e = R.empty; })) enum bool isInfinite = !R.empty; else enum bool isInfinite = false; } /** The element type of `R`. `R` does not have to be a range. The element type is determined as the type yielded by `r.front` for an object `r` of type `R`. For example, `ElementType!(T[])` is `T` if `T[]` isn't a narrow string; if it is, the element type is `dchar`. If `R` doesn't have `front`, `ElementType!R` is `void`. */ template ElementType(R) { static if (is(typeof(R.init.front.init) T)) alias ElementType = T; else alias ElementType = void; } /++ This is a best-effort implementation of `length` for any kind of range. If `hasLength!Range`, simply returns `range.length` without checking `upTo` (when specified). Otherwise, walks the range through its length and returns the number of elements seen. Performes $(BIGOH n) evaluations of `range.empty` and `range.popFront()`, where `n` is the effective length of $(D range). +/ auto walkLength(Range)(Range range) if (isIterable!Range && !isInfinite!Range) { static if (hasLength!Range) return range.length; else static if (__traits(hasMember, Range, "walkLength")) return range.walkLength; static if (isInputRange!Range) { size_t result; for ( ; !range.empty ; range.popFront() ) ++result; return result; } else { size_t result; foreach (ref e; range) ++result; return result; } } /++ Returns `true` if `R` is an output range for elements of type `E`. An output range is defined functionally as a range that supports the operation $(D r.put(e)). +/ enum bool isOutputRange(R, E) = is(typeof(R.init.put(E.init)));
D
/** * D header file for Solaris. * * $(LINK2 http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/sys/link.h, illumos sys/link.h) */ module core.sys.solaris.sys.link; version (Solaris): extern (C): nothrow: public import core.sys.solaris.sys.elftypes; public import core.sys.elf; import core.stdc.config; struct Elf32_Dyn { Elf32_Sword d_tag; union _d_un { Elf32_Word d_val; Elf32_Addr d_ptr; Elf32_Off d_off; } _d_un d_un; } struct Elf64_Dyn { Elf64_Xword d_tag; union _d_un { Elf64_Xword d_val; Elf64_Addr d_ptr; } _d_un d_un; } enum DT_MAXPOSTAGS = 34; enum DT_SUNW_AUXILIARY = 0x6000000d; enum DT_SUNW_RTLDINF = 0x6000000e; enum DT_SUNW_FILTER = 0x6000000f; enum DT_SUNW_CAP = 0x60000010; enum DT_SUNW_SYMTAB = 0x60000011; enum DT_SUNW_SYMSZ = 0x60000012; enum DT_SUNW_ENCODING = 0x60000013; enum DT_SUNW_SORTENT = 0x60000013; enum DT_SUNW_SYMSORT = 0x60000014; enum DT_SUNW_SYMSORTSZ = 0x60000015; enum DT_SUNW_TLSSORT = 0x60000016; enum DT_SUNW_TLSSORTSZ = 0x60000017; enum DT_SUNW_CAPINFO = 0x60000018; enum DT_SUNW_STRPAD = 0x60000019; enum DT_SUNW_CAPCHAIN = 0x6000001a; enum DT_SUNW_LDMACH = 0x6000001b; enum DT_SUNW_CAPCHAINENT = 0x6000001d; enum DT_SUNW_CAPCHAINSZ = 0x6000001f; enum DT_DEPRECATED_SPARC_REGISTER = 0x7000001; enum DT_USED = 0x7ffffffe; enum DF_P1_DEFERRED = 0x00000004; enum VER_FLG_INFO = 0x4; enum SYMINFO_FLG_FILTER = 0x0002; enum SYMINFO_FLG_DIRECTBIND = 0x0010; enum SYMINFO_FLG_NOEXTDIRECT = 0x0020; enum SYMINFO_FLG_AUXILIARY = 0x0040; enum SYMINFO_FLG_INTERPOSE = 0x0080; enum SYMINFO_FLG_CAP = 0x0100; enum SYMINFO_FLG_DEFERRED = 0x0200; enum SYMINFO_BT_NONE = 0xfffd; enum SYMINFO_BT_EXTERN = 0xfffc; alias link_map Link_map; struct link_map { c_ulong l_addr; char* l_name; version (D_LP64) Elf64_Dyn* l_ld; else Elf32_Dyn* l_ld; Link_map* l_next; Link_map* l_prev; char* l_refname; } version (_SYSCALL32) { alias link_map32 Link_map32; struct link_map32 { Elf32_Word l_addr; Elf32_Addr l_name; Elf32_Addr l_ld; Elf32_Addr l_next; Elf32_Addr l_prev; Elf32_Addr l_refname; } } enum r_state_e { RT_CONSISTENT, RT_ADD, RT_DELETE } enum rd_flags_e { RD_FL_NONE = 0, RD_FL_ODBG = (1<<0), RD_FL_DBG = (1<<1) } enum rd_event_e { RD_NONE = 0, RD_PREINIT, RD_POSTINIT, RD_DLACTIVITY } struct r_debug { int r_version; Link_map* r_map; c_ulong r_brk; r_state_e r_state; c_ulong r_ldbase; Link_map* r_ldsomap; rd_event_e r_rdevent; rd_flags_e r_flags; } version (_SYSCALL32) { struct r_debug32 { Elf32_Word r_version; Elf32_Addr r_map; Elf32_Word r_brk; r_state_e r_state; Elf32_Word r_ldbase; Elf32_Addr r_ldsomap; rd_event_e r_rdevent; rd_flags_e r_flags; } } enum R_DEBUG_VERSION = 2; struct Elf32_Boot { Elf32_Sword eb_tag; union eb_un { Elf32_Word eb_val; Elf32_Addr eb_ptr; Elf32_Off eb_off; } } struct Elf64_Boot { Elf64_Xword eb_tag; union eb_un { Elf64_Xword eb_val; Elf64_Addr eb_ptr; Elf64_Off eb_off; } } enum EB_NULL = 0; enum EB_DYNAMIC = 1; enum EB_LDSO_BASE = 2; enum EB_ARGV = 3; enum EB_ENVP = 4; enum EB_AUXV = 5; enum EB_DEVZERO = 6; enum EB_PAGESIZE = 7; enum EB_MAX = 8; enum EB_MAX_SIZE32 = 64; enum EB_MAX_SIZE64 = 128; void _ld_libc(void *);
D
/* TEST_OUTPUT: --- fail_compilation/fail9346.d(26): Error: struct fail9346.S is not copyable because it is annotated with @disable fail_compilation/fail9346.d(27): Error: struct fail9346.S is not copyable because it is annotated with @disable --- */ struct S { @disable this(this); } struct SS1 { S s; } struct SS2 { S s; this(this){} } void main() { S s; SS1 ss1 = SS1(s); SS2 ss2 = SS2(s); }
D
import sortingAlgorithmINTF; import std.string; class InsertionSort : SortingAlgorithm{ public string name() { return "insertion sort";}; void sort(int[] array){ int arraySize = cast(int) array.length; int x; for(int y = 0; y < arraySize; y++){ x = y; while(x > 0){ if(array[x - 1] > array[x]){ int temp = array[x - 1]; array[x - 1] = array[x]; array[x] = temp; } x--; } } } }
D
/Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/build/Assignment.build/Debug-iphoneos/Assignment.build/Objects-normal/arm64/NewPicture.o : /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmPIC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmNameVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/TicTacToeVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/NoteVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SoundBrowsingVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/MathVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SetMethodAlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SetTimeAlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/ReminderVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/WeekdaysVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Persistable.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/NewPicture.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/SoundDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AlarmDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AppDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/AlarmModel.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/tableViewCellTableViewCell.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/alarmTableViewCell.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/NotificationName+Extension.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/UIWindow+Extension.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/SegueInfo.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Identifier.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Services/DayServices.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/Weekdays.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AlarmSet.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Property.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/build/Assignment.build/Debug-iphoneos/Assignment.build/Objects-normal/arm64/NewPicture~partial.swiftmodule : /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmPIC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmNameVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/TicTacToeVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/NoteVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SoundBrowsingVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/MathVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SetMethodAlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SetTimeAlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/ReminderVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/WeekdaysVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Persistable.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/NewPicture.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/SoundDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AlarmDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AppDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/AlarmModel.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/tableViewCellTableViewCell.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/alarmTableViewCell.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/NotificationName+Extension.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/UIWindow+Extension.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/SegueInfo.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Identifier.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Services/DayServices.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/Weekdays.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AlarmSet.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Property.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/build/Assignment.build/Debug-iphoneos/Assignment.build/Objects-normal/arm64/NewPicture~partial.swiftdoc : /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmPIC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmNameVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/TicTacToeVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/NoteVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SoundBrowsingVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/MathVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/AlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SetMethodAlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/SetTimeAlarmVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/ReminderVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/WeekdaysVC.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Persistable.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/NewPicture.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/SoundDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AlarmDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AppDelegate.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/AlarmModel.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/tableViewCellTableViewCell.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Controller/alarmTableViewCell.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/NotificationName+Extension.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/UIWindow+Extension.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/SegueInfo.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Identifier.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Services/DayServices.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Model/Weekdays.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/AlarmSet.swift /Users/mac/Desktop/IOS_VNM/Assignment_iOS_Team_VNM/Assignment/Function/Property.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MediaPlayer.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
D
// Written in the D programming language. module windows.interactioncontext; public import windows.core; public import windows.com : HRESULT; public import windows.menusandresources : POINTER_INPUT_TYPE; public import windows.pointerinput : POINTER_INFO; extern(Windows) @nogc nothrow: // Enums ///Specifies the interaction states used for configuring an Interaction Context object. Interactions can be static ///(single contact with no manipulation, such as tap, double tap, right tap, press and hold) or dynamic (one or more ///contacts with manipulation, such as translation, rotation, or scaling). alias INTERACTION_ID = int; enum : int { ///Not used. INTERACTION_ID_NONE = 0x00000000, ///A compound gesture that supports translation, rotation, and scaling (dynamic). INTERACTION_ID_MANIPULATION = 0x00000001, ///A tap gesture (static). INTERACTION_ID_TAP = 0x00000002, ///A right click gesture (static), regardless of input device. Typically used for displaying a context menu. <ul> ///<li>Right mouse button click</li> <li>Pen barrel button click</li> <li>Touch or pen press and hold</li> </ul> INTERACTION_ID_SECONDARY_TAP = 0x00000003, ///Press and hold gesture (static). INTERACTION_ID_HOLD = 0x00000004, ///Move with mouse or pen (dynamic). INTERACTION_ID_DRAG = 0x00000005, ///Select or move through slide or swipe gestures (dynamic). INTERACTION_ID_CROSS_SLIDE = 0x00000006, ///Maximum number of interactions exceeded. INTERACTION_ID_MAX = 0xffffffff, } ///Specifies the state of an interaction. alias INTERACTION_FLAGS = int; enum : int { ///No flags set. INTERACTION_FLAG_NONE = 0x00000000, ///The beginning of an interaction. INTERACTION_FLAG_BEGIN = 0x00000001, ///The end of an interaction (including inertia). INTERACTION_FLAG_END = 0x00000002, ///Interaction canceled. INTERACTION_FLAG_END also set on cancel. INTERACTION_FLAG_CANCEL = 0x00000004, ///Inertia being processed. INTERACTION_FLAG_INERTIA = 0x00000008, ///Maximum number of interactions exceeded. INTERACTION_FLAG_MAX = 0xffffffff, } ///Specifies the interactions to enable when configuring an Interaction Context object. alias INTERACTION_CONFIGURATION_FLAGS = int; enum : int { ///No interactions enabled. INTERACTION_CONFIGURATION_FLAG_NONE = 0x00000000, ///All manipulations enabled (move, rotate, and scale). INTERACTION_CONFIGURATION_FLAG_MANIPULATION = 0x00000001, ///Translate (move) along the x-axis. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_X = 0x00000002, ///Translate (move) along the y-axis. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_Y = 0x00000004, ///Rotation. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_ROTATION = 0x00000008, ///Scaling. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING = 0x00000010, ///Translation inertia (in direction of move) after contact lifted. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_INERTIA = 0x00000020, ///Rotation inertia after contact lifted. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_ROTATION_INERTIA = 0x00000040, ///Scaling inertia after contact lifted. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING_INERTIA = 0x00000080, ///Interactions are constrained along the x-axis. Rails indicate that slight motions off the primary axis of motion ///are ignored. This makes for a tighter experience for users; when they attempt to pan along a single axis, they ///are constrained to the axis. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_RAILS_X = 0x00000100, ///Interactions are constrained along the y-axis. Rails indicate that slight motions off the primary axis of motion ///are ignored. This makes for a tighter experience for users; when they attempt to pan along a single axis, they ///are constrained to the axis. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_RAILS_Y = 0x00000200, ///Report exact distance from initial contact to end of the interaction. By default, a small distance threshold is ///subtracted from the first manipulation delta reported by the system. This distance threshold is intended to ///account for slight movements of the contact when processing a tap gesture. If this flag is set, the distance ///threshold is not subtracted from the first delta. INTERACTION_CONFIGURATION_FLAG_MANIPULATION_EXACT = 0x00000400, INTERACTION_CONFIGURATION_FLAG_MANIPULATION_MULTIPLE_FINGER_PANNING = 0x00000800, ///All cross-slide interactions enabled. INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE = 0x00000001, ///Cross-slide along the x-axis. INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_HORIZONTAL = 0x00000002, ///Selection using cross-slide. INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_SELECT = 0x00000004, ///Speed bump effect. A speed bump is a region in which the user experiences a slight drag (or friction) during the ///swipe or slide gesture. INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_SPEED_BUMP = 0x00000008, ///Rearrange using cross-slide. INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_REARRANGE = 0x00000010, ///Report exact distance from initial contact to end of the interaction. By default, a small distance threshold is ///subtracted from the first cross-slide delta reported by the system. This distance threshold is intended to ///account for slight movements of the contact when processing a tap gesture. If this flag is set, the distance ///threshold is not subtracted from the first delta. INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_EXACT = 0x00000020, ///Tap. INTERACTION_CONFIGURATION_FLAG_TAP = 0x00000001, ///Double tap. INTERACTION_CONFIGURATION_FLAG_TAP_DOUBLE = 0x00000002, INTERACTION_CONFIGURATION_FLAG_TAP_MULTIPLE_FINGER = 0x00000004, ///Secondary tap. INTERACTION_CONFIGURATION_FLAG_SECONDARY_TAP = 0x00000001, ///Hold. INTERACTION_CONFIGURATION_FLAG_HOLD = 0x00000001, ///Hold with mouse. INTERACTION_CONFIGURATION_FLAG_HOLD_MOUSE = 0x00000002, INTERACTION_CONFIGURATION_FLAG_HOLD_MULTIPLE_FINGER = 0x00000004, ///Drag with mouse. INTERACTION_CONFIGURATION_FLAG_DRAG = 0x00000001, ///Maximum number of interactions exceeded. INTERACTION_CONFIGURATION_FLAG_MAX = 0xffffffff, } ///Specifies the inertia values for a manipulation (translation, rotation, scaling). alias INERTIA_PARAMETER = int; enum : int { ///The rate of deceleration, in degrees/ms². INERTIA_PARAMETER_TRANSLATION_DECELERATION = 0x00000001, ///The relative change in screen location, in DIPs. INERTIA_PARAMETER_TRANSLATION_DISPLACEMENT = 0x00000002, ///The rate of deceleration, in degrees/ms². INERTIA_PARAMETER_ROTATION_DECELERATION = 0x00000003, ///The relative change in angle of rotation, in radians. INERTIA_PARAMETER_ROTATION_ANGLE = 0x00000004, ///The rate of deceleration, in degrees/ms². INERTIA_PARAMETER_EXPANSION_DECELERATION = 0x00000005, ///The relative change in size, in pixels. INERTIA_PARAMETER_EXPANSION_EXPANSION = 0x00000006, ///Maximum number of interactions exceeded. INERTIA_PARAMETER_MAX = 0xffffffff, } ///Specifies the state of the Interaction Context object. alias INTERACTION_STATE = int; enum : int { ///There are no ongoing interactions and all transitional states (inertia, double tap) are complete. It is safe to ///reuse the Interaction Context object. INTERACTION_STATE_IDLE = 0x00000000, ///There is an ongoing interaction. One or more contacts are detected, or inertia is in progress. INTERACTION_STATE_IN_INTERACTION = 0x00000001, ///All contacts are lifted, but the time threshold for double tap has not been crossed. INTERACTION_STATE_POSSIBLE_DOUBLE_TAP = 0x00000002, ///Maximum number of interactions exceeded. INTERACTION_STATE_MAX = 0xffffffff, } ///Specifies properties of the Interaction Context object. alias INTERACTION_CONTEXT_PROPERTY = int; enum : int { ///Measurement units used by the Interaction Context object: himetric (0.01mm) or screen pixels. INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS = 0x00000001, ///UI feedback is provided. INTERACTION_CONTEXT_PROPERTY_INTERACTION_UI_FEEDBACK = 0x00000002, ///Pointer filtering is active. INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS = 0x00000003, ///Maximum number of interactions exceeded. INTERACTION_CONTEXT_PROPERTY_MAX = 0xffffffff, } ///Specifies the cross-slide behavior thresholds. alias CROSS_SLIDE_THRESHOLD = int; enum : int { ///Selection start. CROSS_SLIDE_THRESHOLD_SELECT_START = 0x00000000, ///Speed bump start. CROSS_SLIDE_THRESHOLD_SPEED_BUMP_START = 0x00000001, ///Speed bump end. CROSS_SLIDE_THRESHOLD_SPEED_BUMP_END = 0x00000002, ///Rearrange (drag and drop) start. CROSS_SLIDE_THRESHOLD_REARRANGE_START = 0x00000003, ///The number of thresholds specified. CROSS_SLIDE_THRESHOLD_COUNT = 0x00000004, ///Maximum number of interactions exceeded. CROSS_SLIDE_THRESHOLD_MAX = 0xffffffff, } ///Specifies the state of the cross-slide interaction. alias CROSS_SLIDE_FLAGS = int; enum : int { ///No cross-slide interaction. CROSS_SLIDE_FLAGS_NONE = 0x00000000, ///Cross-slide interaction has crossed a distance threshold and is in select mode. CROSS_SLIDE_FLAGS_SELECT = 0x00000001, ///Cross-slide interaction is in speed bump mode. CROSS_SLIDE_FLAGS_SPEED_BUMP = 0x00000002, ///Cross-slide interaction has crossed the speed bump threshold and is in rearrange (drag and drop) mode. CROSS_SLIDE_FLAGS_REARRANGE = 0x00000004, ///Maximum number of interactions exceeded. CROSS_SLIDE_FLAGS_MAX = 0xffffffff, } ///Specifies the manipulations that can be mapped to mouse wheel rotation. alias MOUSE_WHEEL_PARAMETER = int; enum : int { ///Scrolling/panning distance along the x-axis. MOUSE_WHEEL_PARAMETER_CHAR_TRANSLATION_X = 0x00000001, ///Scrolling/panning distance along the y-axis. MOUSE_WHEEL_PARAMETER_CHAR_TRANSLATION_Y = 0x00000002, ///The relative change in scale, as a multiplier, since the last input message. MOUSE_WHEEL_PARAMETER_DELTA_SCALE = 0x00000003, ///The relative change in rotation, in radians, since the last input message. MOUSE_WHEEL_PARAMETER_DELTA_ROTATION = 0x00000004, ///Paging distance along the x-axis. MOUSE_WHEEL_PARAMETER_PAGE_TRANSLATION_X = 0x00000005, ///Paging distance along the y-axis. MOUSE_WHEEL_PARAMETER_PAGE_TRANSLATION_Y = 0x00000006, ///Maximum number of interactions exceeded. MOUSE_WHEEL_PARAMETER_MAX = 0xffffffff, } alias TAP_PARAMETER = int; enum : int { TAP_PARAMETER_MIN_CONTACT_COUNT = 0x00000000, TAP_PARAMETER_MAX_CONTACT_COUNT = 0x00000001, TAP_PARAMETER_MAX = 0xffffffff, } alias HOLD_PARAMETER = int; enum : int { HOLD_PARAMETER_MIN_CONTACT_COUNT = 0x00000000, HOLD_PARAMETER_MAX_CONTACT_COUNT = 0x00000001, HOLD_PARAMETER_THRESHOLD_RADIUS = 0x00000002, HOLD_PARAMETER_THRESHOLD_START_DELAY = 0x00000003, HOLD_PARAMETER_MAX = 0xffffffff, } alias TRANSLATION_PARAMETER = int; enum : int { TRANSLATION_PARAMETER_MIN_CONTACT_COUNT = 0x00000000, TRANSLATION_PARAMETER_MAX_CONTACT_COUNT = 0x00000001, TRANSLATION_PARAMETER_MAX = 0xffffffff, } ///Specifies the rail states for an interaction. alias MANIPULATION_RAILS_STATE = int; enum : int { ///Rail state not defined yet. MANIPULATION_RAILS_STATE_UNDECIDED = 0x00000000, ///Interaction is not constrained to rail. MANIPULATION_RAILS_STATE_FREE = 0x00000001, ///Interaction is constrained to rail. MANIPULATION_RAILS_STATE_RAILED = 0x00000002, ///Maximum number of interactions exceeded. MANIPULATION_RAILS_STATE_MAX = 0xffffffff, } // Callbacks ///Callback that receives events from an Interaction Context object. ///Params: /// clientData = A pointer to an object that contains information about the client. The value typically points to the object for /// which the member function is called. /// output = Output of the Interaction Context object. alias INTERACTION_CONTEXT_OUTPUT_CALLBACK = void function(void* clientData, const(INTERACTION_CONTEXT_OUTPUT)* output); alias INTERACTION_CONTEXT_OUTPUT_CALLBACK2 = void function(void* clientData, const(INTERACTION_CONTEXT_OUTPUT2)* output); // Structs ///Defines the transformation data for a manipulation. struct MANIPULATION_TRANSFORM { ///Translation along the x-axis, in HIMETRIC units. float translationX; ///Translation along the y-axis, in HIMETRIC units. float translationY; ///Change in scale as a percentage, in HIMETRIC units. float scale; ///Expansion in user-defined coordinates, in HIMETRIC units. float expansion; ///Change in rotation, in radians. float rotation; } ///Defines the velocity data of a manipulation. struct MANIPULATION_VELOCITY { ///The velocity along the x-axis. float velocityX; ///The velocity along the y-axis. float velocityY; ///The velocity expansion. float velocityExpansion; ///The angular velocity. float velocityAngular; } ///Defines the state of a manipulation. struct INTERACTION_ARGUMENTS_MANIPULATION { ///The change in translation, rotation, and scale since the last INTERACTION_CONTEXT_OUTPUT_CALLBACK. MANIPULATION_TRANSFORM delta; ///The accumulated change in translation, rotation, and scale since the interaction started. MANIPULATION_TRANSFORM cumulative; ///The velocities of the accumulated transformations for the interaction. MANIPULATION_VELOCITY velocity; ///One of the constants from MANIPULATION_RAILS_STATE. MANIPULATION_RAILS_STATE railsState; } ///Defines the state of the tap interaction. struct INTERACTION_ARGUMENTS_TAP { ///The number of taps detected. uint count; } ///Defines the state of the cross-slide interaction. struct INTERACTION_ARGUMENTS_CROSS_SLIDE { ///One of the constants from CROSS_SLIDE_FLAGS. CROSS_SLIDE_FLAGS flags; } ///Defines the output of the Interaction Context object. struct INTERACTION_CONTEXT_OUTPUT { ///ID of the Interaction Context object. INTERACTION_ID interactionId; ///One of the constants from INTERACTION_FLAGS. INTERACTION_FLAGS interactionFlags; ///One of the constants from POINTER_INPUT_TYPE. POINTER_INPUT_TYPE inputType; ///The x-coordinate of the input pointer, in HIMETRIC units. float x; ///The y-coordinate of the input pointer, in HIMETRIC units. float y; union arguments { INTERACTION_ARGUMENTS_MANIPULATION manipulation; INTERACTION_ARGUMENTS_TAP tap; INTERACTION_ARGUMENTS_CROSS_SLIDE crossSlide; } } struct INTERACTION_CONTEXT_OUTPUT2 { INTERACTION_ID interactionId; INTERACTION_FLAGS interactionFlags; POINTER_INPUT_TYPE inputType; uint contactCount; uint currentContactCount; float x; float y; union arguments { INTERACTION_ARGUMENTS_MANIPULATION manipulation; INTERACTION_ARGUMENTS_TAP tap; INTERACTION_ARGUMENTS_CROSS_SLIDE crossSlide; } } ///Defines the configuration of an Interaction Context object that enables, disables, or modifies the behavior of an ///interaction. struct INTERACTION_CONTEXT_CONFIGURATION { ///One of the constants from INTERACTION_ID. <div class="alert"><b>Note</b> INTERACTION_FLAG_NONE is not a valid ///value.</div> <div> </div> INTERACTION_ID interactionId; ///The value of this property is a bitmask, which can be set to one or more of the values from ///INTERACTION_CONFIGURATION_FLAGS. This example shows the default setting for ///<b>INTERACTION_CONTEXT_CONFIGURATION</b>. ```cpp INTERACTION_CONFIGURATION_FLAGS enable; } ///Defines the cross-slide threshold and its distance threshold. struct CROSS_SLIDE_PARAMETER { ///One of the constants from CROSS_SLIDE_THRESHOLD. CROSS_SLIDE_THRESHOLD threshold; ///The <i>threshold</i> distance, in DIPs. float distance; } struct HINTERACTIONCONTEXT__ { int unused; } // Functions ///Creates and initializes an Interaction Context object. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT CreateInteractionContext(HINTERACTIONCONTEXT__** interactionContext); ///Destroys the specified Interaction Context object. ///Params: /// interactionContext = The handle of the interaction context. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT DestroyInteractionContext(HINTERACTIONCONTEXT__* interactionContext); ///Registers a callback to receive interaction events from an Interaction Context object. ///Params: /// interactionContext = Handle to the Interaction Context. /// outputCallback = The callback function. /// clientData = A pointer to an object that contains information about the client. The value typically points to the object for /// which the member function is called (<b>this</b>). ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT RegisterOutputCallbackInteractionContext(HINTERACTIONCONTEXT__* interactionContext, INTERACTION_CONTEXT_OUTPUT_CALLBACK outputCallback, void* clientData); @DllImport("NInput") HRESULT RegisterOutputCallbackInteractionContext2(HINTERACTIONCONTEXT__* interactionContext, INTERACTION_CONTEXT_OUTPUT_CALLBACK2 outputCallback, void* clientData); ///Configures the Interaction Context object to process the specified manipulations. ///Params: /// interactionContext = The handle of the Interaction Context. /// configurationCount = The number of interactions being configured. /// configuration = The interactions to enable for this Interaction Context object. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT SetInteractionConfigurationInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint configurationCount, const(INTERACTION_CONTEXT_CONFIGURATION)* configuration); ///Gets interaction configuration state for the Interaction Context object. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. /// configurationCount = Number of interaction configurations. /// configuration = The interactions enabled for this Interaction Context object. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT GetInteractionConfigurationInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint configurationCount, INTERACTION_CONTEXT_CONFIGURATION* configuration); ///Sets Interaction Context object properties. ///Params: /// interactionContext = Handle to the Interaction Context object. /// contextProperty = One of the constants identified by INTERACTION_CONTEXT_PROPERTY. /// value = The value of the constant identified by <i>contextProperty</i>. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT SetPropertyInteractionContext(HINTERACTIONCONTEXT__* interactionContext, INTERACTION_CONTEXT_PROPERTY contextProperty, uint value); ///Gets Interaction Context object properties. ///Params: /// interactionContext = Handle to the Interaction Context object. /// contextProperty = One of the constants identified by INTERACTION_CONTEXT_PROPERTY. /// value = The value of the property. Valid values for <i>contextProperty</i> are: <table> <tr> <th> /// INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS </th> <th>Meaning</th> </tr> <tr> <td width="40%"><a /// id="INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS_HIMETRIC"></a><a /// id="interaction_context_property_measurement_units_himetric"></a><dl> /// <dt><b>INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS_HIMETRIC</b></dt> <dt>0</dt> </dl> </td> <td width="60%"> /// Measurement units are HIMETRIC units (0.01 mm). </td> </tr> <tr> <td width="40%"><a /// id="INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS_SCREEN"></a><a /// id="interaction_context_property_measurement_units_screen"></a><dl> /// <dt><b>INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS_SCREEN</b></dt> <dt>1</dt> </dl> </td> <td width="60%"> /// Measurement units are screen pixels. This is the default value. </td> </tr> </table> <table> <tr> <th> /// INTERACTION_CONTEXT_PROPERTY_UI_FEEDBACK </th> <th>Meaning</th> </tr> <tr> <td width="40%"><a /// id="INTERACTION_CONTEXT_PROPERTY_UI_FEEDBACK_OFF"></a><a /// id="interaction_context_property_ui_feedback_off"></a><dl> /// <dt><b>INTERACTION_CONTEXT_PROPERTY_UI_FEEDBACK_OFF</b></dt> <dt>0</dt> </dl> </td> <td width="60%"> Visual /// feedback for user interactions is disabled (the caller is responsible for displaying visual feedback). For more /// info, see Input Feedback Configuration. </td> </tr> <tr> <td width="40%"><a /// id="INTERACTION_CONTEXT_PROPERTY_UI_FEEDBACK_ON"></a><a id="interaction_context_property_ui_feedback_on"></a><dl> /// <dt><b>INTERACTION_CONTEXT_PROPERTY_UI_FEEDBACK_ON</b></dt> <dt>1</dt> </dl> </td> <td width="60%"> Visual /// feedback for user interactions is enabled. This is the default value. For more info, see Input Feedback /// Configuration. </td> </tr> </table> <table> <tr> <th>INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS</th> /// <th>Meaning</th> </tr> <tr> <td width="40%"><a id="INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS_OFF"></a><a /// id="interaction_context_property_filter_pointers_off"></a><dl> /// <dt><b>INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS_OFF</b></dt> <dt>0</dt> </dl> </td> <td width="60%"> Pointer /// filtering is disabled (all pointer input data is processed). </td> </tr> <tr> <td width="40%"><a /// id="INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS_ON"></a><a /// id="interaction_context_property_filter_pointers_on"></a><dl> /// <dt><b>INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS_ON</b></dt> <dt>1</dt> </dl> </td> <td width="60%"> Pointer /// filtering is enabled (only pointers specified through AddPointerInteractionContext are processed). This is the /// default value. </td> </tr> </table> ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT GetPropertyInteractionContext(HINTERACTIONCONTEXT__* interactionContext, INTERACTION_CONTEXT_PROPERTY contextProperty, uint* value); ///Configures the inertia behavior of a manipulation (translation, rotation, scaling) after the contact is lifted. ///Params: /// interactionContext = The handle of the interaction context. /// inertiaParameter = One of the constants from INERTIA_PARAMETER. /// value = One of the following: <ul> <li>The rate of deceleration, in radians/ms².</li> <li>For translation, the relative /// change in screen location, in HIMETRIC units.</li> <li>For rotation, the relative change in angle of rotation, in /// radianx</li> <li>For scaling, the relative change in size, in HIMETRIC units.</li> </ul> ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT SetInertiaParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, INERTIA_PARAMETER inertiaParameter, float value); ///Gets the inertia behavior of a manipulation (translation, rotation, scaling). ///Params: /// interactionContext = The handle of the interaction context. /// inertiaParameter = One of the constants from INERTIA_PARAMETER. /// value = The value of <i>inertiaParameter</i>. This value is one of the following: <ul> <li>The rate of deceleration, in /// radians/ms².</li> <li>For translation, the relative change in screen location, in HIMETRIC units.</li> <li>For /// rotation, the relative change in angle of rotation, in radians</li> <li>For scaling, the relative change in size, /// in HIMETRIC units.</li> </ul> ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT GetInertiaParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, INERTIA_PARAMETER inertiaParameter, float* value); ///Configures the cross-slide interaction. ///Params: /// interactionContext = The handle of the interaction context. /// parameterCount = Number of parameters to set. /// crossSlideParameters = The cross-slide threshold and its distance threshold. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT SetCrossSlideParametersInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint parameterCount, CROSS_SLIDE_PARAMETER* crossSlideParameters); ///Gets the cross-slide interaction behavior. ///Params: /// interactionContext = The handle of the interaction context. /// threshold = One of the constants from CROSS_SLIDE_THRESHOLD. /// distance = The distance threshold of <i>threshold</i>. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT GetCrossSlideParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, CROSS_SLIDE_THRESHOLD threshold, float* distance); @DllImport("NInput") HRESULT SetTapParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, TAP_PARAMETER parameter, float value); @DllImport("NInput") HRESULT GetTapParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, TAP_PARAMETER parameter, float* value); @DllImport("NInput") HRESULT SetHoldParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, HOLD_PARAMETER parameter, float value); @DllImport("NInput") HRESULT GetHoldParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, HOLD_PARAMETER parameter, float* value); @DllImport("NInput") HRESULT SetTranslationParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, TRANSLATION_PARAMETER parameter, float value); @DllImport("NInput") HRESULT GetTranslationParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, TRANSLATION_PARAMETER parameter, float* value); ///Sets the parameter values for mouse wheel input. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. /// value = The value for <i>parameter</i>. /// parameter = One of the constants identified by MOUSE_WHEEL_PARAMETER. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT SetMouseWheelParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, MOUSE_WHEEL_PARAMETER parameter, float value); ///Gets the mouse wheel state for the Interaction Context object. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. /// value = The value of <i>parameter</i>. /// parameter = One of the constants from MOUSE_WHEEL_PARAMETER. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT GetMouseWheelParameterInteractionContext(HINTERACTIONCONTEXT__* interactionContext, MOUSE_WHEEL_PARAMETER parameter, float* value); ///Resets the interaction state, interaction configuration settings, and all parameters to their initial state. Current ///interactions are cancelled without notifications. Interaction Context must be reconfigured before next use. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT ResetInteractionContext(HINTERACTIONCONTEXT__* interactionContext); ///Gets current Interaction Context state and the time when the context will return to idle state. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. /// pointerInfo = Basic pointer information common to all pointer types. /// state = One of the constants from INTERACTION_STATE. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT GetStateInteractionContext(HINTERACTIONCONTEXT__* interactionContext, const(POINTER_INFO)* pointerInfo, INTERACTION_STATE* state); ///Include the specified pointer in the set of pointers processed by the Interaction Context object. ///Params: /// interactionContext = Handle to the Interaction Context object. /// pointerId = ID of the pointer. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT AddPointerInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint pointerId); ///Remove the specified pointer from the set of pointers processed by the Interaction Context object. ///Params: /// interactionContext = Handle to the Interaction Context object. /// pointerId = ID of the pointer. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT RemovePointerInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint pointerId); ///Processes a set of pointer input frames. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. /// entriesCount = Number of frames to process. /// pointerCount = Number of pointers in each frame. /// pointerInfo = Pointer to the array of frames (of size <i>entriesCount</i>). ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT ProcessPointerFramesInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint entriesCount, uint pointerCount, const(POINTER_INFO)* pointerInfo); ///Adds the history for a single input pointer to the buffer of the Interaction Context object. ///Params: /// interactionContext = The handle of the interaction context. /// entriesCount = The number of entries in the pointer history. /// pointerInfo = Basic pointer information common to all pointer types. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT BufferPointerPacketsInteractionContext(HINTERACTIONCONTEXT__* interactionContext, uint entriesCount, const(POINTER_INFO)* pointerInfo); ///Process buffered packets at the end of a pointer input frame. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT ProcessBufferedPacketsInteractionContext(HINTERACTIONCONTEXT__* interactionContext); ///Sends timer input to the Interaction Context object for inertia processing. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT ProcessInertiaInteractionContext(HINTERACTIONCONTEXT__* interactionContext); ///Sets the interaction state to INTERACTION_STATE_IDLE and leaves all interaction configuration settings and parameters ///intact. Current interactions are cancelled and notifications sent as required. Interaction Context does not have to ///be reconfigured before next use. ///Params: /// interactionContext = Handle to the Interaction Context object. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT StopInteractionContext(HINTERACTIONCONTEXT__* interactionContext); ///Sets the center point, and the pivot radius from the center point, for a rotation manipulation using a single input ///pointer. ///Params: /// interactionContext = Pointer to a handle for the Interaction Context. /// x = The x-coordinate for the screen location of the center point. /// y = The y-coordinate for the screen location of the center point. /// radius = The offset between the center point and the single input pointer, in HIMETRIC units. ///Returns: /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// @DllImport("NInput") HRESULT SetPivotInteractionContext(HINTERACTIONCONTEXT__* interactionContext, float x, float y, float radius);
D
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module org.eclipse.swt.widgets.ToolBar; import org.eclipse.swt.SWT; import org.eclipse.swt.SWTException; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.internal.ImageList; import org.eclipse.swt.internal.win32.OS; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.ToolItem; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Event; import java.lang.all; /** * Instances of this class support the layout of selectable * tool bar items. * <p> * The item children that may be added to instances of this class * must be of type <code>ToolItem</code>. * </p><p> * Note that although this class is a subclass of <code>Composite</code>, * it does not make sense to add <code>Control</code> children to it, * or set a layout on it. * </p><p> * <dl> * <dt><b>Styles:</b></dt> * <dd>FLAT, WRAP, RIGHT, HORIZONTAL, VERTICAL, SHADOW_OUT</dd> * <dt><b>Events:</b></dt> * <dd>(none)</dd> * </dl> * <p> * Note: Only one of the styles HORIZONTAL and VERTICAL may be specified. * </p><p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> * * @see <a href="http://www.eclipse.org/swt/snippets/#toolbar">ToolBar, ToolItem snippets</a> * @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample</a> * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class ToolBar : Composite { alias Composite.computeSize computeSize; alias Composite.setBackgroundImage setBackgroundImage; alias Composite.setBounds setBounds; alias Composite.windowProc windowProc; int lastFocusId; ToolItem [] items; bool ignoreResize, ignoreMouse; ImageList imageList, disabledImageList, hotImageList; mixin(gshared!(`private static /+const+/ WNDPROC ToolBarProc;`)); mixin(gshared!(`static const TCHAR[] ToolBarClass = OS.TOOLBARCLASSNAME;`)); mixin(gshared!(`private static bool static_this_completed = false;`)); mixin(sharedStatic_This!(`{ if( static_this_completed ){ return; } synchronized { if( static_this_completed ){ return; } WNDCLASS lpWndClass; OS.GetClassInfo (null, ToolBarClass.ptr, &lpWndClass); ToolBarProc = lpWndClass.lpfnWndProc; static_this_completed = true; } }`)); /* * From the Windows SDK for TB_SETBUTTONSIZE: * * "If an application does not explicitly * set the button size, the size defaults * to 24 by 22 pixels". */ static const int DEFAULT_WIDTH = 24; static const int DEFAULT_HEIGHT = 22; /** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a composite control which will be the parent of the new instance (cannot be null) * @param style the style of control to construct * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT#FLAT * @see SWT#WRAP * @see SWT#RIGHT * @see SWT#HORIZONTAL * @see SWT#SHADOW_OUT * @see SWT#VERTICAL * @see Widget#checkSubclass() * @see Widget#getStyle() */ public this (Composite parent, int style) { static_this(); super (parent, checkStyle (style)); /* * Ensure that either of HORIZONTAL or VERTICAL is set. * NOTE: HORIZONTAL and VERTICAL have the same values * as H_SCROLL and V_SCROLL so it is necessary to first * clear these bits to avoid scroll bars and then reset * the bits using the original style supplied by the * programmer. * * NOTE: The CCS_VERT style cannot be applied when the * widget is created because of this conflict. */ if ((style & SWT.VERTICAL) !is 0) { this.style |= SWT.VERTICAL; int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); /* * Feature in Windows. When a tool bar has the style * TBSTYLE_LIST and has a drop down item, Window leaves * too much padding around the button. This affects * every button in the tool bar and makes the preferred * height too big. The fix is to set the TBSTYLE_LIST * when the tool bar contains both text and images. * * NOTE: Tool bars with CCS_VERT must have TBSTYLE_LIST * set before any item is added or the tool bar does * not lay out properly. The work around does not run * in this case. */ if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) { if ((style & SWT.RIGHT) !is 0) bits |= OS.TBSTYLE_LIST; } OS.SetWindowLong (handle, OS.GWL_STYLE, bits | OS.CCS_VERT); } else { this.style |= SWT.HORIZONTAL; } } override int callWindowProc (HWND hwnd, int msg, int wParam, int lParam) { if (handle is null) return 0; /* * Bug in Windows. For some reason, during the processing * of WM_SYSCHAR, the tool bar window proc does not call the * default window proc causing mnemonics for the menu bar * to be ignored. The fix is to always call the default * window proc for WM_SYSCHAR. */ if (msg is OS.WM_SYSCHAR) { return OS.DefWindowProc (hwnd, msg, wParam, lParam); } return OS.CallWindowProc (ToolBarProc, hwnd, msg, wParam, lParam); } static int checkStyle (int style) { /* * On Windows, only flat tool bars can be traversed. */ if ((style & SWT.FLAT) is 0) style |= SWT.NO_FOCUS; /* * A vertical tool bar cannot wrap because TB_SETROWS * fails when the toolbar has TBSTYLE_WRAPABLE. */ if ((style & SWT.VERTICAL) !is 0) style &= ~SWT.WRAP; /* * Even though it is legal to create this widget * with scroll bars, they serve no useful purpose * because they do not automatically scroll the * widget's client area. The fix is to clear * the SWT style. */ return style & ~(SWT.H_SCROLL | SWT.V_SCROLL); } override void checkBuffered () { super.checkBuffered (); if (OS.COMCTL32_MAJOR >= 6) style |= SWT.DOUBLE_BUFFERED; } override protected void checkSubclass () { if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS); } override public Point computeSize (int wHint, int hHint, bool changed) { checkWidget (); int width = 0, height = 0; if ((style & SWT.VERTICAL) !is 0) { RECT rect; TBBUTTON lpButton; int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); for (int i=0; i<count; i++) { OS.SendMessage (handle, OS.TB_GETITEMRECT, i, &rect); height = Math.max (height, rect.bottom); OS.SendMessage (handle, OS.TB_GETBUTTON, i, &lpButton); if ((lpButton.fsStyle & OS.BTNS_SEP) !is 0) { TBBUTTONINFO info; info.cbSize = TBBUTTONINFO.sizeof; info.dwMask = OS.TBIF_SIZE; OS.SendMessage (handle, OS.TB_GETBUTTONINFO, lpButton.idCommand, &info); width = Math.max (width, cast(int)info.cx); } else { width = Math.max (width, rect.right); } } } else { RECT oldRect; OS.GetWindowRect (handle, &oldRect); int oldWidth = oldRect.right - oldRect.left; int oldHeight = oldRect.bottom - oldRect.top; int border = getBorderWidth (); int newWidth = wHint is SWT.DEFAULT ? 0x3FFF : wHint + border * 2; int newHeight = hHint is SWT.DEFAULT ? 0x3FFF : hHint + border * 2; bool redraw = drawCount is 0 && OS.IsWindowVisible (handle); ignoreResize = true; if (redraw) OS.UpdateWindow (handle); int flags = OS.SWP_NOACTIVATE | OS.SWP_NOMOVE | OS.SWP_NOREDRAW | OS.SWP_NOZORDER; SetWindowPos (handle, null, 0, 0, newWidth, newHeight, flags); int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); if (count !is 0) { RECT rect; OS.SendMessage (handle, OS.TB_GETITEMRECT, count - 1, &rect); width = Math.max (width, rect.right); height = Math.max (height, rect.bottom); } SetWindowPos (handle, null, 0, 0, oldWidth, oldHeight, flags); if (redraw) OS.ValidateRect (handle, null); ignoreResize = false; } /* * From the Windows SDK for TB_SETBUTTONSIZE: * * "If an application does not explicitly * set the button size, the size defaults * to 24 by 22 pixels". */ if (width is 0) width = DEFAULT_WIDTH; if (height is 0) height = DEFAULT_HEIGHT; if (wHint !is SWT.DEFAULT) width = wHint; if (hHint !is SWT.DEFAULT) height = hHint; Rectangle trim = computeTrim (0, 0, width, height); width = trim.width; height = trim.height; return new Point (width, height); } override public Rectangle computeTrim (int x, int y, int width, int height) { checkWidget (); Rectangle trim = super.computeTrim (x, y, width, height); int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if ((bits & OS.CCS_NODIVIDER) is 0) trim.height += 2; return trim; } override void createHandle () { super.createHandle (); state &= ~CANVAS; /* * Feature in Windows. When TBSTYLE_FLAT is used to create * a flat toolbar, for some reason TBSTYLE_TRANSPARENT is * also set. This causes the toolbar to flicker when it is * moved or resized. The fix is to clear TBSTYLE_TRANSPARENT. * * NOTE: This work around is unnecessary on XP. There is no * flickering and clearing the TBSTYLE_TRANSPARENT interferes * with the XP theme. */ if ((style & SWT.FLAT) !is 0) { if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); bits &= ~OS.TBSTYLE_TRANSPARENT; OS.SetWindowLong (handle, OS.GWL_STYLE, bits); } } /* * Feature in Windows. Despite the fact that the * tool tip text contains \r\n, the tooltip will * not honour the new line unless TTM_SETMAXTIPWIDTH * is set. The fix is to set TTM_SETMAXTIPWIDTH to * a large value. */ /* * These lines are intentionally commented. The tool * bar currently sets this value to 300 so it is not * necessary to set TTM_SETMAXTIPWIDTH. */ // int /*long*/ hwndToolTip = OS.SendMessage (handle, OS.TB_GETTOOLTIPS, 0, 0); // OS.SendMessage (hwndToolTip, OS.TTM_SETMAXTIPWIDTH, 0, 0x7FFF); /* * Feature in Windows. When the control is created, * it does not use the default system font. A new HFONT * is created and destroyed when the control is destroyed. * This means that a program that queries the font from * this control, uses the font in another control and then * destroys this control will have the font unexpectedly * destroyed in the other control. The fix is to assign * the font ourselves each time the control is created. * The control will not destroy a font that it did not * create. */ HFONT hFont = OS.GetStockObject (OS.SYSTEM_FONT); OS.SendMessage (handle, OS.WM_SETFONT, hFont, 0); /* Set the button struct, bitmap and button sizes */ OS.SendMessage (handle, OS.TB_BUTTONSTRUCTSIZE, TBBUTTON.sizeof, 0); OS.SendMessage (handle, OS.TB_SETBITMAPSIZE, 0, 0); OS.SendMessage (handle, OS.TB_SETBUTTONSIZE, 0, 0); /* Set the extended style bits */ int bits = OS.TBSTYLE_EX_DRAWDDARROWS | OS.TBSTYLE_EX_MIXEDBUTTONS | OS.TBSTYLE_EX_HIDECLIPPEDBUTTONS; if (OS.COMCTL32_MAJOR >= 6) bits |= OS.TBSTYLE_EX_DOUBLEBUFFER; OS.SendMessage (handle, OS.TB_SETEXTENDEDSTYLE, 0, bits); } void createItem (ToolItem item, int index) { int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); if (!(0 <= index && index <= count)) error (SWT.ERROR_INVALID_RANGE); int id = 0; while (id < items.length && items [id] !is null) id++; if (id is items.length) { ToolItem [] newItems = new ToolItem [items.length + 4]; System.arraycopy (items, 0, newItems, 0, items.length); items = newItems; } int bits = item.widgetStyle (); TBBUTTON lpButton; lpButton.idCommand = id; lpButton.fsStyle = cast(byte) bits; lpButton.fsState = cast(byte) OS.TBSTATE_ENABLED; /* * Bug in Windows. Despite the fact that the image list * index has never been set for the item, Windows always * assumes that the image index for the item is valid. * When an item is inserted, the image index is zero. * Therefore, when the first image is inserted and is * assigned image index zero, every item draws with this * image. The fix is to set the image index to none * when the item is created. This is not necessary in * the case when the item has the BTNS_SEP style because * separators cannot show images. */ if ((bits & OS.BTNS_SEP) is 0) lpButton.iBitmap = OS.I_IMAGENONE; if (OS.SendMessage (handle, OS.TB_INSERTBUTTON, index, &lpButton) is 0) { error (SWT.ERROR_ITEM_NOT_ADDED); } items [item.id = id] = item; if ((style & SWT.VERTICAL) !is 0) setRowCount (count + 1); layoutItems (); } override void createWidget () { super.createWidget (); items = new ToolItem [4]; lastFocusId = -1; } override int defaultBackground () { static if (OS.IsWinCE) return OS.GetSysColor (OS.COLOR_BTNFACE); return super.defaultBackground (); } void destroyItem (ToolItem item) { TBBUTTONINFO info; info.cbSize = TBBUTTONINFO.sizeof; info.dwMask = OS.TBIF_IMAGE | OS.TBIF_STYLE; int index = OS.SendMessage (handle, OS.TB_GETBUTTONINFO, item.id, &info); /* * Feature in Windows. For some reason, a tool item that has * the style BTNS_SEP does not return I_IMAGENONE when queried * for an image index, despite the fact that no attempt has been * made to assign an image to the item. As a result, operations * on an image list that use the wrong index cause random results. * The fix is to ensure that the tool item is not a separator * before using the image index. Since separators cannot have * an image and one is never assigned, this is not a problem. */ if ((info.fsStyle & OS.BTNS_SEP) is 0 && info.iImage !is OS.I_IMAGENONE) { if (imageList !is null) imageList.put (info.iImage, null); if (hotImageList !is null) hotImageList.put (info.iImage, null); if (disabledImageList !is null) disabledImageList.put (info.iImage, null); } OS.SendMessage (handle, OS.TB_DELETEBUTTON, index, 0); if (item.id is lastFocusId) lastFocusId = -1; items [item.id] = null; item.id = -1; int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); if (count is 0) { if (imageList !is null) { OS.SendMessage (handle, OS.TB_SETIMAGELIST, 0, 0); display.releaseToolImageList (imageList); } if (hotImageList !is null) { OS.SendMessage (handle, OS.TB_SETHOTIMAGELIST, 0, 0); display.releaseToolHotImageList (hotImageList); } if (disabledImageList !is null) { OS.SendMessage (handle, OS.TB_SETDISABLEDIMAGELIST, 0, 0); display.releaseToolDisabledImageList (disabledImageList); } imageList = hotImageList = disabledImageList = null; items = new ToolItem [4]; } if ((style & SWT.VERTICAL) !is 0) setRowCount (count - 1); layoutItems (); } override void enableWidget (bool enabled) { super.enableWidget (enabled); /* * Bug in Windows. When a tool item with the style * BTNS_CHECK or BTNS_CHECKGROUP is selected and then * disabled, the item does not draw using the disabled * image. The fix is to use the disabled image in all * image lists for the item. * * Feature in Windows. When a tool bar is disabled, * the text draws disabled but the images do not. * The fix is to use the disabled image in all image * lists for all items. */ for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null) { if ((item.style & SWT.SEPARATOR) is 0) { item.updateImages (enabled && item.getEnabled ()); } } } } ImageList getDisabledImageList () { return disabledImageList; } ImageList getHotImageList () { return hotImageList; } ImageList getImageList () { return imageList; } /** * Returns the item at the given, zero-relative index in the * receiver. Throws an exception if the index is out of range. * * @param index the index of the item to return * @return the item at the given index * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li> * </ul> * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public ToolItem getItem (int index) { checkWidget (); int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); if (!(0 <= index && index < count)) error (SWT.ERROR_INVALID_RANGE); TBBUTTON lpButton; int result = OS.SendMessage (handle, OS.TB_GETBUTTON, index, &lpButton); if (result is 0) error (SWT.ERROR_CANNOT_GET_ITEM); return items [lpButton.idCommand]; } /** * Returns the item at the given point in the receiver * or null if no such item exists. The point is in the * coordinate system of the receiver. * * @param point the point used to locate the item * @return the item at the given point * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the point is null</li> * </ul> * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public ToolItem getItem (Point point) { checkWidget (); if (point is null) error (SWT.ERROR_NULL_ARGUMENT); ToolItem [] items = getItems (); for (int i=0; i<items.length; i++) { Rectangle rect = items [i].getBounds (); if (rect.contains (point)) return items [i]; } return null; } /** * Returns the number of items contained in the receiver. * * @return the number of items * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public int getItemCount () { checkWidget (); return OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); } /** * Returns an array of <code>ToolItem</code>s which are the items * in the receiver. * <p> * Note: This is not the actual structure used by the receiver * to maintain its list of items, so modifying the array will * not affect the receiver. * </p> * * @return the items in the receiver * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public ToolItem [] getItems () { checkWidget (); int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); TBBUTTON lpButton; ToolItem [] result = new ToolItem [count]; for (int i=0; i<count; i++) { OS.SendMessage (handle, OS.TB_GETBUTTON, i, &lpButton); result [i] = items [lpButton.idCommand]; } return result; } /** * Returns the number of rows in the receiver. When * the receiver has the <code>WRAP</code> style, the * number of rows can be greater than one. Otherwise, * the number of rows is always one. * * @return the number of items * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public int getRowCount () { checkWidget (); if ((style & SWT.VERTICAL) !is 0) { return OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); } return OS.SendMessage (handle, OS.TB_GETROWS, 0, 0); } /** * Searches the receiver's list starting at the first item * (index 0) until an item is found that is equal to the * argument, and returns the index of that item. If no item * is found, returns -1. * * @param item the search item * @return the index of the item * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the tool item is null</li> * <li>ERROR_INVALID_ARGUMENT - if the tool item has been disposed</li> * </ul> * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public int indexOf (ToolItem item) { checkWidget (); if (item is null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); return OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, item.id, 0); } void layoutItems () { /* * Feature in Windows. When a tool bar has the style * TBSTYLE_LIST and has a drop down item, Window leaves * too much padding around the button. This affects * every button in the tool bar and makes the preferred * height too big. The fix is to set the TBSTYLE_LIST * when the tool bar contains both text and images. * * NOTE: Tool bars with CCS_VERT must have TBSTYLE_LIST * set before any item is added or the tool bar does * not lay out properly. The work around does not run * in this case. */ if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) { if ((style & SWT.RIGHT) !is 0 && (style & SWT.VERTICAL) is 0) { bool hasText = false, hasImage = false; for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null) { if (!hasText) hasText = item.text.length !is 0; if (!hasImage) hasImage = item.image !is null; if (hasText && hasImage) break; } } int oldBits = OS.GetWindowLong (handle, OS.GWL_STYLE), newBits = oldBits; if (hasText && hasImage) { newBits |= OS.TBSTYLE_LIST; } else { newBits &= ~OS.TBSTYLE_LIST; } if (newBits !is oldBits) { setDropDownItems (false); OS.SetWindowLong (handle, OS.GWL_STYLE, newBits); /* * Feature in Windows. For some reason, when the style * is changed to TBSTYLE_LIST, Windows does not lay out * the tool items. The fix is to use WM_SETFONT to force * the tool bar to redraw and lay out. */ auto hFont = cast(HFONT) OS.SendMessage (handle, OS.WM_GETFONT, 0, 0); OS.SendMessage (handle, OS.WM_SETFONT, hFont, 0); setDropDownItems (true); } } } if ((style & SWT.WRAP) !is 0) { OS.SendMessage (handle, OS.TB_AUTOSIZE, 0, 0); } /* * When the tool bar is vertical, make the width of each button * be the width of the widest button in the tool bar. Note that * when the tool bar contains a drop down item, it needs to take * into account extra padding. */ if ((style & SWT.VERTICAL) !is 0) { TBBUTTONINFO info; info.cbSize = TBBUTTONINFO.sizeof; info.dwMask = OS.TBIF_SIZE; int /*long*/ size = OS.SendMessage (handle, OS.TB_GETBUTTONSIZE, 0, 0); info.cx = cast(short) OS.LOWORD (size); int index = 0; while (index < items.length) { ToolItem item = items [index]; if (item !is null && (item.style & SWT.DROP_DOWN) !is 0) break; index++; } if (index < items.length) { int /*long*/ padding = OS.SendMessage (handle, OS.TB_GETPADDING, 0, 0); info.cx += OS.LOWORD (padding) * 2; } for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null && (item.style & SWT.SEPARATOR) is 0) { OS.SendMessage (handle, OS.TB_SETBUTTONINFO, item.id, &info); } } } for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null) item.resizeControl (); } } override bool mnemonicHit (wchar ch) { int key = Display.wcsToMbcs (ch, 0); int id; if (OS.SendMessage (handle, OS.TB_MAPACCELERATOR, key, &id) is 0) { return false; } if ((style & SWT.FLAT) !is 0 && !setTabGroupFocus ()) return false; int index = OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, id, 0); if (index is -1) return false; OS.SendMessage (handle, OS.TB_SETHOTITEM, index, 0); items [id].click (false); return true; } override bool mnemonicMatch (wchar ch) { int key = Display.wcsToMbcs (ch, 0); int id; if (OS.SendMessage (handle, OS.TB_MAPACCELERATOR, key, &id) is 0) { return false; } /* * Feature in Windows. TB_MAPACCELERATOR matches either the mnemonic * character or the first character in a tool item. This behavior is * undocumented and unwanted. The fix is to ensure that the tool item * contains a mnemonic when TB_MAPACCELERATOR returns true. */ int index = OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, id, 0); if (index is -1) return false; return findMnemonic (items [id].text) !is '\0'; } override void releaseChildren (bool destroy) { if (items !is null) { for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null && !item.isDisposed ()) { item.release (false); } } items = null; } super.releaseChildren (destroy); } override void releaseWidget () { super.releaseWidget (); if (imageList !is null) { OS.SendMessage (handle, OS.TB_SETIMAGELIST, 0, 0); display.releaseToolImageList (imageList); } if (hotImageList !is null) { OS.SendMessage (handle, OS.TB_SETHOTIMAGELIST, 0, 0); display.releaseToolHotImageList (hotImageList); } if (disabledImageList !is null) { OS.SendMessage (handle, OS.TB_SETDISABLEDIMAGELIST, 0, 0); display.releaseToolDisabledImageList (disabledImageList); } imageList = hotImageList = disabledImageList = null; } override void removeControl (Control control) { super.removeControl (control); for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null && item.control is control) { item.setControl (null); } } } override void setBackgroundImage (HBITMAP hBitmap) { super.setBackgroundImage (hBitmap); setBackgroundTransparent (hBitmap !is null); } override void setBackgroundPixel (int pixel) { super.setBackgroundPixel (pixel); setBackgroundTransparent (pixel !is -1); } void setBackgroundTransparent (bool transparent) { /* * Feature in Windows. When TBSTYLE_TRANSPARENT is set * in a tool bar that is drawing a background, images in * the image list that include transparency information * do not draw correctly. The fix is to clear and set * TBSTYLE_TRANSPARENT depending on the background color. * * NOTE: This work around is unnecessary on XP. The * TBSTYLE_TRANSPARENT style is never cleared on that * platform. */ if ((style & SWT.FLAT) !is 0) { if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if (!transparent && findBackgroundControl () is null) { bits &= ~OS.TBSTYLE_TRANSPARENT; } else { bits |= OS.TBSTYLE_TRANSPARENT; } OS.SetWindowLong (handle, OS.GWL_STYLE, bits); } } } override void setBounds (int x, int y, int width, int height, int flags) { /* * Feature in Windows. For some reason, when a tool bar is * repositioned more than once using DeferWindowPos () into * the same HDWP, the toolbar redraws more than once, defeating * the purpose of DeferWindowPos (). The fix is to end the * deferred positioning before the next tool bar is added, * ensuring that only one tool bar position is deferred at * any given time. */ if (parent.lpwp !is null) { if (drawCount is 0 && OS.IsWindowVisible (handle)) { parent.setResizeChildren (false); parent.setResizeChildren (true); } } super.setBounds (x, y, width, height, flags); } override void setDefaultFont () { super.setDefaultFont (); OS.SendMessage (handle, OS.TB_SETBITMAPSIZE, 0, 0); OS.SendMessage (handle, OS.TB_SETBUTTONSIZE, 0, 0); } void setDropDownItems (bool set) { /* * Feature in Windows. When the first button in a tool bar * is a drop down item, Window leaves too much padding around * the button. This affects every button in the tool bar and * makes the preferred height too big. The fix is clear the * BTNS_DROPDOWN before Windows lays out the tool bar and set * the bit afterwards. * * NOTE: This work around only runs when the tool bar contains * both text and images. */ if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) { bool hasText = false, hasImage = false; for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null) { if (!hasText) hasText = item.text.length !is 0; if (!hasImage) hasImage = item.image !is null; if (hasText && hasImage) break; } } if (hasImage && !hasText) { for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null && (item.style & SWT.DROP_DOWN) !is 0) { TBBUTTONINFO info; info.cbSize = TBBUTTONINFO.sizeof; info.dwMask = OS.TBIF_STYLE; OS.SendMessage (handle, OS.TB_GETBUTTONINFO, item.id, &info); if (set) { info.fsStyle |= OS.BTNS_DROPDOWN; } else { info.fsStyle &= ~OS.BTNS_DROPDOWN; } OS.SendMessage (handle, OS.TB_SETBUTTONINFO, item.id, &info); } } } } } void setDisabledImageList (ImageList imageList) { if (disabledImageList is imageList) return; HBITMAP hImageList; if ((disabledImageList = imageList) !is null) { hImageList = disabledImageList.getHandle (); } setDropDownItems (false); OS.SendMessage (handle, OS.TB_SETDISABLEDIMAGELIST, 0, hImageList); setDropDownItems (true); } override public void setFont (Font font) { checkWidget (); setDropDownItems (false); super.setFont (font); setDropDownItems (true); /* * Bug in Windows. When WM_SETFONT is sent to a tool bar * that contains only separators, causes the bitmap and button * sizes to be set. The fix is to reset these sizes after the font * has been changed when the tool bar contains only separators. */ int index = 0; int mask = SWT.PUSH | SWT.CHECK | SWT.RADIO | SWT.DROP_DOWN; while (index < items.length) { ToolItem item = items [index]; if (item !is null && (item.style & mask) !is 0) break; index++; } if (index is items.length) { OS.SendMessage (handle, OS.TB_SETBITMAPSIZE, 0, 0); OS.SendMessage (handle, OS.TB_SETBUTTONSIZE, 0, 0); } layoutItems (); } void setHotImageList (ImageList imageList) { if (hotImageList is imageList) return; HBITMAP hImageList; if ((hotImageList = imageList) !is null) { hImageList = hotImageList.getHandle (); } setDropDownItems (false); OS.SendMessage (handle, OS.TB_SETHOTIMAGELIST, 0, hImageList); setDropDownItems (true); } void setImageList (ImageList imageList) { if (this.imageList is imageList) return; HBITMAP hImageList; if ((this.imageList = imageList) !is null) { hImageList = imageList.getHandle (); } setDropDownItems (false); OS.SendMessage (handle, OS.TB_SETIMAGELIST, 0, hImageList); setDropDownItems (true); } override public bool setParent (Composite parent) { checkWidget (); if (!super.setParent (parent)) return false; OS.SendMessage (handle, OS.TB_SETPARENT, parent.handle, 0); return true; } override public void setRedraw (bool redraw) { checkWidget (); setDropDownItems (false); super.setRedraw (redraw); setDropDownItems (true); } void setRowCount (int count) { if ((style & SWT.VERTICAL) !is 0) { /* * Feature in Windows. When the TB_SETROWS is used to set the * number of rows in a tool bar, the tool bar is resized to show * the items. This is unexpected. The fix is to save and restore * the current size of the tool bar. */ RECT rect; OS.GetWindowRect (handle, &rect); OS.MapWindowPoints (null, parent.handle, cast(POINT*) &rect, 2); ignoreResize = true; /* * Feature in Windows. When the last button in a tool bar has the * style BTNS_SEP and TB_SETROWS is used to set the number of rows * in the tool bar, depending on the number of buttons, the toolbar * will wrap items with the style BTNS_CHECK, even when the fLarger * flags is used to force the number of rows to be larger than the * number of items. The fix is to set the number of rows to be two * larger than the actual number of rows in the tool bar. When items * are being added, as long as the number of rows is at least one * item larger than the count, the tool bar is laid out properly. * When items are being removed, setting the number of rows to be * one more than the item count has no effect. The number of rows * is already one more causing TB_SETROWS to do nothing. Therefore, * choosing two instead of one as the row increment fixes both cases. */ count += 2; OS.SendMessage (handle, OS.TB_SETROWS, OS.MAKEWPARAM (count, 1), 0); int flags = OS.SWP_NOACTIVATE | OS.SWP_NOMOVE | OS.SWP_NOZORDER; SetWindowPos (handle, null, 0, 0, rect.right - rect.left, rect.bottom - rect.top, flags); ignoreResize = false; } } override bool setTabItemFocus () { int index = 0; while (index < items.length) { ToolItem item = items [index]; if (item !is null && (item.style & SWT.SEPARATOR) is 0) { if (item.getEnabled ()) break; } index++; } if (index is items.length) return false; return super.setTabItemFocus (); } override String toolTipText (NMTTDISPINFO* hdr) { if ((hdr.uFlags & OS.TTF_IDISHWND) !is 0) { return null; } /* * Bug in Windows. On Windows XP, when TB_SETHOTITEM is * used to set the hot item, the tool bar control attempts * to display the tool tip, even when the cursor is not in * the hot item. The fix is to detect this case and fail to * provide the string, causing no tool tip to be displayed. */ if (!hasCursor ()) return ""; //$NON-NLS-1$ int index = hdr.hdr.idFrom; auto hwndToolTip = cast(HWND) OS.SendMessage (handle, OS.TB_GETTOOLTIPS, 0, 0); if (hwndToolTip is hdr.hdr.hwndFrom) { /* * Bug in Windows. For some reason the reading order * in NMTTDISPINFO is sometimes set incorrectly. The * reading order seems to change every time the mouse * enters the control from the top edge. The fix is * to explicitly set TTF_RTLREADING. */ if ((style & SWT.RIGHT_TO_LEFT) !is 0) { hdr.uFlags |= OS.TTF_RTLREADING; } else { hdr.uFlags &= ~OS.TTF_RTLREADING; } if (toolTipText_ !is null) return ""; //$NON-NLS-1$ if (0 <= index && index < items.length) { ToolItem item = items [index]; if (item !is null) return item.toolTipText; } } return super.toolTipText (hdr); } override int widgetStyle () { int bits = super.widgetStyle () | OS.CCS_NORESIZE | OS.TBSTYLE_TOOLTIPS | OS.TBSTYLE_CUSTOMERASE; if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) bits |= OS.TBSTYLE_TRANSPARENT; if ((style & SWT.SHADOW_OUT) is 0) bits |= OS.CCS_NODIVIDER; if ((style & SWT.WRAP) !is 0) bits |= OS.TBSTYLE_WRAPABLE; if ((style & SWT.FLAT) !is 0) bits |= OS.TBSTYLE_FLAT; /* * Feature in Windows. When a tool bar has the style * TBSTYLE_LIST and has a drop down item, Window leaves * too much padding around the button. This affects * every button in the tool bar and makes the preferred * height too big. The fix is to set the TBSTYLE_LIST * when the tool bar contains both text and images. * * NOTE: Tool bars with CCS_VERT must have TBSTYLE_LIST * set before any item is added or the tool bar does * not lay out properly. The work around does not run * in this case. */ if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { if ((style & SWT.RIGHT) !is 0) bits |= OS.TBSTYLE_LIST; } return bits; } override String windowClass () { return TCHARsToStr(ToolBarClass); } override int windowProc () { return cast(int)ToolBarProc; } override LRESULT WM_CAPTURECHANGED (int wParam, int lParam) { LRESULT result = super.WM_CAPTURECHANGED (wParam, lParam); if (result !is null) return result; /* * Bug in Windows. When the tool bar loses capture while an * item is pressed, the item remains pressed. The fix is * unpress all items using TB_SETSTATE and TBSTATE_PRESSED. */ for (int i=0; i<items.length; i++) { ToolItem item = items [i]; if (item !is null) { int fsState = OS.SendMessage (handle, OS.TB_GETSTATE, item.id, 0); if ((fsState & OS.TBSTATE_PRESSED) !is 0) { fsState &= ~OS.TBSTATE_PRESSED; OS.SendMessage (handle, OS.TB_SETSTATE, item.id, fsState); } } } return result; } override LRESULT WM_CHAR (int wParam, int lParam) { LRESULT result = super.WM_CHAR (wParam, lParam); if (result !is null) return result; switch (wParam) { case ' ': int index = OS.SendMessage (handle, OS.TB_GETHOTITEM, 0, 0); if (index !is -1) { TBBUTTON lpButton; int code = OS.SendMessage (handle, OS.TB_GETBUTTON, index, &lpButton); if (code !is 0) { items [lpButton.idCommand].click (false); return LRESULT.ZERO; } } default: } return result; } override LRESULT WM_COMMAND (int wParam, int lParam) { /* * Feature in Windows. When the toolbar window * proc processes WM_COMMAND, it forwards this * message to its parent. This is done so that * children of this control that send this message * type to their parent will notify not only * this control but also the parent of this control, * which is typically the application window and * the window that is looking for the message. * If the control did not forward the message, * applications would have to subclass the control * window to see the message. Because the control * window is subclassed by SWT, the message * is delivered twice, once by SWT and once when * the message is forwarded by the window proc. * The fix is to avoid calling the window proc * for this control. */ LRESULT result = super.WM_COMMAND (wParam, lParam); if (result !is null) return result; return LRESULT.ZERO; } override LRESULT WM_ERASEBKGND (int wParam, int lParam) { LRESULT result = super.WM_ERASEBKGND (wParam, lParam); /* * Bug in Windows. For some reason, NM_CUSTOMDRAW with * CDDS_PREERASE and CDDS_POSTERASE is never sent for * versions of Windows earlier than XP. The fix is to * draw the background in WM_ERASEBKGND; */ if (findBackgroundControl () !is null) { if (OS.COMCTL32_MAJOR < 6) { drawBackground (cast(HANDLE) wParam); return LRESULT.ONE; } } return result; } override LRESULT WM_GETDLGCODE (int wParam, int lParam) { LRESULT result = super.WM_GETDLGCODE (wParam, lParam); /* * Return DLGC_BUTTON so that mnemonics will be * processed without needing to press the ALT key * when the widget has focus. */ if (result !is null) return result; return new LRESULT (OS.DLGC_BUTTON); } override LRESULT WM_KEYDOWN (int wParam, int lParam) { LRESULT result = super.WM_KEYDOWN (wParam, lParam); if (result !is null) return result; switch (wParam) { case OS.VK_SPACE: /* * Ensure that the window proc does not process VK_SPACE * so that it can be handled in WM_CHAR. This allows the * application the opportunity to cancel the operation. */ return LRESULT.ZERO; default: } return result; } override LRESULT WM_KILLFOCUS (int wParam, int lParam) { int index = OS.SendMessage (handle, OS.TB_GETHOTITEM, 0, 0); TBBUTTON lpButton; int code = OS.SendMessage (handle, OS.TB_GETBUTTON, index, &lpButton); if (code !is 0) lastFocusId = lpButton.idCommand; return super.WM_KILLFOCUS (wParam, lParam); } override LRESULT WM_LBUTTONDOWN (int wParam, int lParam) { if (ignoreMouse) return null; return super.WM_LBUTTONDOWN (wParam, lParam); } override LRESULT WM_LBUTTONUP (int wParam, int lParam) { if (ignoreMouse) return null; return super.WM_LBUTTONUP (wParam, lParam); } override LRESULT WM_MOUSELEAVE (int wParam, int lParam) { LRESULT result = super.WM_MOUSELEAVE (wParam, lParam); if (result !is null) return result; /* * Bug in Windows. On XP, when a tooltip is * hidden due to a time out or mouse press, * the tooltip remains active although no * longer visible and won't show again until * another tooltip becomes active. If there * is only one tooltip in the window, it will * never show again. The fix is to remove the * current tooltip and add it again every time * the mouse leaves the control. */ if (OS.COMCTL32_MAJOR >= 6) { TOOLINFO lpti; lpti.cbSize = OS.TOOLINFO_sizeof; auto hwndToolTip = cast(HWND) OS.SendMessage (handle, OS.TB_GETTOOLTIPS, 0, 0); if (OS.SendMessage (hwndToolTip, OS.TTM_GETCURRENTTOOL, 0, &lpti) !is 0) { if ((lpti.uFlags & OS.TTF_IDISHWND) is 0) { OS.SendMessage (hwndToolTip, OS.TTM_DELTOOL, 0, &lpti); OS.SendMessage (hwndToolTip, OS.TTM_ADDTOOL, 0, &lpti); } } } return result; } override LRESULT WM_NOTIFY (int wParam, int lParam) { /* * Feature in Windows. When the toolbar window * proc processes WM_NOTIFY, it forwards this * message to its parent. This is done so that * children of this control that send this message * type to their parent will notify not only * this control but also the parent of this control, * which is typically the application window and * the window that is looking for the message. * If the control did not forward the message, * applications would have to subclass the control * window to see the message. Because the control * window is subclassed by SWT, the message * is delivered twice, once by SWT and once when * the message is forwarded by the window proc. * The fix is to avoid calling the window proc * for this control. */ LRESULT result = super.WM_NOTIFY (wParam, lParam); if (result !is null) return result; return LRESULT.ZERO; } override LRESULT WM_SETFOCUS (int wParam, int lParam) { LRESULT result = super.WM_SETFOCUS (wParam, lParam); if (lastFocusId !is -1 && handle is OS.GetFocus ()) { int index = OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, lastFocusId, 0); OS.SendMessage (handle, OS.TB_SETHOTITEM, index, 0); } return result; } override LRESULT WM_SIZE (int wParam, int lParam) { if (ignoreResize) { int /*long*/ code = callWindowProc (handle, OS.WM_SIZE, wParam, lParam); if (code is 0) return LRESULT.ZERO; return new LRESULT (code); } LRESULT result = super.WM_SIZE (wParam, lParam); if (isDisposed ()) return result; /* * Bug in Windows. The code in Windows that determines * when tool items should wrap seems to use the window * bounds rather than the client area. Unfortunately, * tool bars with the style TBSTYLE_EX_HIDECLIPPEDBUTTONS * use the client area. This means that buttons which * overlap the border are hidden before they are wrapped. * The fix is to compute TBSTYLE_EX_HIDECLIPPEDBUTTONS * and set it each time the tool bar is resized. */ if ((style & SWT.BORDER) !is 0 && (style & SWT.WRAP) !is 0) { RECT windowRect; OS.GetWindowRect (handle, &windowRect); int index = 0, border = getBorderWidth () * 2; RECT rect; int count = OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); while (index < count) { OS.SendMessage (handle, OS.TB_GETITEMRECT, index, &rect); OS.MapWindowPoints (handle, null, cast(POINT*) &rect, 2); if (rect.right > windowRect.right - border * 2) break; index++; } int bits = OS.SendMessage (handle, OS.TB_GETEXTENDEDSTYLE, 0, 0); if (index is count) { bits |= OS.TBSTYLE_EX_HIDECLIPPEDBUTTONS; } else { bits &= ~OS.TBSTYLE_EX_HIDECLIPPEDBUTTONS; } OS.SendMessage (handle, OS.TB_SETEXTENDEDSTYLE, 0, bits); } layoutItems (); return result; } override LRESULT WM_WINDOWPOSCHANGING (int wParam, int lParam) { LRESULT result = super.WM_WINDOWPOSCHANGING (wParam, lParam); if (result !is null) return result; if (ignoreResize) return result; /* * Bug in Windows. When a flat tool bar is wrapped, * Windows draws a horizontal separator between the * rows. The tool bar does not draw the first or * the last two pixels of this separator. When the * toolbar is resized to be bigger, only the new * area is drawn and the last two pixels, which are * blank are drawn over by separator. This leaves * garbage on the screen. The fix is to damage the * pixels. */ if (drawCount !is 0) return result; if ((style & SWT.WRAP) is 0) return result; if (!OS.IsWindowVisible (handle)) return result; if (OS.SendMessage (handle, OS.TB_GETROWS, 0, 0) is 1) { return result; } WINDOWPOS* lpwp = cast(WINDOWPOS*)lParam; //OS.MoveMemory (lpwp, lParam, WINDOWPOS.sizeof); if ((lpwp.flags & (OS.SWP_NOSIZE | OS.SWP_NOREDRAW)) !is 0) { return result; } RECT oldRect; OS.GetClientRect (handle, &oldRect); RECT newRect; OS.SetRect (&newRect, 0, 0, lpwp.cx, lpwp.cy); OS.SendMessage (handle, OS.WM_NCCALCSIZE, 0, &newRect); int oldWidth = oldRect.right - oldRect.left; int newWidth = newRect.right - newRect.left; if (newWidth > oldWidth) { RECT rect; int newHeight = newRect.bottom - newRect.top; OS.SetRect (&rect, oldWidth - 2, 0, oldWidth, newHeight); OS.InvalidateRect (handle, &rect, false); } return result; } override LRESULT wmCommandChild (int wParam, int lParam) { ToolItem child = items [OS.LOWORD (wParam)]; if (child is null) return null; return child.wmCommandChild (wParam, lParam); } override LRESULT wmNotifyChild (NMHDR* hdr, int wParam, int lParam) { switch (hdr.code) { case OS.TBN_DROPDOWN: NMTOOLBAR* lpnmtb = cast(NMTOOLBAR*)lParam; //OS.MoveMemory (lpnmtb, lParam, NMTOOLBAR.sizeof); ToolItem child = items [lpnmtb.iItem]; if (child !is null) { Event event = new Event (); event.detail = SWT.ARROW; int index = OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, lpnmtb.iItem, 0); RECT rect; OS.SendMessage (handle, OS.TB_GETITEMRECT, index, &rect); event.x = rect.left; event.y = rect.bottom; child.postEvent (SWT.Selection, event); } break; case OS.NM_CUSTOMDRAW: if (OS.COMCTL32_MAJOR < 6) break; /* * Bug in Windows. For some reason, under the XP Silver * theme, tool bars continue to draw using the gray color * from the default Blue theme. The fix is to draw the * background. */ NMCUSTOMDRAW* nmcd = cast(NMCUSTOMDRAW*)lParam; //OS.MoveMemory (nmcd, lParam, NMCUSTOMDRAW.sizeof); // if (drawCount !is 0 || !OS.IsWindowVisible (handle)) { // if (!OS.IsWinCE && OS.WindowFromDC (nmcd.hdc) is handle) break; // } switch (nmcd.dwDrawStage) { case OS.CDDS_PREERASE: { /* * Bug in Windows. When a tool bar does not have the style * TBSTYLE_FLAT, the rectangle to be erased in CDDS_PREERASE * is empty. The fix is to draw the whole client area. */ int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if ((bits & OS.TBSTYLE_FLAT) is 0) { drawBackground (nmcd.hdc); } else { RECT rect; OS.SetRect (&rect, nmcd.rc.left, nmcd.rc.top, nmcd.rc.right, nmcd.rc.bottom); drawBackground (nmcd.hdc, &rect); } return new LRESULT (OS.CDRF_SKIPDEFAULT); } default: } break; case OS.TBN_HOTITEMCHANGE: static if (!OS.IsWinCE) { auto lpnmhi = cast(NMTBHOTITEM*)lParam; //OS.MoveMemory (lpnmhi, lParam, NMTBHOTITEM.sizeof); switch (lpnmhi.dwFlags) { case OS.HICF_ARROWKEYS: RECT client; OS.GetClientRect (handle, &client); int index = OS.SendMessage (handle, OS.TB_COMMANDTOINDEX, lpnmhi.idNew, 0); RECT rect; OS.SendMessage (handle, OS.TB_GETITEMRECT, index, &rect); if (rect.right > client.right || rect.bottom > client.bottom) { return LRESULT.ONE; } break; default: } } break; default: } return super.wmNotifyChild (hdr, wParam, lParam); } }
D
import std.stdio; import std.stdio, std.datetime, std.file, std.string, core.thread, std.experimental.logger, derelict.sdl2.sdl, derelict.opengl3.gl, std.math; import gfm.math.vector, gfm.math.quaternion, gfm.math.matrix; import renderer.renderer, renderer.scene, renderer.objects.sphere, renderer.objects.plane, renderer.objects.box, renderer.objects.chain, renderer.objects.sceneobject : SceneObject; SDL_Window* window; SDL_Renderer* sdlRenderer; bool running = true; enum progressive = true; static if(progressive) { enum width = 800 / 4; enum height = 600 / 4; enum zoom = 4; vec3f[width * height] rawPixels; } else { enum width = 800; enum height = 600; enum zoom = 1; } Color[width * height] pixels; Renderer myRenderer; void main() { Scene scene = new Scene(); // scene.objects ~= new Plane(vec3f(0, -3f, 0), vec3f(0, 1f, 0)); // scene.objects ~= new Plane(vec3f(0, 0, -6f), vec3f(0.5f, 0f, 1f).normalized); //scene.objects ~= new Plane(vec3f(0, 2f, 0), vec3f(0, -1f, 0)); // Box box = new Box(vec3f(-1.8f, -3f + 0.5f, -2f), vec3f(1f, 1f, 1f)); // box.color = vec3f(0.8, 0.2f, 0.9f); // scene.objects ~= box; // // Sphere sphere = new Sphere(vec3f(0, 0, -3f), 3f); // sphere.color = vec3f(0.3, 1f, 0.1f); // scene.objects ~= sphere; // // sphere = new Sphere(vec3f(-1f, -1f, -2f), 2f); // sphere.color = vec3f(1f, 0.5f, 0.2f); // scene.objects ~= sphere; // // Sphere lightSphere = new Sphere(vec3f(-10f, 12f, 5f), 10f); // lightSphere.color = vec3f(1f, 0.9f, 0.8f); // lightSphere.emission = 0f; // scene.objects ~= lightSphere; // // lightSphere = new Sphere(vec3f(2.8f, -3f + 2.0f, -4f), 0.8f); // lightSphere.color = vec3f(0.5f, 0.8f, 1f); // lightSphere.emission = 6f; // scene.objects ~= lightSphere; // // lightSphere = new Sphere(vec3f(0.5f, -3f + 2.0f, -1.5f), 0.9f); // lightSphere.color = vec3f(1f, 0.8f, 0.5f); // lightSphere.emission = 6f; // scene.objects ~= lightSphere; // { // Plane plane = new Plane(vec3f(0, -3f, 0), vec3f(0, 1f, 0)); // scene.objects ~= plane; // } // // { // // SceneObject obj = new Sphere(vec3f(0, -2f, 0), 1f); // // scene.objects ~= obj; // // } // // { // // SceneObject obj = new Sphere(vec3f(-4f, -3f + 3f, -3f), 3f); // // scene.objects ~= obj.displace; // // } // // { // // SceneObject obj = new Sphere(vec3f(5f, 4f, 10f), 3f); // // obj.color = vec3f(1f, 1f, 1f); // // obj.emission = 13f; // // scene.objects ~= obj; // // } // // { // // SceneObject obj = new Sphere(vec3f(0f, -10f, 0f), 1f); // // scene.objects ~= obj.repeat(vec3f(5f, 5f, 5f)); // // } { Plane plane = new Plane(vec3f(0, -3f, 0), vec3f(0, 1f, 0)); plane.specular = 0.2f; plane.glossy = 0.05f; scene.objects ~= plane; } { Plane plane = new Plane(vec3f(0, 3f, 0), vec3f(0, -1f, 0)); scene.objects ~= plane; } { Plane plane = new Plane(vec3f(0, 0, -3f), vec3f(0, 0, 1f)); scene.objects ~= plane; } { Plane plane = new Plane(vec3f(0, 0, 9f), vec3f(0, 0, -1f)); scene.objects ~= plane; } { Plane plane = new Plane(vec3f(-3f, 0, 0), vec3f(1f, 0, 0)); plane.color = vec3f(1f, 0.2f, 0.2f); scene.objects ~= plane; } { Plane plane = new Plane(vec3f(3f, 0, 0), vec3f(-1f, 0, 0)); plane.color = vec3f(0.2f, 1f, 0.2f); plane.specular = 0.1f; plane.glossy = 0.05f; scene.objects ~= plane; } { SceneObject obj = new Sphere(vec3f(-1.5f, -2f, -1.5f), 1f); obj.specular = 1f; obj.glossy = 0.1f; scene.objects ~= obj; } // { // SceneObject obj1 = new Sphere(vec3f(-0f, -2f, -1.5f), 1f); // SceneObject obj2 = new Sphere(vec3f(-1.5f, -2f, -1.5f), 1f); // scene.objects ~= obj1.blend(obj2); // } { SceneObject obj = new Box(vec3f(1f, -3f + 1f, 0f), vec3f(1f, 1f, 1f)) .subtract(new Sphere(vec3f(1f, -3f + 1f, 0f), 1.4f)) .rotate(quatf.fromEulerAngles(0, PI / 8f, 0)); scene.objects ~= obj; } { Box box = new Box(vec3f(0f, 3f, 0), vec3f(1f, 0.01f, 1f)); box.color = vec3f(1f, 1f, 1f); box.emission = 2f; scene.objects ~= box; } // { // Box box = new Box(vec3f(-2f, 3f, 0), vec3f(1f, 0.01f, 1f)); // box.color = vec3f(1f, 0.5f, 0.1f); // box.emission = 2f; // scene.objects ~= box; // } // { // Box box = new Box(vec3f(2f, 3f, 0), vec3f(1f, 0.05f, 1f)); // box.color = vec3f(0.2f, 0.5f, 1f); // box.emission = 2f; // scene.objects ~= box; // } // scene.skyColor = vec3f(0.3f, 0.6f, 1f); // scene.skyEmission = 1f; // { // Plane plane = new Plane(vec3f(0, -0.75f, 0f), vec3f(0, 1f, 0).normalized); // plane.color = vec3f(1f, 1f, 1f); // plane.specular = 0.3f; // plane.glossy = 0.2f; // scene.objects ~= plane; // } // { // SceneObject obj = new Sphere(vec3f(0, 0, -5f), 1f); // obj.color = vec3f(1f, 1f, 1f); // // obj.reflective = true; // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(3, 0, -4f), 1f); // obj.color = vec3f(0.5f, 0.5f, 1f); // obj.specular = 0.8f; // obj.glossy = 0f; // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(-3, 0, -4f), 1f); // obj.color = vec3f(1f, 0.5f, 0.5f); // obj.specular = 0.6f; // obj.glossy = 0.2f; // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(0.7f, -0.4f, -5f), 0.75f); // obj.color = vec3f(1f, 1f, 0f); // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(-0.7f, -0.4f, -5f), 0.75f); // obj.color = vec3f(0f, 1f, 1f); // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(0.7f, -0.5f, -3f), 0.25f); // obj.color = vec3f(0f, 0.5f, 1f); // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(-0.7f, -0.5f, -3f), 0.25f); // obj.color = vec3f(0.5f, 0f, 1f); // scene.objects ~= obj; // } // { // SceneObject obj = new Sphere(vec3f(3f, 5f, 0f), 1f); // obj.color = vec3f(1f, 1f, 1f); // obj.emission = 3f; // scene.objects ~= obj; // } myRenderer = new Renderer(scene, width, height); // myRenderer.eyePosition = vec3f(0, 0f, 4.5f); myRenderer.eyePosition = vec3f(0, 0f, 4.5f); // myRenderer.eyeRotation = quatf.fromEulerAngles(PI * 0.25f, 0, 0); static if(!progressive) { // pixels = myRenderer.renderToRgb888(10); pixels = myRenderer.renderToRgb888NoPathTrace(); } static if(progressive) { foreach(y; 0 .. height) { foreach(x; 0 .. width) { rawPixels[y * width + x] = vec3f(0, 0, 0); } } } start(); } void start() { log("Starting derp-renderer"); loadLibraries(); openWindow(); enterLoop(); } private void loadLibraries() { log("Loading libraries"); DerelictSDL2.load("lib/SDL2"); DerelictGL.load(); } private void openWindow() { SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); log("Creating window"); SDL_CreateWindowAndRenderer(800, 600, SDL_WINDOW_OPENGL, &window, &sdlRenderer); SDL_SetWindowTitle(window, "Derp renderer".toStringz); log("Creating OpenGL context"); SDL_GL_CreateContext(window); } private void enterLoop() { log("Entering main loop"); while(running) { updateEvents(); static if(progressive) { static int currentIteration = 1; import std.datetime; StopWatch sw; sw.start(); vec3f[] newRawPixels = myRenderer.render(1); sw.stop(); import std.conv; log("Iteration " ~ (currentIteration).to!string ~ " - elapsed: " ~ sw.peek().msecs.to!string); foreach(y; 0 .. height) { foreach(x; 0 .. width) { rawPixels[y * width + x] += newRawPixels[y * width + x]; pixels[y * width + x] = Color.fromVector(rawPixels[y * width + x] / cast(float)currentIteration); } } currentIteration++; } render(); limitFps(); } } private void updateEvents() { SDL_Event event; while(SDL_PollEvent(&event)) { switch(event.type) { case SDL_QUIT: running = false; break; default: break; } } } private void render() { glClearColor(0.1f, 0.1f, 0.1f, 1f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glViewport(0, 0, 800, 600); glOrtho(0, 800, 0, 600, -1, 1); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glRasterPos3f(0, 600, 0); glPixelZoom(zoom * 1f, zoom * -1f); glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, pixels.ptr); SDL_GL_SwapWindow(window); } private void limitFps() { static StopWatch sw = StopWatch(); enum maxFPS = 60; if(maxFPS != -1) { long desiredNs = 1_000_000_000 / maxFPS; // How much time the frame should take if(desiredNs - sw.peek.nsecs >= 0) Thread.sleep(nsecs(desiredNs - sw.peek.nsecs)); sw.reset(); sw.start(); } }
D
//#under construction - (repeating keys) //#should break this method into two -- maybe not //#speed (pitch?) module input; import std.stdio; import std.string; import std.file; import std.conv; import std.traits: EnumMembers; // for foreach enums import std.array; // for empty import std.path; // for pathSeparator( '\\' or '/' ) import std.ascii; import jeca.all; import base, texthandling, keys; alias std.ascii.lowercase lowercase; /** * For typing in the words to activate */ @("hello",1,2.3,'4') class Input { public: Snd blowSnd; this() { _text = new Text( /* xpos: */ 0, /* ypos: */ al_get_display_height( DISPLAY ) - al_get_font_line_height( g_font ), // centered /* fat colour: */ Colour.blue, /* slim colour: */ Colour.cyan ); // setup the keys foreach( keyIndex; keysStart .. keysEnd ) { _keys[ keyIndex ].tkey = keyIndex; } // go through the letters of the alphabet immutable a = 0, z = 26; // Use this sound in the case of each letter sound fails to load blowSnd = new Snd( g_playBackFolder ~ dirSeparator ~ "blow.wav" ); foreach( letter; a .. z ) { auto fileName = g_voicesFolder ~ dirSeparator ~ lowercase[ letter ] ~ ".wav"; auto otherFileName = fileName[ 0 .. $ - 4 ] ~ ".ogg"; if ( ! exists( fileName ) && exists( otherFileName ) ) fileName = otherFileName; if ( exists( fileName ) ) { _lsnds[ letter ] = new Snd( fileName ); if ( _lsnds[ letter ] is null ) { writeln( fileName, " - not load! - Get hold of your vendor at once!" ); _lsnds[ letter ] = blowSnd; // default sound } } else writeln( fileName, " - not exist! - Get hold of your vendor at once!" ); } foreach( number; 0 .. 9 + 1 ) { auto fileName = g_voicesFolder ~ dirSeparator ~ number.to!string() ~ ".wav"; auto otherFileName = fileName[ 0 .. $ - 4 ] ~ ".ogg"; if ( ! exists( fileName ) && exists( otherFileName ) ) fileName = otherFileName; if ( exists( fileName ) ) { _nsnds[ number ] = new Snd( fileName ); if ( _nsnds[ number ] is null ) { writeln( fileName, " - not load! - Get hold of your vendor at once!" ); _nsnds[ number ] = blowSnd; // default sound } } else writeln( fileName, " - not exist! - Get hold of your vendor at once!" ); } } /** * Receive input and play its letter */ //#should break this method into two -- maybe not auto doKeyInput( ref bool doShowRefWords, ref bool doShowPicture ) { // put object text into the care of string text until later string text = _text.stringText; // update text before exiting function scope( exit ) { _text.stringText = text; g_inputLets = text; } // Do input foreach( keyId; keysStart .. keysEnd ) //#not sure if keysEnd is a key, it isn't in the loop foreach(keyStuff; [&doAlphabet, &doSpace, &doNumbers, &doBackSpace, &doEnter]) { auto result = keyStuff( keyId, text, doShowRefWords, doShowPicture ); auto notEmpty = ! result.empty; if ( notEmpty ) return result; } return g_emptyText; } // get input key /** * Display input text on screen */ void drawTextInput() const { foreach( fatness; EnumMembers!g_PrintFatness ) _text.draw(fatness, true); } private: Key[ ALLEGRO_KEY_MAX + 1 ] _keys; Snd[ g_numberOfLettersInTheAphabet ] _lsnds; Snd[ 10 ] _nsnds; IText _text; immutable keysStart = 0, keysEnd = ALLEGRO_KEY_MAX + 1; // Add a letter and play a sound if letter key hit string doAlphabet( int keyId, ref string text, ref bool doShowRefWords, ref bool doShowPicture ) { if ( keyId >= ALLEGRO_KEY_A && keyId <= ALLEGRO_KEY_Z && _keys[ keyId ].keyHit ) { // Play letter _lsnds[ keyId - ALLEGRO_KEY_A ].play; // add letter bool keyShift() { return ( key[ ALLEGRO_KEY_LSHIFT ] || key[ ALLEGRO_KEY_RSHIFT ] ); } text ~= ( ( ! keyShift ? 'a' : 'A' ) + ( keyId - ALLEGRO_KEY_A ) & 0xFF ); } return g_emptyText; } string doSpace( int keyId, ref string text, ref bool doShowRefWords, ref bool doShowPicture ) { if ( keyId == ALLEGRO_KEY_SPACE && _keys[ ALLEGRO_KEY_SPACE ].keyHit ) { text ~= ' '; } return g_emptyText; } string doNumbers( int keyId, ref string text, ref bool doShowRefWords, ref bool doShowPicture ) { if ( keyId >= ALLEGRO_KEY_0 && keyId <= ALLEGRO_KEY_9 ) if ( _keys[ keyId ].keyHit ) { _nsnds[ keyId - ALLEGRO_KEY_0 ].play; text ~= '0' + ( keyId - ALLEGRO_KEY_0 ) & 0xFF; } return g_emptyText; } string doBackSpace( int keyId, ref string text, ref bool doShowRefWords, ref bool doShowPicture ) { bool wordHasLength = text.length > 0; if ( wordHasLength && keyId == ALLEGRO_KEY_BACKSPACE && _keys[ ALLEGRO_KEY_BACKSPACE ].keyHit ) { blowSnd.play(); text = text[ 0 .. $ - 1 ]; } return g_emptyText; } string doEnter( int keyId, ref string text, ref bool doShowRefWords, ref bool doShowPicture ) { // Activate the entered word auto textIsSomeThing = text != g_emptyText; if ( keyId == ALLEGRO_KEY_ENTER && _keys[ ALLEGRO_KEY_ENTER ].keyHit ) { if ( textIsSomeThing ) { if ( doShowRefWords ) { // show picture without the words doShowRefWords = false; doShowPicture = true; } auto text2 = _text.stringText.idup; text = g_emptyText; return text2; // and here's a hasty return } // if _text.. is not nothing if ( text == g_emptyText ) { if ( ! doShowRefWords && doShowPicture ) { // show picture and words doShowRefWords = true; return g_emptyText; } if ( doShowRefWords && doShowPicture ) { // show words but no picture doShowPicture = false; return g_emptyText; } } // if input is nothing } // Activate the entered word return g_emptyText; } } // class input
D
#!dmd -run import std.stdio; import std.algorithm : sort; import std.conv; void main() { string[] myArray = [ "a", "b", "c" ]; // explicit type auto myArray2 = [ "a", "b", "c" ]; // also works with auto immutable myArray3 = [ "a", "b", "c" ]; // non-modifiable array writefln("myArray = %s", myArray); // array concatenation int[] tab; tab ~= 1; tab ~= 3; tab ~= 5; tab ~= 6; tab ~= 4; tab ~= 2; writefln("tab=%s", tab); writefln("tab[0..$]=%s", tab[0..$]); writefln("tab[2..4]=%s", tab[2..4]); // foreach on array foreach(i, val; tab) { writefln("tab[%s]=%s", i, val); } tab.reverse; writefln("reversed tab=%s", tab); bool myOrder(int a, int b) { return a > b; } sort!(myOrder)(tab); writefln("custom-sorted tab=%s", tab); // foreach on array with modifiable values foreach(ref val; tab) { val += 100; } writefln("modified tab=%s", tab); }
D
/** Copyright: Copyright (c) 2016-2018 Andrey Penechko. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Andrey Penechko. */ module voxelman.world.storage.chunk.activechunks; import voxelman.log; import std.array : empty; import cbor; import voxelman.container.hash.set; import voxelman.world.storage; struct ActiveChunks { private auto dbKey = IoKey("voxelman.world.active_chunks"); HashSet!ChunkWorldPos chunks; void delegate(ChunkWorldPos cwp) loadChunk; void delegate(ChunkWorldPos cwp) unloadChunk; void add(ChunkWorldPos cwp) { chunks.put(cwp); loadChunk(cwp); } void remove(ChunkWorldPos cwp) { if (chunks.remove(cwp)) unloadChunk(cwp); } void loadActiveChunks() { foreach(cwp; chunks) { loadChunk(cwp); infof("load active: %s", cwp); } } package(voxelman.world) void read(ref PluginDataLoader loader) { ubyte[] data = loader.readEntryRaw(dbKey); if (!data.empty) { auto token = decodeCborToken(data); assert(token.type == CborTokenType.arrayHeader); foreach(_; 0..token.uinteger) chunks.put(decodeCborSingle!ChunkWorldPos(data)); assert(data.empty); } } package(voxelman.world) void write(ref PluginDataSaver saver) { auto sink = saver.beginWrite(); encodeCborArrayHeader(sink, chunks.length); foreach(cwp; chunks) encodeCbor(sink, cwp); saver.endWrite(dbKey); } }
D
/////////////////////////////////////////////////////////////////////// // Info EXIT /////////////////////////////////////////////////////////////////////// INSTANCE DIA_Bennet_DI_EXIT (C_INFO) { npc = SLD_809_Bennet_DI; nr = 999; condition = DIA_Bennet_DI_EXIT_Condition; information = DIA_Bennet_DI_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Bennet_DI_EXIT_Condition() { return TRUE; }; FUNC VOID DIA_Bennet_DI_EXIT_Info() { AI_StopProcessInfos (self); }; // ************************************************************ // Hallo // ************************************************************ INSTANCE DIA_Bennet_DI_Hello (C_INFO) { npc = SLD_809_Bennet_DI; nr = 10; condition = DIA_Bennet_DI_Hello_Condition; information = DIA_Bennet_DI_Hello_Info; permanent = TRUE; description = "Všechno klape?"; }; FUNC INT DIA_Bennet_DI_Hello_Condition() { if (Npc_IsDead(UndeadDragon) == FALSE) { return TRUE; }; }; FUNC VOID DIA_Bennet_DI_Hello_Info() { AI_Output (other ,self,"DIA_Bennet_DI_Hello_15_00"); //Všechno klape? if (ORkSturmDI == FALSE) { AI_Output (self ,other,"DIA_Bennet_DI_Hello_06_01"); //Kovárna na téhle lodi je tak kapku zarezlá. Může za to ta moâská sůl. Vyrobit tam nęco komplikovanęjší může být docela problém. Ale zase na druhou stranu... } else { AI_Output (self ,other,"DIA_Bennet_DI_Hello_06_02"); //Můžeme zaâídit, aby se skâeti nevrátili zpęt. }; }; /////////////////////////////////////////////////////////////////////// // Info Trade /////////////////////////////////////////////////////////////////////// instance DIA_Bennet_DI_TRADE (C_INFO) { npc = SLD_809_Bennet_DI; nr = 7; condition = DIA_Bennet_DI_TRADE_Condition; information = DIA_Bennet_DI_TRADE_Info; permanent = TRUE; trade = TRUE; description = "Jaké zbranę mi můžeš prodat?"; }; func int DIA_Bennet_DI_TRADE_Condition () { if (Npc_IsDead(UndeadDragon) == FALSE) { return TRUE; }; }; func void DIA_Bennet_DI_TRADE_Info () { AI_Output (other, self, "DIA_Bennet_DI_TRADE_15_00"); //Jaké zbranę mi můžeš prodat? B_GiveTradeInv (self); AI_Output (self, other, "DIA_Bennet_DI_TRADE_06_01"); //Pouze ty nejlepší. To pâece víš. }; /////////////////////////////////////////////////////////////////////// // Info Smith /////////////////////////////////////////////////////////////////////// instance DIA_Bennet_DI_Smith (C_INFO) { npc = SLD_809_Bennet_DI; nr = 7; condition = DIA_Bennet_DI_Smith_Condition; information = DIA_Bennet_DI_Smith_Info; permanent = TRUE; description = "Můžeš mę naučit své umęní?"; }; func int DIA_Bennet_DI_Smith_Condition () { if (Bennet_TeachSmith == TRUE) && (Npc_IsDead(UndeadDragon) == FALSE) { return TRUE; }; }; func void DIA_Bennet_DI_Smith_Info () { AI_Output (other, self, "DIA_Bennet_DI_Smith_15_00"); //Můžeš mę naučit své umęní? AI_Output (self, other, "DIA_Bennet_DI_Smith_06_01"); //Záleží na tom, co chceš dęlat. Info_ClearChoices (DIA_Bennet_DI_Smith); Info_AddChoice (DIA_Bennet_DI_Smith, DIALOG_BACK, DIA_Bennet_DI_Smith_BACK); if ( PLAYER_TALENT_SMITH[WEAPON_Common] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString("Naučit se kováâství " , B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_Common)) ,DIA_Bennet_DI_Smith_Common); }; if ( PLAYER_TALENT_SMITH[WEAPON_Common] == TRUE) { if ( PLAYER_TALENT_SMITH[WEAPON_1H_Special_01] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_1H_Special_01, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_1H_Special_01)) ,DIA_Bennet_DI_Smith_1hSpecial1); }; if ( PLAYER_TALENT_SMITH[WEAPON_2H_Special_01] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_2H_Special_01, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_2H_Special_01)) ,DIA_Bennet_DI_Smith_2hSpecial1); }; if ( PLAYER_TALENT_SMITH[WEAPON_1H_Special_02] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_1H_Special_02, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_1H_Special_02)) ,DIA_Bennet_DI_Smith_1hSpecial2); }; if ( PLAYER_TALENT_SMITH[WEAPON_2H_Special_02] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_2H_Special_02, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_2H_Special_02)) ,DIA_Bennet_DI_Smith_2hSpecial2); }; if ( PLAYER_TALENT_SMITH[WEAPON_1H_Special_03] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_1H_Special_03, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_1H_Special_03)) ,DIA_Bennet_DI_Smith_1hSpecial3); }; if ( PLAYER_TALENT_SMITH[WEAPON_2H_Special_03] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_2H_Special_03, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_2H_Special_03)) ,DIA_Bennet_DI_Smith_2hSpecial3); }; if ( PLAYER_TALENT_SMITH[WEAPON_1H_Special_04] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_1H_Special_04, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_1H_Special_04)) ,DIA_Bennet_DI_Smith_1hSpecial4); }; if ( PLAYER_TALENT_SMITH[WEAPON_2H_Special_04] == FALSE) { Info_AddChoice (DIA_Bennet_DI_Smith, B_BuildLearnString(NAME_ItMw_2H_Special_04, B_GetLearnCostTalent(other, NPC_TALENT_SMITH, WEAPON_2H_Special_04)) ,DIA_Bennet_DI_Smith_2hSpecial4); }; }; }; // ------ Back ------ func void DIA_Bennet_DI_Smith_BACK () { Info_ClearChoices (DIA_Bennet_DI_Smith); }; FUNC VOID DIA_Bennet_DI_Smith_Common () { B_TeachPlayerTalentSmith (self, other, WEAPON_Common); }; FUNC VOID DIA_Bennet_DI_Smith_1hSpecial1 () { B_TeachPlayerTalentSmith (self, other, WEAPON_1H_Special_01); }; FUNC VOID DIA_Bennet_DI_Smith_2hSpecial1 () { B_TeachPlayerTalentSmith (self, other, WEAPON_2H_Special_01); }; FUNC VOID DIA_Bennet_DI_Smith_1hSpecial2 () { B_TeachPlayerTalentSmith (self, other, WEAPON_1H_Special_02); }; FUNC VOID DIA_Bennet_DI_Smith_2hSpecial2 () { B_TeachPlayerTalentSmith (self, other, WEAPON_2H_Special_02); }; FUNC VOID DIA_Bennet_DI_Smith_1hSpecial3 () { B_TeachPlayerTalentSmith (self, other, WEAPON_1H_Special_03); }; FUNC VOID DIA_Bennet_DI_Smith_2hSpecial3 () { B_TeachPlayerTalentSmith (self, other, WEAPON_2H_Special_03); }; FUNC VOID DIA_Bennet_DI_Smith_1hSpecial4 () { B_TeachPlayerTalentSmith (self, other, WEAPON_1H_Special_04); }; FUNC VOID DIA_Bennet_DI_Smith_2hSpecial4 () { B_TeachPlayerTalentSmith(self, other, WEAPON_2H_Special_04); }; //******************************************* // TechPlayerSTR //******************************************* INSTANCE DIA_Bennet_TeachSTR (C_INFO) { npc = SLD_809_Bennet_DI; nr = 150; condition = DIA_Bennet_TeachSTR_Condition; information = DIA_Bennet_TeachSTR_Info; permanent = TRUE; description = "Chtęl bych se stát silnęjším."; }; FUNC INT DIA_Bennet_TeachSTR_Condition() { if (Npc_IsDead(UndeadDragon) == FALSE) { return TRUE; }; }; FUNC VOID DIA_Bennet_TeachSTR_Info() { AI_Output (other,self ,"DIA_Bennet_TeachSTR_15_00"); //Chtęl bych se stát silnęjším. AI_Output (self,other ,"DIA_Bennet_TeachSTR_06_01"); //V takovýchto dobách se budou silné paže hodit. Info_ClearChoices (DIA_Bennet_TeachSTR); Info_AddChoice (DIA_Bennet_TeachSTR, DIALOG_BACK, DIA_Bennet_TeachSTR_Back); Info_AddChoice (DIA_Bennet_TeachSTR, B_BuildLearnString(PRINT_LearnSTR1 , B_GetLearnCostAttribute(other, ATR_STRENGTH)) ,DIA_Bennet_TeachSTR_STR_1); Info_AddChoice (DIA_Bennet_TeachSTR, B_BuildLearnString(PRINT_LearnSTR5 , B_GetLearnCostAttribute(other, ATR_STRENGTH)*5) ,DIA_Bennet_TeachSTR_STR_5); }; FUNC VOID DIA_Bennet_TeachSTR_Back () { Info_ClearChoices (DIA_Bennet_TeachSTR); }; FUNC VOID DIA_Bennet_TeachSTR_STR_1 () { B_TeachAttributePoints (self, other, ATR_STRENGTH, 1, T_MAX); Info_AddChoice (DIA_Bennet_TeachSTR, B_BuildLearnString(PRINT_LearnSTR1 , B_GetLearnCostAttribute(other, ATR_STRENGTH)) ,DIA_Bennet_TeachSTR_STR_1); }; FUNC VOID DIA_Bennet_TeachSTR_STR_5 () { B_TeachAttributePoints (self, other, ATR_STRENGTH, 5, T_MAX); Info_AddChoice (DIA_Bennet_TeachSTR, B_BuildLearnString(PRINT_LearnSTR5 , B_GetLearnCostAttribute(other, ATR_STRENGTH)*5) ,DIA_Bennet_TeachSTR_STR_5); }; /////////////////////////////////////////////////////////////////////// // Info DragonEgg /////////////////////////////////////////////////////////////////////// instance DIA_Bennet_DI_DragonEgg (C_INFO) { npc = SLD_809_Bennet_DI; nr = 99; condition = DIA_Bennet_DI_DragonEgg_Condition; information = DIA_Bennet_DI_DragonEgg_Info; description = "Mám tady dračí vejce."; }; func int DIA_Bennet_DI_DragonEgg_Condition () { if (Npc_HasItems (other,ItAt_DragonEgg_MIS)) { return TRUE; }; }; func void DIA_Bennet_DI_DragonEgg_Info () { AI_Output (other, self, "DIA_Bennet_DI_DragonEgg_15_00"); //Mám tady dračí vejce. AI_Output (self, other, "DIA_Bennet_DI_DragonEgg_06_01"); //No? AI_Output (other, self, "DIA_Bennet_DI_DragonEgg_15_02"); //No. Myslel jsem... AI_Output (self, other, "DIA_Bennet_DI_DragonEgg_06_03"); //Vím, na co myslíš. Zapomeŕ na to, nech si tu vęc. Já to nechci. B_GivePlayerXP (XP_Ambient); }; /////////////////////////////////////////////////////////////////////// // Info UndeadDragonDead /////////////////////////////////////////////////////////////////////// instance DIA_Bennet_DI_UndeadDragonDead (C_INFO) { npc = SLD_809_Bennet_DI; nr = 7; condition = DIA_Bennet_DI_UndeadDragonDead_Condition; information = DIA_Bennet_DI_UndeadDragonDead_Info; permanent = TRUE; description = "Udęlali jsme všechno, co jsme potâebovali udęlat."; }; func int DIA_Bennet_DI_UndeadDragonDead_Condition () { if (Npc_IsDead(UndeadDragon)) { return TRUE; }; }; func void DIA_Bennet_DI_UndeadDragonDead_Info () { AI_Output (other, self, "DIA_Bennet_DI_UndeadDragonDead_15_00"); //Udęlali jsme všechno, co jsme potâebovali udęlat. AI_Output (self, other, "DIA_Bennet_DI_UndeadDragonDead_06_01"); //To rád slyším. Už jsem męl po krk téhle staré kovárny. Potâebuju se zase postavit na zem pevnýma nohama. AI_StopProcessInfos (self); }; // ************************************************************ // PICK POCKET // ************************************************************ INSTANCE DIA_Bennet_DI_PICKPOCKET (C_INFO) { npc = SLD_809_Bennet_DI; nr = 900; condition = DIA_Bennet_DI_PICKPOCKET_Condition; information = DIA_Bennet_DI_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_40; }; FUNC INT DIA_Bennet_DI_PICKPOCKET_Condition() { C_Beklauen (35, 65); }; FUNC VOID DIA_Bennet_DI_PICKPOCKET_Info() { Info_ClearChoices (DIA_Bennet_DI_PICKPOCKET); Info_AddChoice (DIA_Bennet_DI_PICKPOCKET, DIALOG_BACK ,DIA_Bennet_DI_PICKPOCKET_BACK); Info_AddChoice (DIA_Bennet_DI_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Bennet_DI_PICKPOCKET_DoIt); }; func void DIA_Bennet_DI_PICKPOCKET_DoIt() { B_Beklauen (); Info_ClearChoices (DIA_Bennet_DI_PICKPOCKET); }; func void DIA_Bennet_DI_PICKPOCKET_BACK() { Info_ClearChoices (DIA_Bennet_DI_PICKPOCKET); };
D
module Entity.Mob; static import AOD; static import Entity.Map; static import Game_Manager; static import Data; import Entity.Projectile; class MobCorpse : Entity.Map.Tile { int timer; public: this(int x, int y) { super(x, y, Entity.Map.Tile_Type.Nil, Data.Layer.Item); timer = cast(int)(3000.0/AOD.R_MS()); Set_Sprite(Data.Image.Enemy.dead); } override void Update() { alias M = Game_Manager.map; if ( -- timer <= 0 ) { foreach ( l; 0 .. M[tile_x][tile_y].length ) if ( M[tile_x][tile_y][l] is this ) { M[tile_x][tile_y] = AOD.Util.Remove(M[tile_x][tile_y], l); AOD.Remove(this); return; } } Set_Colour(red, red, red, timer/(3000.0/AOD.R_MS())); } } class Mob : Entity.Map.Tile { int think_timer, shoot_timer; int Think_timer_start_min = 20, Think_timer_start_max = 25, Shoot_timer_min = 6, Shoot_timer_max = 10; AOD.Vector[] goal; int goal_x, goal_y; bool dir; float smooth_scroll; int prev_x, prev_y; AOD.Animation_Player anim_player; AOD.Entity shadow; bool flip = false; bool spawning; int spawn_timer; int dead_timer = 0; public: this(int x, int y) { super(x, y, Entity.Map.Tile_Type.Mob, Data.Layer.Mob, false); shadow = new AOD.Entity(Data.Layer.Shadow); shadow.Set_Sprite(Data.Image.Enemy.shadow); AOD.Add(shadow); shadow.Set_Visible(false); smooth_scroll = 0.0f; spawning = 1; think_timer = cast(int)AOD.R_Rand(0, Think_timer_start_max); anim_player.Set(Data.Image.Enemy.spawn); Set_Visible(false); prev_x = x; prev_y = y+1; } ~this() { } void Shadow_Col(float x) { if ( dead_timer > 0 ) return; shadow.Set_Colour(x, x, x, 1.0); shadow.Set_Visible(x > 0.005); Set_Visible(x > 0.005); } void Kill() { if ( dead_timer > 0 ) return; dead_timer = 5; Set_Visible(false); AOD.Play_Sound(Data.Sound.monster_dies); AOD.Remove(shadow); shadow.Set_Visible(false); shadow = null; AOD.Add(new MobCorpse(tile_x, tile_y)); } override bool R_Dead() { return dead_timer > 0; } override void Update() { // --- SPAWN if ( spawning ) { Set_Visible(true); shadow.Set_Visible(true); shadow.Set_Colour(1.0, 1.0, 1.0, (anim_player.index+1)/6.0f); anim_player.Update(); Set_Sprite(anim_player.R_Current_Texture()); if ( anim_player.done ) { anim_player = AOD.Animation_Player(Data.Image.Enemy.walk[0]); spawning = false; shadow.Set_Colour(1.0, 1.0, 1.0, 1); } return; } if ( dead_timer > 0 ) { -- dead_timer; if ( dead_timer == 0 ) { foreach ( t; 0 .. Game_Manager.map[tile_x][tile_y].length ) { if ( Game_Manager.map[tile_x][tile_y][t] is this ) { Game_Manager.map[tile_x][tile_y] = AOD.Util.Remove(Game_Manager.map[tile_x][tile_y], t); AOD.Remove(this); return; } } } return; } // -- POSITION SMOOTH if ( prev_x != tile_x || prev_y != tile_y ) { smooth_scroll += 0.10f; if ( smooth_scroll >= 1.0f ) { smooth_scroll = 1.0f; } auto v = AOD.Vector( (1.0f-smooth_scroll)*(prev_x) + smooth_scroll*(tile_x), (1.0f-smooth_scroll)*(prev_y) + smooth_scroll*(tile_y), ) * 32.0f; Set_Position(v + AOD.Vector(16, 0)); shadow.Set_Position(R_Position + AOD.Vector(0, 16)); if ( smooth_scroll >= 1.0f ) { prev_x = tile_x; prev_y = tile_y; } } if ( -- think_timer < 0 ) { think_timer = cast(int)AOD.R_Rand(Think_timer_start_min, Think_timer_start_max); Movement(); if ( goal.length == 0 ) { int x, y; do { x = cast(int)AOD.R_Rand(0, Game_Manager.map.length); y = cast(int)AOD.R_Rand(0, Game_Manager.map[0].length); } while ( Game_Manager.Valid_Position(x, y) ); goal = R_Path(tile_x, tile_y, new AOD.Node(AOD.Vector(x, y))); if ( goal.length != 0 ) goal = goal[0 .. $-1]; } } anim_player.Update(); Set_Sprite(anim_player.R_Current_Texture()); if ( flip && !R_Flipped_X ) Flip_X(); if ( !flip && R_Flipped_X ) Flip_X(); } override void Post_Update() {} void Movement () { // -- look for player -- auto px = cast(int)Game_Manager.player.R_Tile_Pos.x, py = cast(int)Game_Manager.player.R_Tile_Pos.y; bool is_los_visible = true; bool is_visible = R_Coloured() && R_Red() > 0.025; if ( Game_Manager.player ) { if ( is_visible ) { auto line = AOD.Util.Bresenham_Line(tile_x, tile_y, px, py); for ( int i = 1; i < line.length - 1; ++ i ) { int line_x = cast(int)line[i].x, line_y = cast(int)line[i].y; if ( Game_Manager.map[line_x][line_y][$-1].R_Tile_Type != Entity.Map.Tile_Type.Mob && Game_Manager.map[line_x][line_y][$-1].Blocks_Vision() ) { is_los_visible = false; break; } } } auto p = Game_Manager.player.R_Tile_Pos(); if ( is_visible ) { goal = R_Path(tile_x, tile_y, new AOD.Node(p)); if ( goal.length != 0 ) goal = goal[0 .. $-1]; } } // -- movement -- int gx = 0, gy = 0; if ( goal.length > 0 ) { gx = cast(int)goal[0].x, gy = cast(int)goal[0].y; prev_x = tile_x; prev_y = tile_y; Set_Tile_Pos(gx, gy); smooth_scroll = 0.0f; gx -= prev_x; gy -= prev_y; goal = goal[1 .. $]; } // -- shooting -- if ( -- shoot_timer < 0 && is_los_visible && is_visible && Game_Manager.player.R_Dead() == 0 ) { shoot_timer = cast(int)AOD.R_Rand(Shoot_timer_min, Shoot_timer_max); auto Type_Mob = Entity.Map.Tile_Type.Mob; if ( px - tile_x == 0 ) { // vertic if ( py > tile_y ) { auto e=new Projectile(tile_x, tile_y, 0, 1, Type_Mob, this); Game_Manager.Add(e); gx = 0; gy = 1; } else { auto e=new Projectile(tile_x,tile_y, 0, -1, Type_Mob, this); Game_Manager.Add(e); gx = 0; gy = -1; } } else if ( py - tile_y == 0 ) { if ( px > tile_x ) { auto e=new Projectile(tile_x, tile_y, 1, 0, Type_Mob, this); Game_Manager.Add(e); gx = 1; gy = 0; } else { auto e=new Projectile(tile_x,tile_y, -1, 0, Type_Mob, this); Game_Manager.Add(e); gx = 0; gy = 0; } } } flip = false; alias Img = Data.Image.Enemy; switch ( gx*10 + gy ) { default: break; case 1 : anim_player.Set(Img.walk[Img.Dir.Down]); break; case -1: anim_player.Set(Img.walk[Img.Dir.Up] ); break; case 10: flip = true; anim_player.Set(Img.walk[Img.Dir.Side]); break; case -10: anim_player.Set(Img.walk[Img.Dir.Side]); break; } } private AOD.Node[] Find_Surrounding(AOD.Node n) { AOD.Node[] p = [ new AOD.Node(0, -1), new AOD.Node(-1, 0), new AOD.Node(1, 0), new AOD.Node( 0, 1) ]; AOD.Node[] result; foreach ( i; 0 .. p.length ) { auto coord = new AOD.Node(n.x + p[i].x, n.y + p[i].y); int x = cast(int)coord.x, y = cast(int)coord.y; if ( Game_Manager.Valid_Position(x, y) || (Game_Manager.Valid_Position_Light(x, y) && (Game_Manager.map[x][y][$-1] is this || Game_Manager.map[x][y][$-1] is Game_Manager.player) ) ) { result ~= coord; } } return result; } private bool Inside(AOD.Node n, AOD.Node[] arr) { foreach ( o; arr ) if ( n.x == o.x && n.y == o.y ) return true; return false; } private AOD.Vector[] R_Path(int tile_x, int tile_y, AOD.Node end) { import std.math; AOD.Node start = new AOD.Node(tile_x, tile_y); AOD.Node[] open_set, closed_set; start.g = 0; start.f = start.Distance(end); open_set ~= start; AOD.Node cur = start, closest = null; float low_dist = start.Distance(end); int count = 0; while ( open_set.length >= 0 ) { if ( count >= 100 || cur is null ) { if ( closest is null ) { return []; } else { AOD.Vector[] res; while ( cur.parent !is null ) { res = AOD.Vector(cur.x, cur.y) ~ res; cur = cur.parent; } return res; } } closed_set ~= cur; if ( cur.Distance(end) < low_dist ) { closest = cur; low_dist = cur.Distance(end); count = 0; } else ++ count; auto check = Find_Surrounding(cur); foreach ( i; 0 .. check.length ) { auto n = check[i]; float g = cur.g + n.Distance(cur); float f = g + n.Distance(end); if ( Inside(n, closed_set) || Inside(n, open_set) ) { if ( n.f > f ) { n.f = f; n.g = g; n.parent = cur; } } else { n.f = f; n.g = g; n.parent = cur; open_set ~= n; } } if ( cur.x == end.x && cur.y == end.y ) { AOD.Vector[] res; while ( cur.parent !is null ) { res = AOD.Vector(cur.x, cur.y) ~ res; cur = cur.parent; } return res; } import std.algorithm; import std.algorithm.mutation; if ( open_set.length == 0 ) break; try { sort!((a,b)=>a.f < b.f)(open_set); } catch ( Throwable o ) { } cur = open_set[0]; open_set = open_set[1..$]; } return []; } }
D
/Users/abelfernandez/projects/vapor-server/Hello/.build/debug/WebSockets.build/Model/WebSocket+Error.swift.o : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+Send.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Frame.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/WebSockets+Hash.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Fragmentation.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameSerializer.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameDeserializer.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket+Error.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+ControlFrames.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/WebSockets+Flags.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/WebSocketFormatErrors.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/Headers+WebSockets.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Request+WebSockets.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket.swift /Users/abelfernandez/projects/vapor-server/Hello/.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/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/URI.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/HTTP.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/TLS.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/libc.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Core.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/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 /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Sockets.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/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/abelfernandez/projects/vapor-server/Hello/.build/debug/Transport.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CHTTP.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CSQLite.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/WebSockets.build/WebSocket+Error~partial.swiftmodule : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+Send.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Frame.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/WebSockets+Hash.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Fragmentation.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameSerializer.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameDeserializer.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket+Error.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+ControlFrames.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/WebSockets+Flags.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/WebSocketFormatErrors.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/Headers+WebSockets.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Request+WebSockets.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket.swift /Users/abelfernandez/projects/vapor-server/Hello/.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/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/URI.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/HTTP.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/TLS.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/libc.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Core.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/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 /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Sockets.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/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/abelfernandez/projects/vapor-server/Hello/.build/debug/Transport.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CHTTP.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CSQLite.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/WebSockets.build/WebSocket+Error~partial.swiftdoc : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+Send.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Frame.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/WebSockets+Hash.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/Fragmentation.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameSerializer.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/FrameDeserializer.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket+Error.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Communication/WebSocket+ControlFrames.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Serialization/WebSockets+Flags.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/WebSocketFormatErrors.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Connection/Headers+WebSockets.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Request+WebSockets.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/WebSockets/Model/WebSocket.swift /Users/abelfernandez/projects/vapor-server/Hello/.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/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/URI.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/HTTP.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/TLS.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/libc.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Core.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/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 /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Sockets.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/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/abelfernandez/projects/vapor-server/Hello/.build/debug/Transport.swiftmodule /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CHTTP.build/module.modulemap /Users/abelfernandez/projects/vapor-server/Hello/.build/debug/CSQLite.build/module.modulemap
D
// Copyright © 2012, Jakob Bornecrantz. All rights reserved. // See copyright notice in src/volt/license.d (BOOST ver. 1.0). module volt.llvm.expression; import watt.text.format : format; import watt.conv : toString; static import volt.ir.util; import volt.token.location : Location; import volt.errors; import ir = volt.ir.ir; import volt.llvm.common; import volt.llvm.interfaces; static import volt.semantic.mangle; static import volt.semantic.classify; /** * Returns the value, without doing any checking if it is * in reference form or not. */ void getValueAnyForm(State state, ir.Exp exp, Value result) { switch(exp.nodeType) with (ir.NodeType) { case AccessExp: auto ae = cast(ir.AccessExp)exp; handleAccessExp(state, ae, result); break; case Ternary: auto ternary = cast(ir.Ternary)exp; handleTernary(state, ternary, result); break; case BinOp: auto bin = cast(ir.BinOp)exp; handleBinOp(state, bin, result); break; case Unary: auto unary = cast(ir.Unary)exp; handleUnary(state, unary, result); break; case Postfix: auto postfix = cast(ir.Postfix)exp; handlePostfix(state, postfix, result); break; case ExpReference: auto expRef = cast(ir.ExpReference)exp; handleExpReference(state, expRef, result); break; case Constant: auto cnst = cast(ir.Constant)exp; handleConstant(state, cnst, result); break; case StructLiteral: auto sl = cast(ir.StructLiteral)exp; handleStructLiteral(state, sl, result); break; case UnionLiteral: auto ul = cast(ir.UnionLiteral)exp; handleUnionLiteral(state, ul, result); break; case ArrayLiteral: auto al = cast(ir.ArrayLiteral)exp; handleArrayLiteral(state, al, result); break; case ClassLiteral: auto cl = cast(ir.ClassLiteral)exp; handleClassLiteral(state, cl, result); break; case StatementExp: auto cl = cast(ir.StatementExp)exp; handleStatementExp(state, cl, result); break; case VaArgExp: auto ve = cast(ir.VaArgExp)exp; handleVaArgExp(state, ve, result); break; case BuiltinExp: auto ie = cast(ir.BuiltinExp)exp; handleBuiltinExp(state, ie, result); break; default: throw panicUnhandled(exp, ir.nodeToString(exp)); } // We unset the position here so we don't leak the wrong position // to following instruction, easier to find unset instructions then // some with wrong position. diUnsetPosition(state); } private: /* * * Ternary function. * */ void handleTernary(State state, ir.Ternary t, Value result) { Value ifTrue = result; Value ifFalse = new Value(); Value condition = new Value(); LLVMBasicBlockRef trueBlock, falseBlock, endBlock; // @todo this function could in theory figure out if // values are constant and emit their blocks. trueBlock = LLVMAppendBasicBlockInContext( state.context, state.func, "ternTrueBlock"); falseBlock = LLVMAppendBasicBlockInContext( state.context, state.func, "ternFalseBlock"); endBlock = LLVMAppendBasicBlockInContext( state.context, state.func, "ternEndBlock"); state.getValue(t.condition, condition); LLVMBuildCondBr(state.builder, condition.value, trueBlock, falseBlock); LLVMMoveBasicBlockAfter(trueBlock, state.block); state.startBlock(trueBlock); state.getValue(t.ifTrue, ifTrue); LLVMBuildBr(state.builder, endBlock); trueBlock = state.block; // Need to update the block LLVMMoveBasicBlockAfter(falseBlock, state.block); state.startBlock(falseBlock); state.getValue(t.ifFalse, ifFalse); LLVMBuildBr(state.builder, endBlock); falseBlock = state.block; // Need to update the block LLVMMoveBasicBlockAfter(endBlock, falseBlock); state.startBlock(endBlock); // Using ternary to select between two void returning functions? if (result.type is state.voidType) { // Better hope that the frontend knows what it is doing. result.value = null; return; } auto phi = LLVMBuildPhi(state.builder, ifFalse.type.llvmType, ""); LLVMAddIncoming( phi, [ifTrue.value, ifFalse.value], [trueBlock, falseBlock]); result.value = phi; } /* * * BinOp functions. * */ void handleBinOp(State state, ir.BinOp bin, Value result) { switch(bin.op) with (ir.BinOp.Op) { case Assign: handleAssign(state, bin, result); break; case AndAnd: case OrOr: //case XorXor: handleBoolCompare(state, bin, result); break; case AddAssign: case SubAssign: case MulAssign: case DivAssign: case ModAssign: case AndAssign: case OrAssign: case XorAssign: handleBinOpAssign(state, bin, result); break; case Is: case NotIs: handleIs(state, bin, result); break; case Equal: case NotEqual: case Less: case LessEqual: case GreaterEqual: case Greater: handleCompare(state, bin, result); break; default: handleBinOpNonAssign(state, bin, result); } } void handleAssign(State state, ir.BinOp bin, Value result) { // Returns the right value instead. Value left = new Value(); Value right = result; state.getValue(bin.right, right); state.getValueRef(bin.left, left); // Set debug info location, getValue will have reset it. diSetPosition(state, bin.location); // Not returned. LLVMBuildStore(state.builder, right.value, left.value); } void handleBoolCompare(State state, ir.BinOp bin, Value result) { assert(bin.op == ir.BinOp.Op.AndAnd || bin.op == ir.BinOp.Op.OrOr); Value left = result; Value right = new Value(); bool and = bin.op == ir.BinOp.Op.AndAnd; LLVMBasicBlockRef oldBlock, rightBlock, endBlock; rightBlock = LLVMAppendBasicBlockInContext( state.context, state.func, "compRight"); endBlock = LLVMAppendBasicBlockInContext( state.context, state.func, "compDone"); state.getValue(bin.left, left); // Set debug info location, getValue(left) will have reset it. diSetPosition(state, bin.location); LLVMBuildCondBr(state.builder, left.value, and ? rightBlock : endBlock, and ? endBlock : rightBlock); oldBlock = state.block; // Need the block for phi. LLVMMoveBasicBlockAfter(rightBlock, state.block); state.startBlock(rightBlock); state.getValue(bin.right, right); LLVMBuildBr(state.builder, endBlock); rightBlock = state.block; // Need to update the block for phi. LLVMMoveBasicBlockAfter(endBlock, rightBlock); state.startBlock(endBlock); // Set debug info location, getValue(right) will have reset it. diSetPosition(state, bin.location); auto v = LLVMConstInt(state.boolType.llvmType, !and, false); auto phi = LLVMBuildPhi(state.builder, left.type.llvmType, ""); LLVMAddIncoming( phi, [v, right.value], [oldBlock, rightBlock]); result.value = phi; } void handleIs(State state, ir.BinOp bin, Value result) { Value left = result; Value right = new Value(); state.getValueAnyForm(bin.left, left); state.getValueAnyForm(bin.right, right); auto pr = bin.op == ir.BinOp.Op.Is ? LLVMIntPredicate.EQ : LLVMIntPredicate.NE; auto logic = bin.op == ir.BinOp.Op.Is ? LLVMOpcode.And : LLVMOpcode.Or; auto loc = bin.location; // This debug info location is set on all following instructions. diSetPosition(state, bin.location); auto dg = cast(DelegateType)result.type; if (dg !is null) { auto lInstance = getValueFromAggregate(state, loc, left, DelegateType.voidPtrIndex); auto lFunc = getValueFromAggregate(state, loc, left, DelegateType.funcIndex); auto rInstance = getValueFromAggregate(state, loc, right, DelegateType.voidPtrIndex); auto rFunc = getValueFromAggregate(state, loc, right, DelegateType.funcIndex); auto instance = LLVMBuildICmp(state.builder, pr, lInstance, rInstance, ""); auto func = LLVMBuildICmp(state.builder, pr, lFunc, rFunc, ""); result.type = state.boolType; result.isPointer = false; result.value = LLVMBuildBinOp(state.builder, logic, instance, func, ""); return; } auto at = cast(ArrayType)result.type; if (at is null) { makeNonPointer(state, left); makeNonPointer(state, right); result.type = state.boolType; result.isPointer = false; result.value = LLVMBuildICmp(state.builder, pr, left.value, right.value, ""); return; } // Deal with arrays. auto lPtr = getValueFromAggregate(state, loc, left, ArrayType.ptrIndex); auto lLen = getValueFromAggregate(state, loc, left, ArrayType.lengthIndex); auto rPtr = getValueFromAggregate(state, loc, right, ArrayType.ptrIndex); auto rLen = getValueFromAggregate(state, loc, right, ArrayType.lengthIndex); auto ptr = LLVMBuildICmp(state.builder, pr, lPtr, rPtr, ""); auto len = LLVMBuildICmp(state.builder, pr, lLen, rLen, ""); result.type = state.boolType; result.isPointer = false; result.value = LLVMBuildBinOp(state.builder, logic, ptr, len, ""); } void handleCompare(State state, ir.BinOp bin, Value result) { Value left = result; Value right = new Value(); state.getValue(bin.left, left); state.getValue(bin.right, right); auto pt = cast(PrimitiveType)result.type; if (pt is null) { throw panic(bin.location, "can only compare primitive types"); } LLVMIntPredicate pr; LLVMRealPredicate fpr; switch(bin.op) with (ir.BinOp.Op) { case Equal: if (pt.floating) { fpr = LLVMRealPredicate.OEQ; } else { pr = LLVMIntPredicate.EQ; } break; case NotEqual: if (pt.floating) { fpr = LLVMRealPredicate.ONE; } else { pr = LLVMIntPredicate.NE; } break; case Less: if (pt.floating) { fpr = LLVMRealPredicate.OLT; } else if (pt.signed) { pr = LLVMIntPredicate.SLT; } else { pr = LLVMIntPredicate.ULT; } break; case LessEqual: if (pt.floating) { fpr = LLVMRealPredicate.OLE; } else if (pt.signed) { pr = LLVMIntPredicate.SLE; } else { pr = LLVMIntPredicate.ULE; } break; case GreaterEqual: if (pt.floating) { fpr = LLVMRealPredicate.OGE; } else if (pt.signed) { pr = LLVMIntPredicate.SGE; } else { pr = LLVMIntPredicate.UGE; } break; case Greater: if (pt.floating) { fpr = LLVMRealPredicate.OGT; } else if (pt.signed) { pr = LLVMIntPredicate.SGT; } else { pr = LLVMIntPredicate.UGT; } break; default: throw panic(bin.location, "error"); } // Debug info diSetPosition(state, bin.location); LLVMValueRef v; if (pt.floating) { v = LLVMBuildFCmp(state.builder, fpr, left.value, right.value, ""); } else { v = LLVMBuildICmp(state.builder, pr, left.value, right.value, ""); } result.type = state.boolType; result.value = v; } void handleBinOpAssign(State state, ir.BinOp bin, Value result) { // We return the left value. Value left = result; Value right = new Value(); Value opResult = right; state.getValueRef(bin.left, left); state.getValueAnyForm(bin.right, right); // Copy the left value since the handleBinOpNonAssign // function will turn it into a value, and we return // it as a lvalue/reference. left = new Value(left); ir.BinOp.Op op; switch (bin.op) with (ir.BinOp.Op) { case AddAssign: op = Add; break; case SubAssign: op = Sub; break; case MulAssign: op = Mul; break; case DivAssign: op = Div; break; case ModAssign: op = Mod; break; case AndAssign: op = And; break; case OrAssign: op = Or; break; case XorAssign: op = Xor; break; default: throw panicUnhandled(bin, toString(bin.op)); } auto pt = cast(PrimitiveType)right.type; if (pt is null) throw panic(bin, "right hand value must be of primitive type"); // Set debug info location, helper needs this. diSetPosition(state, bin.location); handleBinOpNonAssignHelper(state, bin.location, op, left, right, right); // Not returned. LLVMBuildStore(state.builder, right.value, result.value); } /** * Sets up values and calls helper functions to handle BinOp, will leave * debug info location set on builder. */ void handleBinOpNonAssign(State state, ir.BinOp bin, Value result) { Value left = new Value(); Value right = result; state.getValueAnyForm(bin.left, left); state.getValueAnyForm(bin.right, right); handleBinOpNonAssignHelper(state, bin.location, bin.op, left, right, result); } /** * Helper function that does the bin operation, sets debug info location on * builder and will not unset it. */ void handleBinOpNonAssignHelper(State state, ref Location loc, ir.BinOp.Op binOp, Value left, Value right, Value result) { diSetPosition(state, loc); makeNonPointer(state, left); makeNonPointer(state, right); // Check for pointer math. auto ptrType = cast(PointerType)left.type; if (ptrType !is null) return handleBinOpPointer(state, loc, binOp, left, right, result); // Note the flipping of args. ptrType = cast(PointerType)right.type; if (ptrType !is null) return handleBinOpPointer(state, loc, binOp, right, left, result); auto pt = cast(PrimitiveType)right.type; if (pt is null) throw panic(loc, "can only binop on primitive types"); handleBinOpPrimitive(state, loc, binOp, pt, left, right, result); } /** * Pointer artithmetic, caller have to flip left and right. Assumes debug * info location already set. */ void handleBinOpPointer(State state, Location loc, ir.BinOp.Op binOp, Value ptr, Value other, Value result) { auto ptrType = cast(PointerType)ptr.type; auto primType = cast(PrimitiveType)other.type; if (ptrType is null) throw panic(loc, "left value must be of pointer type"); if (primType is null) throw panic(loc, "can only do pointer math with non-pointer"); if (primType.floating) throw panic(loc, "can't do pointer math with floating value"); if (binOp != ir.BinOp.Op.Add && binOp != ir.BinOp.Op.Sub) throw panic(loc, "can only add or subtract to pointers"); LLVMValueRef val = other.value; if (binOp == ir.BinOp.Op.Sub) { val = LLVMBuildNeg(state.builder, val, ""); } // Either ptr or other could be result, keep that in mind. result.type = ptr.type; result.value = LLVMBuildGEP(state.builder, ptr.value, [val], ""); } /** * Primitive artithmetic, assumes debug info location already set. */ void handleBinOpPrimitive(State state, Location loc, ir.BinOp.Op binOp, PrimitiveType pt, Value left, Value right, Value result) { LLVMOpcode op; switch(binOp) with (ir.BinOp.Op) { case Add: op = pt.floating ? LLVMOpcode.FAdd : LLVMOpcode.Add; break; case Sub: op = pt.floating ? LLVMOpcode.FSub : LLVMOpcode.Sub; break; case Mul: op = pt.floating ? LLVMOpcode.FMul : LLVMOpcode.Mul; break; case Div: if (pt.floating) op = LLVMOpcode.FDiv; else if (pt.signed) op = LLVMOpcode.SDiv; else op = LLVMOpcode.UDiv; break; case Mod: if (pt.floating) op = LLVMOpcode.FRem; else if (pt.signed) op = LLVMOpcode.SRem; else op = LLVMOpcode.URem; break; case LS: assert(!pt.floating); op = LLVMOpcode.Shl; break; case SRS: assert(!pt.floating); if (pt.signed) { op = LLVMOpcode.AShr; } else { op = LLVMOpcode.LShr; } break; case RS: assert(!pt.floating); op = LLVMOpcode.LShr; break; case And: assert(!pt.floating); op = LLVMOpcode.And; break; case Or: assert(!pt.floating); op = LLVMOpcode.Or; break; case Xor: assert(!pt.floating); op = LLVMOpcode.Xor; break; default: throw panicUnhandled(loc, toString(binOp)); } // Either right or left could be result, keep that in mind. result.type = right.type; result.value = LLVMBuildBinOp(state.builder, op, left.value, right.value, ""); } /* * * Unary functions. * */ void handleUnary(State state, ir.Unary unary, Value result) { switch(unary.op) with (ir.Unary.Op) { case Cast: handleCast(state, unary, result); break; case Dereference: handleDereference(state, unary, result); break; case AddrOf: handleAddrOf(state, unary, result); break; case Plus: case Minus: handlePlusMinus(state, unary, result); break; case Not: handleNot(state, unary, result); break; case Complement: handleComplement(state, unary, result); break; case Increment: case Decrement: handleIncDec(state, unary, result); break; default: throw panicUnhandled(unary.location, toString(unary.op)); } } void handleCast(State state, ir.Unary cst, Value result) { // Start by getting the value. state.getValueAnyForm(cst.value, result); auto newType = state.fromIr(cst.type); handleCast(state, cst.location, newType, result); } void handleCast(State state, Location loc, Type newType, Value result) { auto oldType = result.type; auto newTypeArray = cast(ArrayType)newType; auto oldTypeArray = cast(ArrayType)oldType; if (newTypeArray !is null && oldTypeArray !is null) { // At one point we didn't call makePointer because arrays // should always be references. But for function returns they // aren't. Now we haven't run into cases before this change // where they weren't pointers so this is probably safe. But // at one point I clearly thought this was wrong todo. makePointer(state, result); return handleCastArray(state, loc, newType, result); } makeNonPointer(state, result); assert(newType !is null); assert(oldType !is null); /// @todo types are not cached yet. if (oldType is newType) return; auto newTypePrim = cast(PrimitiveType)newType; auto oldTypePrim = cast(PrimitiveType)oldType; if (newTypePrim !is null && oldTypePrim !is null) return handleCastPrimitive(state, loc, newTypePrim, oldTypePrim, result); auto newTypePtr = cast(PointerType)newType; auto oldTypePtr = cast(PointerType)oldType; auto newTypeFn = cast(FunctionType)newType; auto oldTypeFn = cast(FunctionType)oldType; if ((newTypePtr !is null || newTypeFn !is null) && (oldTypePtr !is null || oldTypeFn !is null)) { return handleCastPointer(state, loc, newType, result); } if ((newTypePrim !is null && (oldTypeFn !is null || oldTypePtr !is null)) || (oldTypePrim !is null && (newTypeFn !is null || newTypePtr !is null))) { auto t = newTypePtr is null ? newTypeFn : newTypePtr; return handleCastPointerPrim(state, loc, t, newTypePrim, result); } throw panicUnhandled(loc, ir.nodeToString(oldType.irType) ~ " -> " ~ ir.nodeToString(newType.irType)); } /** * Handle primitive casts, the value to cast is stored in result already. */ void handleCastPrimitive(State state, Location loc, PrimitiveType newType, PrimitiveType oldType, Value result) { assert(!result.isPointer); // No op it. if (newType is oldType) return; void error() { throw panic(loc, "invalid cast"); } result.type = newType; LLVMOpcode op; if (newType.boolean) { if (oldType.floating) { result.value = LLVMBuildFCmp(state.builder, LLVMRealPredicate.ONE, result.value, LLVMConstNull(oldType.llvmType), ""); } else { // Need to insert a test here. result.value = LLVMBuildICmp(state.builder, LLVMIntPredicate.NE, result.value, LLVMConstNull(oldType.llvmType), ""); } return; // No fallthrough. } else if (newType.floating) { if (oldType.floating) { if (newType.bits < oldType.bits) { op = LLVMOpcode.FPTrunc; } else if (newType.bits > oldType.bits) { op = LLVMOpcode.FPExt; } else { error(); // Type are the same? } } else if (oldType.signed) { op = LLVMOpcode.SIToFP; } else { op = LLVMOpcode.UIToFP; } } else if (oldType.floating) { if (newType.signed) { op = LLVMOpcode.FPToSI; } else { op = LLVMOpcode.FPToUI; } } else { if (newType.bits < oldType.bits) { // Truncate is easy, since it doesn't care about signedness. op = LLVMOpcode.Trunc; } else if (newType.bits > oldType.bits) { // Extend care about signedness of the target type. // But only if both are signed, since "cast(int)cast(ubyte)0xff" should yeild 255 not -1. if (!oldType.signed) { op = LLVMOpcode.ZExt; } else { op = LLVMOpcode.SExt; } } else if (newType.signed != oldType.signed) { // Just bitcast this. op = LLVMOpcode.BitCast; } else { // The types have the same size, but may be semantically distinct (char => ubyte, for example). return; } } result.value = LLVMBuildCast(state.builder, op, result.value, newType.llvmType, ""); } /** * Handle pointer casts. * This is really easy. * Also casts between function pointers and pointers. */ void handleCastPointer(State state, Location loc, Type newType, Value result) { assert(!result.isPointer); result.type = newType; result.value = LLVMBuildBitCast(state.builder, result.value, newType.llvmType, ""); } /** * Handle pointer <-> integer casts. */ void handleCastPointerPrim(State state, Location loc, Type newTypePtr, Type newTypePrim, Value result) { assert(!result.isPointer); if (newTypePtr !is null) { result.type = newTypePtr; result.value = LLVMBuildIntToPtr(state.builder, result.value, newTypePtr.llvmType, ""); } else { assert(newTypePrim !is null); result.type = newTypePrim; result.value = LLVMBuildPtrToInt(state.builder, result.value, newTypePrim.llvmType, ""); } } /** * Handle all Array casts as bit casts */ void handleCastArray(State state, Location loc, Type newType, Value result) { assert(result.isPointer); result.type = newType; result.value = LLVMBuildBitCast(state.builder, result.value, LLVMPointerType(newType.llvmType, 0), ""); } /** * Handles bitwise not, the ~ operator. */ void handleComplement(State state, ir.Unary comp, Value result) { state.getValue(comp.value, result); auto neg = LLVMBuildNeg(state.builder, result.value, ""); auto one = LLVMConstInt(result.type.llvmType, 1, true); result.value = LLVMBuildSub(state.builder, neg, one, ""); } /** * Handles '*' dereferences. */ void handleDereference(State state, ir.Unary de, Value result) { state.getValue(de.value, result); auto pt = cast(PointerType)result.type; assert(pt !is null); result.type = pt.base; result.isPointer = true; } /** * Handles '&' referencing. */ void handleAddrOf(State state, ir.Unary de, Value result) { state.getValueRef(de.value, result); auto pt = new ir.PointerType(); pt.base = result.type.irType; assert(pt.base !is null); pt.mangledName = volt.semantic.mangle.mangle(pt); result.type = state.fromIr(pt); result.isPointer = false; } void handlePlusMinus(State state, ir.Unary unary, Value result) { state.getValue(unary.value, result); auto primType = cast(PrimitiveType)result.type; if (primType is null) throw panic(unary.location, "must be primitive type"); // No-op plus if (unary.op == ir.Unary.Op.Plus) return; if (primType.floating) result.value = LLVMBuildFNeg(state.builder, result.value, ""); else result.value = LLVMBuildNeg(state.builder, result.value, ""); } void handleNot(State state, ir.Unary unary, Value result) { state.getValue(unary.value, result); if (result.type !is state.boolType) { handleCast(state, unary.location, state.boolType, result); } result.value = LLVMBuildNot(state.builder, result.value, ""); } void handleIncDec(State state, ir.Unary unary, Value result) { LLVMValueRef ptr, read, value; bool isInc = unary.op == ir.Unary.Op.Increment; state.getValueRef(unary.value, result); ptr = result.value; read = LLVMBuildLoad(state.builder, ptr, ""); auto ptrType = cast(PointerType)result.type; auto primType = cast(PrimitiveType)result.type; if (ptrType !is null) { auto v = isInc ? 1 : -1; auto c = LLVMConstInt(LLVMInt32TypeInContext(state.context), cast(uint)v, true); value = LLVMBuildGEP(state.builder, read, [c], ""); } else if (primType !is null) { auto op = isInc ? LLVMOpcode.Add : LLVMOpcode.Sub; auto c = primType.fromNumber(state, 1); value = LLVMBuildBinOp(state.builder, op, read, c, ""); } else { throw makeExpected(unary, "primitive or pointer"); } LLVMBuildStore(state.builder, value, ptr); result.isPointer = false; result.value = value; } /* * * Postfix functions. * */ void handlePostfix(State state, ir.Postfix postfix, Value result) { switch(postfix.op) with (ir.Postfix.Op) { case Index: handleIndex(state, postfix, result); break; case Slice: handleSlice(state, postfix, result); break; case Call: handleCall(state, postfix, result); break; case CreateDelegate: handleCreateDelegate(state, postfix, result); break; case Decrement: case Increment: handleIncDec(state, postfix, result); break; default: throw panicUnhandled(postfix.location, toString(postfix.op)); } } void handleIndex(State state, ir.Postfix postfix, Value result) { Value left = result; Value right = new Value(); assert(postfix.arguments.length == 1); state.getValueAnyForm(postfix.child, left); state.getValue(postfix.arguments[0], right); // Turn arr[index] into arr.ptr[index] auto at = cast(ArrayType)left.type; if (at !is null) getPointerFromArray(state, postfix.location, left); auto sat = cast(StaticArrayType)left.type; if (sat !is null) getPointerFromStaticArray(state, postfix.location, left); auto pt = cast(PointerType)left.type; if (pt is null) throw panic(postfix.location, "can not index non-array or pointer type"); makeNonPointer(state, left); result.value = LLVMBuildGEP(state.builder, left.value, [right.value], ""); result.type = pt.base; result.isPointer = true; } void handleSlice(State state, ir.Postfix postfix, Value result) { if (postfix.arguments.length == 0) handleSliceNone(state, postfix, result); else if (postfix.arguments.length == 2) handleSliceTwo(state, postfix, result); else throw panic(postfix.location, "wrong number of arguments to slice"); } void handleSliceNone(State state, ir.Postfix postfix, Value result) { assert(postfix.arguments.length == 0); state.getValueAnyForm(postfix.child, result); auto at = cast(ArrayType)result.type; auto sat = cast(StaticArrayType)result.type; if (at !is null) { // Nothing todo. } else if (sat !is null) { getArrayFromStaticArray(state, postfix.location, result); } else { throw panic(postfix.location, "unhandled type in slice (none)"); } } void handleSliceTwo(State state, ir.Postfix postfix, Value result) { assert(postfix.arguments.length == 2); Value left = new Value(); Value start = new Value(); Value end = new Value(); // Make sure that this is in a known state. result.value = null; result.isPointer = false; result.type = null; state.getValueAnyForm(postfix.child, left); auto pt = cast(PointerType)left.type; auto at = cast(ArrayType)left.type; auto sat = cast(StaticArrayType)left.type; if (pt !is null) { makeNonPointer(state, left); auto irPt = cast(ir.PointerType)pt.irType; assert(irPt !is null); auto irAt = new ir.ArrayType(irPt.base); irAt.location = postfix.location; addMangledName(irAt); at = cast(ArrayType)state.fromIr(irAt); assert(at !is null); makeNonPointer(state, left); } else if (at !is null) { getPointerFromArray(state, postfix.location, left); makeNonPointer(state, left); } else if (sat !is null) { getPointerFromStaticArray(state, postfix.location, left); at = sat.arrayType; } else { throw panicUnhandled(postfix, ir.nodeToString(left.type.irType)); } // Do we need temporary storage for the result? if (result.value is null) { result.value = LLVMBuildAlloca(state.builder, at.llvmType, "sliceTemp"); result.isPointer = true; result.type = at; } state.getValueAnyForm(postfix.arguments[0], start); state.getValueAnyForm(postfix.arguments[1], end); handleCast(state, postfix.location, state.sizeType, start); handleCast(state, postfix.location, state.sizeType, end); LLVMValueRef ptr, len; ptr = LLVMBuildGEP(state.builder, left.value, [start.value], ""); // Subtract start from end to get the length, which returned in end. // Will set and leave debug info location and we want that. handleBinOpNonAssignHelper(state, postfix.location, ir.BinOp.Op.Sub, end, start, end); len = end.value; makeArrayTemp(state, postfix.location, at, ptr, len, result); } void handleCreateDelegate(State state, ir.Postfix postfix, Value result) { Value instance = result; Value func = new Value(); getCreateDelegateValues(state, postfix, instance, func); auto funcType = cast(FunctionType)func.type; if (funcType is null) throw panic(postfix, "func isn't FunctionType"); auto irFn = cast(ir.FunctionType)funcType.irType; auto irDg = new ir.DelegateType(irFn); irDg.mangledName = volt.semantic.mangle.mangle(irDg); auto dg = cast(DelegateType)state.fromIr(irDg); if (dg is null) throw panicOhGod(postfix); instance.value = LLVMBuildBitCast( state.builder, instance.value, state.voidPtrType.llvmType, ""); func.value = LLVMBuildBitCast( state.builder, func.value, dg.llvmCallPtrType, ""); auto v = LLVMBuildAlloca(state.builder, dg.llvmType, ""); auto funcPtr = LLVMBuildStructGEP( state.builder, v, DelegateType.funcIndex, ""); auto voidPtrPtr = LLVMBuildStructGEP( state.builder, v, DelegateType.voidPtrIndex, ""); LLVMBuildStore(state.builder, func.value, funcPtr); LLVMBuildStore(state.builder, instance.value, voidPtrPtr); result.type = dg; result.isPointer = true; result.value = v; } void handleCall(State state, ir.Postfix postfix, Value result) { auto llvmArgs = new LLVMValueRef[](postfix.arguments.length); size_t offset; // Special case create delegate children to save // a bunch of created delegates in the LLVM IR. auto childAsPostfix = cast(ir.Postfix)postfix.child; if (childAsPostfix !is null && childAsPostfix.op == ir.Postfix.Op.CreateDelegate) { auto instance = new Value(); getCreateDelegateValues(state, childAsPostfix, instance, result); llvmArgs = LLVMBuildBitCast(state.builder, instance.value, state.voidPtrType.llvmType, "") ~ llvmArgs; offset = 1; } else { state.getValueAnyForm(postfix.child, result); } auto ct = cast(CallableType)result.type; auto ft = cast(FunctionType)result.type; auto dt = cast(DelegateType)result.type; Type ret; if (ft !is null) { ret = ft.ret; makeNonPointer(state, result); } else if (dt !is null) { makePointer(state, result); ret = dt.ret; auto func = LLVMBuildStructGEP(state.builder, result.value, DelegateType.funcIndex, ""); auto voidPtr = LLVMBuildStructGEP(state.builder, result.value, DelegateType.voidPtrIndex, ""); func = LLVMBuildLoad(state.builder, func, ""); voidPtr = LLVMBuildLoad(state.builder, voidPtr, ""); llvmArgs = voidPtr ~ llvmArgs; offset = 1; result.value = func; } else { throw panic(postfix.location, "can not call this thing"); } assert(ct !is null); foreach (i, arg; postfix.arguments) { auto v = new Value(); state.getValueAnyForm(arg, v); if (i < ct.ct.params.length && (ct.ct.isArgRef[i] || ct.ct.isArgOut[i])) { makePointer(state, v); llvmArgs[i+offset] = LLVMBuildBitCast(state.builder, v.value, LLVMPointerType(ct.params[i].llvmType, 0), ""); } else { makeNonPointer(state, v); llvmArgs[i+offset] = v.value; } } result.value = state.buildCallOrInvoke(postfix.location, result.value, llvmArgs); auto irc = cast(ir.CallableType) result.type.irType; if (irc !is null) switch (irc.linkage) { case ir.Linkage.Windows: LLVMSetInstructionCallConv(result.value, LLVMCallConv.X86Stdcall); break; case ir.Linkage.C, ir.Linkage.Volt: break; default: throw panicUnhandled(postfix.location, "call site linkage"); } result.isPointer = false; result.type = ret; } void handleIncDec(State state, ir.Postfix postfix, Value result) { LLVMValueRef ptr, store, value; bool isInc = postfix.op == ir.Postfix.Op.Increment; state.getValueRef(postfix.child, result); ptr = result.value; value = LLVMBuildLoad(state.builder, ptr, ""); auto ptrType = cast(PointerType)result.type; auto primType = cast(PrimitiveType)result.type; if (ptrType !is null) { auto v = isInc ? 1 : -1; auto c = LLVMConstInt(LLVMInt32TypeInContext(state.context), cast(uint)v, true); store = LLVMBuildGEP(state.builder, value, [c], ""); } else if (primType !is null) { auto op = isInc ? LLVMOpcode.Add : LLVMOpcode.Sub; auto c = primType.fromNumber(state, 1); store = LLVMBuildBinOp(state.builder, op, value, c, ""); } else { throw makeExpected(postfix, "primitive or pointer"); } LLVMBuildStore(state.builder, store, ptr); result.isPointer = false; result.value = value; } /* * * Misc functions. * */ void handleAccessExp(State state, ir.AccessExp ae, Value result) { auto b = state.builder; uint index; state.getValueAnyForm(ae.child, result); auto st = cast(StructType)result.type; auto ut = cast(UnionType)result.type; auto pt = cast(PointerType)result.type; if (pt !is null) { st = cast(StructType)pt.base; ut = cast(UnionType)pt.base; if (st is null && ut is null) { throw panic(ae, "pointed to value is not a struct or (static)array"); } // We are looking at a pointer, make sure to load it. makeNonPointer(state, result); result.isPointer = true; result.type = pt.base; } auto key = ae.field.name; if (ut !is null) { auto ptr = key in ut.indices; if (ptr is null) { throw panicNotMember(ae, ut.irType.mangledName, key); } else { index = *ptr; } makePointer(state, result); result.type = ut.types[index]; auto t = LLVMPointerType(result.type.llvmType, 0); result.value = LLVMBuildBitCast(state.builder, result.value, t, ""); } else if (st !is null) { auto ptr = key in st.indices; if (ptr is null) { throw panicNotMember(ae, st.irType.mangledName, key); } else { index = *ptr; } getFieldFromAggregate(state, ae.location, result, index, st.types[index], result); } else { throw panic(ae, format("%s is not struct, array or pointer", ir.nodeToString(result.type.irType))); } } void handleVaArgExp(State state, ir.VaArgExp vaexp, Value result) { state.getValueAnyForm(vaexp.arg, result); auto ty = fromIr(state, vaexp.type); result.value = LLVMBuildVAArg(state.builder, result.value, ty.llvmType, ""); } void handleBuiltinExp(State state, ir.BuiltinExp inbuilt, Value result) { final switch (inbuilt.kind) with (ir.BuiltinExp.Kind) { case ArrayPtr: assert(inbuilt.children.length == 1); state.getValueAnyForm(inbuilt.children[0], result); auto at = cast(ArrayType)result.type; auto sat = cast(StaticArrayType)result.type; if (at !is null) { getFieldFromAggregate( state, inbuilt.location, result, ArrayType.ptrIndex, at.types[ArrayType.ptrIndex], result); } else if (sat !is null) { getPointerFromStaticArray(state, inbuilt.location, result); } else { throw panic(inbuilt.location, "bad array ptr built-in."); } break; case ArrayLength: assert(inbuilt.children.length == 1); state.getValueAnyForm(inbuilt.children[0], result); auto at = cast(ArrayType)result.type; auto sat = cast(StaticArrayType)result.type; if (at !is null) { getFieldFromAggregate( state, inbuilt.location, result, ArrayType.lengthIndex, at.types[ArrayType.lengthIndex], result); } else if (sat !is null) { auto t = state.sizeType; result.value = LLVMConstInt(t.llvmType, sat.length, false); result.isPointer = false; result.type = t; } else { throw panic(inbuilt.location, "bad array ptr built-in."); } break; case Invalid: case ArrayDup: case AALength: case AAKeys: case AAValues: case AARehash: case AAGet: case AARemove: case AAIn: case AADup: case UFCS: case Classinfo: case PODCtor: throw panic(inbuilt, "unhandled"); } } void handleStatementExp(State state, ir.StatementExp statExp, Value result) { foreach (stat; statExp.statements) { state.evaluateStatement(stat); } state.getValueAnyForm(statExp.exp, result); } void handleExpReference(State state, ir.ExpReference expRef, Value result) { switch(expRef.decl.declKind) with (ir.Declaration.Kind) { case Function: auto func = cast(ir.Function)expRef.decl; result.isPointer = func.loadDynamic; result.value = state.getFunctionValue(func, result.type); break; case Variable: auto var = cast(ir.Variable)expRef.decl; result.isPointer = !var.useBaseStorage; result.value = state.getVariableValue(var, result.type); break; case FunctionParam: auto fp = cast(ir.FunctionParam)expRef.decl; result.isPointer = true; result.value = state.getVariableValue(fp, result.type); break; case EnumDeclaration: auto ed = cast(ir.EnumDeclaration)expRef.decl; state.getConstantValueAnyForm(ed.assign, result); break; default: throw panicUnhandled(expRef.location, toString(expRef.decl.declKind)); } } /** * Gets the value for the expressions and makes sure that * it is a struct reference value. Will handle pointers to * structs correctly, setting isPointer to true and * dereferencing the type pointer to the actual StructType. */ void getStructRef(State state, ir.Exp exp, Value result) { getValueAnyForm(state, exp, result); auto strct = cast(StructType)result.type; auto pt = cast(PointerType)result.type; if (strct !is null) { makePointer(state, result); } else if (pt !is null) { makeNonPointer(state, result); strct = cast(StructType)pt.base; if (strct is null) throw panic(exp, "not a pointer to a struct"); result.type = strct; result.isPointer = true; } else { throw panic(exp, "is not a struct"); } } /** * Get the value pair needed to call or create a delegate. */ void getCreateDelegateValues(State state, ir.Postfix postfix, Value instance, Value func) { state.getStructRef(postfix.child, instance); // See if the function should be gotten from the vtable. int index = -1; if (postfix.memberFunction !is null && !postfix.supressVtableLookup) { auto asFunction = cast(ir.Function) postfix.memberFunction.decl; assert(asFunction !is null); index = asFunction.vtableIndex; } if (index >= 0) { auto st = cast(StructType)instance.type; assert(st !is null); getFieldFromAggregate(state, postfix.location, instance, 0, st.types[0], func); makeNonPointer(state, func); auto pt = cast(PointerType)func.type; assert(pt !is null); st = cast(StructType)pt.base; assert(st !is null); func.type = st; func.isPointer = true; auto i = index + 1; // Offset by one. getFieldFromAggregate(state, postfix.location, func, cast(uint)i, st.types[i], func); makeNonPointer(state, func); } else { state.getValue(postfix.memberFunction, func); } } /** * If the given value isPointer is set build a load function. */ void makeNonPointer(State state, Value result) { if (!result.isPointer) return; result.value = LLVMBuildLoad(state.builder, result.value, ""); result.isPointer = false; } /** * Ensures that the given Value is a pointer by allocating temp storage for it. */ void makePointer(State state, Value result) { if (result.isPointer) return; auto v = LLVMBuildAlloca(state.builder, result.type.llvmType, "tempStorage"); LLVMBuildStore(state.builder, result.value, v); result.value = v; result.isPointer = true; }
D
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.build/KeyedCache/MemoryKeyedCache.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/Database.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/LogSupporting.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/Databases.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.build/KeyedCache/MemoryKeyedCache~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/Database.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/LogSupporting.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/Databases.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.build/KeyedCache/MemoryKeyedCache~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/Database.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/LogSupporting.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Database/Databases.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Exports.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
void main() { import std.stdio, std.algorithm, std.range, std.file, std.string; auto words = "unixdict.txt".readText.split.filter!isSorted; immutable maxLen = words.map!q{a.length}.reduce!max; writefln("%-(%s\n%)", words.filter!(w => w.length == maxLen)); }
D
import vibe.vibe; void main() { auto settings = new HTTPServerSettings; settings.port = 3000; settings.bindAddresses = ["::1", "127.0.0.1"]; listenHTTP(settings, &hello); runApplication(); } void hello(HTTPServerRequest req, HTTPServerResponse res) { res.writeBody("Hello World"); }
D
// Written in the D programming language. /** JavaScript Object Notation Copyright: Copyright Jeremie Pelletier 2008 - 2009. License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Jeremie Pelletier, David Herberth References: $(LINK http://json.org/), $(LINK http://seriot.ch/parsing_json.html) Source: $(PHOBOSSRC std/json.d) */ /* Copyright Jeremie Pelletier 2008 - 2009. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ module std.json; import std.array; import std.conv; import std.range.primitives; import std.traits; /// @system unittest { import std.conv : to; // parse a file or string of json into a usable structure string s = `{ "language": "D", "rating": 3.5, "code": "42" }`; JSONValue j = parseJSON(s); // j and j["language"] return JSONValue, // j["language"].str returns a string assert(j["language"].str == "D"); assert(j["rating"].floating == 3.5); // check a type long x; if (const(JSONValue)* code = "code" in j) { if (code.type() == JSON_TYPE.INTEGER) x = code.integer; else x = to!int(code.str); } // create a json struct JSONValue jj = [ "language": "D" ]; // rating doesnt exist yet, so use .object to assign jj.object["rating"] = JSONValue(3.5); // create an array to assign to list jj.object["list"] = JSONValue( ["a", "b", "c"] ); // list already exists, so .object optional jj["list"].array ~= JSONValue("D"); string jjStr = `{"language":"D","list":["a","b","c","D"],"rating":3.5}`; assert(jj.toString == jjStr); } /** String literals used to represent special float values within JSON strings. */ enum JSONFloatLiteral : string { nan = "NaN", /// string representation of floating-point NaN inf = "Infinite", /// string representation of floating-point Infinity negativeInf = "-Infinite", /// string representation of floating-point negative Infinity } /** Flags that control how json is encoded and parsed. */ enum JSONOptions { none, /// standard parsing specialFloatLiterals = 0x1, /// encode NaN and Inf float values as strings escapeNonAsciiChars = 0x2, /// encode non ascii characters with an unicode escape sequence doNotEscapeSlashes = 0x4, /// do not escape slashes ('/') strictParsing = 0x8, /// Strictly follow RFC-8259 grammar when parsing } /** JSON type enumeration */ enum JSON_TYPE : byte { /// Indicates the type of a `JSONValue`. NULL, STRING, /// ditto INTEGER, /// ditto UINTEGER,/// ditto FLOAT, /// ditto OBJECT, /// ditto ARRAY, /// ditto TRUE, /// ditto FALSE /// ditto } /** JSON value node */ struct JSONValue { import std.exception : enforce; union Store { string str; long integer; ulong uinteger; double floating; JSONValue[string] object; JSONValue[] array; } private Store store; private JSON_TYPE type_tag; /** Returns the JSON_TYPE of the value stored in this structure. */ @property JSON_TYPE type() const pure nothrow @safe @nogc { return type_tag; } /// @safe unittest { string s = "{ \"language\": \"D\" }"; JSONValue j = parseJSON(s); assert(j.type == JSON_TYPE.OBJECT); assert(j["language"].type == JSON_TYPE.STRING); } /*** * Value getter/setter for `JSON_TYPE.STRING`. * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.STRING`. */ @property string str() const pure @trusted { enforce!JSONException(type == JSON_TYPE.STRING, "JSONValue is not a string"); return store.str; } /// ditto @property string str(string v) pure nothrow @nogc @safe { assign(v); return v; } /// @safe unittest { JSONValue j = [ "language": "D" ]; // get value assert(j["language"].str == "D"); // change existing key to new string j["language"].str = "Perl"; assert(j["language"].str == "Perl"); } /*** * Value getter/setter for `JSON_TYPE.INTEGER`. * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.INTEGER`. */ @property inout(long) integer() inout pure @safe { enforce!JSONException(type == JSON_TYPE.INTEGER, "JSONValue is not an integer"); return store.integer; } /// ditto @property long integer(long v) pure nothrow @safe @nogc { assign(v); return store.integer; } /*** * Value getter/setter for `JSON_TYPE.UINTEGER`. * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.UINTEGER`. */ @property inout(ulong) uinteger() inout pure @safe { enforce!JSONException(type == JSON_TYPE.UINTEGER, "JSONValue is not an unsigned integer"); return store.uinteger; } /// ditto @property ulong uinteger(ulong v) pure nothrow @safe @nogc { assign(v); return store.uinteger; } /*** * Value getter/setter for `JSON_TYPE.FLOAT`. Note that despite * the name, this is a $(B 64)-bit `double`, not a 32-bit `float`. * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.FLOAT`. */ @property inout(double) floating() inout pure @safe { enforce!JSONException(type == JSON_TYPE.FLOAT, "JSONValue is not a floating type"); return store.floating; } /// ditto @property double floating(double v) pure nothrow @safe @nogc { assign(v); return store.floating; } /*** * Value getter/setter for `JSON_TYPE.OBJECT`. * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.OBJECT`. * Note: this is @system because of the following pattern: --- auto a = &(json.object()); json.uinteger = 0; // overwrite AA pointer (*a)["hello"] = "world"; // segmentation fault --- */ @property ref inout(JSONValue[string]) object() inout pure @system { enforce!JSONException(type == JSON_TYPE.OBJECT, "JSONValue is not an object"); return store.object; } /// ditto @property JSONValue[string] object(JSONValue[string] v) pure nothrow @nogc @safe { assign(v); return v; } /*** * Value getter for `JSON_TYPE.OBJECT`. * Unlike `object`, this retrieves the object by value and can be used in @safe code. * * A caveat is that, if the returned value is null, modifications will not be visible: * --- * JSONValue json; * json.object = null; * json.objectNoRef["hello"] = JSONValue("world"); * assert("hello" !in json.object); * --- * * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.OBJECT`. */ @property inout(JSONValue[string]) objectNoRef() inout pure @trusted { enforce!JSONException(type == JSON_TYPE.OBJECT, "JSONValue is not an object"); return store.object; } /*** * Value getter/setter for `JSON_TYPE.ARRAY`. * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.ARRAY`. * Note: this is @system because of the following pattern: --- auto a = &(json.array()); json.uinteger = 0; // overwrite array pointer (*a)[0] = "world"; // segmentation fault --- */ @property ref inout(JSONValue[]) array() inout pure @system { enforce!JSONException(type == JSON_TYPE.ARRAY, "JSONValue is not an array"); return store.array; } /// ditto @property JSONValue[] array(JSONValue[] v) pure nothrow @nogc @safe { assign(v); return v; } /*** * Value getter for `JSON_TYPE.ARRAY`. * Unlike `array`, this retrieves the array by value and can be used in @safe code. * * A caveat is that, if you append to the returned array, the new values aren't visible in the * JSONValue: * --- * JSONValue json; * json.array = [JSONValue("hello")]; * json.arrayNoRef ~= JSONValue("world"); * assert(json.array.length == 1); * --- * * Throws: `JSONException` for read access if `type` is not * `JSON_TYPE.ARRAY`. */ @property inout(JSONValue[]) arrayNoRef() inout pure @trusted { enforce!JSONException(type == JSON_TYPE.ARRAY, "JSONValue is not an array"); return store.array; } /// Test whether the type is `JSON_TYPE.NULL` @property bool isNull() const pure nothrow @safe @nogc { return type == JSON_TYPE.NULL; } private void assign(T)(T arg) @safe { static if (is(T : typeof(null))) { type_tag = JSON_TYPE.NULL; } else static if (is(T : string)) { type_tag = JSON_TYPE.STRING; string t = arg; () @trusted { store.str = t; }(); } else static if (isSomeString!T) // issue 15884 { type_tag = JSON_TYPE.STRING; // FIXME: std.array.array(Range) is not deduced as 'pure' () @trusted { import std.utf : byUTF; store.str = cast(immutable)(arg.byUTF!char.array); }(); } else static if (is(T : bool)) { type_tag = arg ? JSON_TYPE.TRUE : JSON_TYPE.FALSE; } else static if (is(T : ulong) && isUnsigned!T) { type_tag = JSON_TYPE.UINTEGER; store.uinteger = arg; } else static if (is(T : long)) { type_tag = JSON_TYPE.INTEGER; store.integer = arg; } else static if (isFloatingPoint!T) { type_tag = JSON_TYPE.FLOAT; store.floating = arg; } else static if (is(T : Value[Key], Key, Value)) { static assert(is(Key : string), "AA key must be string"); type_tag = JSON_TYPE.OBJECT; static if (is(Value : JSONValue)) { JSONValue[string] t = arg; () @trusted { store.object = t; }(); } else { JSONValue[string] aa; foreach (key, value; arg) aa[key] = JSONValue(value); () @trusted { store.object = aa; }(); } } else static if (isArray!T) { type_tag = JSON_TYPE.ARRAY; static if (is(ElementEncodingType!T : JSONValue)) { JSONValue[] t = arg; () @trusted { store.array = t; }(); } else { JSONValue[] new_arg = new JSONValue[arg.length]; foreach (i, e; arg) new_arg[i] = JSONValue(e); () @trusted { store.array = new_arg; }(); } } else static if (is(T : JSONValue)) { type_tag = arg.type; store = arg.store; } else { static assert(false, text(`unable to convert type "`, T.stringof, `" to json`)); } } private void assignRef(T)(ref T arg) if (isStaticArray!T) { type_tag = JSON_TYPE.ARRAY; static if (is(ElementEncodingType!T : JSONValue)) { store.array = arg; } else { JSONValue[] new_arg = new JSONValue[arg.length]; foreach (i, e; arg) new_arg[i] = JSONValue(e); store.array = new_arg; } } /** * Constructor for `JSONValue`. If `arg` is a `JSONValue` * its value and type will be copied to the new `JSONValue`. * Note that this is a shallow copy: if type is `JSON_TYPE.OBJECT` * or `JSON_TYPE.ARRAY` then only the reference to the data will * be copied. * Otherwise, `arg` must be implicitly convertible to one of the * following types: `typeof(null)`, `string`, `ulong`, * `long`, `double`, an associative array `V[K]` for any `V` * and `K` i.e. a JSON object, any array or `bool`. The type will * be set accordingly. */ this(T)(T arg) if (!isStaticArray!T) { assign(arg); } /// Ditto this(T)(ref T arg) if (isStaticArray!T) { assignRef(arg); } /// Ditto this(T : JSONValue)(inout T arg) inout { store = arg.store; type_tag = arg.type; } /// @safe unittest { JSONValue j = JSONValue( "a string" ); j = JSONValue(42); j = JSONValue( [1, 2, 3] ); assert(j.type == JSON_TYPE.ARRAY); j = JSONValue( ["language": "D"] ); assert(j.type == JSON_TYPE.OBJECT); } void opAssign(T)(T arg) if (!isStaticArray!T && !is(T : JSONValue)) { assign(arg); } void opAssign(T)(ref T arg) if (isStaticArray!T) { assignRef(arg); } /*** * Array syntax for json arrays. * Throws: `JSONException` if `type` is not `JSON_TYPE.ARRAY`. */ ref inout(JSONValue) opIndex(size_t i) inout pure @safe { auto a = this.arrayNoRef; enforce!JSONException(i < a.length, "JSONValue array index is out of range"); return a[i]; } /// @safe unittest { JSONValue j = JSONValue( [42, 43, 44] ); assert( j[0].integer == 42 ); assert( j[1].integer == 43 ); } /*** * Hash syntax for json objects. * Throws: `JSONException` if `type` is not `JSON_TYPE.OBJECT`. */ ref inout(JSONValue) opIndex(string k) inout pure @safe { auto o = this.objectNoRef; return *enforce!JSONException(k in o, "Key not found: " ~ k); } /// @safe unittest { JSONValue j = JSONValue( ["language": "D"] ); assert( j["language"].str == "D" ); } /*** * Operator sets `value` for element of JSON object by `key`. * * If JSON value is null, then operator initializes it with object and then * sets `value` for it. * * Throws: `JSONException` if `type` is not `JSON_TYPE.OBJECT` * or `JSON_TYPE.NULL`. */ void opIndexAssign(T)(auto ref T value, string key) pure { enforce!JSONException(type == JSON_TYPE.OBJECT || type == JSON_TYPE.NULL, "JSONValue must be object or null"); JSONValue[string] aa = null; if (type == JSON_TYPE.OBJECT) { aa = this.objectNoRef; } aa[key] = value; this.object = aa; } /// @safe unittest { JSONValue j = JSONValue( ["language": "D"] ); j["language"].str = "Perl"; assert( j["language"].str == "Perl" ); } void opIndexAssign(T)(T arg, size_t i) pure { auto a = this.arrayNoRef; enforce!JSONException(i < a.length, "JSONValue array index is out of range"); a[i] = arg; this.array = a; } /// @safe unittest { JSONValue j = JSONValue( ["Perl", "C"] ); j[1].str = "D"; assert( j[1].str == "D" ); } JSONValue opBinary(string op : "~", T)(T arg) @safe { auto a = this.arrayNoRef; static if (isArray!T) { return JSONValue(a ~ JSONValue(arg).arrayNoRef); } else static if (is(T : JSONValue)) { return JSONValue(a ~ arg.arrayNoRef); } else { static assert(false, "argument is not an array or a JSONValue array"); } } void opOpAssign(string op : "~", T)(T arg) @safe { auto a = this.arrayNoRef; static if (isArray!T) { a ~= JSONValue(arg).arrayNoRef; } else static if (is(T : JSONValue)) { a ~= arg.arrayNoRef; } else { static assert(false, "argument is not an array or a JSONValue array"); } this.array = a; } /** * Support for the `in` operator. * * Tests wether a key can be found in an object. * * Returns: * when found, the `const(JSONValue)*` that matches to the key, * otherwise `null`. * * Throws: `JSONException` if the right hand side argument `JSON_TYPE` * is not `OBJECT`. */ auto opBinaryRight(string op : "in")(string k) const @safe { return k in this.objectNoRef; } /// @safe unittest { JSONValue j = [ "language": "D", "author": "walter" ]; string a = ("author" in j).str; } bool opEquals(const JSONValue rhs) const @nogc nothrow pure @safe { return opEquals(rhs); } bool opEquals(ref const JSONValue rhs) const @nogc nothrow pure @trusted { // Default doesn't work well since store is a union. Compare only // what should be in store. // This is @trusted to remain nogc, nothrow, fast, and usable from @safe code. if (type_tag != rhs.type_tag) return false; final switch (type_tag) { case JSON_TYPE.STRING: return store.str == rhs.store.str; case JSON_TYPE.INTEGER: return store.integer == rhs.store.integer; case JSON_TYPE.UINTEGER: return store.uinteger == rhs.store.uinteger; case JSON_TYPE.FLOAT: return store.floating == rhs.store.floating; case JSON_TYPE.OBJECT: return store.object == rhs.store.object; case JSON_TYPE.ARRAY: return store.array == rhs.store.array; case JSON_TYPE.TRUE: case JSON_TYPE.FALSE: case JSON_TYPE.NULL: return true; } } /// Implements the foreach `opApply` interface for json arrays. int opApply(scope int delegate(size_t index, ref JSONValue) dg) @system { int result; foreach (size_t index, ref value; array) { result = dg(index, value); if (result) break; } return result; } /// Implements the foreach `opApply` interface for json objects. int opApply(scope int delegate(string key, ref JSONValue) dg) @system { enforce!JSONException(type == JSON_TYPE.OBJECT, "JSONValue is not an object"); int result; foreach (string key, ref value; object) { result = dg(key, value); if (result) break; } return result; } /*** * Implicitly calls `toJSON` on this JSONValue. * * $(I options) can be used to tweak the conversion behavior. */ string toString(in JSONOptions options = JSONOptions.none) const @safe { return toJSON(this, false, options); } /*** * Implicitly calls `toJSON` on this JSONValue, like `toString`, but * also passes $(I true) as $(I pretty) argument. * * $(I options) can be used to tweak the conversion behavior */ string toPrettyString(in JSONOptions options = JSONOptions.none) const @safe { return toJSON(this, true, options); } } /** Parses a serialized string and returns a tree of JSON values. Throws: $(LREF JSONException) if string does not follow the JSON grammar or the depth exceeds the max depth, $(LREF ConvException) if a number in the input cannot be represented by a native D type. Params: json = json-formatted string to parse maxDepth = maximum depth of nesting allowed, -1 disables depth checking options = enable decoding string representations of NaN/Inf as float values */ JSONValue parseJSON(T)(T json, int maxDepth = -1, JSONOptions options = JSONOptions.none) if (isInputRange!T && !isInfinite!T && isSomeChar!(ElementEncodingType!T)) { import std.ascii : isDigit, isHexDigit, toUpper, toLower; import std.typecons : Nullable, Yes; JSONValue root; root.type_tag = JSON_TYPE.NULL; // Avoid UTF decoding when possible, as it is unnecessary when // processing JSON. static if (is(T : const(char)[])) alias Char = char; else alias Char = Unqual!(ElementType!T); int depth = -1; Nullable!Char next; int line = 1, pos = 0; immutable bool strict = (options & JSONOptions.strictParsing) != 0; void error(string msg) { throw new JSONException(msg, line, pos); } if (json.empty) { if (strict) { error("Empty JSON body"); } return root; } bool isWhite(dchar c) { if (strict) { // RFC 7159 has a stricter definition of whitespace than general ASCII. return c == ' ' || c == '\t' || c == '\n' || c == '\r'; } import std.ascii : isWhite; // Accept ASCII NUL as whitespace in non-strict mode. return c == 0 || isWhite(c); } Char popChar() { if (json.empty) error("Unexpected end of data."); static if (is(T : const(char)[])) { Char c = json[0]; json = json[1..$]; } else { Char c = json.front; json.popFront(); } if (c == '\n') { line++; pos = 0; } else { pos++; } return c; } Char peekChar() { if (next.isNull) { if (json.empty) return '\0'; next = popChar(); } return next.get; } Nullable!Char peekCharNullable() { if (next.isNull && !json.empty) { next = popChar(); } return next; } void skipWhitespace() { while (true) { auto c = peekCharNullable(); if (c.isNull || !isWhite(c.get)) { return; } next.nullify(); } } Char getChar(bool SkipWhitespace = false)() { static if (SkipWhitespace) skipWhitespace(); Char c; if (!next.isNull) { c = next.get; next.nullify(); } else c = popChar(); return c; } void checkChar(bool SkipWhitespace = true)(char c, bool caseSensitive = true) { static if (SkipWhitespace) skipWhitespace(); auto c2 = getChar(); if (!caseSensitive) c2 = toLower(c2); if (c2 != c) error(text("Found '", c2, "' when expecting '", c, "'.")); } bool testChar(bool SkipWhitespace = true, bool CaseSensitive = true)(char c) { static if (SkipWhitespace) skipWhitespace(); auto c2 = peekChar(); static if (!CaseSensitive) c2 = toLower(c2); if (c2 != c) return false; getChar(); return true; } wchar parseWChar() { wchar val = 0; foreach_reverse (i; 0 .. 4) { auto hex = toUpper(getChar()); if (!isHexDigit(hex)) error("Expecting hex character"); val += (isDigit(hex) ? hex - '0' : hex - ('A' - 10)) << (4 * i); } return val; } string parseString() { import std.uni : isSurrogateHi, isSurrogateLo; import std.utf : encode, decode; auto str = appender!string(); Next: switch (peekChar()) { case '"': getChar(); break; case '\\': getChar(); auto c = getChar(); switch (c) { case '"': str.put('"'); break; case '\\': str.put('\\'); break; case '/': str.put('/'); break; case 'b': str.put('\b'); break; case 'f': str.put('\f'); break; case 'n': str.put('\n'); break; case 'r': str.put('\r'); break; case 't': str.put('\t'); break; case 'u': wchar wc = parseWChar(); dchar val; // Non-BMP characters are escaped as a pair of // UTF-16 surrogate characters (see RFC 4627). if (isSurrogateHi(wc)) { wchar[2] pair; pair[0] = wc; if (getChar() != '\\') error("Expected escaped low surrogate after escaped high surrogate"); if (getChar() != 'u') error("Expected escaped low surrogate after escaped high surrogate"); pair[1] = parseWChar(); size_t index = 0; val = decode(pair[], index); if (index != 2) error("Invalid escaped surrogate pair"); } else if (isSurrogateLo(wc)) error(text("Unexpected low surrogate")); else val = wc; char[4] buf; immutable len = encode!(Yes.useReplacementDchar)(buf, val); str.put(buf[0 .. len]); break; default: error(text("Invalid escape sequence '\\", c, "'.")); } goto Next; default: // RFC 7159 states that control characters U+0000 through // U+001F must not appear unescaped in a JSON string. // Note: std.ascii.isControl can't be used for this test // because it considers ASCII DEL (0x7f) to be a control // character but RFC 7159 does not. // Accept unescaped ASCII NULs in non-strict mode. auto c = getChar(); if (c < 0x20 && (strict || c != 0)) error("Illegal control character."); str.put(c); goto Next; } return str.data.length ? str.data : ""; } bool tryGetSpecialFloat(string str, out double val) { switch (str) { case JSONFloatLiteral.nan: val = double.nan; return true; case JSONFloatLiteral.inf: val = double.infinity; return true; case JSONFloatLiteral.negativeInf: val = -double.infinity; return true; default: return false; } } void parseValue(ref JSONValue value) { depth++; if (maxDepth != -1 && depth > maxDepth) error("Nesting too deep."); auto c = getChar!true(); switch (c) { case '{': if (testChar('}')) { value.object = null; break; } JSONValue[string] obj; do { checkChar('"'); string name = parseString(); checkChar(':'); JSONValue member; parseValue(member); obj[name] = member; } while (testChar(',')); value.object = obj; checkChar('}'); break; case '[': if (testChar(']')) { value.type_tag = JSON_TYPE.ARRAY; break; } JSONValue[] arr; do { JSONValue element; parseValue(element); arr ~= element; } while (testChar(',')); checkChar(']'); value.array = arr; break; case '"': auto str = parseString(); // if special float parsing is enabled, check if string represents NaN/Inf if ((options & JSONOptions.specialFloatLiterals) && tryGetSpecialFloat(str, value.store.floating)) { // found a special float, its value was placed in value.store.floating value.type_tag = JSON_TYPE.FLOAT; break; } value.type_tag = JSON_TYPE.STRING; value.store.str = str; break; case '0': .. case '9': case '-': auto number = appender!string(); bool isFloat, isNegative; void readInteger() { if (!isDigit(c)) error("Digit expected"); Next: number.put(c); if (isDigit(peekChar())) { c = getChar(); goto Next; } } if (c == '-') { number.put('-'); c = getChar(); isNegative = true; } if (strict && c == '0') { number.put('0'); if (isDigit(peekChar())) { error("Additional digits not allowed after initial zero digit"); } } else { readInteger(); } if (testChar('.')) { isFloat = true; number.put('.'); c = getChar(); readInteger(); } if (testChar!(false, false)('e')) { isFloat = true; number.put('e'); if (testChar('+')) number.put('+'); else if (testChar('-')) number.put('-'); c = getChar(); readInteger(); } string data = number.data; if (isFloat) { value.type_tag = JSON_TYPE.FLOAT; value.store.floating = parse!double(data); } else { if (isNegative) value.store.integer = parse!long(data); else value.store.uinteger = parse!ulong(data); value.type_tag = !isNegative && value.store.uinteger & (1UL << 63) ? JSON_TYPE.UINTEGER : JSON_TYPE.INTEGER; } break; case 'T': if (strict) goto default; goto case; case 't': value.type_tag = JSON_TYPE.TRUE; checkChar!false('r', strict); checkChar!false('u', strict); checkChar!false('e', strict); break; case 'F': if (strict) goto default; goto case; case 'f': value.type_tag = JSON_TYPE.FALSE; checkChar!false('a', strict); checkChar!false('l', strict); checkChar!false('s', strict); checkChar!false('e', strict); break; case 'N': if (strict) goto default; goto case; case 'n': value.type_tag = JSON_TYPE.NULL; checkChar!false('u', strict); checkChar!false('l', strict); checkChar!false('l', strict); break; default: error(text("Unexpected character '", c, "'.")); } depth--; } parseValue(root); if (strict) { skipWhitespace(); if (!peekCharNullable().isNull) error("Trailing non-whitespace characters"); } return root; } @safe unittest { enum issue15742objectOfObject = `{ "key1": { "key2": 1 }}`; static assert(parseJSON(issue15742objectOfObject).type == JSON_TYPE.OBJECT); enum issue15742arrayOfArray = `[[1]]`; static assert(parseJSON(issue15742arrayOfArray).type == JSON_TYPE.ARRAY); } @safe unittest { // Ensure we can parse and use JSON from @safe code auto a = `{ "key1": { "key2": 1 }}`.parseJSON; assert(a["key1"]["key2"].integer == 1); assert(a.toString == `{"key1":{"key2":1}}`); } @system unittest { // Ensure we can parse JSON from a @system range. struct Range { string s; size_t index; @system { bool empty() { return index >= s.length; } void popFront() { index++; } char front() { return s[index]; } } } auto s = Range(`{ "key1": { "key2": 1 }}`); auto json = parseJSON(s); assert(json["key1"]["key2"].integer == 1); } /** Parses a serialized string and returns a tree of JSON values. Throws: $(LREF JSONException) if the depth exceeds the max depth. Params: json = json-formatted string to parse options = enable decoding string representations of NaN/Inf as float values */ JSONValue parseJSON(T)(T json, JSONOptions options) if (isInputRange!T && !isInfinite!T && isSomeChar!(ElementEncodingType!T)) { return parseJSON!T(json, -1, options); } /** Takes a tree of JSON values and returns the serialized string. Any Object types will be serialized in a key-sorted order. If `pretty` is false no whitespaces are generated. If `pretty` is true serialized string is formatted to be human-readable. Set the $(LREF JSONOptions.specialFloatLiterals) flag is set in `options` to encode NaN/Infinity as strings. */ string toJSON(const ref JSONValue root, in bool pretty = false, in JSONOptions options = JSONOptions.none) @safe { auto json = appender!string(); void toStringImpl(Char)(string str) @safe { json.put('"'); foreach (Char c; str) { switch (c) { case '"': json.put("\\\""); break; case '\\': json.put("\\\\"); break; case '/': if (!(options & JSONOptions.doNotEscapeSlashes)) json.put('\\'); json.put('/'); break; case '\b': json.put("\\b"); break; case '\f': json.put("\\f"); break; case '\n': json.put("\\n"); break; case '\r': json.put("\\r"); break; case '\t': json.put("\\t"); break; default: { import std.ascii : isControl; import std.utf : encode; // Make sure we do UTF decoding iff we want to // escape Unicode characters. assert(((options & JSONOptions.escapeNonAsciiChars) != 0) == is(Char == dchar), "JSONOptions.escapeNonAsciiChars needs dchar strings"); with (JSONOptions) if (isControl(c) || ((options & escapeNonAsciiChars) >= escapeNonAsciiChars && c >= 0x80)) { // Ensure non-BMP characters are encoded as a pair // of UTF-16 surrogate characters, as per RFC 4627. wchar[2] wchars; // 1 or 2 UTF-16 code units size_t wNum = encode(wchars, c); // number of UTF-16 code units foreach (wc; wchars[0 .. wNum]) { json.put("\\u"); foreach_reverse (i; 0 .. 4) { char ch = (wc >>> (4 * i)) & 0x0f; ch += ch < 10 ? '0' : 'A' - 10; json.put(ch); } } } else { json.put(c); } } } } json.put('"'); } void toString(string str) @safe { // Avoid UTF decoding when possible, as it is unnecessary when // processing JSON. if (options & JSONOptions.escapeNonAsciiChars) toStringImpl!dchar(str); else toStringImpl!char(str); } void toValue(ref in JSONValue value, ulong indentLevel) @safe { void putTabs(ulong additionalIndent = 0) { if (pretty) foreach (i; 0 .. indentLevel + additionalIndent) json.put(" "); } void putEOL() { if (pretty) json.put('\n'); } void putCharAndEOL(char ch) { json.put(ch); putEOL(); } final switch (value.type) { case JSON_TYPE.OBJECT: auto obj = value.objectNoRef; if (!obj.length) { json.put("{}"); } else { putCharAndEOL('{'); bool first = true; void emit(R)(R names) { foreach (name; names) { auto member = obj[name]; if (!first) putCharAndEOL(','); first = false; putTabs(1); toString(name); json.put(':'); if (pretty) json.put(' '); toValue(member, indentLevel + 1); } } import std.algorithm.sorting : sort; // @@@BUG@@@ 14439 // auto names = obj.keys; // aa.keys can't be called in @safe code auto names = new string[obj.length]; size_t i = 0; foreach (k, v; obj) { names[i] = k; i++; } sort(names); emit(names); putEOL(); putTabs(); json.put('}'); } break; case JSON_TYPE.ARRAY: auto arr = value.arrayNoRef; if (arr.empty) { json.put("[]"); } else { putCharAndEOL('['); foreach (i, el; arr) { if (i) putCharAndEOL(','); putTabs(1); toValue(el, indentLevel + 1); } putEOL(); putTabs(); json.put(']'); } break; case JSON_TYPE.STRING: toString(value.str); break; case JSON_TYPE.INTEGER: json.put(to!string(value.store.integer)); break; case JSON_TYPE.UINTEGER: json.put(to!string(value.store.uinteger)); break; case JSON_TYPE.FLOAT: import std.math : isNaN, isInfinity; auto val = value.store.floating; if (val.isNaN) { if (options & JSONOptions.specialFloatLiterals) { toString(JSONFloatLiteral.nan); } else { throw new JSONException( "Cannot encode NaN. Consider passing the specialFloatLiterals flag."); } } else if (val.isInfinity) { if (options & JSONOptions.specialFloatLiterals) { toString((val > 0) ? JSONFloatLiteral.inf : JSONFloatLiteral.negativeInf); } else { throw new JSONException( "Cannot encode Infinity. Consider passing the specialFloatLiterals flag."); } } else { import std.format : format; // The correct formula for the number of decimal digits needed for lossless round // trips is actually: // ceil(log(pow(2.0, double.mant_dig - 1)) / log(10.0) + 1) == (double.dig + 2) // Anything less will round off (1 + double.epsilon) json.put("%.18g".format(val)); } break; case JSON_TYPE.TRUE: json.put("true"); break; case JSON_TYPE.FALSE: json.put("false"); break; case JSON_TYPE.NULL: json.put("null"); break; } } toValue(root, 0); return json.data; } @safe unittest // bugzilla 12897 { JSONValue jv0 = JSONValue("test测试"); assert(toJSON(jv0, false, JSONOptions.escapeNonAsciiChars) == `"test\u6D4B\u8BD5"`); JSONValue jv00 = JSONValue("test\u6D4B\u8BD5"); assert(toJSON(jv00, false, JSONOptions.none) == `"test测试"`); assert(toJSON(jv0, false, JSONOptions.none) == `"test测试"`); JSONValue jv1 = JSONValue("été"); assert(toJSON(jv1, false, JSONOptions.escapeNonAsciiChars) == `"\u00E9t\u00E9"`); JSONValue jv11 = JSONValue("\u00E9t\u00E9"); assert(toJSON(jv11, false, JSONOptions.none) == `"été"`); assert(toJSON(jv1, false, JSONOptions.none) == `"été"`); } /** Exception thrown on JSON errors */ class JSONException : Exception { this(string msg, int line = 0, int pos = 0) pure nothrow @safe { if (line) super(text(msg, " (Line ", line, ":", pos, ")")); else super(msg); } this(string msg, string file, size_t line) pure nothrow @safe { super(msg, file, line); } } @system unittest { import std.exception; JSONValue jv = "123"; assert(jv.type == JSON_TYPE.STRING); assertNotThrown(jv.str); assertThrown!JSONException(jv.integer); assertThrown!JSONException(jv.uinteger); assertThrown!JSONException(jv.floating); assertThrown!JSONException(jv.object); assertThrown!JSONException(jv.array); assertThrown!JSONException(jv["aa"]); assertThrown!JSONException(jv[2]); jv = -3; assert(jv.type == JSON_TYPE.INTEGER); assertNotThrown(jv.integer); jv = cast(uint) 3; assert(jv.type == JSON_TYPE.UINTEGER); assertNotThrown(jv.uinteger); jv = 3.0; assert(jv.type == JSON_TYPE.FLOAT); assertNotThrown(jv.floating); jv = ["key" : "value"]; assert(jv.type == JSON_TYPE.OBJECT); assertNotThrown(jv.object); assertNotThrown(jv["key"]); assert("key" in jv); assert("notAnElement" !in jv); assertThrown!JSONException(jv["notAnElement"]); const cjv = jv; assert("key" in cjv); assertThrown!JSONException(cjv["notAnElement"]); foreach (string key, value; jv) { static assert(is(typeof(value) == JSONValue)); assert(key == "key"); assert(value.type == JSON_TYPE.STRING); assertNotThrown(value.str); assert(value.str == "value"); } jv = [3, 4, 5]; assert(jv.type == JSON_TYPE.ARRAY); assertNotThrown(jv.array); assertNotThrown(jv[2]); foreach (size_t index, value; jv) { static assert(is(typeof(value) == JSONValue)); assert(value.type == JSON_TYPE.INTEGER); assertNotThrown(value.integer); assert(index == (value.integer-3)); } jv = null; assert(jv.type == JSON_TYPE.NULL); assert(jv.isNull); jv = "foo"; assert(!jv.isNull); jv = JSONValue("value"); assert(jv.type == JSON_TYPE.STRING); assert(jv.str == "value"); JSONValue jv2 = JSONValue("value"); assert(jv2.type == JSON_TYPE.STRING); assert(jv2.str == "value"); JSONValue jv3 = JSONValue("\u001c"); assert(jv3.type == JSON_TYPE.STRING); assert(jv3.str == "\u001C"); } @system unittest { // Bugzilla 11504 JSONValue jv = 1; assert(jv.type == JSON_TYPE.INTEGER); jv.str = "123"; assert(jv.type == JSON_TYPE.STRING); assert(jv.str == "123"); jv.integer = 1; assert(jv.type == JSON_TYPE.INTEGER); assert(jv.integer == 1); jv.uinteger = 2u; assert(jv.type == JSON_TYPE.UINTEGER); assert(jv.uinteger == 2u); jv.floating = 1.5; assert(jv.type == JSON_TYPE.FLOAT); assert(jv.floating == 1.5); jv.object = ["key" : JSONValue("value")]; assert(jv.type == JSON_TYPE.OBJECT); assert(jv.object == ["key" : JSONValue("value")]); jv.array = [JSONValue(1), JSONValue(2), JSONValue(3)]; assert(jv.type == JSON_TYPE.ARRAY); assert(jv.array == [JSONValue(1), JSONValue(2), JSONValue(3)]); jv = true; assert(jv.type == JSON_TYPE.TRUE); jv = false; assert(jv.type == JSON_TYPE.FALSE); enum E{True = true} jv = E.True; assert(jv.type == JSON_TYPE.TRUE); } @system pure unittest { // Adding new json element via array() / object() directly JSONValue jarr = JSONValue([10]); foreach (i; 0 .. 9) jarr.array ~= JSONValue(i); assert(jarr.array.length == 10); JSONValue jobj = JSONValue(["key" : JSONValue("value")]); foreach (i; 0 .. 9) jobj.object[text("key", i)] = JSONValue(text("value", i)); assert(jobj.object.length == 10); } @system pure unittest { // Adding new json element without array() / object() access JSONValue jarr = JSONValue([10]); foreach (i; 0 .. 9) jarr ~= [JSONValue(i)]; assert(jarr.array.length == 10); JSONValue jobj = JSONValue(["key" : JSONValue("value")]); foreach (i; 0 .. 9) jobj[text("key", i)] = JSONValue(text("value", i)); assert(jobj.object.length == 10); // No array alias auto jarr2 = jarr ~ [1,2,3]; jarr2[0] = 999; assert(jarr[0] == JSONValue(10)); } @system unittest { // @system because JSONValue.array is @system import std.exception; // An overly simple test suite, if it can parse a serializated string and // then use the resulting values tree to generate an identical // serialization, both the decoder and encoder works. auto jsons = [ `null`, `true`, `false`, `0`, `123`, `-4321`, `0.25`, `-0.25`, `""`, `"hello\nworld"`, `"\"\\\/\b\f\n\r\t"`, `[]`, `[12,"foo",true,false]`, `{}`, `{"a":1,"b":null}`, `{"goodbye":[true,"or",false,["test",42,{"nested":{"a":23.5,"b":0.140625}}]],` ~`"hello":{"array":[12,null,{}],"json":"is great"}}`, ]; enum dbl1_844 = `1.8446744073709568`; version (MinGW) jsons ~= dbl1_844 ~ `e+019`; else jsons ~= dbl1_844 ~ `e+19`; JSONValue val; string result; foreach (json; jsons) { try { val = parseJSON(json); enum pretty = false; result = toJSON(val, pretty); assert(result == json, text(result, " should be ", json)); } catch (JSONException e) { import std.stdio : writefln; writefln(text(json, "\n", e.toString())); } } // Should be able to correctly interpret unicode entities val = parseJSON(`"\u003C\u003E"`); assert(toJSON(val) == "\"\&lt;\&gt;\""); assert(val.to!string() == "\"\&lt;\&gt;\""); val = parseJSON(`"\u0391\u0392\u0393"`); assert(toJSON(val) == "\"\&Alpha;\&Beta;\&Gamma;\""); assert(val.to!string() == "\"\&Alpha;\&Beta;\&Gamma;\""); val = parseJSON(`"\u2660\u2666"`); assert(toJSON(val) == "\"\&spades;\&diams;\""); assert(val.to!string() == "\"\&spades;\&diams;\""); //0x7F is a control character (see Unicode spec) val = parseJSON(`"\u007F"`); assert(toJSON(val) == "\"\\u007F\""); assert(val.to!string() == "\"\\u007F\""); with(parseJSON(`""`)) assert(str == "" && str !is null); with(parseJSON(`[]`)) assert(!array.length); // Formatting val = parseJSON(`{"a":[null,{"x":1},{},[]]}`); assert(toJSON(val, true) == `{ "a": [ null, { "x": 1 }, {}, [] ] }`); } @safe unittest { auto json = `"hello\nworld"`; const jv = parseJSON(json); assert(jv.toString == json); assert(jv.toPrettyString == json); } @system pure unittest { // Bugzilla 12969 JSONValue jv; jv["int"] = 123; assert(jv.type == JSON_TYPE.OBJECT); assert("int" in jv); assert(jv["int"].integer == 123); jv["array"] = [1, 2, 3, 4, 5]; assert(jv["array"].type == JSON_TYPE.ARRAY); assert(jv["array"][2].integer == 3); jv["str"] = "D language"; assert(jv["str"].type == JSON_TYPE.STRING); assert(jv["str"].str == "D language"); jv["bool"] = false; assert(jv["bool"].type == JSON_TYPE.FALSE); assert(jv.object.length == 4); jv = [5, 4, 3, 2, 1]; assert( jv.type == JSON_TYPE.ARRAY ); assert( jv[3].integer == 2 ); } @safe unittest { auto s = q"EOF [ 1, 2, 3, potato ] EOF"; import std.exception; auto e = collectException!JSONException(parseJSON(s)); assert(e.msg == "Unexpected character 'p'. (Line 5:3)", e.msg); } // handling of special float values (NaN, Inf, -Inf) @safe unittest { import std.exception : assertThrown; import std.math : isNaN, isInfinity; // expected representations of NaN and Inf enum { nanString = '"' ~ JSONFloatLiteral.nan ~ '"', infString = '"' ~ JSONFloatLiteral.inf ~ '"', negativeInfString = '"' ~ JSONFloatLiteral.negativeInf ~ '"', } // with the specialFloatLiterals option, encode NaN/Inf as strings assert(JSONValue(float.nan).toString(JSONOptions.specialFloatLiterals) == nanString); assert(JSONValue(double.infinity).toString(JSONOptions.specialFloatLiterals) == infString); assert(JSONValue(-real.infinity).toString(JSONOptions.specialFloatLiterals) == negativeInfString); // without the specialFloatLiterals option, throw on encoding NaN/Inf assertThrown!JSONException(JSONValue(float.nan).toString); assertThrown!JSONException(JSONValue(double.infinity).toString); assertThrown!JSONException(JSONValue(-real.infinity).toString); // when parsing json with specialFloatLiterals option, decode special strings as floats JSONValue jvNan = parseJSON(nanString, JSONOptions.specialFloatLiterals); JSONValue jvInf = parseJSON(infString, JSONOptions.specialFloatLiterals); JSONValue jvNegInf = parseJSON(negativeInfString, JSONOptions.specialFloatLiterals); assert(jvNan.floating.isNaN); assert(jvInf.floating.isInfinity && jvInf.floating > 0); assert(jvNegInf.floating.isInfinity && jvNegInf.floating < 0); // when parsing json without the specialFloatLiterals option, decode special strings as strings jvNan = parseJSON(nanString); jvInf = parseJSON(infString); jvNegInf = parseJSON(negativeInfString); assert(jvNan.str == JSONFloatLiteral.nan); assert(jvInf.str == JSONFloatLiteral.inf); assert(jvNegInf.str == JSONFloatLiteral.negativeInf); } pure nothrow @safe @nogc unittest { JSONValue testVal; testVal = "test"; testVal = 10; testVal = 10u; testVal = 1.0; testVal = (JSONValue[string]).init; testVal = JSONValue[].init; testVal = null; assert(testVal.isNull); } pure nothrow @safe unittest // issue 15884 { import std.typecons; void Test(C)() { C[] a = ['x']; JSONValue testVal = a; assert(testVal.type == JSON_TYPE.STRING); testVal = a.idup; assert(testVal.type == JSON_TYPE.STRING); } Test!char(); Test!wchar(); Test!dchar(); } @safe unittest // issue 15885 { enum bool realInDoublePrecision = real.mant_dig == double.mant_dig; static bool test(const double num0) { import std.math : feqrel; const json0 = JSONValue(num0); const num1 = to!double(toJSON(json0)); static if (realInDoublePrecision) return feqrel(num1, num0) >= (double.mant_dig - 1); else return num1 == num0; } assert(test( 0.23)); assert(test(-0.23)); assert(test(1.223e+24)); assert(test(23.4)); assert(test(0.0012)); assert(test(30738.22)); assert(test(1 + double.epsilon)); assert(test(double.min_normal)); static if (realInDoublePrecision) assert(test(-double.max / 2)); else assert(test(-double.max)); const minSub = double.min_normal * double.epsilon; assert(test(minSub)); assert(test(3*minSub)); } @safe unittest // issue 17555 { import std.exception : assertThrown; assertThrown!JSONException(parseJSON("\"a\nb\"")); } @safe unittest // issue 17556 { auto v = JSONValue("\U0001D11E"); auto j = toJSON(v, false, JSONOptions.escapeNonAsciiChars); assert(j == `"\uD834\uDD1E"`); } @safe unittest // issue 5904 { string s = `"\uD834\uDD1E"`; auto j = parseJSON(s); assert(j.str == "\U0001D11E"); } @safe unittest // issue 17557 { assert(parseJSON("\"\xFF\"").str == "\xFF"); assert(parseJSON("\"\U0001D11E\"").str == "\U0001D11E"); } @safe unittest // issue 17553 { auto v = JSONValue("\xFF"); assert(toJSON(v) == "\"\xFF\""); } @safe unittest { import std.utf; assert(parseJSON("\"\xFF\"".byChar).str == "\xFF"); assert(parseJSON("\"\U0001D11E\"".byChar).str == "\U0001D11E"); } @safe unittest // JSONOptions.doNotEscapeSlashes (issue 17587) { assert(parseJSON(`"/"`).toString == `"\/"`); assert(parseJSON(`"\/"`).toString == `"\/"`); assert(parseJSON(`"/"`).toString(JSONOptions.doNotEscapeSlashes) == `"/"`); assert(parseJSON(`"\/"`).toString(JSONOptions.doNotEscapeSlashes) == `"/"`); } @safe unittest // JSONOptions.strictParsing (issue 16639) { import std.exception : assertThrown; // Unescaped ASCII NULs assert(parseJSON("[\0]").type == JSON_TYPE.ARRAY); assertThrown!JSONException(parseJSON("[\0]", JSONOptions.strictParsing)); assert(parseJSON("\"\0\"").str == "\0"); assertThrown!JSONException(parseJSON("\"\0\"", JSONOptions.strictParsing)); // Unescaped ASCII DEL (0x7f) in strings assert(parseJSON("\"\x7f\"").str == "\x7f"); assert(parseJSON("\"\x7f\"", JSONOptions.strictParsing).str == "\x7f"); // "true", "false", "null" case sensitivity assert(parseJSON("true").type == JSON_TYPE.TRUE); assert(parseJSON("true", JSONOptions.strictParsing).type == JSON_TYPE.TRUE); assert(parseJSON("True").type == JSON_TYPE.TRUE); assertThrown!JSONException(parseJSON("True", JSONOptions.strictParsing)); assert(parseJSON("tRUE").type == JSON_TYPE.TRUE); assertThrown!JSONException(parseJSON("tRUE", JSONOptions.strictParsing)); assert(parseJSON("false").type == JSON_TYPE.FALSE); assert(parseJSON("false", JSONOptions.strictParsing).type == JSON_TYPE.FALSE); assert(parseJSON("False").type == JSON_TYPE.FALSE); assertThrown!JSONException(parseJSON("False", JSONOptions.strictParsing)); assert(parseJSON("fALSE").type == JSON_TYPE.FALSE); assertThrown!JSONException(parseJSON("fALSE", JSONOptions.strictParsing)); assert(parseJSON("null").type == JSON_TYPE.NULL); assert(parseJSON("null", JSONOptions.strictParsing).type == JSON_TYPE.NULL); assert(parseJSON("Null").type == JSON_TYPE.NULL); assertThrown!JSONException(parseJSON("Null", JSONOptions.strictParsing)); assert(parseJSON("nULL").type == JSON_TYPE.NULL); assertThrown!JSONException(parseJSON("nULL", JSONOptions.strictParsing)); // Whitespace characters assert(parseJSON("[\f\v]").type == JSON_TYPE.ARRAY); assertThrown!JSONException(parseJSON("[\f\v]", JSONOptions.strictParsing)); assert(parseJSON("[ \t\r\n]").type == JSON_TYPE.ARRAY); assert(parseJSON("[ \t\r\n]", JSONOptions.strictParsing).type == JSON_TYPE.ARRAY); // Empty input assert(parseJSON("").type == JSON_TYPE.NULL); assertThrown!JSONException(parseJSON("", JSONOptions.strictParsing)); // Numbers with leading '0's assert(parseJSON("01").integer == 1); assertThrown!JSONException(parseJSON("01", JSONOptions.strictParsing)); assert(parseJSON("-01").integer == -1); assertThrown!JSONException(parseJSON("-01", JSONOptions.strictParsing)); assert(parseJSON("0.01").floating == 0.01); assert(parseJSON("0.01", JSONOptions.strictParsing).floating == 0.01); assert(parseJSON("0e1").floating == 0); assert(parseJSON("0e1", JSONOptions.strictParsing).floating == 0); // Trailing characters after JSON value assert(parseJSON(`""asdf`).str == ""); assertThrown!JSONException(parseJSON(`""asdf`, JSONOptions.strictParsing)); assert(parseJSON("987\0").integer == 987); assertThrown!JSONException(parseJSON("987\0", JSONOptions.strictParsing)); assert(parseJSON("987\0\0").integer == 987); assertThrown!JSONException(parseJSON("987\0\0", JSONOptions.strictParsing)); assert(parseJSON("[]]").type == JSON_TYPE.ARRAY); assertThrown!JSONException(parseJSON("[]]", JSONOptions.strictParsing)); assert(parseJSON("123 \t\r\n").integer == 123); // Trailing whitespace is OK assert(parseJSON("123 \t\r\n", JSONOptions.strictParsing).integer == 123); }
D
import unit_threaded; int main(string[] args) { return args.runTests!"foo"; }
D
module extratypes.map; class Map (TKey, TMapped) { this () { } void Add (TKey key, TMapped mapped) { } }
D
import probtest, bimap_test; int main() { bimap_test.alltests(); probtest.alltests(); return 1; }
D
module odyssey.geom.vertexarray; import odyssey.geom.buffer; import odyssey.math.vec3; import odyssey.render.shader; interface Bindable { void bind(); void unbind(); void use(void delegate() statements); } class VertexArray { GLuint vertexArray; alias vertexArray this; Vec3[] positions; Buffer buffer; ShaderProgram shader; this(Vec3[] positions, ref ShaderProgram shader) { this.positions = positions; this.shader = shader; init(); } void init() { // Create the vertex array object glGenVertexArrays(1, &vertexArray); this.use({ // Create the buffer object and bind the vertex data buffer = new Buffer(positions); buffer.addAttribute(glGetAttribLocation(shader, "in_Position"), GL_FLOAT, 3); }); } void bind() { glBindVertexArray(vertexArray); } void unbind() { glBindVertexArray(0); } /// Automatically binds/unbinds vertex array between supplied statements void use(void delegate() statements) { bind(); ///////////// statements(); ///////////// unbind(); } void addAttribute(GLuint location, GLenum type, GLint size=4, GLsizei offset = 0, GLsizei stride = 0, GLboolean normalized=GL_FALSE) { use({ glVertexAttribPointer(location, size, type, normalized, stride, cast(const(GLvoid*))offset); glEnableVertexAttribArray(location); writeGLError(); }); } void draw() { shader.use({ this.use({ glDrawArrays(GL_TRIANGLES, 0, 3); }); }); } ~this() { glBindVertexArray(0); glDeleteVertexArrays(1, &vertexArray); } }
D
module doogle.platform; /** * * This file is dedicated for _users_ of this library. It is meant to make it easier to handle it. * You are not required to use any part that you do not wish to. * The implementations can be swapped out very easily or only the definitions parts can be used. * */ public import gl = derelict.opengl3.gl3; public import glarb = derelict.opengl3.arb; public import glwrap = doogle.overloads.wrappers; public import glstruct = doogle.overloads.structify; public import storage = doogle.util.storage; import derelict.freetype.ft; struct PlatformVersions { version(Posix) { public import glx = derelict.opengl3.glx; public import glxext = derelict.opengl3.glxext; public import core.sys.posix.sys.time; } else version(Windows) { public import wgl = derelict.opengl3.wgl; public import wglext = derelict.opengl3.wglext; public import windows = windows; } } __gshared PlatformVersions platform; static this() { gl.DerelictGL3.load(); DerelictFT.load(); assert(FT_Init_FreeType !is null); }
D
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ module vtkTrivialProducer; static import vtkd_im; static import core.stdc.config; static import std.conv; static import std.string; static import std.conv; static import std.string; static import vtkObjectBase; static import vtkDataObject; static import vtkAlgorithm; class vtkTrivialProducer : vtkAlgorithm.vtkAlgorithm { private void* swigCPtr; public this(void* cObject, bool ownCObject) { super(vtkd_im.vtkTrivialProducer_Upcast(cObject), ownCObject); swigCPtr = cObject; } public static void* swigGetCPtr(vtkTrivialProducer obj) { return (obj is null) ? null : obj.swigCPtr; } mixin vtkd_im.SwigOperatorDefinitions; public override void dispose() { synchronized(this) { if (swigCPtr !is null) { if (swigCMemOwn) { swigCMemOwn = false; throw new object.Exception("C++ destructor does not have public access"); } swigCPtr = null; super.dispose(); } } } public static vtkTrivialProducer New() { void* cPtr = vtkd_im.vtkTrivialProducer_New(); vtkTrivialProducer ret = (cPtr is null) ? null : new vtkTrivialProducer(cPtr, false); return ret; } public static int IsTypeOf(string type) { auto ret = vtkd_im.vtkTrivialProducer_IsTypeOf((type ? std.string.toStringz(type) : null)); return ret; } public static vtkTrivialProducer SafeDownCast(vtkObjectBase.vtkObjectBase o) { void* cPtr = vtkd_im.vtkTrivialProducer_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o)); vtkTrivialProducer ret = (cPtr is null) ? null : new vtkTrivialProducer(cPtr, false); return ret; } public vtkTrivialProducer NewInstance() const { void* cPtr = vtkd_im.vtkTrivialProducer_NewInstance(cast(void*)swigCPtr); vtkTrivialProducer ret = (cPtr is null) ? null : new vtkTrivialProducer(cPtr, false); return ret; } alias vtkAlgorithm.vtkAlgorithm.NewInstance NewInstance; public void SetOutput(vtkDataObject.vtkDataObject output) { vtkd_im.vtkTrivialProducer_SetOutput(cast(void*)swigCPtr, vtkDataObject.vtkDataObject.swigGetCPtr(output)); } }
D
/Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Build/Intermediates/Pitch Perfect.build/Debug-iphonesimulator/Pitch Perfect.build/Objects-normal/x86_64/AppDelegate.o : /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/RecordedAudio.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/RecordSoundsViewController.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/PlaySoundsViewController.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Build/Intermediates/Pitch Perfect.build/Debug-iphonesimulator/Pitch Perfect.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/RecordedAudio.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/RecordSoundsViewController.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/PlaySoundsViewController.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Build/Intermediates/Pitch Perfect.build/Debug-iphonesimulator/Pitch Perfect.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/RecordedAudio.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/RecordSoundsViewController.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/PlaySoundsViewController.swift /Users/shimmennobuyoshi/Downloads/Pitch-Perfect-master/Pitch\ Perfect/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
D
/** This module provides an $(D Array) type with deterministic memory usage not reliant on the GC, as an alternative to the built-in arrays. This module is a submodule of $(MREF std, container). Source: $(PHOBOSSRC std/container/_array.d) Copyright: Red-black tree code copyright (C) 2008- by Steven Schveighoffer. Other code copyright 2010- Andrei Alexandrescu. All rights reserved by the respective holders. License: Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at $(HTTP boost.org/LICENSE_1_0.txt)). Authors: Steven Schveighoffer, $(HTTP erdani.com, Andrei Alexandrescu) */ module std.container.array; import std.range.primitives; import std.traits; import core.exception : RangeError; public import std.container.util; /// unittest { auto arr = Array!int(0, 2, 3); assert(arr[0] == 0); assert(arr.front == 0); assert(arr.back == 3); // reserve space arr.reserve(1000); assert(arr.length == 3); assert(arr.capacity >= 1000); // insertion arr.insertBefore(arr[1..$], 1); assert(arr.front == 0); assert(arr.length == 4); arr.insertBack(4); assert(arr.back == 4); assert(arr.length == 5); // set elements arr[1] *= 42; assert(arr[1] == 42); } /// unittest { import std.algorithm.comparison : equal; auto arr = Array!int(1, 2, 3); // concat auto b = Array!int(11, 12, 13); arr ~= b; assert(arr.length == 6); // slicing assert(arr[1..3].equal([2, 3])); // remove arr.linearRemove(arr[1..3]); assert(arr[0..2].equal([1, 11])); } /// `Array!bool` packs together values efficiently by allocating one bit per element unittest { Array!bool arr; arr.insert([true, true, false, true, false]); assert(arr.length == 5); } private struct RangeT(A) { /* Workaround for Issue 13629 at https://issues.dlang.org/show_bug.cgi?id=13629 See also: http://forum.dlang.org/post/vbmwhzvawhnkoxrhbnyb@forum.dlang.org */ private A[1] _outer_; private @property ref inout(A) _outer() inout { return _outer_[0]; } private size_t _a, _b; /* E is different from T when A is more restrictively qualified than T: immutable(Array!int) => T == int, E = immutable(int) */ alias E = typeof(_outer_[0]._data._payload[0]); private this(ref A data, size_t a, size_t b) { _outer_ = data; _a = a; _b = b; } @property RangeT save() { return this; } @property bool empty() @safe pure nothrow const { return _a >= _b; } @property size_t length() @safe pure nothrow const { return _b - _a; } alias opDollar = length; @property ref inout(E) front() inout { version (assert) if (empty) throw new RangeError(); return _outer[_a]; } @property ref inout(E) back() inout { version (assert) if (empty) throw new RangeError(); return _outer[_b - 1]; } void popFront() @safe pure nothrow { version (assert) if (empty) throw new RangeError(); ++_a; } void popBack() @safe pure nothrow { version (assert) if (empty) throw new RangeError(); --_b; } static if (isMutable!A) { import std.algorithm.mutation : move; E moveFront() { version (assert) if (empty || _a >= _outer.length) throw new RangeError(); return move(_outer._data._payload[_a]); } E moveBack() { version (assert) if (empty || _b > _outer.length) throw new RangeError(); return move(_outer._data._payload[_b - 1]); } E moveAt(size_t i) { version (assert) if (_a + i >= _b || _a + i >= _outer.length) throw new RangeError(); return move(_outer._data._payload[_a + i]); } } ref inout(E) opIndex(size_t i) inout { version (assert) if (_a + i >= _b) throw new RangeError(); return _outer[_a + i]; } RangeT opSlice() { return typeof(return)(_outer, _a, _b); } RangeT opSlice(size_t i, size_t j) { version (assert) if (i > j || _a + j > _b) throw new RangeError(); return typeof(return)(_outer, _a + i, _a + j); } RangeT!(const(A)) opSlice() const { return typeof(return)(_outer, _a, _b); } RangeT!(const(A)) opSlice(size_t i, size_t j) const { version (assert) if (i > j || _a + j > _b) throw new RangeError(); return typeof(return)(_outer, _a + i, _a + j); } static if (isMutable!A) { void opSliceAssign(E value) { version (assert) if (_b > _outer.length) throw new RangeError(); _outer[_a .. _b] = value; } void opSliceAssign(E value, size_t i, size_t j) { version (assert) if (_a + j > _b) throw new RangeError(); _outer[_a + i .. _a + j] = value; } void opSliceUnary(string op)() if (op == "++" || op == "--") { version (assert) if (_b > _outer.length) throw new RangeError(); mixin(op~"_outer[_a .. _b];"); } void opSliceUnary(string op)(size_t i, size_t j) if (op == "++" || op == "--") { version (assert) if (_a + j > _b) throw new RangeError(); mixin(op~"_outer[_a + i .. _a + j];"); } void opSliceOpAssign(string op)(E value) { version (assert) if (_b > _outer.length) throw new RangeError(); mixin("_outer[_a .. _b] "~op~"= value;"); } void opSliceOpAssign(string op)(E value, size_t i, size_t j) { version (assert) if (_a + j > _b) throw new RangeError(); mixin("_outer[_a + i .. _a + j] "~op~"= value;"); } } } /** Array type with deterministic control of memory. The memory allocated for the array is reclaimed as soon as possible; there is no reliance on the garbage collector. $(D Array) uses $(D malloc) and $(D free) for managing its own memory. This means that pointers to elements of an $(D Array) will become dangling as soon as the element is removed from the $(D Array). On the other hand the memory allocated by an $(D Array) will be scanned by the GC and GC managed objects referenced from an $(D Array) will be kept alive. Note: When using $(D Array) with range-based functions like those in $(D std.algorithm), $(D Array) must be sliced to get a range (for example, use $(D array[].map!) instead of $(D array.map!)). The container itself is not a range. */ struct Array(T) if (!is(Unqual!T == bool)) { import core.stdc.stdlib : malloc, realloc, free; import core.stdc.string : memcpy, memmove, memset; import core.memory : GC; import std.exception : enforce; import std.typecons : RefCounted, RefCountedAutoInitialize; // This structure is not copyable. private struct Payload { size_t _capacity; T[] _payload; // Convenience constructor this(T[] p) { _capacity = p.length; _payload = p; } // Destructor releases array memory ~this() { //Warning: destroy will also destroy class instances. //The hasElaborateDestructor protects us here. static if (hasElaborateDestructor!T) foreach (ref e; _payload) .destroy(e); static if (hasIndirections!T) GC.removeRange(_payload.ptr); free(_payload.ptr); } this(this) { assert(0); } void opAssign(Payload rhs) { assert(false); } // Duplicate data // @property Payload dup() // { // Payload result; // result._payload = _payload.dup; // // Conservatively assume initial capacity == length // result._capacity = result._payload.length; // return result; // } // length @property size_t length() const { return _payload.length; } // length @property void length(size_t newLength) { import std.algorithm.mutation : initializeAll; if (length >= newLength) { // shorten static if (hasElaborateDestructor!T) foreach (ref e; _payload.ptr[newLength .. _payload.length]) .destroy(e); _payload = _payload.ptr[0 .. newLength]; return; } // enlarge auto startEmplace = length; import core.checkedint : mulu; bool overflow; const nbytes = mulu(newLength, T.sizeof, overflow); if (overflow) assert(0); _payload = (cast(T*) realloc(_payload.ptr, nbytes))[0 .. newLength]; initializeAll(_payload.ptr[startEmplace .. length]); } // capacity @property size_t capacity() const { return _capacity; } // reserve void reserve(size_t elements) { if (elements <= capacity) return; import core.checkedint : mulu; bool overflow; const sz = mulu(elements, T.sizeof, overflow); if (overflow) assert(0); static if (hasIndirections!T) // should use hasPointers instead { /* Because of the transactional nature of this * relative to the garbage collector, ensure no * threading bugs by using malloc/copy/free rather * than realloc. */ immutable oldLength = length; auto newPayload = enforce(cast(T*) malloc(sz))[0 .. oldLength]; // copy old data over to new array memcpy(newPayload.ptr, _payload.ptr, T.sizeof * oldLength); // Zero out unused capacity to prevent gc from seeing // false pointers memset(newPayload.ptr + oldLength, 0, (elements - oldLength) * T.sizeof); GC.addRange(newPayload.ptr, sz); GC.removeRange(_payload.ptr); free(_payload.ptr); _payload = newPayload; } else { /* These can't have pointers, so no need to zero * unused region */ auto newPayload = enforce(cast(T*) realloc(_payload.ptr, sz))[0 .. length]; _payload = newPayload; } _capacity = elements; } // Insert one item size_t insertBack(Stuff)(Stuff stuff) if (isImplicitlyConvertible!(Stuff, T)) { import std.conv : emplace; if (_capacity == length) { reserve(1 + capacity * 3 / 2); } assert(capacity > length && _payload.ptr); emplace(_payload.ptr + _payload.length, stuff); _payload = _payload.ptr[0 .. _payload.length + 1]; return 1; } /// Insert a range of items size_t insertBack(Stuff)(Stuff stuff) if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T)) { static if (hasLength!Stuff) { immutable oldLength = length; reserve(oldLength + stuff.length); } size_t result; foreach (item; stuff) { insertBack(item); ++result; } static if (hasLength!Stuff) { assert(length == oldLength + stuff.length); } return result; } } private alias Data = RefCounted!(Payload, RefCountedAutoInitialize.no); private Data _data; /** Constructor taking a number of items */ this(U)(U[] values...) if (isImplicitlyConvertible!(U, T)) { import std.conv : emplace; import core.checkedint : mulu; bool overflow; const nbytes = mulu(values.length, T.sizeof, overflow); if (overflow) assert(0); auto p = cast(T*) malloc(nbytes); static if (hasIndirections!T) { if (p) GC.addRange(p, T.sizeof * values.length); } foreach (i, e; values) { emplace(p + i, e); } _data = Data(p[0 .. values.length]); } /** Constructor taking an input range */ this(Stuff)(Stuff stuff) if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T) && !is(Stuff == T[])) { insertBack(stuff); } /** Comparison for equality. */ bool opEquals(const Array rhs) const { return opEquals(rhs); } /// ditto bool opEquals(ref const Array rhs) const { if (empty) return rhs.empty; if (rhs.empty) return false; return _data._payload == rhs._data._payload; } /** Defines the container's primary range, which is a random-access range. ConstRange is a variant with const elements. ImmutableRange is a variant with immutable elements. */ alias Range = RangeT!Array; alias ConstRange = RangeT!(const Array); /// ditto alias ImmutableRange = RangeT!(immutable Array); /// ditto /** Duplicates the container. The elements themselves are not transitively duplicated. Complexity: $(BIGOH n). */ @property Array dup() { if (!_data.refCountedStore.isInitialized) return this; return Array(_data._payload); } /** Property returning $(D true) if and only if the container has no elements. Complexity: $(BIGOH 1) */ @property bool empty() const { return !_data.refCountedStore.isInitialized || _data._payload.empty; } /** Returns the number of elements in the container. Complexity: $(BIGOH 1). */ @property size_t length() const { return _data.refCountedStore.isInitialized ? _data._payload.length : 0; } /// ditto size_t opDollar() const { return length; } /** Returns the maximum number of elements the container can store without (a) allocating memory, (b) invalidating iterators upon insertion. Complexity: $(BIGOH 1) */ @property size_t capacity() { return _data.refCountedStore.isInitialized ? _data._capacity : 0; } /** Ensures sufficient capacity to accommodate $(D e) elements. Postcondition: $(D capacity >= e) Complexity: $(BIGOH 1) */ void reserve(size_t elements) { if (!_data.refCountedStore.isInitialized) { if (!elements) return; import core.checkedint : mulu; bool overflow; const sz = mulu(elements, T.sizeof, overflow); if (overflow) assert(0); auto p = enforce(malloc(sz)); static if (hasIndirections!T) { GC.addRange(p, sz); } _data = Data(cast(T[]) p[0 .. 0]); _data._capacity = elements; } else { _data.reserve(elements); } } /** Returns a range that iterates over elements of the container, in forward order. Complexity: $(BIGOH 1) */ Range opSlice() { return typeof(return)(this, 0, length); } ConstRange opSlice() const { return typeof(return)(this, 0, length); } ImmutableRange opSlice() immutable { return typeof(return)(this, 0, length); } /** Returns a range that iterates over elements of the container from index $(D a) up to (excluding) index $(D b). Precondition: $(D a <= b && b <= length) Complexity: $(BIGOH 1) */ Range opSlice(size_t i, size_t j) { version (assert) if (i > j || j > length) throw new RangeError(); return typeof(return)(this, i, j); } ConstRange opSlice(size_t i, size_t j) const { version (assert) if (i > j || j > length) throw new RangeError(); return typeof(return)(this, i, j); } ImmutableRange opSlice(size_t i, size_t j) immutable { version (assert) if (i > j || j > length) throw new RangeError(); return typeof(return)(this, i, j); } /** Forward to $(D opSlice().front) and $(D opSlice().back), respectively. Precondition: $(D !empty) Complexity: $(BIGOH 1) */ @property ref inout(T) front() inout { version (assert) if (!_data.refCountedStore.isInitialized) throw new RangeError(); return _data._payload[0]; } /// ditto @property ref inout(T) back() inout { version (assert) if (!_data.refCountedStore.isInitialized) throw new RangeError(); return _data._payload[$ - 1]; } /** Indexing operators yield or modify the value at a specified index. Precondition: $(D i < length) Complexity: $(BIGOH 1) */ ref inout(T) opIndex(size_t i) inout { version (assert) if (!_data.refCountedStore.isInitialized) throw new RangeError(); return _data._payload[i]; } /** Slicing operations execute an operation on an entire slice. Precondition: $(D i < j && j < length) Complexity: $(BIGOH slice.length) */ void opSliceAssign(T value) { if (!_data.refCountedStore.isInitialized) return; _data._payload[] = value; } /// ditto void opSliceAssign(T value, size_t i, size_t j) { auto slice = _data.refCountedStore.isInitialized ? _data._payload : T[].init; slice[i .. j] = value; } /// ditto void opSliceUnary(string op)() if (op == "++" || op == "--") { if (!_data.refCountedStore.isInitialized) return; mixin(op~"_data._payload[];"); } /// ditto void opSliceUnary(string op)(size_t i, size_t j) if (op == "++" || op == "--") { auto slice = _data.refCountedStore.isInitialized ? _data._payload : T[].init; mixin(op~"slice[i .. j];"); } /// ditto void opSliceOpAssign(string op)(T value) { if (!_data.refCountedStore.isInitialized) return; mixin("_data._payload[] "~op~"= value;"); } /// ditto void opSliceOpAssign(string op)(T value, size_t i, size_t j) { auto slice = _data.refCountedStore.isInitialized ? _data._payload : T[].init; mixin("slice[i .. j] "~op~"= value;"); } /** Returns a new container that's the concatenation of $(D this) and its argument. $(D opBinaryRight) is only defined if $(D Stuff) does not define $(D opBinary). Complexity: $(BIGOH n + m), where m is the number of elements in $(D stuff) */ Array opBinary(string op, Stuff)(Stuff stuff) if (op == "~") { // TODO: optimize Array result; result ~= this[]; assert(result.length == length); result ~= stuff[]; return result; } /** Forwards to $(D insertBack(stuff)). */ void opOpAssign(string op, Stuff)(Stuff stuff) if (op == "~") { static if (is(typeof(stuff[]))) { insertBack(stuff[]); } else { insertBack(stuff); } } /** Removes all contents from the container. The container decides how $(D capacity) is affected. Postcondition: $(D empty) Complexity: $(BIGOH n) */ void clear() { _data = Data.init; } /** Sets the number of elements in the container to $(D newSize). If $(D newSize) is greater than $(D length), the added elements are added to unspecified positions in the container and initialized with $(D T.init). Complexity: $(BIGOH abs(n - newLength)) Postcondition: $(D length == newLength) */ @property void length(size_t newLength) { _data.refCountedStore.ensureInitialized(); _data.length = newLength; } /** Picks one value in an unspecified position in the container, removes it from the container, and returns it. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Precondition: $(D !empty) Returns: The element removed. Complexity: $(BIGOH log(n)). */ T removeAny() { auto result = back; removeBack(); return result; } /// ditto alias stableRemoveAny = removeAny; /** Inserts $(D value) to the front or back of the container. $(D stuff) can be a value convertible to $(D T) or a range of objects convertible to $(D T). The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: The number of elements inserted Complexity: $(BIGOH m * log(n)), where $(D m) is the number of elements in $(D stuff) */ size_t insertBack(Stuff)(Stuff stuff) if (isImplicitlyConvertible!(Stuff, T) || isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T)) { _data.refCountedStore.ensureInitialized(); return _data.insertBack(stuff); } /// ditto alias insert = insertBack; /** Removes the value at the back of the container. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Precondition: $(D !empty) Complexity: $(BIGOH log(n)). */ void removeBack() { enforce(!empty); static if (hasElaborateDestructor!T) .destroy(_data._payload[$ - 1]); _data._payload = _data._payload[0 .. $ - 1]; } /// ditto alias stableRemoveBack = removeBack; /** Removes $(D howMany) values at the front or back of the container. Unlike the unparameterized versions above, these functions do not throw if they could not remove $(D howMany) elements. Instead, if $(D howMany > n), all elements are removed. The returned value is the effective number of elements removed. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: The number of elements removed Complexity: $(BIGOH howMany). */ size_t removeBack(size_t howMany) { if (howMany > length) howMany = length; static if (hasElaborateDestructor!T) foreach (ref e; _data._payload[$ - howMany .. $]) .destroy(e); _data._payload = _data._payload[0 .. $ - howMany]; return howMany; } /// ditto alias stableRemoveBack = removeBack; /** Inserts $(D stuff) before, after, or instead range $(D r), which must be a valid range previously extracted from this container. $(D stuff) can be a value convertible to $(D T) or a range of objects convertible to $(D T). The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: The number of values inserted. Complexity: $(BIGOH n + m), where $(D m) is the length of $(D stuff) */ size_t insertBefore(Stuff)(Range r, Stuff stuff) if (isImplicitlyConvertible!(Stuff, T)) { import std.conv : emplace; enforce(r._outer._data is _data && r._a <= length); reserve(length + 1); assert(_data.refCountedStore.isInitialized); // Move elements over by one slot memmove(_data._payload.ptr + r._a + 1, _data._payload.ptr + r._a, T.sizeof * (length - r._a)); emplace(_data._payload.ptr + r._a, stuff); _data._payload = _data._payload.ptr[0 .. _data._payload.length + 1]; return 1; } /// ditto size_t insertBefore(Stuff)(Range r, Stuff stuff) if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T)) { import std.conv : emplace; enforce(r._outer._data is _data && r._a <= length); static if (isForwardRange!Stuff) { // Can find the length in advance auto extra = walkLength(stuff); if (!extra) return 0; reserve(length + extra); assert(_data.refCountedStore.isInitialized); // Move elements over by extra slots memmove(_data._payload.ptr + r._a + extra, _data._payload.ptr + r._a, T.sizeof * (length - r._a)); foreach (p; _data._payload.ptr + r._a .. _data._payload.ptr + r._a + extra) { emplace(p, stuff.front); stuff.popFront(); } _data._payload = _data._payload.ptr[0 .. _data._payload.length + extra]; return extra; } else { import std.algorithm.mutation : bringToFront; enforce(_data); immutable offset = r._a; enforce(offset <= length); auto result = insertBack(stuff); bringToFront(this[offset .. length - result], this[length - result .. length]); return result; } } /// ditto size_t insertAfter(Stuff)(Range r, Stuff stuff) { import std.algorithm.mutation : bringToFront; enforce(r._outer._data is _data); // TODO: optimize immutable offset = r._b; enforce(offset <= length); auto result = insertBack(stuff); bringToFront(this[offset .. length - result], this[length - result .. length]); return result; } /// ditto size_t replace(Stuff)(Range r, Stuff stuff) if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T)) { enforce(r._outer._data is _data); size_t result; for (; !stuff.empty; stuff.popFront()) { if (r.empty) { // insert the rest return result + insertBefore(r, stuff); } r.front = stuff.front; r.popFront(); ++result; } // Remove remaining stuff in r linearRemove(r); return result; } /// ditto size_t replace(Stuff)(Range r, Stuff stuff) if (isImplicitlyConvertible!(Stuff, T)) { enforce(r._outer._data is _data); if (r.empty) { insertBefore(r, stuff); } else { r.front = stuff; r.popFront(); linearRemove(r); } return 1; } /** Removes all elements belonging to $(D r), which must be a range obtained originally from this container. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: A range spanning the remaining elements in the container that initially were right after $(D r). Complexity: $(BIGOH n - m), where $(D m) is the number of elements in $(D r) */ Range linearRemove(Range r) { import std.algorithm.mutation : copy; enforce(r._outer._data is _data); enforce(_data.refCountedStore.isInitialized); enforce(r._a <= r._b && r._b <= length); immutable offset1 = r._a; immutable offset2 = r._b; immutable tailLength = length - offset2; // Use copy here, not a[] = b[] because the ranges may overlap copy(this[offset2 .. length], this[offset1 .. offset1 + tailLength]); length = offset1 + tailLength; return this[length - tailLength .. length]; } } unittest { Array!int a; assert(a.empty); } unittest { Array!int a = Array!int(1, 2, 3); //a._data._refCountedDebug = true; auto b = a.dup; assert(b == Array!int(1, 2, 3)); b.front = 42; assert(b == Array!int(42, 2, 3)); assert(a == Array!int(1, 2, 3)); } unittest { auto a = Array!int(1, 2, 3); assert(a.length == 3); } unittest { const Array!int a = [1, 2]; assert(a[0] == 1); assert(a.front == 1); assert(a.back == 2); static assert(!__traits(compiles, { a[0] = 1; })); static assert(!__traits(compiles, { a.front = 1; })); static assert(!__traits(compiles, { a.back = 1; })); auto r = a[]; size_t i; foreach (e; r) { assert(e == i + 1); i++; } } unittest { // REG https://issues.dlang.org/show_bug.cgi?id=13621 import std.container : Array, BinaryHeap; alias Heap = BinaryHeap!(Array!int); } unittest { Array!int a; a.reserve(1000); assert(a.length == 0); assert(a.empty); assert(a.capacity >= 1000); auto p = a._data._payload.ptr; foreach (i; 0 .. 1000) { a.insertBack(i); } assert(p == a._data._payload.ptr); } unittest { auto a = Array!int(1, 2, 3); a[1] *= 42; assert(a[1] == 84); } unittest { auto a = Array!int(1, 2, 3); auto b = Array!int(11, 12, 13); auto c = a ~ b; assert(c == Array!int(1, 2, 3, 11, 12, 13)); assert(a ~ b[] == Array!int(1, 2, 3, 11, 12, 13)); assert(a ~ [4,5] == Array!int(1,2,3,4,5)); } unittest { auto a = Array!int(1, 2, 3); auto b = Array!int(11, 12, 13); a ~= b; assert(a == Array!int(1, 2, 3, 11, 12, 13)); } unittest { auto a = Array!int(1, 2, 3, 4); assert(a.removeAny() == 4); assert(a == Array!int(1, 2, 3)); } unittest { auto a = Array!int(1, 2, 3, 4, 5); auto r = a[2 .. a.length]; assert(a.insertBefore(r, 42) == 1); assert(a == Array!int(1, 2, 42, 3, 4, 5)); r = a[2 .. 2]; assert(a.insertBefore(r, [8, 9]) == 2); assert(a == Array!int(1, 2, 8, 9, 42, 3, 4, 5)); } unittest { auto a = Array!int(0, 1, 2, 3, 4, 5, 6, 7, 8); a.linearRemove(a[4 .. 6]); assert(a == Array!int(0, 1, 2, 3, 6, 7, 8)); } // Give the Range object some testing. unittest { import std.algorithm.comparison : equal; import std.range : retro; auto a = Array!int(0, 1, 2, 3, 4, 5, 6)[]; auto b = Array!int(6, 5, 4, 3, 2, 1, 0)[]; alias A = typeof(a); static assert(isRandomAccessRange!A); static assert(hasSlicing!A); static assert(hasAssignableElements!A); static assert(hasMobileElements!A); assert(equal(retro(b), a)); assert(a.length == 7); assert(equal(a[1..4], [1, 2, 3])); } // Test issue 5920 unittest { struct structBug5920 { int order; uint* pDestructionMask; ~this() { if (pDestructionMask) *pDestructionMask += 1 << order; } } alias S = structBug5920; uint dMask; auto arr = Array!S(cast(S[])[]); foreach (i; 0..8) arr.insertBack(S(i, &dMask)); // don't check dMask now as S may be copied multiple times (it's ok?) { assert(arr.length == 8); dMask = 0; arr.length = 6; assert(arr.length == 6); // make sure shrinking calls the d'tor assert(dMask == 0b1100_0000); arr.removeBack(); assert(arr.length == 5); // make sure removeBack() calls the d'tor assert(dMask == 0b1110_0000); arr.removeBack(3); assert(arr.length == 2); // ditto assert(dMask == 0b1111_1100); arr.clear(); assert(arr.length == 0); // make sure clear() calls the d'tor assert(dMask == 0b1111_1111); } assert(dMask == 0b1111_1111); // make sure the d'tor is called once only. } // Test issue 5792 (mainly just to check if this piece of code is compilable) unittest { auto a = Array!(int[])([[1,2],[3,4]]); a.reserve(4); assert(a.capacity >= 4); assert(a.length == 2); assert(a[0] == [1,2]); assert(a[1] == [3,4]); a.reserve(16); assert(a.capacity >= 16); assert(a.length == 2); assert(a[0] == [1,2]); assert(a[1] == [3,4]); } // test replace!Stuff with range Stuff unittest { import std.algorithm.comparison : equal; auto a = Array!int([1, 42, 5]); a.replace(a[1 .. 2], [2, 3, 4]); assert(equal(a[], [1, 2, 3, 4, 5])); } // test insertBefore and replace with empty Arrays unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.insertBefore(a[], 1); assert(equal(a[], [1])); } unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.insertBefore(a[], [1, 2]); assert(equal(a[], [1, 2])); } unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.replace(a[], [1, 2]); assert(equal(a[], [1, 2])); } unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.replace(a[], 1); assert(equal(a[], [1])); } // make sure that Array instances refuse ranges that don't belong to them unittest { import std.exception; Array!int a = [1, 2, 3]; auto r = a.dup[]; assertThrown(a.insertBefore(r, 42)); assertThrown(a.insertBefore(r, [42])); assertThrown(a.insertAfter(r, 42)); assertThrown(a.replace(r, 42)); assertThrown(a.replace(r, [42])); assertThrown(a.linearRemove(r)); } unittest { auto a = Array!int([1, 1]); a[1] = 0; //Check Array.opIndexAssign assert(a[1] == 0); a[1] += 1; //Check Array.opIndexOpAssign assert(a[1] == 1); //Check Array.opIndexUnary ++a[0]; //a[0]++ //op++ doesn't return, so this shouldn't work, even with 5044 fixed assert(a[0] == 2); assert(+a[0] == +2); assert(-a[0] == -2); assert(~a[0] == ~2); auto r = a[]; r[1] = 0; //Check Array.Range.opIndexAssign assert(r[1] == 0); r[1] += 1; //Check Array.Range.opIndexOpAssign assert(r[1] == 1); //Check Array.Range.opIndexUnary ++r[0]; //r[0]++ //op++ doesn't return, so this shouldn't work, even with 5044 fixed assert(r[0] == 3); assert(+r[0] == +3); assert(-r[0] == -3); assert(~r[0] == ~3); } unittest { import std.algorithm.comparison : equal; //Test "array-wide" operations auto a = Array!int([0, 1, 2]); //Array a[] += 5; assert(a[].equal([5, 6, 7])); ++a[]; assert(a[].equal([6, 7, 8])); a[1 .. 3] *= 5; assert(a[].equal([6, 35, 40])); a[0 .. 2] = 0; assert(a[].equal([0, 0, 40])); //Test empty array auto a2 = Array!int.init; ++a2[]; ++a2[0 .. 0]; a2[] = 0; a2[0 .. 0] = 0; a2[] += 0; a2[0 .. 0] += 0; //Test "range-wide" operations auto r = Array!int([0, 1, 2])[]; //Array.Range r[] += 5; assert(r.equal([5, 6, 7])); ++r[]; assert(r.equal([6, 7, 8])); r[1 .. 3] *= 5; assert(r.equal([6, 35, 40])); r[0 .. 2] = 0; assert(r.equal([0, 0, 40])); //Test empty Range auto r2 = Array!int.init[]; ++r2[]; ++r2[0 .. 0]; r2[] = 0; r2[0 .. 0] = 0; r2[] += 0; r2[0 .. 0] += 0; } // Test issue 11194 unittest { static struct S { int i = 1337; void* p; this(this) { assert(i == 1337); } ~this() { assert(i == 1337); } } Array!S arr; S s; arr ~= s; arr ~= s; } unittest //11459 { static struct S { bool b; alias b this; } alias A = Array!S; alias B = Array!(shared bool); } unittest //11884 { import std.algorithm.iteration : filter; auto a = Array!int([1, 2, 2].filter!"true"()); } unittest //8282 { auto arr = new Array!int; } unittest //6998 { static int i = 0; class C { int dummy = 1; this(){++i;} ~this(){--i;} } assert(i == 0); auto c = new C(); assert(i == 1); //scope { auto arr = Array!C(c); assert(i == 1); } //Array should not have destroyed the class instance assert(i == 1); //Just to make sure the GC doesn't collect before the above test. assert(c.dummy ==1); } unittest //6998-2 { static class C {int i;} auto c = new C; c.i = 42; Array!C a; a ~= c; a.clear; assert(c.i == 42); //fails } unittest { static assert(is(Array!int.Range)); static assert(is(Array!int.ConstRange)); } unittest // const/immutable Array and Ranges { static void test(A, R, E, S)() { A a; R r = a[]; assert(r.empty); assert(r.length == 0); static assert(is(typeof(r.front) == E)); static assert(is(typeof(r.back) == E)); static assert(is(typeof(r[0]) == E)); static assert(is(typeof(r[]) == S)); static assert(is(typeof(r[0 .. 0]) == S)); } alias A = Array!int; test!(A, A.Range, int, A.Range); test!(A, const A.Range, const int, A.ConstRange); test!(const A, A.ConstRange, const int, A.ConstRange); test!(const A, const A.ConstRange, const int, A.ConstRange); test!(immutable A, A.ImmutableRange, immutable int, A.ImmutableRange); test!(immutable A, const A.ImmutableRange, immutable int, A.ImmutableRange); test!(immutable A, immutable A.ImmutableRange, immutable int, A.ImmutableRange); } //////////////////////////////////////////////////////////////////////////////// // Array!bool //////////////////////////////////////////////////////////////////////////////// /** _Array specialized for $(D bool). Packs together values efficiently by allocating one bit per element. */ struct Array(T) if (is(Unqual!T == bool)) { import std.exception : enforce; import std.typecons : RefCounted, RefCountedAutoInitialize; static immutable uint bitsPerWord = size_t.sizeof * 8; private static struct Data { Array!size_t.Payload _backend; size_t _length; } private RefCounted!(Data, RefCountedAutoInitialize.no) _store; private @property ref size_t[] data() { assert(_store.refCountedStore.isInitialized); return _store._backend._payload; } /** Defines the container's primary range. */ struct Range { private Array _outer; private size_t _a, _b; /// Range primitives @property Range save() { version (bug4437) { return this; } else { auto copy = this; return copy; } } /// Ditto @property bool empty() { return _a >= _b || _outer.length < _b; } /// Ditto @property T front() { enforce(!empty); return _outer[_a]; } /// Ditto @property void front(bool value) { enforce(!empty); _outer[_a] = value; } /// Ditto T moveFront() { enforce(!empty); return _outer.moveAt(_a); } /// Ditto void popFront() { enforce(!empty); ++_a; } /// Ditto @property T back() { enforce(!empty); return _outer[_b - 1]; } /// Ditto @property void back(bool value) { enforce(!empty); _outer[_b - 1] = value; } /// Ditto T moveBack() { enforce(!empty); return _outer.moveAt(_b - 1); } /// Ditto void popBack() { enforce(!empty); --_b; } /// Ditto T opIndex(size_t i) { return _outer[_a + i]; } /// Ditto void opIndexAssign(T value, size_t i) { _outer[_a + i] = value; } /// Ditto T moveAt(size_t i) { return _outer.moveAt(_a + i); } /// Ditto @property size_t length() const { assert(_a <= _b); return _b - _a; } alias opDollar = length; /// ditto Range opSlice(size_t low, size_t high) { assert(_a <= low && low <= high && high <= _b); return Range(_outer, _a + low, _a + high); } } /** Property returning $(D true) if and only if the container has no elements. Complexity: $(BIGOH 1) */ @property bool empty() { return !length; } unittest { Array!bool a; //a._store._refCountedDebug = true; assert(a.empty); a.insertBack(false); assert(!a.empty); } /** Returns a duplicate of the container. The elements themselves are not transitively duplicated. Complexity: $(BIGOH n). */ @property Array dup() { Array result; result.insertBack(this[]); return result; } unittest { Array!bool a; assert(a.empty); auto b = a.dup; assert(b.empty); a.insertBack(true); assert(b.empty); } /** Returns the number of elements in the container. Complexity: $(BIGOH log(n)). */ @property size_t length() const { return _store.refCountedStore.isInitialized ? _store._length : 0; } size_t opDollar() const { return length; } unittest { import std.conv : to; Array!bool a; assert(a.length == 0); a.insert(true); assert(a.length == 1, to!string(a.length)); } /** Returns the maximum number of elements the container can store without (a) allocating memory, (b) invalidating iterators upon insertion. Complexity: $(BIGOH log(n)). */ @property size_t capacity() { return _store.refCountedStore.isInitialized ? cast(size_t) bitsPerWord * _store._backend.capacity : 0; } unittest { import std.conv : to; Array!bool a; assert(a.capacity == 0); foreach (i; 0 .. 100) { a.insert(true); assert(a.capacity >= a.length, to!string(a.capacity)); } } /** Ensures sufficient capacity to accommodate $(D n) elements. Postcondition: $(D capacity >= n) Complexity: $(BIGOH log(e - capacity)) if $(D e > capacity), otherwise $(BIGOH 1). */ void reserve(size_t e) { import std.conv : to; _store.refCountedStore.ensureInitialized(); _store._backend.reserve(to!size_t((e + bitsPerWord - 1) / bitsPerWord)); } unittest { Array!bool a; assert(a.capacity == 0); a.reserve(15657); assert(a.capacity >= 15657); } /** Returns a range that iterates over all elements of the container, in a container-defined order. The container should choose the most convenient and fast method of iteration for $(D opSlice()). Complexity: $(BIGOH log(n)) */ Range opSlice() { return Range(this, 0, length); } unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[].length == 4); } /** Returns a range that iterates the container between two specified positions. Complexity: $(BIGOH log(n)) */ Range opSlice(size_t a, size_t b) { enforce(a <= b && b <= length); return Range(this, a, b); } unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[0 .. 2].length == 2); } /** Equivalent to $(D opSlice().front) and $(D opSlice().back), respectively. Complexity: $(BIGOH log(n)) */ @property bool front() { enforce(!empty); return data.ptr[0] & 1; } /// Ditto @property void front(bool value) { enforce(!empty); if (value) data.ptr[0] |= 1; else data.ptr[0] &= ~cast(size_t) 1; } unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a.front); a.front = false; assert(!a.front); } /// Ditto @property bool back() { enforce(!empty); return cast(bool)(data.back & (cast(size_t)1 << ((_store._length - 1) % bitsPerWord))); } /// Ditto @property void back(bool value) { enforce(!empty); if (value) { data.back |= (cast(size_t)1 << ((_store._length - 1) % bitsPerWord)); } else { data.back &= ~(cast(size_t)1 << ((_store._length - 1) % bitsPerWord)); } } unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a.back); a.back = false; assert(!a.back); } /** Indexing operators yield or modify the value at a specified index. */ bool opIndex(size_t i) { auto div = cast(size_t) (i / bitsPerWord); auto rem = i % bitsPerWord; enforce(div < data.length); return cast(bool)(data.ptr[div] & (cast(size_t)1 << rem)); } /// ditto void opIndexAssign(bool value, size_t i) { auto div = cast(size_t) (i / bitsPerWord); auto rem = i % bitsPerWord; enforce(div < data.length); if (value) data.ptr[div] |= (cast(size_t)1 << rem); else data.ptr[div] &= ~(cast(size_t)1 << rem); } /// ditto void opIndexOpAssign(string op)(bool value, size_t i) { auto div = cast(size_t) (i / bitsPerWord); auto rem = i % bitsPerWord; enforce(div < data.length); auto oldValue = cast(bool) (data.ptr[div] & (cast(size_t)1 << rem)); // Do the deed auto newValue = mixin("oldValue "~op~" value"); // Write back the value if (newValue != oldValue) { if (newValue) data.ptr[div] |= (cast(size_t)1 << rem); else data.ptr[div] &= ~(cast(size_t)1 << rem); } } /// Ditto T moveAt(size_t i) { return this[i]; } unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[0] && !a[1]); a[0] &= a[1]; assert(!a[0]); } /** Returns a new container that's the concatenation of $(D this) and its argument. Complexity: $(BIGOH n + m), where m is the number of elements in $(D stuff) */ Array!bool opBinary(string op, Stuff)(Stuff rhs) if (op == "~") { auto result = this; return result ~= rhs; } unittest { import std.algorithm.comparison : equal; Array!bool a; a.insertBack([true, false, true, true]); Array!bool b; b.insertBack([true, true, false, true]); assert(equal((a ~ b)[], [true, false, true, true, true, true, false, true])); } // /// ditto // TotalContainer opBinaryRight(Stuff, string op)(Stuff lhs) if (op == "~") // { // assert(0); // } /** Forwards to $(D insertAfter(this[], stuff)). */ // @@@BUG@@@ //ref Array!bool opOpAssign(string op, Stuff)(Stuff stuff) if (op == "~") Array!bool opOpAssign(string op, Stuff)(Stuff stuff) if (op == "~") { static if (is(typeof(stuff[]))) insertBack(stuff[]); else insertBack(stuff); return this; } unittest { import std.algorithm.comparison : equal; Array!bool a; a.insertBack([true, false, true, true]); Array!bool b; a.insertBack([false, true, false, true, true]); a ~= b; assert(equal( a[], [true, false, true, true, false, true, false, true, true])); } /** Removes all contents from the container. The container decides how $(D capacity) is affected. Postcondition: $(D empty) Complexity: $(BIGOH n) */ void clear() { this = Array(); } unittest { Array!bool a; a.insertBack([true, false, true, true]); a.clear(); assert(a.capacity == 0); } /** Sets the number of elements in the container to $(D newSize). If $(D newSize) is greater than $(D length), the added elements are added to the container and initialized with $(D ElementType.init). Complexity: $(BIGOH abs(n - newLength)) Postcondition: $(D _length == newLength) */ @property void length(size_t newLength) { import std.conv : to; _store.refCountedStore.ensureInitialized(); auto newDataLength = to!size_t((newLength + bitsPerWord - 1) / bitsPerWord); _store._backend.length = newDataLength; _store._length = newLength; } unittest { Array!bool a; a.length = 1057; assert(a.length == 1057); foreach (e; a) { assert(!e); } } /** Inserts $(D stuff) in the container. $(D stuff) can be a value convertible to $(D ElementType) or a range of objects convertible to $(D ElementType). The $(D stable) version guarantees that ranges iterating over the container are never invalidated. Client code that counts on non-invalidating insertion should use $(D stableInsert). Returns: The number of elements added. Complexity: $(BIGOH m * log(n)), where $(D m) is the number of elements in $(D stuff) */ alias insert = insertBack; ///ditto alias stableInsert = insertBack; /** Same as $(D insert(stuff)) and $(D stableInsert(stuff)) respectively, but relax the complexity constraint to linear. */ alias linearInsert = insertBack; ///ditto alias stableLinearInsert = insertBack; /** Picks one value in the container, removes it from the container, and returns it. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Precondition: $(D !empty) Returns: The element removed. Complexity: $(BIGOH log(n)) */ T removeAny() { auto result = back; removeBack(); return result; } /// ditto alias stableRemoveAny = removeAny; unittest { Array!bool a; a.length = 1057; assert(!a.removeAny()); assert(a.length == 1056); foreach (e; a) { assert(!e); } } /** Inserts $(D value) to the back of the container. $(D stuff) can be a value convertible to $(D ElementType) or a range of objects convertible to $(D ElementType). The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: The number of elements inserted Complexity: $(BIGOH log(n)) */ size_t insertBack(Stuff)(Stuff stuff) if (is(Stuff : bool)) { _store.refCountedStore.ensureInitialized(); auto rem = _store._length % bitsPerWord; if (rem) { // Fits within the current array if (stuff) { data[$ - 1] |= (cast(size_t)1 << rem); } else { data[$ - 1] &= ~(cast(size_t)1 << rem); } } else { // Need to add more data _store._backend.insertBack(stuff); } ++_store._length; return 1; } /// Ditto size_t insertBack(Stuff)(Stuff stuff) if (isInputRange!Stuff && is(ElementType!Stuff : bool)) { static if (!hasLength!Stuff) size_t result; for (; !stuff.empty; stuff.popFront()) { insertBack(stuff.front); static if (!hasLength!Stuff) ++result; } static if (!hasLength!Stuff) return result; else return stuff.length; } /// ditto alias stableInsertBack = insertBack; unittest { Array!bool a; for (int i = 0; i < 100; ++i) a.insertBack(true); foreach (e; a) assert(e); } /** Removes the value at the front or back of the container. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. The optional parameter $(D howMany) instructs removal of that many elements. If $(D howMany > n), all elements are removed and no exception is thrown. Precondition: $(D !empty) Complexity: $(BIGOH log(n)). */ void removeBack() { enforce(_store._length); if (_store._length % bitsPerWord) { // Cool, just decrease the length --_store._length; } else { // Reduce the allocated space --_store._length; _store._backend.length = _store._backend.length - 1; } } /// ditto alias stableRemoveBack = removeBack; /** Removes $(D howMany) values at the front or back of the container. Unlike the unparameterized versions above, these functions do not throw if they could not remove $(D howMany) elements. Instead, if $(D howMany > n), all elements are removed. The returned value is the effective number of elements removed. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: The number of elements removed Complexity: $(BIGOH howMany * log(n)). */ /// ditto size_t removeBack(size_t howMany) { if (howMany >= length) { howMany = length; clear(); } else { length = length - howMany; } return howMany; } unittest { Array!bool a; a.length = 1057; assert(a.removeBack(1000) == 1000); assert(a.length == 57); foreach (e; a) { assert(!e); } } /** Inserts $(D stuff) before, after, or instead range $(D r), which must be a valid range previously extracted from this container. $(D stuff) can be a value convertible to $(D ElementType) or a range of objects convertible to $(D ElementType). The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: The number of values inserted. Complexity: $(BIGOH n + m), where $(D m) is the length of $(D stuff) */ size_t insertBefore(Stuff)(Range r, Stuff stuff) { import std.algorithm.mutation : bringToFront; // TODO: make this faster, it moves one bit at a time immutable inserted = stableInsertBack(stuff); immutable tailLength = length - inserted; bringToFront( this[r._a .. tailLength], this[tailLength .. length]); return inserted; } /// ditto alias stableInsertBefore = insertBefore; unittest { import std.conv : to; Array!bool a; version (bugxxxx) { a._store.refCountedDebug = true; } a.insertBefore(a[], true); assert(a.length == 1, to!string(a.length)); a.insertBefore(a[], false); assert(a.length == 2, to!string(a.length)); } /// ditto size_t insertAfter(Stuff)(Range r, Stuff stuff) { import std.algorithm.mutation : bringToFront; // TODO: make this faster, it moves one bit at a time immutable inserted = stableInsertBack(stuff); immutable tailLength = length - inserted; bringToFront( this[r._b .. tailLength], this[tailLength .. length]); return inserted; } /// ditto alias stableInsertAfter = insertAfter; unittest { import std.conv : to; Array!bool a; a.length = 10; a.insertAfter(a[0 .. 5], true); assert(a.length == 11, to!string(a.length)); assert(a[5]); } /// ditto size_t replace(Stuff)(Range r, Stuff stuff) if (is(Stuff : bool)) { if (!r.empty) { // There is room r.front = stuff; r.popFront(); linearRemove(r); } else { // No room, must insert insertBefore(r, stuff); } return 1; } /// ditto alias stableReplace = replace; unittest { import std.conv : to; Array!bool a; a.length = 10; a.replace(a[3 .. 5], true); assert(a.length == 9, to!string(a.length)); assert(a[3]); } /** Removes all elements belonging to $(D r), which must be a range obtained originally from this container. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. Returns: A range spanning the remaining elements in the container that initially were right after $(D r). Complexity: $(BIGOH n) */ Range linearRemove(Range r) { import std.algorithm.mutation : copy; copy(this[r._b .. length], this[r._a .. length]); length = length - r.length; return this[r._a .. length]; } } unittest { Array!bool a; assert(a.empty); } unittest { Array!bool arr; arr.insert([false, false, false, false]); assert(arr.front == false); assert(arr.back == false); assert(arr[1] == false); auto slice = arr[]; slice = arr[0 .. $]; slice = slice[1 .. $]; slice.front = true; slice.back = true; slice[1] = true; assert(slice.front == true); assert(slice.back == true); assert(slice[1] == true); assert(slice.moveFront == true); assert(slice.moveBack == true); assert(slice.moveAt(1) == true); } // issue 16331 - uncomparable values are valid values for an array unittest { double[] values = [double.nan, double.nan]; auto arr = Array!double(values); }
D
module android.java.java.util.LinkedList; public import android.java.java.util.LinkedList_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!LinkedList; import import7 = android.java.java.util.stream.Stream; import import1 = android.java.java.util.ListIterator; import import5 = android.java.java.lang.Class; import import4 = android.java.java.util.List; import import3 = android.java.java.util.Spliterator; import import2 = android.java.java.util.Iterator;
D
/home/tebogo/Documents/RUST/authentication-app/target/debug/deps/cc-471b2b07463c01b7.rmeta: /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs /home/tebogo/Documents/RUST/authentication-app/target/debug/deps/libcc-471b2b07463c01b7.rlib: /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs /home/tebogo/Documents/RUST/authentication-app/target/debug/deps/cc-471b2b07463c01b7.d: /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs: /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs:
D
instance DIA_OPOLOS_KAP1_EXIT(C_INFO) { npc = nov_605_opolos; nr = 999; condition = dia_opolos_kap1_exit_condition; information = dia_opolos_kap1_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_opolos_kap1_exit_condition() { if(KAPITEL <= 1) { return TRUE; }; }; func void dia_opolos_kap1_exit_info() { AI_StopProcessInfos(self); }; instance DIA_OPOLOS_HELLO(C_INFO) { npc = nov_605_opolos; nr = 1; condition = dia_opolos_hello_condition; information = dia_opolos_hello_info; permanent = FALSE; important = TRUE; }; func int dia_opolos_hello_condition() { if(Npc_IsInState(self,zs_talk) && (other.guild == GIL_NOV)) { return TRUE; }; }; func void dia_opolos_hello_info() { AI_Output(self,other,"DIA_Opolos_Hello_12_00"); //Привет, ты, должно быть, тот самый новичок. AI_Output(self,other,"DIA_Opolos_Hello_12_01"); //Я Ополос. Я присматриваю за овцами. }; instance DIA_OPOLOS_WURST(C_INFO) { npc = nov_605_opolos; nr = 2; condition = dia_opolos_wurst_condition; information = dia_opolos_wurst_info; permanent = FALSE; description = "Я принес баранью колбасу..."; }; func int dia_opolos_wurst_condition() { if((KAPITEL == 1) && (MIS_GORAXESSEN == LOG_RUNNING) && (Npc_HasItems(self,itfo_schafswurst) == 0) && (Npc_HasItems(other,itfo_schafswurst) >= 1)) { return TRUE; }; }; func void dia_opolos_wurst_info() { var string novizetext; var string novizeleft; AI_Output(other,self,"DIA_Opolos_Wurst_15_00"); //Я принес баранью колбасу... AI_Output(self,other,"DIA_Opolos_Wurst_12_01"); //Ох, фантастика! Наконец-то! Вкуснейшая баранья колбаса! b_giveinvitems(other,self,itfo_schafswurst,1); WURST_GEGEBEN = WURST_GEGEBEN + 1; CreateInvItems(self,itfo_sausage,1); b_useitem(self,itfo_sausage); novizeleft = IntToString(13 - WURST_GEGEBEN); novizetext = ConcatStrings(novizeleft,PRINT_NOVIZENLEFT); AI_PrintScreen(novizetext,-1,YPOS_GOLDGIVEN,FONT_SCREENSMALL,3); }; instance DIA_OPOLOS_HOWLONG(C_INFO) { npc = nov_605_opolos; nr = 1; condition = dia_opolos_howlong_condition; information = dia_opolos_howlong_info; permanent = FALSE; description = "Ты давно в монастыре?"; }; func int dia_opolos_howlong_condition() { if(Npc_KnowsInfo(hero,dia_opolos_hello)) { return TRUE; }; }; func void dia_opolos_howlong_info() { AI_Output(other,self,"DIA_Opolos_HowLong_15_00"); //Ты давно в монастыре? AI_Output(self,other,"DIA_Opolos_HowLong_12_01"); //Уже три года. Но до сих пор меня не пускают в библиотеку. А мне так хочется... AI_Output(other,self,"DIA_Opolos_HowLong_15_02"); //А почему? AI_Output(self,other,"DIA_Opolos_HowLong_12_03"); //Моя работа здесь - пасти овец - а не изучать писания. AI_Output(self,other,"DIA_Opolos_HowLong_12_04"); //И пока мастер Парлан не освободит меня от этой обязанности, мне не позволят начать обучение в библиотеке. MIS_HELPOPOLOS = LOG_RUNNING; Log_CreateTopic(TOPIC_OPOLOSSTUDY,LOG_MISSION); Log_SetTopicStatus(TOPIC_OPOLOSSTUDY,LOG_RUNNING); b_logentry(TOPIC_OPOLOSSTUDY,"Ополос сторожит овец. А он хотел бы изучать свитки в библиотеке."); }; instance DIA_OPOLOS_MONASTERY(C_INFO) { npc = nov_605_opolos; nr = 3; condition = dia_opolos_monastery_condition; information = dia_opolos_monastery_info; permanent = FALSE; description = "Как я должен вести себя в монастыре?"; }; func int dia_opolos_monastery_condition() { if(Npc_KnowsInfo(hero,dia_opolos_hello) && (hero.guild == GIL_NOV)) { return TRUE; }; }; func void dia_opolos_monastery_info() { AI_Output(other,self,"DIA_Opolos_Monastery_15_00"); //Как я должен вести себя в монастыре? AI_Output(self,other,"DIA_Opolos_Monastery_12_01"); //Никогда не лги магам. Уважай своих братьев по общине. AI_Output(self,other,"DIA_Opolos_Monastery_12_02"); //Уважай собственность монастыря. Если ты нарушишь эти правила, тебе придется отвечать перед мастером Парланом. AI_Output(self,other,"DIA_Opolos_Monastery_12_03"); //Помимо этого, я могу посоветовать тебе быть осторожнее с Агоном. Если ты не будешь бдительным, ты можешь кончить как Бабо. }; instance DIA_OPOLOS_BEIBRINGEN(C_INFO) { npc = nov_605_opolos; nr = 3; condition = dia_opolos_beibringen_condition; information = dia_opolos_beibringen_info; permanent = FALSE; description = "Ты можешь чему-нибудь научить меня?"; }; func int dia_opolos_beibringen_condition() { if(Npc_KnowsInfo(hero,dia_opolos_hello) && ((other.guild == GIL_NOV) || (other.guild == GIL_KDF))) { return TRUE; }; }; func void dia_opolos_beibringen_info() { AI_Output(other,self,"DIA_Opolos_beibringen_15_00"); //Ты можешь чему-нибудь научить меня? AI_Output(self,other,"DIA_Opolos_beibringen_12_01"); //Конечно, мне часто приходилось драться. Я могу научить тебя, как стать сильнее. AI_Output(self,other,"DIA_Opolos_beibringen_12_02"); //Но я бы хотел узнать что-нибудь о зельях, особенно о магических. AI_Output(other,self,"DIA_Opolos_beibringen_15_03"); //Чем я могу помочь тебе в этом? AI_Output(self,other,"DIA_Opolos_beibringen_12_04"); //Ну, если ты работаешь на Неораса, то у тебя наверняка будет возможность 'позаимствовать' ненадолго один из его рецептов. AI_Output(self,other,"DIA_Opolos_beibringen_12_05"); //Если ты принесешь его мне, чтобы я мог изучить его, то я потренирую тебя. Log_CreateTopic(TOPIC_OPOLOSREZEPT,LOG_MISSION); Log_SetTopicStatus(TOPIC_OPOLOSREZEPT,LOG_RUNNING); b_logentry(TOPIC_OPOLOSREZEPT,"Ополос хочет взглянуть на рецепт приготовления зелий маны. Возможно мне удастся позаимствовать его, работая на Неораса."); }; instance DIA_OPOLOS_REZEPT(C_INFO) { npc = nov_605_opolos; nr = 3; condition = dia_opolos_rezept_condition; information = dia_opolos_rezept_info; permanent = TRUE; description = "Насчет рецепта..."; }; var int dia_opolos_rezept_permanent; func int dia_opolos_rezept_condition() { if(Npc_KnowsInfo(hero,dia_opolos_beibringen) && (other.guild == GIL_NOV) && (DIA_OPOLOS_REZEPT_PERMANENT == FALSE)) { return TRUE; }; }; func void dia_opolos_rezept_info() { if(Npc_HasItems(other,itwr_manarezept) >= 1) { AI_Output(other,self,"DIA_Opolos_rezept_15_00"); //Я принес рецепт, как ты и хотел. AI_Output(self,other,"DIA_Opolos_rezept_12_01"); //Хорошо, дай я прочту его. AI_PrintScreen("Рецепт магических зелий отдано",-1,YPOS_ItemGiven,FONT_ScreenSmall,2); b_usefakescroll(); AI_Output(self,other,"DIA_Opolos_rezept_12_02"); //Ага... хм... да... понятно... так, так... b_usefakescroll(); AI_Output(self,other,"DIA_Opolos_rezept_12_03"); //Хорошо. Огромное спасибо. Если хочешь, ты можешь потренироваться со мной. AI_PrintScreen("Рецепт магических зелий получено",-1,YPOS_ItemTaken,FONT_ScreenSmall,2); DIA_OPOLOS_REZEPT_PERMANENT = TRUE; OPOLOS_TEACHSTR = TRUE; OPOLOS_REZEPT = LOG_SUCCESS; b_giveplayerxp(XP_AMBIENT); Log_CreateTopic(TOPIC_KLOSTERTEACHER,LOG_NOTE); b_logentry(TOPIC_KLOSTERTEACHER,"Ополос может помочь мне стать сильнее."); } else if(MIS_NEORASREZEPT == LOG_SUCCESS) { AI_Output(other,self,"DIA_Opolos_rezept_15_04"); //Я уже вернул этот рецепт Неорасу. AI_Output(self,other,"DIA_Opolos_rezept_12_05"); //Ох, черт - мне, наверное, никогда не удастся научиться чему-нибудь здесь. Ладно. Я все равно потренирую тебя. OPOLOS_REZEPT = LOG_FAILED; DIA_OPOLOS_REZEPT_PERMANENT = TRUE; OPOLOS_TEACHSTR = TRUE; Log_CreateTopic(TOPIC_KLOSTERTEACHER,LOG_NOTE); b_logentry(TOPIC_KLOSTERTEACHER,"Ополос может помочь мне стать сильнее."); } else { AI_Output(other,self,"DIA_Opolos_rezept_15_06"); //Вернемся к этому позже. }; }; instance DIA_OPOLOS_TEACH_STR(C_INFO) { npc = nov_605_opolos; nr = 99; condition = dia_opolos_teach_str_condition; information = dia_opolos_teach_str_info; permanent = TRUE; description = "Я хочу стать сильнее."; }; func int dia_opolos_teach_str_condition() { if(((hero.guild == GIL_KDF) || (hero.guild == GIL_NOV)) && (OPOLOS_TEACHSTR == TRUE) && (other.attribute[ATR_STRENGTH] <= 70)) { return TRUE; }; }; func void dia_opolos_teach_str_info() { AI_Output(other,self,"DIA_Opolos_TEACH_STR_15_00"); //Я хочу стать сильнее. Info_ClearChoices(dia_opolos_teach_str); Info_AddChoice(dia_opolos_teach_str,DIALOG_BACK,dia_opolos_teach_str_back); Info_AddChoice(dia_opolos_teach_str,b_buildlearnstring(PRINT_LEARNSTR1,b_getlearncostattribute(other,ATR_STRENGTH)),dia_opolos_teach_str_1); Info_AddChoice(dia_opolos_teach_str,b_buildlearnstring(PRINT_LEARNSTR5,b_getlearncostattribute(other,ATR_STRENGTH) * 5),dia_opolos_teach_str_5); }; func void dia_opolos_teach_str_back() { if(other.attribute[ATR_STRENGTH] >= 70) { AI_Output(self,other,"DIA_Opolos_TEACH_STR_12_00"); //Ты стал очень сильным. Мне больше нечему учить тебя. }; Info_ClearChoices(dia_opolos_teach_str); }; func void dia_opolos_teach_str_1() { b_teachattributepoints(self,other,ATR_STRENGTH,1,70); Info_ClearChoices(dia_opolos_teach_str); Info_AddChoice(dia_opolos_teach_str,DIALOG_BACK,dia_opolos_teach_str_back); Info_AddChoice(dia_opolos_teach_str,b_buildlearnstring(PRINT_LEARNSTR1,b_getlearncostattribute(other,ATR_STRENGTH)),dia_opolos_teach_str_1); Info_AddChoice(dia_opolos_teach_str,b_buildlearnstring(PRINT_LEARNSTR5,b_getlearncostattribute(other,ATR_STRENGTH) * 5),dia_opolos_teach_str_5); }; func void dia_opolos_teach_str_5() { b_teachattributepoints(self,other,ATR_STRENGTH,5,70); Info_ClearChoices(dia_opolos_teach_str); Info_AddChoice(dia_opolos_teach_str,DIALOG_BACK,dia_opolos_teach_str_back); Info_AddChoice(dia_opolos_teach_str,b_buildlearnstring(PRINT_LEARNSTR1,b_getlearncostattribute(other,ATR_STRENGTH)),dia_opolos_teach_str_1); Info_AddChoice(dia_opolos_teach_str,b_buildlearnstring(PRINT_LEARNSTR5,b_getlearncostattribute(other,ATR_STRENGTH) * 5),dia_opolos_teach_str_5); }; instance DIA_OPOLOS_AGON(C_INFO) { npc = nov_605_opolos; nr = 4; condition = dia_opolos_agon_condition; information = dia_opolos_agon_info; permanent = FALSE; description = "А кто такие Агон и Бабо?"; }; func int dia_opolos_agon_condition() { if(Npc_KnowsInfo(other,dia_opolos_monastery) && (hero.guild == GIL_NOV)) { return TRUE; }; }; func void dia_opolos_agon_info() { AI_Output(other,self,"DIA_Opolos_Agon_15_00"); //А кто такие Агон и Бабо? AI_Output(self,other,"DIA_Opolos_Agon_12_01"); //Агон заведует садом. Он тоже послушник, но ведет себя так, как будто он уже Избранный. AI_Output(self,other,"DIA_Opolos_Agon_12_02"); //Бабо пришел в монастырь незадолго до тебя. И сначала он помогал Агону в саду. AI_Output(self,other,"DIA_Opolos_Agon_12_03"); //Похоже, они что-то там не поделили, и с тех пор Бабо подметает двор. AI_Output(other,self,"DIA_Opolos_Agon_15_04"); //Ты знаешь, что произошло? AI_Output(self,other,"DIA_Opolos_Agon_12_05"); //Точно не знаю. Тебе лучше самому спросить их. Но слова Агона имеет больший вес, чем слово любого другого послушника, потому что он племянник губернатора. }; instance DIA_OPOLOS_LIESEL(C_INFO) { npc = nov_605_opolos; nr = 2; condition = dia_opolos_liesel_condition; information = dia_opolos_liesel_info; permanent = TRUE; description = "Смотри, Я привел Бетси."; }; func int dia_opolos_liesel_condition() { if((other.guild == GIL_NOV) && (LIESEL_GIVEAWAY == FALSE)) { return TRUE; }; }; func void dia_opolos_liesel_info() { AI_Output(other,self,"DIA_Opolos_LIESEL_15_00"); //Смотри, Я привел Бетси. Могу я оставить ее с тобой? Npc_PerceiveAll(self); if(Wld_DetectNpc(self,follow_sheep,NOFUNC,-1) && (Npc_GetDistToNpc(self,other) < 800)) { other.aivar[AIV_PARTYMEMBER] = FALSE; other.aivar[AIV_TAPOSITION] = TRUE; other.wp = "FP_ROAM_MONASTERY_04"; other.start_aistate = zs_mm_allscheduler; LIESEL_GIVEAWAY = TRUE; AI_Output(self,hero,"DIA_Opolos_LIESEL_12_01"); //Да, конечно. Какая красивая овечка. Я позабочусь о ней. AI_StopProcessInfos(self); } else { AI_Output(other,self,"DIA_Opolos_Add_15_00"); //Хм... куда же это я его подевал. Я приду позже. }; }; instance DIA_OPOLOS_BIBLOTHEK(C_INFO) { npc = nov_605_opolos; nr = 98; condition = dia_opolos_biblothek_condition; information = dia_opolos_biblothek_info; permanent = TRUE; description = "Насчет библиотеки..."; }; func int dia_opolos_biblothek_condition() { if((other.guild == GIL_NOV) && Npc_KnowsInfo(other,dia_opolos_howlong)) { return TRUE; }; }; func void dia_opolos_biblothek_info() { AI_Output(other,self,"DIA_Opolos_Biblothek_15_00"); //Насчет библиотеки ... if(PARLAN_ERLAUBNIS == FALSE) { AI_Output(self,other,"DIA_Opolos_Biblothek_12_01"); //Это запертая комната слева, рядом с воротами. AI_Output(self,other,"DIA_Opolos_Biblothek_12_02"); //Ключ от нее можно получить только тогда, когда мастер Парлан решит, что ты готов изучать писания. } else { AI_Output(self,other,"DIA_Opolos_Biblothek_12_03"); //Ты везунчик! Ты получил ключ от библиотеки, не пробыв тут и нескольких дней. AI_Output(self,other,"DIA_Opolos_Biblothek_12_04"); //Не упусти свой шанс изучить древние писания! }; AI_StopProcessInfos(self); }; instance DIA_OPOLOS_HELLOAGAIN(C_INFO) { npc = nov_605_opolos; nr = 2; condition = dia_opolos_helloagain_condition; information = dia_opolos_helloagain_info; permanent = FALSE; important = TRUE; }; func int dia_opolos_helloagain_condition() { if((other.guild == GIL_KDF) && (MIS_HELPOPOLOS == LOG_SUCCESS) && Npc_IsInState(self,zs_talk)) { return TRUE; }; }; func void dia_opolos_helloagain_info() { AI_Output(self,other,"DIA_Opolos_HelloAgain_12_00"); //Привет. Спасибо, что помог мне. Теперь я не упущу свой шанс. AI_Output(self,other,"DIA_Opolos_HelloAgain_12_01"); //Но у тебя, наверняка, теперь нет времени на разговоры с простым послушником, Мастер. b_giveplayerxp(XP_AMBIENT); AI_StopProcessInfos(self); }; instance DIA_OPOLOS_HOWISIT(C_INFO) { npc = nov_605_opolos; nr = 3; condition = dia_opolos_howisit_condition; information = dia_opolos_howisit_info; permanent = TRUE; description = "Как дела?"; }; func int dia_opolos_howisit_condition() { if(other.guild == GIL_KDF) { return TRUE; }; }; func void dia_opolos_howisit_info() { AI_Output(other,self,"DIA_Opolos_HowIsIt_15_00"); //Как дела? if(MIS_HELPOPOLOS == LOG_SUCCESS) { AI_Output(self,other,"DIA_Opolos_HowIsIt_12_01"); //Отлично. С тех пор, как мне разрешили посещать библиотеку, все просто превосходно. } else { AI_Output(self,other,"DIA_Opolos_HowIsIt_12_02"); //Я смиренно выполняю все, что мне поручено, Мастер. AI_Output(self,other,"DIA_Opolos_HowIsIt_12_03"); //Каждый день Иннос подвергает меня новым испытаниям. Я буду продолжать работать над собой. }; AI_StopProcessInfos(self); }; instance DIA_OPOLOS_KAP2_EXIT(C_INFO) { npc = nov_605_opolos; nr = 999; condition = dia_opolos_kap2_exit_condition; information = dia_opolos_kap2_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_opolos_kap2_exit_condition() { if(KAPITEL == 2) { return TRUE; }; }; func void dia_opolos_kap2_exit_info() { AI_StopProcessInfos(self); }; instance DIA_OPOLOS_KAP3_EXIT(C_INFO) { npc = nov_605_opolos; nr = 999; condition = dia_opolos_kap3_exit_condition; information = dia_opolos_kap3_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_opolos_kap3_exit_condition() { if(KAPITEL == 3) { return TRUE; }; }; func void dia_opolos_kap3_exit_info() { AI_StopProcessInfos(self); }; instance DIA_OPOLOS_KAP3_PERM(C_INFO) { npc = nov_605_opolos; nr = 39; condition = dia_opolos_kap3_perm_condition; information = dia_opolos_kap3_perm_info; permanent = TRUE; description = "Как твои овцы?"; }; func int dia_opolos_kap3_perm_condition() { if((KAPITEL >= 3) && (other.guild != GIL_KDF)) { return TRUE; }; }; func void dia_opolos_kap3_perm_info() { AI_Output(other,self,"DIA_Opolos_Kap3_PERM_15_00"); //Как твои овцы? AI_Output(self,other,"DIA_Opolos_Kap3_PERM_12_01"); //А как ты думаешь? Они стоят вокруг и жуют траву. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_12_02"); //Хотел бы я знать, что происходит снаружи. Маги, похоже, очень нервничают. Info_ClearChoices(dia_opolos_kap3_perm); Info_AddChoice(dia_opolos_kap3_perm,DIALOG_BACK,dia_opolos_kap3_perm_back); Info_AddChoice(dia_opolos_kap3_perm,"В Долине Рудников появились драконы.",dia_opolos_kap3_perm_dragons); Info_AddChoice(dia_opolos_kap3_perm,"Неизвестные в черных рясах стоят на каждом перекрестке.",dia_opolos_kap3_perm_dmt); if(MIS_NOVIZENCHASE == LOG_RUNNING) { Info_AddChoice(dia_opolos_kap3_perm,"Педро предал нас.",dia_opolos_kap3_perm_pedro); }; }; func void dia_opolos_kap3_perm_back() { Info_ClearChoices(dia_opolos_kap3_perm); }; var int opolos_dragons; func void dia_opolos_kap3_perm_dragons() { AI_Output(other,self,"DIA_Opolos_Kap3_PERM_DRAGONS_15_00"); //В Долине Рудников появились драконы. Вместе с армией орков они осаждают королевские войска. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_DRAGONS_12_01"); //Драконы - я всегда думал, что они существуют только в детских сказках. AI_Output(other,self,"DIA_Opolos_Kap3_PERM_DRAGONS_15_02"); //Они здесь, поверь мне. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_DRAGONS_12_03"); //Но королевские паладины разберутся с ними, разве нет? AI_Output(other,self,"DIA_Opolos_Kap3_PERM_DRAGONS_15_04"); //Посмотрим. if(OPOLOS_DRAGONS == FALSE) { b_giveplayerxp(XP_AMBIENT); OPOLOS_DRAGONS = TRUE; }; }; var int opolos_dmt; func void dia_opolos_kap3_perm_dmt() { AI_Output(other,self,"DIA_Opolos_Kap3_PERM_DMT_15_00"); //Неизвестные в черных рясах стоят на каждом перекрестке. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_DMT_12_01"); //Что ты имеешь в виду? Какие еще неизвестные? AI_Output(other,self,"DIA_Opolos_Kap3_PERM_DMT_15_02"); //Никто не знает, откуда они взялись. Они носят длинные черные рясы и скрывают свои лица. AI_Output(other,self,"DIA_Opolos_Kap3_PERM_DMT_15_03"); //Похоже, это какие-то маги. По крайней мере, они владеют магией. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_DMT_12_04"); //Это все очень тревожно, но я уверен, что Высший Совет решит эту проблему. if(OPOLOS_DMT == FALSE) { b_giveplayerxp(XP_AMBIENT); OPOLOS_DMT = TRUE; }; }; var int opolos_pedro; func void dia_opolos_kap3_perm_pedro() { AI_Output(other,self,"DIA_Opolos_Kap3_PERM_PEDRO_15_00"); //Педро предал нас. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_PEDRO_12_01"); //Я слышал об этом, но я думал, что и тебе об этом известно. Вот почему я ничего не сказал. AI_Output(self,other,"DIA_Opolos_Kap3_PERM_PEDRO_12_02"); //Неужели враг сильнее нас - ну я хочу сказать, сможем ли мы победить его? AI_Output(other,self,"DIA_Opolos_Kap3_PERM_PEDRO_15_03"); //Мы еще не мертвы. if(OPOLOS_PEDRO == FALSE) { b_giveplayerxp(XP_AMBIENT); OPOLOS_PEDRO = TRUE; }; }; instance DIA_OPOLOS_KAP4_EXIT(C_INFO) { npc = nov_605_opolos; nr = 999; condition = dia_opolos_kap4_exit_condition; information = dia_opolos_kap4_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_opolos_kap4_exit_condition() { if(KAPITEL == 4) { return TRUE; }; }; func void dia_opolos_kap4_exit_info() { AI_StopProcessInfos(self); }; instance DIA_OPOLOS_KAP5_EXIT(C_INFO) { npc = nov_605_opolos; nr = 999; condition = dia_opolos_kap5_exit_condition; information = dia_opolos_kap5_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_opolos_kap5_exit_condition() { if(KAPITEL == 5) { return TRUE; }; }; func void dia_opolos_kap5_exit_info() { AI_StopProcessInfos(self); }; instance DIA_OPOLOS_PICKPOCKET(C_INFO) { npc = nov_605_opolos; nr = 900; condition = dia_opolos_pickpocket_condition; information = dia_opolos_pickpocket_info; permanent = TRUE; description = PICKPOCKET_60; }; func int dia_opolos_pickpocket_condition() { return c_beklauen(54,70); }; func void dia_opolos_pickpocket_info() { Info_ClearChoices(dia_opolos_pickpocket); Info_AddChoice(dia_opolos_pickpocket,DIALOG_BACK,dia_opolos_pickpocket_back); Info_AddChoice(dia_opolos_pickpocket,DIALOG_PICKPOCKET,dia_opolos_pickpocket_doit); }; func void dia_opolos_pickpocket_doit() { b_beklauen(); Info_ClearChoices(dia_opolos_pickpocket); }; func void dia_opolos_pickpocket_back() { Info_ClearChoices(dia_opolos_pickpocket); };
D
/Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Hero.build/Objects-normal/x86_64/DefaultAnimationPreprocessor.o : /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier+Advanced.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroCompatible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier+HeroStringConvertible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/HeroStringConvertible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UIViewControllerTransitioningDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UINavigationControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UITabBarControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroViewControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Animate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransitionState.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroTargetState.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Complete.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Interactive.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Debug\ Plugin/HeroDebugPlugin.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroPlugin.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+CustomTransition.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CG+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/DispatchQueue+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIViewController+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CALayer+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIKit+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIView+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/Array+HeroModifier.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroProgressRunner.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Parser.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Lexer.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/SourcePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/CascadePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/BasePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/MatchPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/ConditionalPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/DefaultAnimationPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/IgnoreSubviewModifiersPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroDefaultAnimator.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Nodes.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroTypes.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Start.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/SwiftSupport.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroCoreAnimationViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroAnimatorViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroViewPropertyViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Debug\ Plugin/HeroDebugView.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Regex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MetalKit.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/Hero/Hero-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Hero.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/ModelIO.framework/Headers/ModelIO.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.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/Hero.build/Objects-normal/x86_64/DefaultAnimationPreprocessor~partial.swiftmodule : /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier+Advanced.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroCompatible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier+HeroStringConvertible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/HeroStringConvertible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UIViewControllerTransitioningDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UINavigationControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UITabBarControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroViewControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Animate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransitionState.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroTargetState.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Complete.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Interactive.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Debug\ Plugin/HeroDebugPlugin.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroPlugin.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+CustomTransition.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CG+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/DispatchQueue+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIViewController+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CALayer+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIKit+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIView+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/Array+HeroModifier.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroProgressRunner.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Parser.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Lexer.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/SourcePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/CascadePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/BasePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/MatchPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/ConditionalPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/DefaultAnimationPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/IgnoreSubviewModifiersPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroDefaultAnimator.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Nodes.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroTypes.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Start.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/SwiftSupport.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroCoreAnimationViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroAnimatorViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroViewPropertyViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Debug\ Plugin/HeroDebugView.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Regex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MetalKit.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/Hero/Hero-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Hero.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/ModelIO.framework/Headers/ModelIO.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.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/Hero.build/Objects-normal/x86_64/DefaultAnimationPreprocessor~partial.swiftdoc : /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier+Advanced.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroCompatible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier+HeroStringConvertible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/HeroStringConvertible.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UIViewControllerTransitioningDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UINavigationControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+UITabBarControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroViewControllerDelegate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Animate.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransitionState.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroTargetState.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Complete.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Interactive.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Debug\ Plugin/HeroDebugPlugin.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroPlugin.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+CustomTransition.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CG+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/DispatchQueue+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CAMediaTimingFunction+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIViewController+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/CALayer+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIKit+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/UIView+Hero.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Extensions/Array+HeroModifier.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroModifier.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroProgressRunner.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Parser.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Lexer.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/SourcePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/CascadePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/BasePreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/MatchPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/ConditionalPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/DefaultAnimationPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Preprocessors/IgnoreSubviewModifiersPreprocessor.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroDefaultAnimator.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Nodes.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroTypes.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Transition/HeroTransition+Start.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/SwiftSupport.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/HeroContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroCoreAnimationViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroAnimatorViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Animator/HeroViewPropertyViewContext.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Debug\ Plugin/HeroDebugView.swift /Users/radibarq/developer/NasaInArabic/Pods/Hero/Sources/Parser/Regex.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MetalKit.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/Hero/Hero-umbrella.h /Users/radibarq/developer/NasaInArabic/build/Pods.build/Debug-iphonesimulator/Hero.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/ModelIO.framework/Headers/ModelIO.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.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
/* SEATD for Kate * Copyright (c) 2007 Jascha Wetzel. All rights reserved * License: Artistic License 2.0, see license.txt */ // kate: SEATDIncludePath /usr/include/d/4.1 module kate.seatd_kate; import tango.stdc.stdio; import tango.stdc.string; import tango.text.convert.Layout; import tango.text.Util; import tango.core.Memory; import tango.io.Stdout; import abstract_plugin; import common; /************************************************************************************************** **************************************************************************************************/ class SeatdKate : public AbstractPlugin { private: static SeatdKate instance_; this() { super(); } public: static SeatdKate getInstance() { if ( instance_ is null ) instance_ = new SeatdKate; return instance_; } /********************************************************************************************** Get a list of include paths that have been set by the user in some configuration facility. **********************************************************************************************/ string[] getIncludePaths() { char* ptr; size_t len; kateGetDocumentVariable(kate_instance_, "SEATDIncludePath", &ptr, &len); auto paths = split(ptr[0 .. len].dup, ","); kateFreeString(ptr); return paths; } /********************************************************************************************** Output to a host logging facility, message box or similar. **********************************************************************************************/ void log(string str) { Stdout.formatln("{}", str); } /********************************************************************************************** Open the given source file in the editor. **********************************************************************************************/ void openFile(string filepath) { kateOpenFile(kate_instance_, (filepath~\0).ptr); } /********************************************************************************************** Set the cursor (and view) to the given position in the file **********************************************************************************************/ void setCursor(uint line, uint col) { kateSetCursor(kate_instance_, line, col); } /********************************************************************************************** Get the current position of the cursor. **********************************************************************************************/ void getCursor(ref uint line, ref uint col) { kateGetCursor(kate_instance_, &line, &col); } /********************************************************************************************** Determine whether the current buffer is to be parsed. Usually done using the file extension or editor settings. **********************************************************************************************/ bool isParsableBuffer() { return true; } protected: void* kate_instance_; void setKateInstance(void* kate_instance) { kate_instance_ = kate_instance; } } extern(C): bool rt_init( void delegate(Exception e) dg = null ); bool rt_term( void delegate(Exception e) dg = null ); void kateSetCursor(void* plugin, uint line, uint col); void kateGetCursor(void* plugin, uint* line, uint* col); void kateOpenFile(void* plugin, char* filepath); void kateGetDocumentVariable(void* plugin, char* name, char** str, size_t* len); void kateFreeString(char* str); //============================================================================================= // C Exports for access by the C++ implementation of the Kate plugin interface /********************************************************************************************** **********************************************************************************************/ void* seatdGetInstance(void* kate_instance) { fprintf(stderr, "Initiaizing Tango D Runtime\n"); rt_init(); fprintf(stderr, "Disabling GC\n"); GC.disable(); fprintf(stderr, "Instantiating D plugin class\n"); SeatdKate sk; try { sk = SeatdKate.getInstance(); sk.setKateInstance(kate_instance); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); sk = null; } return cast(void*)sk; } void seatdListModules(void* inst, char* text, size_t len, char*** entries, size_t* count) { auto dtext = text[0 .. len].dup; debug { auto list = (cast(SeatdKate)inst).listModules(dtext); *count = list.length; auto clist = new char*[list.length]; foreach ( i, e; list ) clist[i] = (e~\0).ptr; *entries = clist.ptr; } else { try { auto list = (cast(SeatdKate)inst).listModules(dtext); *count = list.length; auto clist = new char*[list.length]; foreach ( i, e; list ) clist[i] = (e~\0).ptr; *entries = clist.ptr; } catch ( Exception e ) { *count = 0; *entries = null; fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdFreeList(char** entries) { delete entries; } void seatdListDeclarations(void* inst, char* text, size_t len, char*** entries, size_t* count) { auto dtext = text[0 .. len].dup; debug { auto list = (cast(SeatdKate)inst).listDeclarations(dtext); *count = list.length; auto clist = new char*[list.length]; foreach ( i, e; list ) clist[i] = (e~\0).ptr; *entries = clist.ptr; } else { try { auto list = (cast(SeatdKate)inst).listDeclarations(dtext); *count = list.length; auto clist = new char*[list.length]; foreach ( i, e; list ) clist[i] = (e~\0).ptr; *entries = clist.ptr; } catch ( Exception e ) { *count = 0; *entries = null; fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } bool seatdGotoSymbol(void* inst, char* text, size_t text_len, char* symbol, size_t symbol_len) { debug { return (cast(SeatdKate)inst).gotoSymbol(text[0 .. text_len], symbol[0 .. symbol_len]); } else { try { return (cast(SeatdKate)inst).gotoSymbol(text[0 .. text_len], symbol[0 .. symbol_len]); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdGotoDeclaration(void* inst, char* text, size_t len) { debug { (cast(SeatdKate)inst).gotoDeclaration(text[0 .. len]); } else { try { (cast(SeatdKate)inst).gotoDeclaration(text[0 .. len]); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdGotoModule(void* inst, char* text, size_t len) { debug { (cast(SeatdKate)inst).gotoModule(text[0 .. len]); } else { try { (cast(SeatdKate)inst).gotoModule(text[0 .. len]); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdSetBufferFile(void* inst, char* filepath, size_t len) { debug { (cast(SeatdKate)inst).setActiveFilepath(filepath[0 .. len]); } else { try { (cast(SeatdKate)inst).setActiveFilepath(filepath[0 .. len]); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdGotoPrevious(void* inst) { debug { (cast(SeatdKate)inst).gotoPrevious(); } else { try { (cast(SeatdKate)inst).gotoPrevious(); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdGotoNext(void* inst) { debug { (cast(SeatdKate)inst).gotoNext(); } else { try { (cast(SeatdKate)inst).gotoNext(); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } } void seatdMarkModuleDirty(void* inst, char* filepath, size_t len) { debug { (cast(SeatdKate)inst).markModuleDirty(filepath[0 .. len]); } else { try { (cast(SeatdKate)inst).markModuleDirty(filepath[0 .. len]); } catch ( Exception e ) { fprintf(stderr, "D Exception: %s\n", (e.msg~\0).ptr); } } }
D
/Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Upload.o : /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Alamofire.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Download.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Error.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Manager.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/MultipartFormData.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Notifications.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ParameterEncoding.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Request.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Response.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ResponseSerialization.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Result.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Stream.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Timeline.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Upload.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Upload~partial.swiftmodule : /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Alamofire.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Download.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Error.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Manager.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/MultipartFormData.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Notifications.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ParameterEncoding.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Request.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Response.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ResponseSerialization.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Result.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Stream.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Timeline.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Upload.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Upload~partial.swiftdoc : /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Alamofire.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Download.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Error.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Manager.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/MultipartFormData.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Notifications.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ParameterEncoding.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Request.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Response.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ResponseSerialization.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Result.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Stream.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Timeline.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Upload.swift /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/AndyTang/XcodeProjects/cs378-iOS/Cheers/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
D
/* Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ module derelict.physfs.dynload; version(Derelict_Static) {} else version(DerelictPHYSFS_Static) {} else { version = DerelictPHYSFS_Dynamic; } version(DerelictPHYSFS_Dynamic): public import derelict.physfs.types; import derelict.util.loader, derelict.util.system; extern(C) @nogc nothrow { // 2.0 API alias da_PHYSFS_getLinkedVersion = void function(PHYSFS_Version*); alias da_PHYSFS_init = int function(const(char)*); alias da_PHYSFS_deinit = int function(); alias da_PHYSFS_supportedArchiveTypes = const(PHYSFS_ArchiveInfo*)* function(); alias da_PHYSFS_freeList = void function(void*); alias da_PHYSFS_getLastError = const(char)* function(); alias da_PHYSFS_getDirSeparator = const(char)* function(); alias da_PHYSFS_permitSymbolicLinks = void function(int); alias da_PHYSFS_getCdRomDirs = char** function(); alias da_PHYSFS_getBaseDir = const(char)* function(); alias da_PHYSFS_getUserDir = const(char)* function(); alias da_PHYSFS_getWriteDir = const(char)* function(); alias da_PHYSFS_setWriteDir = int function(const(char)*); alias da_PHYSFS_addToSearchPath = int function(const(char)*, int); alias da_PHYSFS_removeFromSearchPath = int function(const(char)*); alias da_PHYSFS_getSearchPath = char** function(); alias da_PHYSFS_setSaneConfig = int function(const(char)*, const(char)*, const(char)*, int, int); alias da_PHYSFS_mkdir = int function(const(char)*); alias da_PHYSFS_delete = int function(const(char)*); alias da_PHYSFS_getRealDir = const(char)* function(const(char)*); alias da_PHYSFS_enumerateFiles = char** function(const(char)*); alias da_PHYSFS_exists = int function(const(char)*); alias da_PHYSFS_isDirectory = int function(const(char)*); alias da_PHYSFS_isSymbolicLink = int function(const(char)*); alias da_PHYSFS_getLastModTime = PHYSFS_sint64 function(const(char)*); alias da_PHYSFS_openWrite = PHYSFS_File* function(const(char)*); alias da_PHYSFS_openAppend = PHYSFS_File* function(const(char)*); alias da_PHYSFS_openRead = PHYSFS_File* function(const(char)*); alias da_PHYSFS_close = int function(PHYSFS_File*); alias da_PHYSFS_read = PHYSFS_sint64 function(PHYSFS_File*, void*, PHYSFS_uint32, PHYSFS_uint32); alias da_PHYSFS_write = PHYSFS_sint64 function(PHYSFS_File*, const(void)*, PHYSFS_uint32, PHYSFS_uint32); alias da_PHYSFS_eof = int function(PHYSFS_File*); alias da_PHYSFS_tell = PHYSFS_sint64 function(PHYSFS_File*); alias da_PHYSFS_seek = int function(PHYSFS_File*, PHYSFS_uint64); alias da_PHYSFS_fileLength = PHYSFS_sint64 function(PHYSFS_File*); alias da_PHYSFS_setBuffer = int function(PHYSFS_File*, PHYSFS_uint64); alias da_PHYSFS_flush = int function(PHYSFS_File*); alias da_PHYSFS_swapSLE16 = PHYSFS_sint16 function(PHYSFS_sint16); alias da_PHYSFS_swapULE16 = PHYSFS_uint16 function(PHYSFS_uint16); alias da_PHYSFS_swapSLE32 = PHYSFS_sint32 function(PHYSFS_sint32); alias da_PHYSFS_swapULE32 = PHYSFS_uint32 function(PHYSFS_uint32); alias da_PHYSFS_swapSLE64 = PHYSFS_sint64 function(PHYSFS_sint64); alias da_PHYSFS_swapULE64 = PHYSFS_uint64 function(PHYSFS_uint64); alias da_PHYSFS_swapSBE16 = PHYSFS_sint16 function(PHYSFS_sint16); alias da_PHYSFS_swapUBE16 = PHYSFS_uint16 function(PHYSFS_uint16); alias da_PHYSFS_swapSBE32 = PHYSFS_sint32 function(PHYSFS_sint32); alias da_PHYSFS_swapUBE32 = PHYSFS_uint32 function(PHYSFS_uint32); alias da_PHYSFS_swapSBE64 = PHYSFS_sint64 function(PHYSFS_sint64); alias da_PHYSFS_swapUBE64 = PHYSFS_sint64 function(PHYSFS_uint64); alias da_PHYSFS_readSLE16 = int function(PHYSFS_File*, PHYSFS_sint16*); alias da_PHYSFS_readULE16 = int function(PHYSFS_File*, PHYSFS_uint16*); alias da_PHYSFS_readSLE32 = int function(PHYSFS_File*, PHYSFS_sint32*); alias da_PHYSFS_readULE32 = int function(PHYSFS_File*, PHYSFS_uint32*); alias da_PHYSFS_readSLE64 = int function(PHYSFS_File*, PHYSFS_sint64*); alias da_PHYSFS_readULE64 = int function(PHYSFS_File*, PHYSFS_uint64*); alias da_PHYSFS_readSBE16 = int function(PHYSFS_File*, PHYSFS_sint16*); alias da_PHYSFS_readUBE16 = int function(PHYSFS_File*, PHYSFS_uint16*); alias da_PHYSFS_readSBE32 = int function(PHYSFS_File*, PHYSFS_sint32*); alias da_PHYSFS_readUBE32 = int function(PHYSFS_File*, PHYSFS_uint32*); alias da_PHYSFS_readSBE64 = int function(PHYSFS_File*, PHYSFS_sint64*); alias da_PHYSFS_readUBE64 = int function(PHYSFS_File*, PHYSFS_uint64*); alias da_PHYSFS_writeSLE16 = int function(PHYSFS_File*, PHYSFS_sint16); alias da_PHYSFS_writeULE16 = int function(PHYSFS_File*, PHYSFS_uint16); alias da_PHYSFS_writeSLE32 = int function(PHYSFS_File*, PHYSFS_sint32); alias da_PHYSFS_writeULE32 = int function(PHYSFS_File*, PHYSFS_uint32); alias da_PHYSFS_writeSLE64 = int function(PHYSFS_File*, PHYSFS_sint64); alias da_PHYSFS_writeULE64 = int function(PHYSFS_File*, PHYSFS_uint64); alias da_PHYSFS_writeSBE16 = int function(PHYSFS_File*, PHYSFS_sint16); alias da_PHYSFS_writeUBE16 = int function(PHYSFS_File*, PHYSFS_uint16); alias da_PHYSFS_writeSBE32 = int function(PHYSFS_File*, PHYSFS_sint32); alias da_PHYSFS_writeUBE32 = int function(PHYSFS_File*, PHYSFS_uint32); alias da_PHYSFS_writeSBE64 = int function(PHYSFS_File*, PHYSFS_sint64); alias da_PHYSFS_writeUBE64 = int function(PHYSFS_File*, PHYSFS_uint64); alias da_PHYSFS_isInit = int function(); alias da_PHYSFS_symbolicLinksPermitted = int function(); alias da_PHYSFS_setAllocator = int function(const(PHYSFS_Allocator)*); alias da_PHYSFS_mount = int function(const(char)*, const(char)*, int); alias da_PHYSFS_getMountPoint = const(char)* function(const(char)*); alias da_PHYSFS_getCdRomDirsCallback = void function(PHYSFS_StringCallback, void*); alias da_PHYSFS_getSearchPathCallback = void function(PHYSFS_StringCallback, void*); alias da_PHYSFS_enumerateFilesCallback = void function(const(char)*, PHYSFS_EnumFilesCallback, void*); alias da_PHYSFS_utf8FromUcs4 = void function(const(PHYSFS_uint32)*, char*, PHYSFS_uint64); alias da_PHYSFS_utf8ToUcs4 = void function(const(char)*, PHYSFS_uint32*, PHYSFS_uint64); alias da_PHYSFS_utf8FromUcs2 = void function(const(PHYSFS_uint16)*, char*, PHYSFS_uint64); alias da_PHYSFS_utf8ToUcs2 = void function(const(char)*, PHYSFS_uint16*, PHYSFS_uint64); alias da_PHYSFS_utf8FromLatin1 = void function(const(char)*, char*, PHYSFS_uint64); // 2.1 API alias da_PHYSFS_unmount = int function(const(char)*); alias da_PHYSFS_getAllocator = const(PHYSFS_Allocator)* function(); alias da_PHYSFS_stat = int function(const(char)*, PHYSFS_Stat*); alias da_PHYSFS_utf8FromUtf16 = void function(const(PHYSFS_uint16)*, char*, PHYSFS_uint64); alias da_PHYSFS_utf8ToUtf16 = void function(const(char)*, PHYSFS_uint16*, PHYSFS_uint64); alias da_PHYSFS_readBytes = PHYSFS_sint64 function(PHYSFS_File*, void*, PHYSFS_uint64); alias da_PHYSFS_writeBytes = PHYSFS_sint64 function(PHYSFS_File*, const(void)*, PHYSFS_uint64); alias da_PHYSFS_mountIo = int function(PHYSFS_Io*, const(char)*, const(char)*, int); alias da_PHYSFS_mountMemory = int function(const(void)*, PHYSFS_uint64, UnmountCallback, const(char)*, int); alias da_PHYSFS_mountHandle = int function(PHYSFS_File*, const(char)*, const(char)*, int); alias da_PHYSFS_getLastErrorCode = PHYSFS_ErrorCode function(); alias da_PHYSFS_getErrorByCode = const(char)* function(PHYSFS_ErrorCode); alias da_PHYSFS_setErrorCode = void function(PHYSFS_ErrorCode); alias da_PHYSFS_getPrefDir = const(char)* function(const(char)*, const(char)*); alias da_PHYSFS_registerArchiver = int function(const(PHYSFS_Archiver)*); alias da_PHYSFS_deregisterArchiver = int function(const(char)*); } __gshared { da_PHYSFS_getLinkedVersion PHYSFS_getLinkedVersion; da_PHYSFS_init PHYSFS_init; da_PHYSFS_deinit PHYSFS_deinit; da_PHYSFS_supportedArchiveTypes PHYSFS_supportedArchiveTypes; da_PHYSFS_freeList PHYSFS_freeList; da_PHYSFS_getLastError PHYSFS_getLastError; da_PHYSFS_getDirSeparator PHYSFS_getDirSeparator; da_PHYSFS_permitSymbolicLinks PHYSFS_permitSymbolicLinks; da_PHYSFS_getCdRomDirs PHYSFS_getCdRomDirs; da_PHYSFS_getBaseDir PHYSFS_getBaseDir; da_PHYSFS_getUserDir PHYSFS_getUserDir; da_PHYSFS_getWriteDir PHYSFS_getWriteDir; da_PHYSFS_setWriteDir PHYSFS_setWriteDir; da_PHYSFS_addToSearchPath PHYSFS_addToSearchPath; da_PHYSFS_removeFromSearchPath PHYSFS_removeFromSearchPath; da_PHYSFS_getSearchPath PHYSFS_getSearchPath; da_PHYSFS_setSaneConfig PHYSFS_setSaneConfig; da_PHYSFS_mkdir PHYSFS_mkdir; da_PHYSFS_delete PHYSFS_delete; da_PHYSFS_getRealDir PHYSFS_getRealDir; da_PHYSFS_enumerateFiles PHYSFS_enumerateFiles; da_PHYSFS_exists PHYSFS_exists; da_PHYSFS_isDirectory PHYSFS_isDirectory; da_PHYSFS_isSymbolicLink PHYSFS_isSymbolicLink; da_PHYSFS_getLastModTime PHYSFS_getLastModTime; da_PHYSFS_openWrite PHYSFS_openWrite; da_PHYSFS_openAppend PHYSFS_openAppend; da_PHYSFS_openRead PHYSFS_openRead; da_PHYSFS_close PHYSFS_close; da_PHYSFS_read PHYSFS_read; da_PHYSFS_write PHYSFS_write; da_PHYSFS_eof PHYSFS_eof; da_PHYSFS_tell PHYSFS_tell; da_PHYSFS_seek PHYSFS_seek; da_PHYSFS_fileLength PHYSFS_fileLength; da_PHYSFS_setBuffer PHYSFS_setBuffer; da_PHYSFS_flush PHYSFS_flush; da_PHYSFS_swapSLE16 PHYSFS_swapSLE16; da_PHYSFS_swapULE16 PHYSFS_swapULE16; da_PHYSFS_swapSLE32 PHYSFS_swapSLE32; da_PHYSFS_swapULE32 PHYSFS_swapULE32; da_PHYSFS_swapSLE64 PHYSFS_swapSLE64; da_PHYSFS_swapULE64 PHYSFS_swapULE64; da_PHYSFS_swapSBE16 PHYSFS_swapSBE16; da_PHYSFS_swapUBE16 PHYSFS_swapUBE16; da_PHYSFS_swapSBE32 PHYSFS_swapSBE32; da_PHYSFS_swapUBE32 PHYSFS_swapUBE32; da_PHYSFS_swapSBE64 PHYSFS_swapSBE64; da_PHYSFS_swapUBE64 PHYSFS_swapUBE64; da_PHYSFS_readSLE16 PHYSFS_readSLE16; da_PHYSFS_readULE16 PHYSFS_readULE16; da_PHYSFS_readSLE32 PHYSFS_readSLE32; da_PHYSFS_readULE32 PHYSFS_readULE32; da_PHYSFS_readSLE64 PHYSFS_readSLE64; da_PHYSFS_readULE64 PHYSFS_readULE64; da_PHYSFS_readSBE16 PHYSFS_readSBE16; da_PHYSFS_readUBE16 PHYSFS_readUBE16; da_PHYSFS_readSBE32 PHYSFS_readSBE32; da_PHYSFS_readUBE32 PHYSFS_readUBE32; da_PHYSFS_readSBE64 PHYSFS_readSBE64; da_PHYSFS_readUBE64 PHYSFS_readUBE64; da_PHYSFS_writeSLE16 PHYSFS_writeSLE16; da_PHYSFS_writeULE16 PHYSFS_writeULE16; da_PHYSFS_writeSLE32 PHYSFS_writeSLE32; da_PHYSFS_writeULE32 PHYSFS_writeULE32; da_PHYSFS_writeSLE64 PHYSFS_writeSLE64; da_PHYSFS_writeULE64 PHYSFS_writeULE64; da_PHYSFS_writeSBE16 PHYSFS_writeSBE16; da_PHYSFS_writeUBE16 PHYSFS_writeUBE16; da_PHYSFS_writeSBE32 PHYSFS_writeSBE32; da_PHYSFS_writeUBE32 PHYSFS_writeUBE32; da_PHYSFS_writeSBE64 PHYSFS_writeSBE64; da_PHYSFS_writeUBE64 PHYSFS_writeUBE64; da_PHYSFS_isInit PHYSFS_isInit; da_PHYSFS_symbolicLinksPermitted PHYSFS_symbolicLinksPermitted; da_PHYSFS_setAllocator PHYSFS_setAllocator; da_PHYSFS_mount PHYSFS_mount; da_PHYSFS_getMountPoint PHYSFS_getMountPoint; da_PHYSFS_getCdRomDirsCallback PHYSFS_getCdRomDirsCallback; da_PHYSFS_getSearchPathCallback PHYSFS_getSearchPathCallback; da_PHYSFS_enumerateFilesCallback PHYSFS_enumerateFilesCallback; da_PHYSFS_utf8FromUcs4 PHYSFS_utf8FromUcs4; da_PHYSFS_utf8ToUcs4 PHYSFS_utf8ToUcs4; da_PHYSFS_utf8FromUcs2 PHYSFS_utf8FromUcs2; da_PHYSFS_utf8ToUcs2 PHYSFS_utf8ToUcs2; da_PHYSFS_utf8FromLatin1 PHYSFS_utf8FromLatin1; da_PHYSFS_unmount PHYSFS_unmount; da_PHYSFS_getAllocator PHYSFS_getAllocator; da_PHYSFS_stat PHYSFS_stat; da_PHYSFS_utf8FromUtf16 PHYSFS_utf8FromUtf16; da_PHYSFS_utf8ToUtf16 PHYSFS_utf8ToUtf16; da_PHYSFS_readBytes PHYSFS_readBytes; da_PHYSFS_writeBytes PHYSFS_writeBytes; da_PHYSFS_mountIo PHYSFS_mountIo; da_PHYSFS_mountMemory PHYSFS_mountMemory; da_PHYSFS_mountHandle PHYSFS_mountHandle; da_PHYSFS_getLastErrorCode PHYSFS_getLastErrorCode; da_PHYSFS_getErrorByCode PHYSFS_getErrorByCode; da_PHYSFS_setErrorCode PHYSFS_setErrorCode; da_PHYSFS_getPrefDir PHYSFS_getPrefDir; da_PHYSFS_registerArchiver PHYSFS_registerArchiver; da_PHYSFS_deregisterArchiver PHYSFS_deregisterArchiver; } class DerelictPHYSFSLoader : SharedLibLoader { this() { super( libNames ); } protected override void loadSymbols() { bindFunc(cast(void**)&PHYSFS_getLinkedVersion, "PHYSFS_getLinkedVersion"); bindFunc(cast(void**)&PHYSFS_init, "PHYSFS_init"); bindFunc(cast(void**)&PHYSFS_deinit, "PHYSFS_deinit"); bindFunc(cast(void**)&PHYSFS_supportedArchiveTypes, "PHYSFS_supportedArchiveTypes"); bindFunc(cast(void**)&PHYSFS_freeList, "PHYSFS_freeList"); bindFunc(cast(void**)&PHYSFS_getLastError, "PHYSFS_getLastError"); bindFunc(cast(void**)&PHYSFS_getDirSeparator, "PHYSFS_getDirSeparator"); bindFunc(cast(void**)&PHYSFS_permitSymbolicLinks, "PHYSFS_permitSymbolicLinks"); bindFunc(cast(void**)&PHYSFS_getCdRomDirs, "PHYSFS_getCdRomDirs"); bindFunc(cast(void**)&PHYSFS_getBaseDir, "PHYSFS_getBaseDir"); bindFunc(cast(void**)&PHYSFS_getUserDir, "PHYSFS_getUserDir"); bindFunc(cast(void**)&PHYSFS_getWriteDir, "PHYSFS_getWriteDir"); bindFunc(cast(void**)&PHYSFS_setWriteDir, "PHYSFS_setWriteDir"); bindFunc(cast(void**)&PHYSFS_addToSearchPath, "PHYSFS_addToSearchPath"); bindFunc(cast(void**)&PHYSFS_removeFromSearchPath, "PHYSFS_removeFromSearchPath"); bindFunc(cast(void**)&PHYSFS_getSearchPath, "PHYSFS_getSearchPath"); bindFunc(cast(void**)&PHYSFS_setSaneConfig, "PHYSFS_setSaneConfig"); bindFunc(cast(void**)&PHYSFS_mkdir, "PHYSFS_mkdir"); bindFunc(cast(void**)&PHYSFS_delete, "PHYSFS_delete"); bindFunc(cast(void**)&PHYSFS_getRealDir, "PHYSFS_getRealDir"); bindFunc(cast(void**)&PHYSFS_enumerateFiles, "PHYSFS_enumerateFiles"); bindFunc(cast(void**)&PHYSFS_exists, "PHYSFS_exists"); bindFunc(cast(void**)&PHYSFS_isDirectory, "PHYSFS_isDirectory"); bindFunc(cast(void**)&PHYSFS_isSymbolicLink, "PHYSFS_isSymbolicLink"); bindFunc(cast(void**)&PHYSFS_getLastModTime, "PHYSFS_getLastModTime"); bindFunc(cast(void**)&PHYSFS_openWrite, "PHYSFS_openWrite"); bindFunc(cast(void**)&PHYSFS_openAppend, "PHYSFS_openAppend"); bindFunc(cast(void**)&PHYSFS_openRead, "PHYSFS_openRead"); bindFunc(cast(void**)&PHYSFS_close, "PHYSFS_close"); bindFunc(cast(void**)&PHYSFS_read, "PHYSFS_read"); bindFunc(cast(void**)&PHYSFS_write, "PHYSFS_write"); bindFunc(cast(void**)&PHYSFS_eof, "PHYSFS_eof"); bindFunc(cast(void**)&PHYSFS_tell, "PHYSFS_tell"); bindFunc(cast(void**)&PHYSFS_seek, "PHYSFS_seek"); bindFunc(cast(void**)&PHYSFS_fileLength, "PHYSFS_fileLength"); bindFunc(cast(void**)&PHYSFS_setBuffer, "PHYSFS_setBuffer"); bindFunc(cast(void**)&PHYSFS_flush, "PHYSFS_flush"); bindFunc(cast(void**)&PHYSFS_swapSLE16, "PHYSFS_swapSLE16"); bindFunc(cast(void**)&PHYSFS_swapULE16, "PHYSFS_swapULE16"); bindFunc(cast(void**)&PHYSFS_swapSLE32, "PHYSFS_swapSLE32"); bindFunc(cast(void**)&PHYSFS_swapULE32, "PHYSFS_swapULE32"); bindFunc(cast(void**)&PHYSFS_swapSLE64, "PHYSFS_swapSLE64"); bindFunc(cast(void**)&PHYSFS_swapULE64, "PHYSFS_swapULE64"); bindFunc(cast(void**)&PHYSFS_swapSBE16, "PHYSFS_swapSBE16"); bindFunc(cast(void**)&PHYSFS_swapUBE16, "PHYSFS_swapUBE16"); bindFunc(cast(void**)&PHYSFS_swapSBE32, "PHYSFS_swapSBE32"); bindFunc(cast(void**)&PHYSFS_swapUBE32, "PHYSFS_swapUBE32"); bindFunc(cast(void**)&PHYSFS_swapSBE64, "PHYSFS_swapSBE64"); bindFunc(cast(void**)&PHYSFS_swapUBE64, "PHYSFS_swapUBE64"); bindFunc(cast(void**)&PHYSFS_readSLE16, "PHYSFS_readSLE16"); bindFunc(cast(void**)&PHYSFS_readULE16, "PHYSFS_readULE16"); bindFunc(cast(void**)&PHYSFS_readSLE32, "PHYSFS_readSLE32"); bindFunc(cast(void**)&PHYSFS_readULE32, "PHYSFS_readULE32"); bindFunc(cast(void**)&PHYSFS_readSLE64, "PHYSFS_readSLE64"); bindFunc(cast(void**)&PHYSFS_readULE64, "PHYSFS_readULE64"); bindFunc(cast(void**)&PHYSFS_readSBE16, "PHYSFS_readSBE16"); bindFunc(cast(void**)&PHYSFS_readUBE16, "PHYSFS_readUBE16"); bindFunc(cast(void**)&PHYSFS_readSBE32, "PHYSFS_readSBE32"); bindFunc(cast(void**)&PHYSFS_readUBE32, "PHYSFS_readUBE32"); bindFunc(cast(void**)&PHYSFS_readSBE64, "PHYSFS_readSBE64"); bindFunc(cast(void**)&PHYSFS_readUBE64, "PHYSFS_readUBE64"); bindFunc(cast(void**)&PHYSFS_writeSLE16, "PHYSFS_writeSLE16"); bindFunc(cast(void**)&PHYSFS_writeULE16, "PHYSFS_writeULE16"); bindFunc(cast(void**)&PHYSFS_writeSLE32, "PHYSFS_writeSLE32"); bindFunc(cast(void**)&PHYSFS_writeULE32, "PHYSFS_writeULE32"); bindFunc(cast(void**)&PHYSFS_writeSLE64, "PHYSFS_writeSLE64"); bindFunc(cast(void**)&PHYSFS_writeULE64, "PHYSFS_writeULE64"); bindFunc(cast(void**)&PHYSFS_writeSBE16, "PHYSFS_writeSBE16"); bindFunc(cast(void**)&PHYSFS_writeUBE16, "PHYSFS_writeUBE16"); bindFunc(cast(void**)&PHYSFS_writeSBE32, "PHYSFS_writeSBE32"); bindFunc(cast(void**)&PHYSFS_writeUBE32, "PHYSFS_writeUBE32"); bindFunc(cast(void**)&PHYSFS_writeSBE64, "PHYSFS_writeSBE64"); bindFunc(cast(void**)&PHYSFS_writeUBE64, "PHYSFS_writeUBE64"); bindFunc(cast(void**)&PHYSFS_isInit, "PHYSFS_isInit"); bindFunc(cast(void**)&PHYSFS_symbolicLinksPermitted, "PHYSFS_symbolicLinksPermitted"); bindFunc(cast(void**)&PHYSFS_setAllocator, "PHYSFS_setAllocator"); bindFunc(cast(void**)&PHYSFS_mount, "PHYSFS_mount"); bindFunc(cast(void**)&PHYSFS_getMountPoint, "PHYSFS_getMountPoint"); bindFunc(cast(void**)&PHYSFS_getCdRomDirsCallback, "PHYSFS_getCdRomDirsCallback"); bindFunc(cast(void**)&PHYSFS_getSearchPathCallback, "PHYSFS_getSearchPathCallback"); bindFunc(cast(void**)&PHYSFS_enumerateFilesCallback, "PHYSFS_enumerateFilesCallback"); bindFunc(cast(void**)&PHYSFS_utf8FromUcs4, "PHYSFS_utf8FromUcs4"); bindFunc(cast(void**)&PHYSFS_utf8ToUcs4, "PHYSFS_utf8ToUcs4"); bindFunc(cast(void**)&PHYSFS_utf8FromUcs2, "PHYSFS_utf8FromUcs2"); bindFunc(cast(void**)&PHYSFS_utf8ToUcs2, "PHYSFS_utf8ToUcs2"); bindFunc(cast(void**)&PHYSFS_utf8FromLatin1, "PHYSFS_utf8FromLatin1"); bindFunc(cast(void**)&PHYSFS_unmount, "PHYSFS_unmount"); bindFunc(cast(void**)&PHYSFS_getAllocator, "PHYSFS_getAllocator"); bindFunc(cast(void**)&PHYSFS_stat, "PHYSFS_stat"); bindFunc(cast(void**)&PHYSFS_utf8FromUtf16, "PHYSFS_utf8FromUtf16"); bindFunc(cast(void**)&PHYSFS_utf8ToUtf16, "PHYSFS_utf8ToUtf16"); bindFunc(cast(void**)&PHYSFS_readBytes, "PHYSFS_readBytes"); bindFunc(cast(void**)&PHYSFS_writeBytes, "PHYSFS_writeBytes"); bindFunc(cast(void**)&PHYSFS_mountIo, "PHYSFS_mountIo"); bindFunc(cast(void**)&PHYSFS_mountMemory, "PHYSFS_mountMemory"); bindFunc(cast(void**)&PHYSFS_mountHandle, "PHYSFS_mountHandle"); bindFunc(cast(void**)&PHYSFS_getLastErrorCode, "PHYSFS_getLastErrorCode"); bindFunc(cast(void**)&PHYSFS_getErrorByCode, "PHYSFS_getErrorByCode"); bindFunc(cast(void**)&PHYSFS_setErrorCode, "PHYSFS_setErrorCode"); bindFunc(cast(void**)&PHYSFS_getPrefDir, "PHYSFS_getPrefDir"); bindFunc(cast(void**)&PHYSFS_registerArchiver, "PHYSFS_registerArchiver"); bindFunc(cast(void**)&PHYSFS_deregisterArchiver, "PHYSFS_deregisterArchiver"); } } __gshared DerelictPHYSFSLoader DerelictPHYSFS; shared static this() { DerelictPHYSFS = new DerelictPHYSFSLoader; } private: static if(Derelict_OS_Windows) enum libNames = "libphysfs.dll, physfs.dll"; else static if(Derelict_OS_Mac) enum libNames = "libphysfs.dylib, /usr/local/lib/libphysfs.dylib"; else static if(Derelict_OS_Posix) enum libNames = "libphysfs.so,/usr/local/lib/libphysfs.so"; else static assert(0, "Need to implement PhysFS libNames for this operating system.");
D
/Users/kelvintan/Desktop/VIPER/Build/Intermediates.noindex/VIPER.build/Debug-iphonesimulator/VIPER.build/Objects-normal/x86_64/Date_Ext.o : /Users/kelvintan/Desktop/VIPER/VIPER/SceneDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/AppDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Cells/HomeTableViewCell.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Home/HomeViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Detail/DetailViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/Presenter/HomePresenter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Router/HomeRouter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Interactor/HomeInteractor.swift /Users/kelvintan/Desktop/VIPER/VIPER/Entity/BucketList.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/Date_Ext.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/View_Ext.swift /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/kelvintan/Desktop/VIPER/Build/Intermediates.noindex/VIPER.build/Debug-iphonesimulator/VIPER.build/Objects-normal/x86_64/Date_Ext~partial.swiftmodule : /Users/kelvintan/Desktop/VIPER/VIPER/SceneDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/AppDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Cells/HomeTableViewCell.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Home/HomeViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Detail/DetailViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/Presenter/HomePresenter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Router/HomeRouter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Interactor/HomeInteractor.swift /Users/kelvintan/Desktop/VIPER/VIPER/Entity/BucketList.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/Date_Ext.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/View_Ext.swift /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/kelvintan/Desktop/VIPER/Build/Intermediates.noindex/VIPER.build/Debug-iphonesimulator/VIPER.build/Objects-normal/x86_64/Date_Ext~partial.swiftdoc : /Users/kelvintan/Desktop/VIPER/VIPER/SceneDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/AppDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Cells/HomeTableViewCell.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Home/HomeViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Detail/DetailViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/Presenter/HomePresenter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Router/HomeRouter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Interactor/HomeInteractor.swift /Users/kelvintan/Desktop/VIPER/VIPER/Entity/BucketList.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/Date_Ext.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/View_Ext.swift /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/kelvintan/Desktop/VIPER/Build/Intermediates.noindex/VIPER.build/Debug-iphonesimulator/VIPER.build/Objects-normal/x86_64/Date_Ext~partial.swiftsourceinfo : /Users/kelvintan/Desktop/VIPER/VIPER/SceneDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/AppDelegate.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Cells/HomeTableViewCell.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Home/HomeViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/View/Controller/Detail/DetailViewController.swift /Users/kelvintan/Desktop/VIPER/VIPER/Presenter/HomePresenter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Router/HomeRouter.swift /Users/kelvintan/Desktop/VIPER/VIPER/Interactor/HomeInteractor.swift /Users/kelvintan/Desktop/VIPER/VIPER/Entity/BucketList.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/Date_Ext.swift /Users/kelvintan/Desktop/VIPER/VIPER/Extension/View_Ext.swift /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module android.java.java.util.concurrent.locks.LockSupport_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.java.lang.Thread_d_interface; import import1 = android.java.java.lang.Class_d_interface; final class LockSupport : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import static void unpark(import0.Thread); @Import static void park(IJavaObject); @Import static void parkNanos(IJavaObject, long); @Import static void parkUntil(IJavaObject, long); @Import static IJavaObject getBlocker(import0.Thread); @Import static void park(); @Import static void parkNanos(long); @Import static void parkUntil(long); @Import import1.Class getClass(); @Import int hashCode(); @Import bool equals(IJavaObject); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Ljava/util/concurrent/locks/LockSupport;"; }
D
/// Peoples details program module input; import std.stdio, std.conv, std.string, std.algorithm, std.range; /// Message to user, used for error string message; /// get input name or age auto getInput(in string header) { writeln(header); return readln.chomp; } /// for input age auto getNum(in string input) { int result; try result = input.to!int; catch(Exception e) { message = "Number convert fail!"; return -1; } message = ""; return result; } /// get person info auto getPerson() { auto name = getInput("Enter your name (or enter to finish):"); if (! name.length) return Person("", 0); int age; do { age = getNum(getInput("Enter your age:")); writeln(message); } while(message.length); return Person(name, age); } /// Person for name and age struct Person { string name; /// name of person int age; /// age of person string toString() const { return name ~ " " ~ age.to!string; } } /// main entry point void main() { Person[] ppl; writeln("Enter names and ages."); bool done = false; do { ppl ~= getPerson; if (! ppl[$ - 1].name.length) done = true; else writeln("So your name is ", ppl[$ - 1].name, " and your age is ", ppl[$ - 1].age, " years old."); } while(! done); writeln("\nOk peoples!"); ppl.dropBack(1).each!(p => writeln(p)); }
D
instance CS_Eskorte5(Npc_Default) { name[0] = "Stráž"; slot = "Strážce"; guild = GIL_GRD; level = 5; flags = 0; voice = 11; id = 3028; attribute[ATR_STRENGTH] = 13; attribute[ATR_DEXTERITY] = 9; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 26; attribute[ATR_HITPOINTS] = 26; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Militia.MDS"); Mdl_SetVisualBody(self,"hum_body_Naked0",0,1,"Hum_Head_Bald",18,2,grd_armor_i); B_Scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_Strong; Npc_SetTalentSkill(self,NPC_TALENT_1H,2); Npc_SetTalentSkill(self,NPC_TALENT_1H,2); Npc_SetTalentSkill(self,NPC_TALENT_2H,1); Npc_SetTalentSkill(self,NPC_TALENT_CROSSBOW,1); CreateInvItem(self,ItMw_1H_LightGuardsSword_03); daily_routine = Rtn_start_3029; }; func void Rtn_start_3029() { TA_Stand(0,0,24,0,"WP_INTRO07"); TA_Stand(24,0,0,0,"WP_INTRO07"); };
D
// Written in the D programming language. /** This module contains common layouts implementations. Layouts are similar to the same in Android. LinearLayout - either VerticalLayout or HorizontalLayout. VerticalLayout - just LinearLayout with orientation=Orientation.Vertical HorizontalLayout - just LinearLayout with orientation=Orientation.Vertical FrameLayout - children occupy the same place, usually one one is visible at a time TableLayout - children aligned into rows and columns Synopsis: ---- import dlangui.widgets.layouts; ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module dlangui.widgets.layouts; public import dlangui.widgets.widget; /// helper for layouts struct LayoutItem { Widget _widget; Orientation _orientation; int _measuredSize; // primary size for orientation int _secondarySize; // other measured size int _layoutSize; // layout size for primary dimension int _minSize; // min size for primary dimension int _maxSize; // max size for primary dimension int _weight; // weight bool _fillParent; bool _isResizer; int _resizerDelta; @property bool canExtend() { return !_isResizer; } @property int measuredSize() { return _measuredSize; } @property int minSize() { return _measuredSize; } @property int maxSize() { return _maxSize; } @property int layoutSize() { return _layoutSize; } @property int secondarySize() { return _layoutSize; } @property bool fillParent() { return _fillParent; } @property int weight() { return _weight; } // just to help GC void clear() { _widget = null; } /// sets item for widget void set(Widget widget, Orientation orientation) { _widget = widget; _orientation = orientation; if (cast(ResizerWidget)widget) { _isResizer = true; _resizerDelta = (cast(ResizerWidget)widget).delta; } } /// set item and measure it void measure(int parentWidth, int parentHeight) { _widget.measure(parentWidth, parentHeight); _weight = _widget.layoutWeight; if (_orientation == Orientation.Horizontal) { _secondarySize = _widget.measuredHeight; _measuredSize = _widget.measuredWidth; _minSize = _widget.minWidth; _maxSize = _widget.maxWidth; _layoutSize = _widget.layoutWidth; } else { _secondarySize = _widget.measuredWidth; _measuredSize = _widget.measuredHeight; _minSize = _widget.minHeight; _maxSize = _widget.maxHeight; _layoutSize = _widget.layoutHeight; } _fillParent = _layoutSize == FILL_PARENT; } void layout(ref Rect rc) { _widget.layout(rc); } } /// helper class for layouts class LayoutItems { Orientation _orientation; LayoutItem[] _list; int _count; int _totalSize; int _maxSecondarySize; Point _measureParentSize; int _layoutWidth; int _layoutHeight; void setLayoutParams(Orientation orientation, int layoutWidth, int layoutHeight) { _orientation = orientation; _layoutWidth = layoutWidth; _layoutHeight = layoutHeight; } /// fill widget layout list with Visible or Invisible items, measure them Point measure(int parentWidth, int parentHeight) { _totalSize = 0; _maxSecondarySize = 0; _measureParentSize.x = parentWidth; _measureParentSize.y = parentHeight; // measure for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; item.measure(parentWidth, parentHeight); if (_maxSecondarySize < item._secondarySize) _maxSecondarySize = item._secondarySize; _totalSize += item._measuredSize; } return _orientation == Orientation.Horizontal ? Point(_totalSize, _maxSecondarySize) : Point(_maxSecondarySize, _totalSize); } /// fill widget layout list with Visible or Invisible items, measure them void setWidgets(ref WidgetList widgets) { // remove old items, if any clear(); // reserve space if (_list.length < widgets.count) _list.length = widgets.count; // copy for (int i = 0; i < widgets.count; i++) { Widget item = widgets.get(i); if (item.visibility == Visibility.Gone) continue; _list[_count++].set(item, _orientation); } } void layout(Rect rc) { // measure again - available area could be changed if (_measureParentSize.x != rc.width || _measureParentSize.y != rc.height) measure(rc.width, rc.height); int contentSecondarySize = 0; int contentHeight = 0; int totalSize = 0; int delta = 0; int resizableSize = 0; int resizableWeight = 0; int nonresizableSize = 0; int nonresizableWeight = 0; int maxItem = 0; // max item dimention // calc total size int visibleCount = cast(int)_list.length; int resizersSize = 0; for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; int weight = item.weight; int size = item.measuredSize; totalSize += size; if (maxItem < item.secondarySize) maxItem = item.secondarySize; if (item._isResizer) { resizersSize += size; } else if (item.fillParent) { resizableWeight += weight; resizableSize += size * weight; } else { nonresizableWeight += weight; nonresizableSize += size * weight; } } if (_orientation == Orientation.Vertical) { if (_layoutWidth == WRAP_CONTENT && maxItem < rc.width) contentSecondarySize = maxItem; else contentSecondarySize = rc.width; if (_layoutHeight == FILL_PARENT || totalSize > rc.height) delta = rc.height - totalSize; // total space to add to fit } else { if (_layoutHeight == WRAP_CONTENT && maxItem < rc.height) contentSecondarySize = maxItem; else contentSecondarySize = rc.height; if (_layoutWidth == FILL_PARENT || totalSize > rc.width) delta = rc.width - totalSize; // total space to add to fit } // calculate resize options and scale bool needForceResize = false; bool needResize = false; int scaleFactor = 10000; // per weight unit if (delta != 0 && visibleCount > 0) { if (delta < 0) nonresizableSize += resizersSize; // allow to shrink resizers // need resize of some children needResize = true; // resize all if need to shrink or only resizable are too small to correct delta needForceResize = delta < 0 || resizableWeight == 0; // || resizableSize * 2 / 3 < delta; // do we need resize non-FILL_PARENT items? // calculate scale factor: weight / delta * 10000 if (needForceResize && nonresizableSize + resizableSize > 0) scaleFactor = 10000 * delta / (nonresizableSize + resizableSize); else if (resizableSize > 0) scaleFactor = 10000 * delta / resizableSize; else scaleFactor = 0; } //Log.d("VerticalLayout delta=", delta, ", nonres=", nonresizableWeight, ", res=", resizableWeight, ", scale=", scaleFactor); // find last resized - to allow fill space 1 pixel accurate int lastResized = -1; ResizerWidget resizer = null; int resizerIndex = -1; int resizerDelta = 0; for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; if ((item.fillParent || needForceResize) && (delta < 0 || item.canExtend)) { lastResized = i; } if (item._isResizer) { resizerIndex = i; resizerDelta = item._resizerDelta; } } // final resize and layout of children int position = 0; int deltaTotal = 0; for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; int layoutSize = item.layoutSize; int weight = item.weight; int size = item.measuredSize; if (needResize && (layoutSize == FILL_PARENT || needForceResize)) { // do resize int correction = (delta < 0 || item.canExtend) ? scaleFactor * weight * size / 10000 : 0; deltaTotal += correction; // for last resized, apply additional correction to resolve calculation inaccuracy if (i == lastResized) { correction += delta - deltaTotal; } size += correction; } // apply size Rect childRect = rc; if (_orientation == Orientation.Vertical) { // Vertical childRect.top += position; childRect.bottom = childRect.top + size; childRect.right = childRect.left + contentSecondarySize; item.layout(childRect); } else { // Horizontal childRect.left += position; childRect.right = childRect.left + size; childRect.bottom = childRect.top + contentSecondarySize; item.layout(childRect); } position += size; } } void clear() { for (int i = 0; i < _count; i++) _list[i].clear(); _count = 0; } ~this() { clear(); } } /** * Resizer control. * Put it between other items in LinearLayout to allow resizing its siblings. * While dragging, it will resize previous and next children in layout. */ class ResizerWidget : Widget { protected Orientation _orientation; protected Widget _previousWidget; protected Widget _nextWidget; protected string _styleVertical; protected string _styleHorizontal; this(string ID = null) { super(ID); _styleVertical = "RESIZER_VERTICAL"; _styleHorizontal = "RESIZER_HORIZONTAL"; trackHover = true; } @property bool validProps() { return _previousWidget && _nextWidget; } /// returns mouse cursor type for widget override uint getCursorType(int x, int y) { if (_orientation == Orientation.Vertical) { return CursorType.SizeNS; } else { return CursorType.SizeWE; } } protected void updateProps() { _previousWidget = null; _nextWidget = null; _orientation = Orientation.Vertical; LinearLayout parentLayout = cast(LinearLayout)_parent; if (parentLayout) { _orientation = parentLayout.orientation; int index = parentLayout.childIndex(this); _previousWidget = parentLayout.child(index - 1); _nextWidget = parentLayout.child(index + 1); } if (validProps) { if (_orientation == Orientation.Vertical) { styleId = _styleVertical; } else { styleId = _styleHorizontal; } } else { _previousWidget = null; _nextWidget = null; } } /** Measure widget according to desired width and height constraints. (Step 1 of two phase layout). */ override void measure(int parentWidth, int parentHeight) { updateProps(); if (_orientation == Orientation.Vertical) { } measuredContent(parentWidth, parentHeight, 7, 7); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { updateProps(); if (visibility == Visibility.Gone) { return; } _pos = rc; _needLayout = false; } protected int _delta; protected int _minDragDelta; protected int _maxDragDelta; protected bool _dragging; protected int _dragStartPosition; // drag start delta protected Point _dragStart; protected Rect _dragStartRect; protected Rect _scrollArea; @property int delta() { return _delta; } /// process mouse event; return true if event is processed by widget. override bool onMouseEvent(MouseEvent event) { // support onClick if (event.action == MouseAction.ButtonDown && event.button == MouseButton.Left) { setState(State.Pressed); _dragging = true; _dragStart.x = event.x; _dragStart.y = event.y; _dragStartPosition = _delta; _dragStartRect = _pos; _scrollArea = _pos; _minDragDelta = 0; _maxDragDelta = 0; if (validProps) { Rect r1 = _previousWidget.pos; Rect r2 = _nextWidget.pos; _scrollArea.left = r1.left; _scrollArea.right = r2.right; _scrollArea.top = r1.top; _scrollArea.bottom = r2.bottom; if (_orientation == Orientation.Vertical) { _minDragDelta = _scrollArea.top - _dragStartRect.top; _maxDragDelta = _scrollArea.bottom - _dragStartRect.bottom; } if (_delta < _minDragDelta) _delta = _minDragDelta; if (_delta > _maxDragDelta) _delta = _maxDragDelta; } return true; } if (event.action == MouseAction.FocusOut && _dragging) { return true; } if (event.action == MouseAction.Move && _dragging) { int delta = _orientation == Orientation.Vertical ? event.y - _dragStart.y : event.x - _dragStart.x; _delta = _dragStartPosition + delta; if (_delta < _minDragDelta) _delta = _minDragDelta; if (_delta > _maxDragDelta) _delta = _maxDragDelta; Rect rc = _dragStartRect; int offset; int space; if (_orientation == Orientation.Vertical) { rc.top += delta; rc.bottom += delta; if (rc.top < _scrollArea.top) { rc.top = _scrollArea.top; rc.bottom = _scrollArea.top + _dragStartRect.height; } else if (rc.bottom > _scrollArea.bottom) { rc.top = _scrollArea.bottom - _dragStartRect.height; rc.bottom = _scrollArea.bottom; } offset = rc.top - _scrollArea.top; space = _scrollArea.height - rc.height; } else { rc.left += delta; rc.right += delta; if (rc.left < _scrollArea.left) { rc.left = _scrollArea.left; rc.right = _scrollArea.left + _dragStartRect.width; } else if (rc.right > _scrollArea.right) { rc.left = _scrollArea.right - _dragStartRect.width; rc.right = _scrollArea.right; } offset = rc.left - _scrollArea.left; space = _scrollArea.width - rc.width; } //_pos = rc; //int position = space > 0 ? _minValue + offset * (_maxValue - _minValue - _pageSize) / space : 0; requestLayout(); invalidate(); //onIndicatorDragging(_dragStartPosition, position); return true; } if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left) { resetState(State.Pressed); if (_dragging) { //sendScrollEvent(ScrollAction.SliderReleased, _position); _dragging = false; } return true; } if (event.action == MouseAction.Move && trackHover) { if (!(state & State.Hovered)) { Log.d("Hover ", id); setState(State.Hovered); } return true; } if ((event.action == MouseAction.Leave || event.action == MouseAction.Cancel) && trackHover) { Log.d("Leave ", id); resetState(State.Hovered); return true; } if (event.action == MouseAction.Cancel) { Log.d("SliderButton.onMouseEvent event.action == MouseAction.Cancel"); resetState(State.Pressed); _dragging = false; return true; } return false; } } class LinearLayout : WidgetGroup { protected Orientation _orientation = Orientation.Vertical; /// returns linear layout orientation (Vertical, Horizontal) @property Orientation orientation() { return _orientation; } /// sets linear layout orientation @property LinearLayout orientation(Orientation value) { _orientation = value; requestLayout(); return this; } this(string ID = null) { super(ID); _layoutItems = new LayoutItems(); } LayoutItems _layoutItems; /// Measure widget according to desired width and height constraints. (Step 1 of two phase layout). override void measure(int parentWidth, int parentHeight) { Rect m = margins; Rect p = padding; // calc size constraints for children int pwidth = parentWidth; int pheight = parentHeight; if (parentWidth != SIZE_UNSPECIFIED) pwidth -= m.left + m.right + p.left + p.right; if (parentHeight != SIZE_UNSPECIFIED) pheight -= m.top + m.bottom + p.top + p.bottom; // measure children _layoutItems.setLayoutParams(orientation, layoutWidth, layoutHeight); _layoutItems.setWidgets(_children); Point sz = _layoutItems.measure(pwidth, pheight); measuredContent(parentWidth, parentHeight, sz.x, sz.y); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { _needLayout = false; if (visibility == Visibility.Gone) { return; } _pos = rc; applyMargins(rc); applyPadding(rc); _layoutItems.layout(rc); } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Visible) continue; item.onDraw(buf); } } } class VerticalLayout : LinearLayout { this(string ID = null) { super(ID); orientation = Orientation.Vertical; } } class HorizontalLayout : LinearLayout { this(string ID = null) { super(ID); orientation = Orientation.Horizontal; } } /// place all children into same place (usually, only one child should be visible at a time) class FrameLayout : WidgetGroup { this(string ID) { super(ID); } /// Measure widget according to desired width and height constraints. (Step 1 of two phase layout). override void measure(int parentWidth, int parentHeight) { Rect m = margins; Rect p = padding; // calc size constraints for children int pwidth = parentWidth; int pheight = parentHeight; if (parentWidth != SIZE_UNSPECIFIED) pwidth -= m.left + m.right + p.left + p.right; if (parentHeight != SIZE_UNSPECIFIED) pheight -= m.top + m.bottom + p.top + p.bottom; // measure children Point sz; for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Gone) { item.measure(pwidth, pheight); if (sz.x < item.measuredWidth) sz.x = item.measuredWidth; if (sz.y < item.measuredHeight) sz.y = item.measuredHeight; } } measuredContent(parentWidth, parentHeight, sz.x, sz.y); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { _needLayout = false; if (visibility == Visibility.Gone) { return; } _pos = rc; applyMargins(rc); applyPadding(rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Gone) { item.layout(rc); } } } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Visible) continue; item.onDraw(buf); } } /// make one of children (with specified ID) visible, for the rest, set visibility to otherChildrenVisibility bool showChild(string ID, Visibility otherChildrenVisibility = Visibility.Invisible, bool updateFocus = false) { bool found = false; Widget foundWidget = null; for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.compareId(ID)) { item.visibility = Visibility.Visible; foundWidget = item; found = true; } else { item.visibility = otherChildrenVisibility; } } if (foundWidget !is null && updateFocus) foundWidget.setFocus(); return found; } } /// layout children as table with rows and columns class TableLayout : WidgetGroup { this(string ID = null) { super(ID); } protected static struct TableLayoutCell { int col; int row; Widget widget; @property int measuredWidth() { return widget ? widget.measuredWidth : 0; } @property int measuredHeight() { return widget ? widget.measuredHeight : 0; } @property int layoutWidth() { return widget ? widget.layoutWidth : 0; } @property int layoutHeight() { return widget ? widget.layoutHeight : 0; } @property int minWidth() { return widget ? widget.minWidth : 0; } @property int maxWidth() { return widget ? widget.maxWidth : 0; } @property int minHeight() { return widget ? widget.minHeight : 0; } @property int maxHeight() { return widget ? widget.maxHeight : 0; } void clear(int col, int row) { this.col = col; this.row = row; widget = null; } void measure(Widget w, int pwidth, int pheight) { widget = w; if (widget) widget.measure(pwidth, pheight); } } protected static struct TableLayoutGroup { int index; int measuredSize; int layoutSize; int minSize; int maxSize; int size; void init(int index) { measuredSize = minSize = maxSize = layoutSize = size = 0; this.index = index; } void rowCellMeasured(ref TableLayoutCell cell) { if (measuredSize < cell.measuredHeight) measuredSize = cell.measuredHeight; if (minSize < cell.minHeight) minSize = cell.minHeight; if (cell.layoutHeight == FILL_PARENT) layoutSize = FILL_PARENT; size = measuredSize; } void colCellMeasured(ref TableLayoutCell cell) { if (measuredSize < cell.measuredWidth) measuredSize = cell.measuredWidth; if (minSize < cell.minWidth) minSize = cell.minWidth; if (cell.layoutWidth == FILL_PARENT) layoutSize = FILL_PARENT; size = measuredSize; } } protected static struct TableLayoutHelper { protected TableLayoutGroup[] _cols; protected TableLayoutGroup[] _rows; protected TableLayoutCell[] _cells; protected int colCount; protected int rowCount; void init(int cols, int rows) { colCount = cols; rowCount = rows; _cells.length = cols * rows; _rows.length = rows; _cols.length = cols; for(int i = 0; i < rows; i++) _rows[i].init(i); for(int i = 0; i < cols; i++) _cols[i].init(i); for (int y = 0; y < rows; y++) { for (int x = 0; x < cols; x++) { cell(x, y).clear(x, y); } } } ref TableLayoutCell cell(int col, int row) { return _cells[row * colCount + col]; } ref TableLayoutGroup col(int c) { return _cols[c]; } ref TableLayoutGroup row(int r) { return _rows[r]; } Point measure(Widget parent, int cc, int rc, int pwidth, int pheight) { init(cc, rc); for (int y = 0; y < rc; y++) { for (int x = 0; x < cc; x++) { int index = y * cc + x; Widget child = index < parent.childCount ? parent.child(index) : null; cell(x, y).measure(child, pwidth, pheight); } } // calc total row size int totalHeight = 0; for (int y = 0; y < rc; y++) { for (int x = 0; x < cc; x++) { row(y).rowCellMeasured(cell(x,y)); } totalHeight += row(y).measuredSize; } // calc total col size int totalWidth = 0; for (int x = 0; x < cc; x++) { for (int y = 0; y < rc; y++) { col(x).colCellMeasured(cell(x,y)); } totalWidth += col(x).measuredSize; } return Point(totalWidth, totalHeight); } void layoutRows() { } void layoutCols() { } void layout(Rect rc) { layoutRows(); layoutCols(); int y0 = 0; for (int y = 0; y < rowCount; y++) { int x0 = 0; for (int x = 0; x < colCount; x++) { int index = y * colCount + x; Rect r; r.left = rc.left + x0; r.top = rc.top + y0; r.right = r.left + col(x).size; r.bottom = r.top + row(y).size; if (cell(x, y).widget) cell(x, y).widget.layout(r); x0 += col(x).size; } y0 += row(y).size; } } } protected TableLayoutHelper _cells; protected int _colCount = 1; /// number of columns @property int colCount() { return _colCount; } @property TableLayout colCount(int count) { if (_colCount != count) requestLayout(); _colCount = count; return this; } @property int rowCount() { return (childCount + (_colCount - 1)) / _colCount * _colCount; } /// Measure widget according to desired width and height constraints. (Step 1 of two phase layout). override void measure(int parentWidth, int parentHeight) { Rect m = margins; Rect p = padding; // calc size constraints for children int pwidth = parentWidth; int pheight = parentHeight; if (parentWidth != SIZE_UNSPECIFIED) pwidth -= m.left + m.right + p.left + p.right; if (parentHeight != SIZE_UNSPECIFIED) pheight -= m.top + m.bottom + p.top + p.bottom; int rc = rowCount; Point sz = _cells.measure(this, colCount, rc, pwidth, pheight); measuredContent(parentWidth, parentHeight, sz.x, sz.y); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { _needLayout = false; if (visibility == Visibility.Gone) { return; } _pos = rc; applyMargins(rc); applyPadding(rc); _cells.layout(rc); } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Visible) continue; item.onDraw(buf); } } }
D
module code.appender2; import core.memory; import std.array; import std.traits; import std.algorithm; import std.range; import std.exception; import core.bitop; /// An ugly hack of Phobos' appender from std.array (Boost license). /// Changes: /// * Rewrote put method (ditched range support, added static array support) /// * Multi-put /// * Constructor with capacity /// * Added assign, append and opCall operator support /// * Added reset (like clear(this)) /// * Added getString (assumeUnique + reset) /// * Ditched reference semantics to get rid of one level of indirection /// * Ditched Data structure /** Implements an output range that appends data to an array. This is recommended over $(D a ~= data) when appending many elements because it is more efficient. Example: ---- auto app = appender!string(); string b = "abcdefg"; foreach (char c; b) app.put(c); assert(app.data == "abcdefg"); int[] a = [ 1, 2 ]; auto app2 = appender(a); app2.put(3); app2.put([ 4, 5, 6 ]); assert(app2.data == [ 1, 2, 3, 4, 5, 6 ]); ---- */ struct Appender2(A : T[], T) { private { size_t _capacity; Unqual!(T)[] _arr; } void opAssign(U)(U item) { static if (is(typeof(_arr = item))) { // initialize to a given array. _arr = cast(Unqual!(T)[])item; if (__ctfe) return; // We want to use up as much of the block the array is in as possible. // if we consume all the block that we can, then array appending is // safe WRT built-in append, and we can use the entire block. auto cap = item.capacity; if(cap > item.length) item.length = cap; // we assume no reallocation occurred assert(item.ptr is _arr.ptr); _capacity = item.length; } else static if (is(typeof(_arr[] = item[]))) { allocate(item.length); _arr = _arr.ptr[0..item.length]; _arr[] = item[]; } else static if (is(typeof(_arr[0] = item))) { allocate(1); _arr[0] = item; } } // Does not copy data. private void allocate(size_t capacity) { if (__ctfe) { _arr.length = capacity; _arr = _arr[0..0]; _capacity = capacity; return; } auto bi = GC.qalloc(capacity * T.sizeof, (typeid(T[]).next.flags & 1) ? 0 : GC.BlkAttr.NO_SCAN); _capacity = bi.size / T.sizeof; _arr = (cast(Unqual!(T)*)bi.base)[0..0]; } /** Construct an appender with a given array. Note that this does not copy the data. If the array has a larger capacity as determined by arr.capacity, it will be used by the appender. After initializing an appender on an array, appending to the original array will reallocate. */ this(T[] arr) { opAssign(arr); } /// Preallocate with given capacity. this(size_t capacity) { allocate(capacity); } // Value semantics will probably result in undefined behavior on copy. // this(this) conflicts with opAssign //@disable this(this) {} /** Reserve at least newCapacity elements for appending. Note that more elements may be reserved than requested. If newCapacity < capacity, then nothing is done. */ void reserve(size_t newCapacity) { if(_capacity < newCapacity) { // need to increase capacity immutable len = _arr.length; if (__ctfe) { _arr.length = newCapacity; _arr = _arr[0..len]; _capacity = newCapacity; return; } immutable growsize = (newCapacity - len) * T.sizeof; auto u = GC.extend(_arr.ptr, growsize, growsize); if(u) { // extend worked, update the capacity _capacity = u / T.sizeof; } else { // didn't work, must reallocate auto bi = GC.qalloc(newCapacity * T.sizeof, (typeid(T[]).next.flags & 1) ? 0 : GC.BlkAttr.NO_SCAN); _capacity = bi.size / T.sizeof; if(len) memcpy(bi.base, _arr.ptr, len * T.sizeof); _arr = (cast(Unqual!(T)*)bi.base)[0..len]; // leave the old data, for safety reasons } } } /** Returns the capacity of the array (the maximum number of elements the managed array can accommodate before triggering a reallocation). If any appending will reallocate, $(D capacity) returns $(D 0). */ @property size_t capacity() { return _capacity; } /** Returns the managed array. */ @property T[] data() { return cast(typeof(return))(_arr); } // ensure we can add nelems elements, resizing as necessary private void ensureAddable(size_t nelems) { immutable len = _arr.length; immutable reqlen = len + nelems; if (reqlen > _capacity) { if (__ctfe) { _arr.length = reqlen; _arr = _arr[0..len]; _capacity = reqlen; return; } // Time to reallocate. // We need to almost duplicate what's in druntime, except we // have better access to the capacity field. auto newlen = newCapacity(reqlen); // first, try extending the current block auto u = GC.extend(_arr.ptr, nelems * T.sizeof, (newlen - len) * T.sizeof); if(u) { // extend worked, update the capacity _capacity = u / T.sizeof; } else { // didn't work, must reallocate auto bi = GC.qalloc(newlen * T.sizeof, (typeid(T[]).next.flags & 1) ? 0 : GC.BlkAttr.NO_SCAN); _capacity = bi.size / T.sizeof; if(len) memcpy(bi.base, _arr.ptr, len * T.sizeof); _arr = (cast(Unqual!(T)*)bi.base)[0..len]; // leave the old data, for safety reasons } } } private static size_t newCapacity(size_t newlength) { long mult = 100 + (1000L) / (bsr(newlength * T.sizeof) + 1); // limit to doubling the length, we don't want to grow too much if(mult > 200) mult = 200; auto newext = cast(size_t)((newlength * mult + 99) / 100); return newext > newlength ? newext : newlength; } /+ /** Appends one item to the managed array. */ void put(U)(U item) if (isImplicitlyConvertible!(U, T) || isSomeChar!T && isSomeChar!U) { static if (isSomeChar!T && isSomeChar!U && T.sizeof < U.sizeof) { // must do some transcoding around here Unqual!T[T.sizeof == 1 ? 4 : 2] encoded; auto len = std.utf.encode(encoded, item); put(encoded[0 .. len]); } else { ensureAddable(1); immutable len = _arr.length; _arr.ptr[len] = cast(Unqual!T)item; _arr = _arr.ptr[0 .. len + 1]; } } // Const fixing hack. void put(Range)(Range items) if(isInputRange!(Unqual!Range) && !isInputRange!Range) { alias put!(Unqual!Range) p; p(items); } /** Appends an entire range to the managed array. */ void put(Range)(Range items) if (isInputRange!Range && is(typeof(Appender2.init.put(items.front)))) { // note, we disable this branch for appending one type of char to // another because we can't trust the length portion. static if (!(isSomeChar!T && isSomeChar!(ElementType!Range) && !is(Range == Unqual!T[]) && !is(Range == const(T)[]) && !is(Range == immutable(T)[])) && is(typeof(items.length) == size_t)) { // optimization -- if this type is something other than a string, // and we are adding exactly one element, call the version for one // element. static if(!isSomeChar!T) { if(items.length == 1) { put(items.front); return; } } // make sure we have enough space, then add the items ensureAddable(items.length); immutable len = _arr.length; immutable newlen = len + items.length; _arr = _arr.ptr[0..newlen]; static if(is(typeof(_arr[] = items))) { _arr.ptr[len..newlen] = items; } else { for(size_t i = len; !items.empty; items.popFront(), ++i) _arr.ptr[i] = cast(Unqual!T)items.front; } } else { //pragma(msg, Range.stringof); // Generic input range for (; !items.empty; items.popFront()) { put(items.front); } } } +/ /// Single-put void put(U)(U item) { static if (is(typeof(_arr[0 ] = item ))) { ensureAddable(1); immutable len = _arr.length; _arr.ptr[len] = item; _arr = _arr.ptr[0 .. len + 1]; } else static if (is(typeof(_arr[0..1] = item[0..1]))) { ensureAddable(item.length); immutable len = _arr.length; immutable newlen = len + item.length; _arr = _arr.ptr[0..newlen]; _arr.ptr[len..newlen] = item; } else static if (isSomeChar!T && isSomeChar!U && T.sizeof < U.sizeof) { Unqual!T[T.sizeof == 1 ? 4 : 2] encoded; auto len = std.utf.encode(encoded, item); put(encoded[0 .. len]); } else static assert(0, "Can't append " ~ typeof(item).stringof); } /// Multi-put void put(U...)(U items) //if ( isOutputRange!(Unqual!T[],U) ) if (U.length > 1 && CanPutAll!U) { size_t totalLength; foreach (item; items) static if (is(typeof(_arr[0 ] = item ))) totalLength += 1; else static if (is(typeof(_arr[0..1] = item[0..1]))) totalLength += item.length; else static assert(0, "Can't append " ~ typeof(item).stringof); ensureAddable(totalLength); auto len = _arr.length; auto p = _arr.ptr + len; _arr = _arr.ptr[0..len + totalLength]; foreach (item; items) { static if (is(typeof(_arr[0] = item))) *p++ = item; else { p[0..item.length] = item; p += item.length; } } } template CanPutAll(U...) { static if (U.length==0) enum CanPutAll = true; else enum CanPutAll = is(typeof(put!(U[0]))) && CanPutAll!(U[1..$]); } // only allow overwriting data on non-immutable and non-const data static if(!is(T == immutable) && !is(T == const)) { /** Clears the managed array. This allows the elements of the array to be reused for appending. Note that clear is disabled for immutable or const element types, due to the possibility that $(D Appender2) might overwrite immutable data. */ void clear() { _arr = _arr.ptr[0..0]; } /** Shrinks the managed array to the given length. Passing in a length that's greater than the current array length throws an enforce exception. */ void shrinkTo(size_t newlength) { enforce(newlength <= _arr.length); _arr = _arr.ptr[0..newlength]; } } void reset() { _arr = null; _capacity = 0; } // VP 2011.12.02 void opOpAssign(string op, U)(U item) if (op=="~" && is(typeof(put!U))) { put(item); } /+ blocked by http://d.puremagic.com/issues/show_bug.cgi?id=6036 void opCall(U...)(U items) if (is(typeof(put(items)))) { put(items); } +/ @property size_t length() { return _arr.length; } static if(is(T == immutable(char))) string toString() { return data; } static if (is(T == char)) string getString() { auto result = data; reset(); return assumeUnique(result); } } alias Appender2!(char[]) StringBuilder; private: string test2() { StringBuilder a; a = " "; a.clear(); a.put("He", "llo"); char[2] x = [',', ' ']; a.put(x); a.put("world"); //a ~= x; auto result = a.data; return assumeUnique(result); }
D
// Written in the D programming language. /** JavaScript Object Notation Copyright: Copyright Jeremie Pelletier 2008 - 2009. License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. Authors: Jeremie Pelletier, David Herberth References: $(LINK http://json.org/) Source: $(PHOBOSSRC std/_json.d) */ /* Copyright Jeremie Pelletier 2008 - 2009. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ module std.json; import std.ascii; import std.conv; import std.range; import std.utf; import std.traits; import std.exception; private { // Prevent conflicts from these generic names alias UTFStride = std.utf.stride; alias toUnicode = std.utf.decode; } /** JSON type enumeration */ enum JSON_TYPE : byte { /// Indicates the type of a $(D JSONValue). STRING, INTEGER, /// ditto UINTEGER,/// ditto FLOAT, /// ditto OBJECT, /// ditto ARRAY, /// ditto TRUE, /// ditto FALSE, /// ditto NULL /// ditto } /** JSON value node */ struct JSONValue { union Store { string str; long integer; ulong uinteger; real floating; JSONValue[string] object; JSONValue[] array; } private Store store; private JSON_TYPE type_tag; /// Specifies the _type of the value stored in this structure. @property JSON_TYPE type() const { return type_tag; } /// Value getter/setter for $(D JSON_TYPE.STRING). /// Throws $(D JSONException) for read access if $(D type) is not $(D JSON_TYPE.STRING). @property inout(string) str() inout { enforceEx!JSONException(type == JSON_TYPE.STRING, "JSONValue is not a string"); return store.str; } /// ditto @property string str(string v) { assign(v); return store.str; } /// Value getter/setter for $(D JSON_TYPE.INTEGER). /// Throws $(D JSONException) for read access if $(D type) is not $(D JSON_TYPE.INTEGER). @property inout(long) integer() inout { enforceEx!JSONException(type == JSON_TYPE.INTEGER, "JSONValue is not an integer"); return store.integer; } /// ditto @property long integer(long v) { assign(v); return store.integer; } /// Value getter/setter for $(D JSON_TYPE.UINTEGER). /// Throws $(D JSONException) for read access if $(D type) is not $(D JSON_TYPE.UINTEGER). @property inout(ulong) uinteger() inout { enforceEx!JSONException(type == JSON_TYPE.UINTEGER, "JSONValue is not an unsigned integer"); return store.uinteger; } /// ditto @property ulong uinteger(ulong v) { assign(v); return store.uinteger; } /// Value getter/setter for $(D JSON_TYPE.FLOAT). /// Throws $(D JSONException) for read access if $(D type) is not $(D JSON_TYPE.FLOAT). @property inout(real) floating() inout { enforceEx!JSONException(type == JSON_TYPE.FLOAT, "JSONValue is not a floating type"); return store.floating; } /// ditto @property real floating(real v) { assign(v); return store.floating; } /// Value getter/setter for $(D JSON_TYPE.OBJECT). /// Throws $(D JSONException) for read access if $(D type) is not $(D JSON_TYPE.OBJECT). @property ref inout(JSONValue[string]) object() inout { enforceEx!JSONException(type == JSON_TYPE.OBJECT, "JSONValue is not an object"); return store.object; } /// ditto @property JSONValue[string] object(JSONValue[string] v) { assign(v); return store.object; } /// Value getter/setter for $(D JSON_TYPE.ARRAY). /// Throws $(D JSONException) for read access if $(D type) is not $(D JSON_TYPE.ARRAY). @property ref inout(JSONValue[]) array() inout { enforceEx!JSONException(type == JSON_TYPE.ARRAY, "JSONValue is not an array"); return store.array; } /// ditto @property JSONValue[] array(JSONValue[] v) { assign(v); return store.array; } private void assign(T)(T arg) { static if(is(T : typeof(null))) { type_tag = JSON_TYPE.NULL; } else static if(is(T : string)) { type_tag = JSON_TYPE.STRING; store.str = arg; } else static if(is(T : bool)) { type_tag = arg ? JSON_TYPE.TRUE : JSON_TYPE.FALSE; } else static if(is(T : ulong) && isUnsigned!T) { type_tag = JSON_TYPE.UINTEGER; store.uinteger = arg; } else static if(is(T : long)) { type_tag = JSON_TYPE.INTEGER; store.integer = arg; } else static if(isFloatingPoint!T) { type_tag = JSON_TYPE.FLOAT; store.floating = arg; } else static if(is(T : Value[Key], Key, Value)) { static assert(is(Key : string), "AA key must be string"); type_tag = JSON_TYPE.OBJECT; static if(is(Value : JSONValue)) { store.object = arg; } else { JSONValue[string] aa; foreach(key, value; arg) aa[key] = JSONValue(value); store.object = aa; } } else static if(isArray!T) { type_tag = JSON_TYPE.ARRAY; static if(is(ElementEncodingType!T : JSONValue)) { store.array = arg; } else { JSONValue[] new_arg = new JSONValue[arg.length]; foreach(i, e; arg) new_arg[i] = JSONValue(e); store.array = new_arg; } } else static if(is(T : JSONValue)) { type_tag = arg.type; store = arg.store; } else { static assert(false, text(`unable to convert type "`, T.stringof, `" to json`)); } } private void assignRef(T)(ref T arg) if(isStaticArray!T) { type_tag = JSON_TYPE.ARRAY; static if(is(ElementEncodingType!T : JSONValue)) { store.array = arg; } else { JSONValue[] new_arg = new JSONValue[arg.length]; foreach(i, e; arg) new_arg[i] = JSONValue(e); store.array = new_arg; } } /** * Constructor for $(D JSONValue). If $(D arg) is a $(D JSONValue) * its value and type will be copied to the new $(D JSONValue). * Note that this is a shallow copy: if type is $(D JSON_TYPE.OBJECT) * or $(D JSON_TYPE.ARRAY) then only the reference to the data will * be copied. * Otherwise, $(D arg) must be implicitly convertible to one of the * following types: $(D typeof(null)), $(D string), $(D ulong), * $(D long), $(D real), an associative array $(D V[K]) for any $(D V) * and $(D K) i.e. a JSON object, any array or $(D bool). The type will * be set accordingly. */ this(T)(T arg) if(!isStaticArray!T) { assign(arg); } /// Ditto this(T)(ref T arg) if(isStaticArray!T) { assignRef(arg); } /// Ditto this(T : JSONValue)(inout T arg) inout { store = arg.store; type_tag = arg.type; } void opAssign(T)(T arg) if(!isStaticArray!T && !is(T : JSONValue)) { assign(arg); } void opAssign(T)(ref T arg) if(isStaticArray!T) { assignRef(arg); } /// Array syntax for json arrays. /// Throws $(D JSONException) if $(D type) is not $(D JSON_TYPE.ARRAY). ref inout(JSONValue) opIndex(size_t i) inout { enforceEx!JSONException(type == JSON_TYPE.ARRAY, "JSONValue is not an array"); return store.array[i]; } /// Hash syntax for json objects. /// Throws $(D JSONException) if $(D type) is not $(D JSON_TYPE.OBJECT). ref inout(JSONValue) opIndex(string k) inout { enforceEx!JSONException(type == JSON_TYPE.OBJECT, "JSONValue is not an object"); return store.object[k]; } /// Implements the foreach $(D opApply) interface for json arrays. int opApply(int delegate(size_t index, ref JSONValue) dg) { enforceEx!JSONException(type == JSON_TYPE.ARRAY, "JSONValue is not an array"); int result; foreach(size_t index, ref value; store.array) { result = dg(index, value); if(result) break; } return result; } /// Implements the foreach $(D opApply) interface for json objects. int opApply(int delegate(string key, ref JSONValue) dg) { enforceEx!JSONException(type == JSON_TYPE.OBJECT, "JSONValue is not an object"); int result; foreach(string key, ref value; store.object) { result = dg(key, value); if(result) break; } return result; } /// Implicitly calls $(D toJSON) on this JSONValue. string toString() { return toJSON(&this); } /// Implicitly calls $(D toJSON) on this JSONValue, like $(D toString), but /// also passes $(I true) as $(I pretty) argument. string toPrettyString() { return toJSON(&this, true); } } /** Parses a serialized string and returns a tree of JSON values. */ JSONValue parseJSON(T)(T json, int maxDepth = -1) if(isInputRange!T) { JSONValue root = void; root.type_tag = JSON_TYPE.NULL; if(json.empty) return root; int depth = -1; dchar next = 0; int line = 1, pos = 1; void error(string msg) { throw new JSONException(msg, line, pos); } dchar peekChar() { if(!next) { if(json.empty) return '\0'; next = json.front; json.popFront(); } return next; } void skipWhitespace() { while(isWhite(peekChar())) next = 0; } dchar getChar(bool SkipWhitespace = false)() { static if(SkipWhitespace) skipWhitespace(); dchar c = void; if(next) { c = next; next = 0; } else { if(json.empty) error("Unexpected end of data."); c = json.front; json.popFront(); } if(c == '\n' || (c == '\r' && peekChar() != '\n')) { line++; pos = 1; } else { pos++; } return c; } void checkChar(bool SkipWhitespace = true, bool CaseSensitive = true)(char c) { static if(SkipWhitespace) skipWhitespace(); auto c2 = getChar(); static if(!CaseSensitive) c2 = toLower(c2); if(c2 != c) error(text("Found '", c2, "' when expecting '", c, "'.")); } bool testChar(bool SkipWhitespace = true, bool CaseSensitive = true)(char c) { static if(SkipWhitespace) skipWhitespace(); auto c2 = peekChar(); static if (!CaseSensitive) c2 = toLower(c2); if(c2 != c) return false; getChar(); return true; } string parseString() { auto str = appender!string(); Next: switch(peekChar()) { case '"': getChar(); break; case '\\': getChar(); auto c = getChar(); switch(c) { case '"': str.put('"'); break; case '\\': str.put('\\'); break; case '/': str.put('/'); break; case 'b': str.put('\b'); break; case 'f': str.put('\f'); break; case 'n': str.put('\n'); break; case 'r': str.put('\r'); break; case 't': str.put('\t'); break; case 'u': dchar val = 0; foreach_reverse(i; 0 .. 4) { auto hex = toUpper(getChar()); if(!isHexDigit(hex)) error("Expecting hex character"); val += (isDigit(hex) ? hex - '0' : hex - ('A' - 10)) << (4 * i); } char[4] buf = void; str.put(toUTF8(buf, val)); break; default: error(text("Invalid escape sequence '\\", c, "'.")); } goto Next; default: auto c = getChar(); appendJSONChar(&str, c, &error); goto Next; } return str.data ? str.data : ""; } void parseValue(JSONValue* value) { depth++; if(maxDepth != -1 && depth > maxDepth) error("Nesting too deep."); auto c = getChar!true(); switch(c) { case '{': value.type_tag = JSON_TYPE.OBJECT; value.store.object = null; if(testChar('}')) break; do { checkChar('"'); string name = parseString(); checkChar(':'); JSONValue member = void; parseValue(&member); value.store.object[name] = member; } while(testChar(',')); checkChar('}'); break; case '[': value.type_tag = JSON_TYPE.ARRAY; if(testChar(']')) { value.store.array = cast(JSONValue[]) ""; break; } value.store.array = null; do { JSONValue element = void; parseValue(&element); value.store.array ~= element; } while(testChar(',')); checkChar(']'); break; case '"': value.type_tag = JSON_TYPE.STRING; value.store.str = parseString(); break; case '0': .. case '9': case '-': auto number = appender!string(); bool isFloat, isNegative; void readInteger() { if(!isDigit(c)) error("Digit expected"); Next: number.put(c); if(isDigit(peekChar())) { c = getChar(); goto Next; } } if(c == '-') { number.put('-'); c = getChar(); isNegative = true; } readInteger(); if(testChar('.')) { isFloat = true; number.put('.'); c = getChar(); readInteger(); } if(testChar!(false, false)('e')) { isFloat = true; number.put('e'); if(testChar('+')) number.put('+'); else if(testChar('-')) number.put('-'); c = getChar(); readInteger(); } string data = number.data; if(isFloat) { value.type_tag = JSON_TYPE.FLOAT; value.store.floating = parse!real(data); } else { if (isNegative) value.store.integer = parse!long(data); else value.store.uinteger = parse!ulong(data); value.type_tag = !isNegative && value.store.uinteger & (1UL << 63) ? JSON_TYPE.UINTEGER : JSON_TYPE.INTEGER; } break; case 't': case 'T': value.type_tag = JSON_TYPE.TRUE; checkChar!(false, false)('r'); checkChar!(false, false)('u'); checkChar!(false, false)('e'); break; case 'f': case 'F': value.type_tag = JSON_TYPE.FALSE; checkChar!(false, false)('a'); checkChar!(false, false)('l'); checkChar!(false, false)('s'); checkChar!(false, false)('e'); break; case 'n': case 'N': value.type_tag = JSON_TYPE.NULL; checkChar!(false, false)('u'); checkChar!(false, false)('l'); checkChar!(false, false)('l'); break; default: error(text("Unexpected character '", c, "'.")); } depth--; } parseValue(&root); return root; } /** Takes a tree of JSON values and returns the serialized string. If $(D pretty) is false no whitespaces are generated. If $(D pretty) is true serialized string is formatted to be human-readable. No exact formatting layout is guaranteed in the latter case. */ string toJSON(in JSONValue* root, in bool pretty = false) { auto json = appender!string(); void toString(string str) { json.put('"'); foreach (dchar c; str) { switch(c) { case '"': json.put("\\\""); break; case '\\': json.put("\\\\"); break; case '/': json.put("\\/"); break; case '\b': json.put("\\b"); break; case '\f': json.put("\\f"); break; case '\n': json.put("\\n"); break; case '\r': json.put("\\r"); break; case '\t': json.put("\\t"); break; default: appendJSONChar(&json, c, (msg) { throw new JSONException(msg); }); } } json.put('"'); } void toValue(in JSONValue* value, ulong indentLevel) { void putTabs(ulong additionalIndent = 0) { if(pretty) foreach(i; 0 .. indentLevel + additionalIndent) json.put(" "); } void putEOL() { if(pretty) json.put('\n'); } void putCharAndEOL(char ch) { json.put(ch); putEOL(); } final switch(value.type) { case JSON_TYPE.OBJECT: if(!value.store.object.length) { json.put("{}"); } else { putCharAndEOL('{'); bool first = true; foreach(name, member; value.store.object) { if(!first) putCharAndEOL(','); first = false; putTabs(1); toString(name); json.put(':'); if(pretty) json.put(' '); toValue(&member, indentLevel + 1); } putEOL(); putTabs(); json.put('}'); } break; case JSON_TYPE.ARRAY: if(value.store.array.empty) { json.put("[]"); } else { putCharAndEOL('['); foreach (i, ref el; value.store.array) { if(i) putCharAndEOL(','); putTabs(1); toValue(&el, indentLevel + 1); } putEOL(); putTabs(); json.put(']'); } break; case JSON_TYPE.STRING: toString(value.store.str); break; case JSON_TYPE.INTEGER: json.put(to!string(value.store.integer)); break; case JSON_TYPE.UINTEGER: json.put(to!string(value.store.uinteger)); break; case JSON_TYPE.FLOAT: json.put(to!string(value.store.floating)); break; case JSON_TYPE.TRUE: json.put("true"); break; case JSON_TYPE.FALSE: json.put("false"); break; case JSON_TYPE.NULL: json.put("null"); break; } } toValue(root, 0); return json.data; } private void appendJSONChar(Appender!string* dst, dchar c, scope void delegate(string) error) { import std.uni : isControl; if(isControl(c)) error("Illegal control character."); dst.put(c); } /** Exception thrown on JSON errors */ class JSONException : Exception { this(string msg, int line = 0, int pos = 0) { if(line) super(text(msg, " (Line ", line, ":", pos, ")")); else super(msg); } this(string msg, string file, size_t line) { super(msg, file, line); } } unittest { JSONValue jv = "123"; assert(jv.type == JSON_TYPE.STRING); assertNotThrown(jv.str); assertThrown!JSONException(jv.integer); assertThrown!JSONException(jv.uinteger); assertThrown!JSONException(jv.floating); assertThrown!JSONException(jv.object); assertThrown!JSONException(jv.array); assertThrown!JSONException(jv["aa"]); assertThrown!JSONException(jv[2]); jv = -3; assert(jv.type == JSON_TYPE.INTEGER); assertNotThrown(jv.integer); jv = cast(uint)3; assert(jv.type == JSON_TYPE.UINTEGER); assertNotThrown(jv.uinteger); jv = 3.0f; assert(jv.type == JSON_TYPE.FLOAT); assertNotThrown(jv.floating); jv = ["key" : "value"]; assert(jv.type == JSON_TYPE.OBJECT); assertNotThrown(jv.object); assertNotThrown(jv["key"]); foreach(string key, value; jv) { static assert(is(typeof(value) == JSONValue)); assert(key == "key"); assert(value.type == JSON_TYPE.STRING); assertNotThrown(value.str); assert(value.str == "value"); } jv = [3, 4, 5]; assert(jv.type == JSON_TYPE.ARRAY); assertNotThrown(jv.array); assertNotThrown(jv[2]); foreach(size_t index, value; jv) { static assert(is(typeof(value) == JSONValue)); assert(value.type == JSON_TYPE.INTEGER); assertNotThrown(value.integer); assert(index == (value.integer-3)); } jv = JSONValue("value"); assert(jv.type == JSON_TYPE.STRING); assert(jv.str == "value"); JSONValue jv2 = JSONValue("value"); assert(jv2.type == JSON_TYPE.STRING); assert(jv2.str == "value"); } unittest { // Bugzilla 11504 JSONValue jv = 1; assert(jv.type == JSON_TYPE.INTEGER); jv.str = "123"; assert(jv.type == JSON_TYPE.STRING); assert(jv.str == "123"); jv.integer = 1; assert(jv.type == JSON_TYPE.INTEGER); assert(jv.integer == 1); jv.uinteger = 2u; assert(jv.type == JSON_TYPE.UINTEGER); assert(jv.uinteger == 2u); jv.floating = 1.5f; assert(jv.type == JSON_TYPE.FLOAT); assert(jv.floating == 1.5f); jv.object = ["key" : JSONValue("value")]; assert(jv.type == JSON_TYPE.OBJECT); assert(jv.object == ["key" : JSONValue("value")]); jv.array = [JSONValue(1), JSONValue(2), JSONValue(3)]; assert(jv.type == JSON_TYPE.ARRAY); assert(jv.array == [JSONValue(1), JSONValue(2), JSONValue(3)]); jv = true; assert(jv.type == JSON_TYPE.TRUE); jv = false; assert(jv.type == JSON_TYPE.FALSE); enum E{True = true} jv = E.True; assert(jv.type == JSON_TYPE.TRUE); } unittest { // Adding new json element via array() / object() directly JSONValue jarr = JSONValue([10]); foreach (i; 0..9) jarr.array ~= JSONValue(i); assert(jarr.array.length == 10); JSONValue jobj = JSONValue(["key" : JSONValue("value")]); foreach (i; 0..9) jobj.object[text("key", i)] = JSONValue(text("value", i)); assert(jobj.object.length == 10); } unittest { // An overly simple test suite, if it can parse a serializated string and // then use the resulting values tree to generate an identical // serialization, both the decoder and encoder works. auto jsons = [ `null`, `true`, `false`, `0`, `123`, `-4321`, `0.23`, `-0.23`, `""`, `"hello\nworld"`, `"\"\\\/\b\f\n\r\t"`, `[]`, `[12,"foo",true,false]`, `{}`, `{"a":1,"b":null}`, // Currently broken // `{"hello":{"json":"is great","array":[12,null,{}]},"goodbye":[true,"or",false,["test",42,{"nested":{"a":23.54,"b":0.0012}}]]}` ]; version (MinGW) jsons ~= `1.223e+024`; else jsons ~= `1.223e+24`; JSONValue val; string result; foreach(json; jsons) { try { val = parseJSON(json); result = toJSON(&val); assert(result == json, text(result, " should be ", json)); } catch(JSONException e) { import std.stdio; writefln(text(json, "\n", e.toString())); } } // Should be able to correctly interpret unicode entities val = parseJSON(`"\u003C\u003E"`); assert(toJSON(&val) == "\"\&lt;\&gt;\""); assert(val.to!string() == "\"\&lt;\&gt;\""); val = parseJSON(`"\u0391\u0392\u0393"`); assert(toJSON(&val) == "\"\&Alpha;\&Beta;\&Gamma;\""); assert(val.to!string() == "\"\&Alpha;\&Beta;\&Gamma;\""); val = parseJSON(`"\u2660\u2666"`); assert(toJSON(&val) == "\"\&spades;\&diams;\""); assert(val.to!string() == "\"\&spades;\&diams;\""); //0x7F is a control character (see Unicode spec) assertThrown(parseJSON(`{ "foo": "` ~ "\u007F" ~ `"}`)); with(parseJSON(`""`)) assert(str == "" && str !is null); with(parseJSON(`[]`)) assert(!array.length && array !is null); // Formatting val = parseJSON(`{"a":[null,{"x":1},{},[]]}`); assert(toJSON(&val, true) == `{ "a": [ null, { "x": 1 }, {}, [] ] }`); }
D
/Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/Alamofire.build/NetworkReachabilityManager.swift.o : /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/MultipartFormData.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Timeline.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/DispatchQueue+Alamofire.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Alamofire.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Response.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/TaskDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/SessionDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ParameterEncoding.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Validation.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ResponseSerialization.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/SessionManager.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/NetworkReachabilityManager.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/AFError.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Notifications.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Result.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Request.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ServerTrustPolicy.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /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/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/RxCocoaRuntime.build/module.modulemap /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/QuickSpecBase.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/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/Alamofire.build/NetworkReachabilityManager~partial.swiftmodule : /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/MultipartFormData.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Timeline.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/DispatchQueue+Alamofire.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Alamofire.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Response.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/TaskDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/SessionDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ParameterEncoding.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Validation.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ResponseSerialization.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/SessionManager.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/NetworkReachabilityManager.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/AFError.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Notifications.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Result.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Request.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ServerTrustPolicy.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /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/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/RxCocoaRuntime.build/module.modulemap /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/QuickSpecBase.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/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/Alamofire.build/NetworkReachabilityManager~partial.swiftdoc : /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/MultipartFormData.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Timeline.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/DispatchQueue+Alamofire.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Alamofire.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Response.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/TaskDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/SessionDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ParameterEncoding.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Validation.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ResponseSerialization.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/SessionManager.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/NetworkReachabilityManager.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/AFError.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Notifications.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Result.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/Request.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/checkouts/Alamofire.git-6801331143877184500/Source/ServerTrustPolicy.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /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/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/RxCocoaRuntime.build/module.modulemap /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/QuickSpecBase.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
a plant disease caused by the ergot fungus a fungus that infects various cereal plants forming compact black masses of branching filaments that replace many grains of the plant
D
/* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library 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 2 of the License, or (at your option) any later version. * * This library 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 this library; if not, see <http://www.gnu.org/licenses/>. * * Modified by the GLib Team and others 1997-2000. See the AUTHORS * file for a list of people on the GLib Team. See the ChangeLog * files for a list of changes. These files are distributed with * GLib at ftp://ftp.gtk.org/pub/gtk/. */ module devisualization.bindings.gdk.glib.gquark; /// alias GQuark = uint;
D
module combinations; import std.stdio, std.array, std.algorithm; import std.traits: Unqual; import core.exception : RangeError; struct Combinations(T, bool copy=true){ Unqual!T[] pool, front; size_t r, n; bool empty = false; size_t[] indices; size_t len; bool lenComputed = false; this(T[] pool_, in size_t r_) pure nothrow @safe{ this.pool = pool_.dup; this.r = r_; this.n = pool.length; if (r > n){ empty = true; } indices.length = r; foreach (immutable i, ref ini; indices){ ini = i; } front.length = r; foreach (immutable i, immutable idx; indices){ front[i] = pool[idx]; } } @property size_t length() /*logic_const*/ pure nothrow @nogc { static size_t binomial(size_t n, size_t k) pure nothrow @safe @nogc in { assert(n > 0, "binomial: n must be > 0."); } body { if (k < 0 || k > n){ return 0; } if (k > (n / 2)){ k = n - k; } size_t result = 1; foreach (size_t d; 1 .. k + 1){ result *= n; n--; result /= d; } return result; } if (!lenComputed){ // Set cache. len = binomial(n, r); lenComputed = true; } return len; } void popFront() pure nothrow @safe { if (!empty) { bool broken = false; size_t pos = 0; foreach_reverse (immutable i; 0 .. r) { pos = i; if (indices[i] != i + n - r) { broken = true; break; } } if (!broken) { empty = true; return; } indices[pos]++; foreach (immutable j; pos + 1 .. r){ indices[j] = indices[j - 1] + 1; } static if (copy){ front = new Unqual!T[front.length]; } foreach (immutable i, immutable idx; indices){ front[i] = pool[idx]; } } } } Combinations!(T, copy) combinations(bool copy=true, T) (T[] items, in size_t k) in { assert(items.length, "combinations: items can't be empty."); } body { return typeof(return)(items, k); } unittest { auto alphabet = "abcdefghijklmnopqrstuvwxyz"; assert(alphabet.combinations(6).length == 230230); auto test = "abc"; assert(equal(test.combinations(2).map!(x => x), ["ab", "ac", "bc"])); }
D
module gtkD.glib.Str; public import gtkD.gtkc.glibtypes; private import gtkD.gtkc.glib; private import gtkD.glib.ConstructionException; private import gtkD.glib.StringG; version(Rulada) { private import tango.stdc.stdio; private import tango.stdc.string; version = druntime; } else version(D_Version2) { private import std.c.stdio; private import core.stdc.string; version = druntime; } version(Dinrus) { private import cidrus; } /** * Description * This section describes a number of utility functions for creating, * duplicating, and manipulating strings. * Note that the functions g_printf(), g_fprintf(), g_sprintf(), g_snprintf(), * g_vprintf(), g_vfprintf(), g_vsprintf() and g_vsnprintf() are declared in * the header gprintf.h which is not * included in gtkD.glib.h (otherwise using * gtkD.glib.h would drag in stdio.h), so * you'll have to explicitly include <glib/gprintf.h> * in order to use the GLib printf() functions. * While you may use the printf() functions to format UTF-8 strings, notice that * the precision of a %Ns parameter is interpreted as the * number of bytes, not characters to print. * On top of that, the GNU libc implementation of the printf() functions has the "feature" * that it checks that the string given for the %Ns parameter * consists of a whole number of characters in the current encoding. So, unless you * are sure you are always going to be in an UTF-8 locale or your know your text is restricted * to ASCII, avoid using %Ns. * If your intention is to format strings for a certain number of columns, then * %Ns is not a correct solution anyway, since it fails to take * wide characters (see g_unichar_iswide()) into account. */ public class Str { const static char[10] digits = "0123456789"; /// 0..9 /************************************************* * Convert C-style 0 terminated string s to char[] string. * copied from phobos */ public static string toString(char *s); /********************************* * Convert array of chars s[] to a C-style 0 terminated string. * copied from phobos */ public static char* toStringz(string s); /** */ public static char** toStringzArray(string[] args); /** */ public static string[] toStringArray(char** args); /** */ public static string toString(bool b); /** */ public static char[] toString(char c); /** */ public static string toString(ubyte ub) ; /** */ public static string toString(ushort us); /** */ public static string toString(uint u); /** */ public static string toString(ulong u); /** */ public static string toString(byte b) ; /** */ public static string toString(short s) ; /** */ public static string toString(int i); /** */ /** * Duplicates a string. If str is NULL it returns NULL. * The returned string should be freed with g_free() * when no longer needed. * Params: * str = the string to duplicate * Returns: a newly-allocated copy of str */ public static string strdup(string str); /** * Duplicates the first n bytes of a string, returning a newly-allocated * buffer n + 1 bytes long which will always be nul-terminated. * If str is less than n bytes long the buffer is padded with nuls. * If str is NULL it returns NULL. * The returned value should be freed when no longer needed. * Note * To copy a number of characters from a UTF-8 encoded string, use * g_utf8_strncpy() instead. * Params: * str = the string to duplicate * n = the maximum number of bytes to copy from str * Returns: a newly-allocated buffer containing the first n bytes of str, nul-terminated */ public static string strndup(string str, uint n); /** * Copies NULL-terminated array of strings. The copy is a deep copy; * the new array should be freed by first freeing each string, then * the array itself. g_strfreev() does this for you. If called * on a NULL value, g_strdupv() simply returns NULL. * Params: * strArray = NULL-terminated array of strings. * Returns: a new NULL-terminated array of strings. */ public static string[] strdupv(string[] strArray); /** * Creates a new string length bytes long filled with fill_char. * The returned string should be freed when no longer needed. * Params: * length = the length of the new string * fillChar = the byte to fill the string with * Returns: a newly-allocated string filled the fill_char */ public static string strnfill(uint length, char fillChar); /** * Copies a nul-terminated string into the dest buffer, include the * trailing nul, and return a pointer to the trailing nul byte. * This is useful for concatenating multiple strings together * without having to repeatedly scan for the end. * Params: * dest = destination buffer. * src = source string. * Returns: a pointer to trailing nul byte. */ public static string stpcpy(string dest, string src); /** * Searches the string haystack for the first occurrence * of the string needle, limiting the length of the search * to haystack_len. * Params: * haystack = a string. * haystackLen = the maximum length of haystack. Note that -1 is * a valid length, if haystack is nul-terminated, meaning it will * search through the whole string. * needle = the string to search for. * Returns: a pointer to the found occurrence, or NULL if not found. */ public static string strstrLen(string haystack, int haystackLen, string needle); /** * Searches the string haystack for the last occurrence * of the string needle. * Params: * haystack = a nul-terminated string. * needle = the nul-terminated string to search for. * Returns: a pointer to the found occurrence, or NULL if not found. */ public static string strrstr(string haystack, string needle); /** * Searches the string haystack for the last occurrence * of the string needle, limiting the length of the search * to haystack_len. * Params: * haystack = a nul-terminated string. * haystackLen = the maximum length of haystack. * needle = the nul-terminated string to search for. * Returns: a pointer to the found occurrence, or NULL if not found. */ public static string strrstrLen(string haystack, int haystackLen, string needle); /** * Looks whether the string str begins with prefix. * Since 2.2 * Params: * str = a nul-terminated string. * prefix = the nul-terminated prefix to look for. * Returns: TRUE if str begins with prefix, FALSE otherwise. */ public static int strHasPrefix(string str, string prefix); /** * Looks whether the string str ends with suffix. * Since 2.2 * Params: * str = a nul-terminated string. * suffix = the nul-terminated suffix to look for. * Returns: TRUE if str end with suffix, FALSE otherwise. */ public static int strHasSuffix(string str, string suffix); /** * Compares str1 and str2 like strcmp(). Handles NULL * gracefully by sorting it before non-NULL strings. * Since 2.16 * Params: * str1 = a C string or NULL * str2 = another C string or NULL * Returns: -1, 0 or 1, if str1 is <, == or > than str2. */ public static int strcmp0(string str1, string str2); /** * Portability wrapper that calls strlcpy() on systems which have it, * and emulates strlcpy() otherwise. Copies src to dest; dest is * guaranteed to be nul-terminated; src must be nul-terminated; * dest_size is the buffer size, not the number of chars to copy. * At most dest_size - 1 characters will be copied. Always nul-terminates * (unless dest_size == 0). This function does not * allocate memory. Unlike strncpy(), this function doesn't pad dest (so * it's often faster). It returns the size of the attempted result, * strlen (src), so if retval >= dest_size, truncation occurred. * Note * Caveat: strlcpy() is supposedly more secure than * strcpy() or strncpy(), but if you really want to avoid screwups, * g_strdup() is an even better idea. * Params: * dest = destination buffer * src = source buffer * destSize = length of dest in bytes * Returns: length of src */ public static uint strlcpy(string dest, string src, uint destSize); /** * Portability wrapper that calls strlcat() on systems which have it, * and emulates it otherwise. Appends nul-terminated src string to dest, * guaranteeing nul-termination for dest. The total size of dest won't * exceed dest_size. * At most dest_size - 1 characters will be copied. * Unlike strncat, dest_size is the full size of dest, not the space left over. * This function does NOT allocate memory. * This always NUL terminates (unless siz == 0 or there were no NUL characters * in the dest_size characters of dest to start with). * Params: * dest = destination buffer, already containing one nul-terminated string * src = source buffer * destSize = length of dest buffer in bytes (not length of existing string * inside dest) * Returns:size of attempted result, which isMIN (dest_size, strlen (original dest)) + strlen (src),so if retval >= dest_size, truncation occurred.NoteCaveat: this is supposedly a more secure alternative to strcat() or strncat(), but for real security g_strconcat() is harder to mess up. */ public static uint strlcat(string dest, string src, uint destSize); /** * Similar to the standard C vsprintf() function but safer, since it * calculates the maximum space required and allocates memory to hold * the result. The returned string should be freed with g_free() when * no longer needed. * See also g_vasprintf(), which offers the same functionality, but * additionally returns the length of the allocated string. * Params: * format = a standard printf() format string, but notice * string precision pitfalls * args = the list of parameters to insert into the format string * Returns: a newly-allocated string holding the result */ public static string strdupVprintf(string format, void* args); /** * An implementation of the standard vprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * Since 2.2 * Params: * format = a standard printf() format string, but notice * string precision pitfalls. * args = the list of arguments to insert in the output. * Returns: the number of bytes printed. */ public static int vprintf(string format, void* args); /** * An implementation of the standard fprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * Since 2.2 * Params: * file = the stream to write to. * format = a standard printf() format string, but notice * string precision pitfalls. * args = the list of arguments to insert in the output. * Returns: the number of bytes printed. */ public static int vfprintf(FILE* file, string format, void* args); /** * An implementation of the standard vsprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * Since 2.2 * Params: * string = the buffer to hold the output. * format = a standard printf() format string, but notice * string precision pitfalls. * args = the list of arguments to insert in the output. * Returns: the number of bytes printed. */ public static int vsprintf(string string, string format, void* args); /** * A safer form of the standard vsprintf() function. The output is guaranteed * to not exceed n characters (including the terminating nul character), so * it is easy to ensure that a buffer overflow cannot occur. * See also g_strdup_vprintf(). * In versions of GLib prior to 1.2.3, this function may return -1 if the * output was truncated, and the truncated string may not be nul-terminated. * In versions prior to 1.3.12, this function returns the length of the output * string. * The return value of g_vsnprintf() conforms to the vsnprintf() function * as standardized in ISO C99. Note that this is different from traditional * vsnprintf(), which returns the length of the output string. * The format string may contain positional parameters, as specified in * the Single Unix Specification. * Params: * string = the buffer to hold the output. * n = the maximum number of bytes to produce (including the * terminating nul character). * format = a standard printf() format string, but notice * string precision pitfalls. * args = the list of arguments to insert in the output. * Returns: the number of bytes which would be produced if the buffer was large enough. */ public static int vsnprintf(string string, uint n, string format, void* args); /** * An implementation of the GNU vasprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * This function is similar to g_vsprintf(), except that it allocates a * string to hold the output, instead of putting the output in a buffer * you allocate in advance. * Since 2.4 * Params: * string = the return location for the newly-allocated string. * format = a standard printf() format string, but notice * string precision pitfalls. * args = the list of arguments to insert in the output. * Returns: the number of bytes printed. */ public static int vasprintf(out string string, string format, void* args); /** * Calculates the maximum space needed to store the output of the sprintf() * function. * Params: * format = the format string. See the printf() documentation. * args = the parameters to be inserted into the format string. * Returns:the maximum space needed to store the formatted string. */ public static uint printfStringUpperBound(string format, void* args); /** * Determines whether a character is alphanumeric. * Unlike the standard C library isalnum() function, this only * recognizes standard ASCII letters and ignores the locale, returning * FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII alphanumeric character */ public static int asciiIsalnum(char c); /** * Determines whether a character is alphabetic (i.e. a letter). * Unlike the standard C library isalpha() function, this only * recognizes standard ASCII letters and ignores the locale, returning * FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII alphabetic character */ public static int asciiIsalpha(char c); /** * Determines whether a character is a control character. * Unlike the standard C library iscntrl() function, this only * recognizes standard ASCII control characters and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII control character. */ public static int asciiIscntrl(char c); /** * Determines whether a character is digit (0-9). * Unlike the standard C library isdigit() function, * this takes a char, not an int, so don't call it * on EOF but no need to cast to guchar before passing a possibly * non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII digit. */ public static int asciiIsdigit(char c); /** * Determines whether a character is a printing character and not a space. * Unlike the standard C library isgraph() function, * this only recognizes standard ASCII characters and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII printing character other than space. */ public static int asciiIsgraph(char c); /** * Determines whether a character is an ASCII lower case letter. * Unlike the standard C library islower() function, * this only recognizes standard ASCII letters and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to worry about casting to guchar * before passing a possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII lower case letter */ public static int asciiIslower(char c); /** * Determines whether a character is a printing character. * Unlike the standard C library isprint() function, * this only recognizes standard ASCII characters and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII printing character. */ public static int asciiIsprint(char c); /** * Determines whether a character is a punctuation character. * Unlike the standard C library ispunct() function, * this only recognizes standard ASCII letters and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII punctuation character. */ public static int asciiIspunct(char c); /** * Determines whether a character is a white-space character. * Unlike the standard C library isspace() function, * this only recognizes standard ASCII white-space and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII white-space character */ public static int asciiIsspace(char c); /** * Determines whether a character is an ASCII upper case letter. * Unlike the standard C library isupper() function, * this only recognizes standard ASCII letters and ignores the locale, * returning FALSE for all non-ASCII characters. Also unlike the standard * library function, this takes a char, not an int, * so don't call it on EOF but no need to worry about casting to guchar * before passing a possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII upper case letter */ public static int asciiIsupper(char c); /** * Determines whether a character is a hexadecimal-digit character. * Unlike the standard C library isxdigit() function, * this takes a char, not an int, so * don't call it on EOF but no need to cast to guchar before passing a * possibly non-ASCII character in. * Params: * c = any character * Returns:%TRUE if c is an ASCII hexadecimal-digit character. */ public static int asciiIsxdigit(char c); /** * Determines the numeric value of a character as a decimal * digit. Differs from g_unichar_digit_value() because it takes * a char, so there's no worry about sign extension if characters * are signed. * Params: * c = an ASCII character. * Returns: If c is a decimal digit (according tog_ascii_isdigit()), its numeric value. Otherwise, -1. */ public static int asciiDigitValue(char c); /** * Determines the numeric value of a character as a hexidecimal * digit. Differs from g_unichar_xdigit_value() because it takes * a char, so there's no worry about sign extension if characters * are signed. * Params: * c = an ASCII character. * Returns: If c is a hex digit (according tog_ascii_isxdigit()), its numeric value. Otherwise, -1. */ public static int asciiXdigitValue(char c); /** * Compare two strings, ignoring the case of ASCII characters. * Unlike the BSD strcasecmp() function, this only recognizes standard * ASCII letters and ignores the locale, treating all non-ASCII * bytes as if they are not letters. * This function should be used only on strings that are known to be * in encodings where the bytes corresponding to ASCII letters always * represent themselves. This includes UTF-8 and the ISO-8859-* * charsets, but not for instance double-byte encodings like the * Windows Codepage 932, where the trailing bytes of double-byte * characters include all ASCII letters. If you compare two CP932 * strings using this function, you will get false matches. * Params: * s1 = string to compare with s2. * s2 = string to compare with s1. * Returns: 0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2. */ public static int asciiStrcasecmp(string s1, string s2); /** * Compare s1 and s2, ignoring the case of ASCII characters and any * characters after the first n in each string. * Unlike the BSD strcasecmp() function, this only recognizes standard * ASCII letters and ignores the locale, treating all non-ASCII * characters as if they are not letters. * The same warning as in g_ascii_strcasecmp() applies: Use this * function only on strings known to be in encodings where bytes * corresponding to ASCII letters always represent themselves. * Params: * s1 = string to compare with s2. * s2 = string to compare with s1. * n = number of characters to compare. * Returns: 0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2. */ public static int asciiStrncasecmp(string s1, string s2, uint n); /** * Converts all lower case ASCII letters to upper case ASCII letters. * Params: * str = a string. * len = length of str in bytes, or -1 if str is nul-terminated. * Returns: a newly allocated string, with all the lower case characters in str converted to upper case, with semantics that exactly match g_ascii_toupper(). (Note that this is unlike the old g_strup(), which modified the string in place.) */ public static string asciiStrup(string str, int len); /** * Converts all upper case ASCII letters to lower case ASCII letters. * Params: * str = a string. * len = length of str in bytes, or -1 if str is nul-terminated. * Returns: a newly-allocated string, with all the upper case characters in str converted to lower case, with semantics that exactly match g_ascii_tolower(). (Note that this is unlike the old g_strdown(), which modified the string in place.) */ public static string asciiStrdown(string str, int len); /** * Convert a character to ASCII lower case. * Unlike the standard C library tolower() function, this only * recognizes standard ASCII letters and ignores the locale, returning * all non-ASCII characters unchanged, even if they are lower case * letters in a particular character set. Also unlike the standard * library function, this takes and returns a char, not an int, so * don't call it on EOF but no need to worry about casting to guchar * before passing a possibly non-ASCII character in. * Params: * c = any character. * Returns: the result of converting c to lower case. If c is not an ASCII upper case letter, c is returned unchanged. */ public static char asciiTolower(char c); /** * Convert a character to ASCII upper case. * Unlike the standard C library toupper() function, this only * recognizes standard ASCII letters and ignores the locale, returning * all non-ASCII characters unchanged, even if they are upper case * letters in a particular character set. Also unlike the standard * library function, this takes and returns a char, not an int, so * don't call it on EOF but no need to worry about casting to guchar * before passing a possibly non-ASCII character in. * Params: * c = any character. * Returns: the result of converting c to upper case. If c is not an ASCII lower case letter, c is returned unchanged. */ public static char asciiToupper(char c); /** * Converts all lower case ASCII letters to upper case ASCII letters. * Params: * string = a GString * Returns: passed-in string pointer, with all the lower case characters converted to upper case in place, with semantics that exactly match g_ascii_toupper(). */ public static StringG stringAsciiUp(StringG string); /** * Converts all upper case ASCII letters to lower case ASCII letters. * Params: * string = a GString * Returns: passed-in string pointer, with all the upper case characters converted to lower case in place, with semantics that exactly match g_ascii_tolower(). */ public static StringG stringAsciiDown(StringG string); /** * Warning * g_strup has been deprecated since version 2.2 and should not be used in newly-written code. This function is totally broken for the reasons discussed * in the g_strncasecmp() docs - use g_ascii_strup() or g_utf8_strup() instead. * Converts a string to upper case. * Params: * string = the string to convert. * Returns: the string */ public static string strup(string string); /** * Warning * g_strdown has been deprecated since version 2.2 and should not be used in newly-written code. This function is totally broken for the reasons discussed * in the g_strncasecmp() docs - use g_ascii_strdown() or g_utf8_strdown() * instead. * Converts a string to lower case. * Params: * string = the string to convert. * Returns: the string */ public static string strdown(string string); /** * Warning * g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. See g_strncasecmp() for a discussion of why this function * is deprecated and how to replace it. * A case-insensitive string comparison, corresponding to the standard * strcasecmp() function on platforms which support it. * Params: * s1 = a string. * s2 = a string to compare with s1. * Returns: 0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2. */ public static int strcasecmp(string s1, string s2); /** * Warning * g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. The problem with g_strncasecmp() is that it does the * comparison by calling toupper()/tolower(). These functions are * locale-specific and operate on single bytes. However, it is impossible * to handle things correctly from an I18N standpoint by operating on * bytes, since characters may be multibyte. Thus g_strncasecmp() is * broken if your string is guaranteed to be ASCII, since it's * locale-sensitive, and it's broken if your string is localized, since * it doesn't work on many encodings at all, including UTF-8, EUC-JP, * etc. * There are therefore two replacement functions: g_ascii_strncasecmp(), * which only works on ASCII and is not locale-sensitive, and * g_utf8_casefold(), which is good for case-insensitive sorting of UTF-8. * A case-insensitive string comparison, corresponding to the standard * strncasecmp() function on platforms which support it. * It is similar to g_strcasecmp() except it only compares the first n * characters of the strings. * Params: * s1 = a string. * s2 = a string to compare with s1. * n = the maximum number of characters to compare. * Returns: 0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2. */ public static int strncasecmp(string s1, string s2, uint n); /** * Reverses all of the bytes in a string. For example, * g_strreverse ("abcdef") will result * in "fedcba". * Note that g_strreverse() doesn't work on UTF-8 strings * containing multibyte characters. For that purpose, use * g_utf8_strreverse(). * Params: * string = the string to reverse * Returns: the same pointer passed in as string */ public static string strreverse(string string); /** * Converts a string to a gint64 value. * This function behaves like the standard strtoll() function * does in the C locale. It does this without actually * changing the current locale, since that would not be * Нить-safe. * This function is typically used when reading configuration * files or other non-user input that should be locale independent. * To handle input from the user you should normally use the * locale-sensitive system strtoll() function. * If the correct value would cause overflow, G_MAXINT64 or G_MININT64 * is returned, and ERANGE is stored in errno. If the base is * outside the valid range, zero is returned, and EINVAL is stored * in errno. If the string conversion fails, zero is returned, and * endptr returns nptr (if endptr is non-NULL). * Since 2.12 * Params: * nptr = the string to convert to a numeric value. * endptr = if non-NULL, it returns the character after * the last character used in the conversion. * base = to be used for the conversion, 2..36 or 0 * Returns: the gint64 value or zero on error. */ public static long asciiStrtoll(string nptr, out string endptr, uint base); /** * Converts a string to a guint64 value. * This function behaves like the standard strtoull() function * does in the C locale. It does this without actually * changing the current locale, since that would not be * Нить-safe. * This function is typically used when reading configuration * files or other non-user input that should be locale independent. * To handle input from the user you should normally use the * locale-sensitive system strtoull() function. * If the correct value would cause overflow, G_MAXUINT64 * is returned, and ERANGE is stored in errno. If the base is * outside the valid range, zero is returned, and EINVAL is stored * in errno. If the string conversion fails, zero is returned, and * endptr returns nptr (if endptr is non-NULL). * Since 2.2 * Params: * nptr = the string to convert to a numeric value. * endptr = if non-NULL, it returns the character after * the last character used in the conversion. * base = to be used for the conversion, 2..36 or 0 * Returns: the guint64 value or zero on error. */ public static ulong asciiStrtoull(string nptr, out string endptr, uint base); /** * Converts a string to a gdouble value. * This function behaves like the standard strtod() function * does in the C locale. It does this without actually changing * the current locale, since that would not be Нить-safe. * A limitation of the implementation is that this function * will still accept localized versions of infinities and NANs. * This function is typically used when reading configuration * files or other non-user input that should be locale independent. * To handle input from the user you should normally use the * locale-sensitive system strtod() function. * To convert from a gdouble to a string in a locale-insensitive * way, use g_ascii_dtostr(). * If the correct value would cause overflow, plus or minus HUGE_VAL * is returned (according to the sign of the value), and ERANGE is * stored in errno. If the correct value would cause underflow, * zero is returned and ERANGE is stored in errno. * This function resets errno before calling strtod() so that * you can reliably detect overflow and underflow. * Params: * nptr = the string to convert to a numeric value. * endptr = if non-NULL, it returns the character after * the last character used in the conversion. * Returns: the gdouble value. */ public static double asciiStrtod(string nptr, out string endptr); /** * Converts a gdouble to a string, using the '.' as * decimal point. * This functions generates enough precision that converting * the string back using g_ascii_strtod() gives the same machine-number * (on machines with IEEE compatible 64bit doubles). It is * guaranteed that the size of the resulting string will never * be larger than G_ASCII_DTOSTR_BUF_SIZE bytes. * Params: * buffer = A buffer to place the resulting string in * bufLen = The length of the buffer. * d = The gdouble to convert * Returns: The pointer to the buffer with the converted string. */ public static string asciiDtostr(string buffer, int bufLen, double d); /** * Converts a gdouble to a string, using the '.' as * decimal point. To format the number you pass in * a printf()-style format string. Allowed conversion * specifiers are 'e', 'E', 'f', 'F', 'g' and 'G'. * If you just want to want to serialize the value into a * string, use g_ascii_dtostr(). * Params: * buffer = A buffer to place the resulting string in * bufLen = The length of the buffer. * format = The printf()-style format to use for the * code to use for converting. * d = The gdouble to convert * Returns: The pointer to the buffer with the converted string. */ public static string asciiFormatd(string buffer, int bufLen, string format, double d); /** * Converts a string to a gdouble value. * It calls the standard strtod() function to handle the conversion, but * if the string is not completely converted it attempts the conversion * again with g_ascii_strtod(), and returns the best match. * This function should seldomly be used. The normal situation when reading * numbers not for human consumption is to use g_ascii_strtod(). Only when * you know that you must expect both locale formatted and C formatted numbers * should you use this. Make sure that you don't pass strings such as comma * separated lists of values, since the commas may be interpreted as a decimal * point in some locales, causing unexpected results. * Params: * nptr = the string to convert to a numeric value. * endptr = if non-NULL, it returns the character after * the last character used in the conversion. * Returns: the gdouble value. */ public static double strtod(string nptr, out string endptr); /** * Removes leading whitespace from a string, by moving the rest of the * characters forward. * This function doesn't allocate or reallocate any memory; it modifies string * in place. The pointer to string is returned to allow the nesting of functions. * Also see g_strchomp() and g_strstrip(). * Params: * string = a string to remove the leading whitespace from. * Returns:@string. */ public static string strchug(string string); /** * Removes trailing whitespace from a string. * This function doesn't allocate or reallocate any memory; it modifies string in * place. The pointer to string is returned to allow the nesting of functions. * Also see g_strchug() and g_strstrip(). * Params: * string = a string to remove the trailing whitespace from. * Returns:@string. */ public static string strchomp(string string); /** * Converts any delimiter characters in string to new_delimiter. * Any characters in string which are found in delimiters are changed * to the new_delimiter character. Modifies string in place, and returns * string itself, not a copy. The return value is to allow nesting such as * g_ascii_strup (g_strdelimit (str, "abc", '?')). * Params: * string = the string to convert. * delimiters = a string containing the current delimiters, or NULL to use the * standard delimiters defined in G_STR_DELIMITERS. * newDelimiter = the new delimiter character. * Returns:@string. */ public static string strdelimit(string string, string delimiters, char newDelimiter); /** * Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\' and * '"' in the string source by inserting a '\' before * them. Additionally all characters in the range 0x01-0x1F (everything * below SPACE) and in the range 0x7F-0xFF (all non-ASCII chars) are * replaced with a '\' followed by their octal representation. Characters * supplied in exceptions are not escaped. * g_strcompress() does the reverse conversion. * Params: * source = a string to escape. * exceptions = a string of characters not to escape in source. * Returns:a newly-allocated copy of source with certaincharacters escaped. See above. */ public static string strescape(string source, string exceptions); /** * Replaces all escaped characters with their one byte equivalent. It * does the reverse conversion of g_strescape(). * Params: * source = a string to compress. * Returns:a newly-allocated copy of source with all escaped character compressed. */ public static string strcompress(string source); /** * For each character in string, if the character is not in valid_chars, * replaces the character with substitutor. Modifies string in place, * and return string itself, not a copy. The return value is to allow * nesting such as g_ascii_strup (g_strcanon (str, "abc", '?')). * Params: * string = a nul-terminated array of bytes. * validChars = bytes permitted in string. * substitutor = replacement character for disallowed bytes. * Returns:@string. */ public static string strcanon(string string, string validChars, char substitutor); /** * Splits a string into a maximum of max_tokens pieces, using the given * delimiter. If max_tokens is reached, the remainder of string is appended * to the last token. * As a special case, the result of splitting the empty string "" is an empty * vector, not a vector containing a single string. The reason for this * special case is that being able to represent a empty vector is typically * more useful than consistent handling of empty elements. If you do need * to represent empty elements, you'll need to check for the empty string * before calling g_strsplit(). * Params: * string = a string to split. * delimiter = a string which specifies the places at which to split the string. * The delimiter is not included in any of the resulting strings, unless * max_tokens is reached. * maxTokens = the maximum number of pieces to split string into. If this is * less than 1, the string is split completely. * Returns: a newly-allocated NULL-terminated array of strings. Use g_strfreev() to free it. */ public static string[] strsplit(string string, string delimiter, int maxTokens); /** * Splits string into a number of tokens not containing any of the characters * in delimiter. A token is the (possibly empty) longest string that does not * contain any of the characters in delimiters. If max_tokens is reached, the * remainder is appended to the last token. * For example the result of g_strsplit_set ("abc:def/ghi", ":/", -1) is a * NULL-terminated vector containing the three strings "abc", "def", * and "ghi". * The result if g_strsplit_set (":def/ghi:", ":/", -1) is a NULL-terminated * vector containing the four strings "", "def", "ghi", and "". * As a special case, the result of splitting the empty string "" is an empty * vector, not a vector containing a single string. The reason for this * special case is that being able to represent a empty vector is typically * more useful than consistent handling of empty elements. If you do need * to represent empty elements, you'll need to check for the empty string * before calling g_strsplit_set(). * Note that this function works on bytes not characters, so it can't be used * to delimit UTF-8 strings for anything but ASCII characters. * Since 2.4 * Params: * string = The string to be tokenized * delimiters = A nul-terminated string containing bytes that are used * to split the string. * maxTokens = The maximum number of tokens to split string into. * If this is less than 1, the string is split completely * Returns: a newly-allocated NULL-terminated array of strings. Use g_strfreev() to free it. */ public static string[] strsplitSet(string string, string delimiters, int maxTokens); /** * Frees a NULL-terminated array of strings, and the array itself. * If called on a NULL value, g_strfreev() simply returns. * Params: * strArray = a NULL-terminated array of strings to free. */ public static void strfreev(string[] strArray); /** * Joins a number of strings together to form one long string, with the * optional separator inserted between each of them. The returned string * should be freed with g_free(). * Params: * separator = a string to insert between each of the strings, or NULL * strArray = a NULL-terminated array of strings to join * Returns: a newly-allocated string containing all of the strings joined together, with separator between them */ public static string strjoinv(string separator, string[] strArray); /** * Returns the length of the given NULL-terminated * string array str_array. * Since 2.6 * Params: * strArray = a NULL-terminated array of strings. * Returns: length of str_array. */ public static uint strvLength(string[] strArray); /** * Returns a string corresponding to the given error code, e.g. * "no such process". You should use this function in preference to * strerror(), because it returns a string in UTF-8 encoding, and since * not all platforms support the strerror() function. * Params: * errnum = the system error number. See the standard C errno * documentation * Returns: a UTF-8 string describing the error code. If the error code is unknown, it returns "unknown error (<code>)". The string can only be used until the next call to g_strerror() */ public static string strerror(int errnum); /** * Returns a string describing the given signal, e.g. "Segmentation fault". * You should use this function in preference to strsignal(), because it * returns a string in UTF-8 encoding, and since not all platforms support * the strsignal() function. * Params: * signum = the signal number. See the signal * documentation * Returns: a UTF-8 string describing the signal. If the signal is unknown, it returns "unknown signal (<signum>)". The string can only be used until the next call to g_strsignal() */ public static string strsignal(int signum); }
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range; void get(Args...)(ref Args args) { import std.traits, std.meta, std.typecons; static if (Args.length == 1) { alias Arg = Args[0]; static if (isArray!Arg) { static if (isSomeChar!(ElementType!Arg)) { args[0] = readln.chomp.to!Arg; } else { args[0] = readln.split.to!Arg; } } else static if (isTuple!Arg) { auto input = readln.split; static foreach (i; 0..Fields!Arg.length) { args[0][i] = input[i].to!(Fields!Arg[i]); } } else { args[0] = readln.chomp.to!Arg; } } else { auto input = readln.split; assert(input.length == Args.length); static foreach (i; 0..Args.length) { args[i] = input[i].to!(Args[i]); } } } void get_lines(Args...)(size_t N, ref Args args) { import std.traits, std.range; static foreach (i; 0..Args.length) { static assert(isArray!(Args[i])); args[i].length = N; } foreach (i; 0..N) { static if (Args.length == 1) { get(args[0][i]); } else { auto input = readln.split; static foreach (j; 0..Args.length) { args[j][i] = input[j].to!(ElementType!(Args[j])); } } } } void main() { real X, Y, Z; get(X, Y, Z); int res; foreach (r; 0..10^^6 + 1) if (r / Z < Y / X) res = r; writeln(res); }
D
/** * This module contains a collection of bit-level operations. * * Copyright: Copyright Don Clugston 2005 - 2013. * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Authors: Don Clugston, Sean Kelly, Walter Bright, Alex Rønne Petersen, Thomas Stuart Bockman * Source: $(DRUNTIMESRC core/_bitop.d) * * Some of the LDC-specific parts came »From GDC ... public domain!« */ module core.bitop; nothrow: @safe: @nogc: version (LDC) { import ldc.intrinsics; // Do not use the DMD inline assembler. } else version (D_InlineAsm_X86_64) version = AsmX86; else version (D_InlineAsm_X86) version = AsmX86; version (X86_64) version = AnyX86; else version (X86) version = AnyX86; // Use to implement 64-bit bitops on 32-bit arch. private union Split64 { ulong u64; struct { version (LittleEndian) { uint lo; uint hi; } else { uint hi; uint lo; } } pragma(inline, true) this(ulong u64) @safe pure nothrow @nogc { if (__ctfe) { lo = cast(uint) u64; hi = cast(uint) (u64 >>> 32); } else this.u64 = u64; } } unittest { const rt = Split64(1); assert((rt.lo == 1) && (rt.hi == 0)); enum ct = Split64(1); assert((ct.lo == rt.lo) && (ct.hi == rt.hi)); } /** * Scans the bits in v starting with bit 0, looking * for the first set bit. * Returns: * The bit number of the first bit set. * The return value is undefined if v is zero. */ pragma(inline, true) // LDC int bsf(uint v) pure { version (LDC) { if (!__ctfe) return cast(int) llvm_cttz(v, true); } else { pragma(inline, false); // so intrinsic detection will work } return softBsf!uint(v); } /// ditto pragma(inline, true) // LDC int bsf(ulong v) pure { static if (size_t.sizeof == ulong.sizeof) // 64 bit code gen { version (LDC) { if (!__ctfe) return cast(int) llvm_cttz(v, true); } else { pragma(inline, false); // so intrinsic detection will work } return softBsf!ulong(v); } else { /* intrinsic not available for 32 bit code, * make do with 32 bit bsf */ const sv = Split64(v); return (sv.lo == 0)? bsf(sv.hi) + 32 : bsf(sv.lo); } } /// unittest { assert(bsf(0x21) == 0); assert(bsf(ulong.max << 39) == 39); } unittest { // Make sure bsf() is available at CTFE enum test_ctfe = bsf(ulong.max); assert(test_ctfe == 0); } /** * Scans the bits in v from the most significant bit * to the least significant bit, looking * for the first set bit. * Returns: * The bit number of the first bit set. * The return value is undefined if v is zero. */ pragma(inline, true) // LDC int bsr(uint v) pure { version (LDC) { if (!__ctfe) return cast(int) (typeof(v).sizeof * 8 - 1 - llvm_ctlz(v, true)); } else { pragma(inline, false); // so intrinsic detection will work } return softBsr!uint(v); } /// ditto pragma(inline, true) // LDC int bsr(ulong v) pure { static if (size_t.sizeof == ulong.sizeof) // 64 bit code gen { version (LDC) { if (!__ctfe) return cast(int) (size_t.sizeof * 8 - 1 - llvm_ctlz(v, true)); } else { pragma(inline, false); // so intrinsic detection will work } return softBsr!ulong(v); } else { /* intrinsic not available for 32 bit code, * make do with 32 bit bsr */ const sv = Split64(v); return (sv.hi == 0)? bsr(sv.lo) : bsr(sv.hi) + 32; } } /// unittest { assert(bsr(0x21) == 5); assert(bsr((ulong.max >> 15) - 1) == 48); } unittest { // Make sure bsr() is available at CTFE enum test_ctfe = bsr(ulong.max); assert(test_ctfe == 63); } private alias softBsf(N) = softScan!(N, true); private alias softBsr(N) = softScan!(N, false); /* Shared software fallback implementation for bit scan foward and reverse. If forward is true, bsf is computed (the index of the first set bit). If forward is false, bsr is computed (the index of the last set bit). -1 is returned if no bits are set (v == 0). */ private int softScan(N, bool forward)(N v) pure if (is(N == uint) || is(N == ulong)) { // bsf() and bsr() are officially undefined for v == 0. if (!v) return -1; // This is essentially an unrolled binary search: enum mask(ulong lo) = forward ? cast(N) lo : cast(N)~lo; enum inc(int up) = forward ? up : -up; N x; int ret; static if (is(N == ulong)) { x = v & mask!0x0000_0000_FFFF_FFFFL; if (x) { v = x; ret = forward ? 0 : 63; } else ret = forward ? 32 : 31; x = v & mask!0x0000_FFFF_0000_FFFFL; if (x) v = x; else ret += inc!16; } else static if (is(N == uint)) { x = v & mask!0x0000_FFFF; if (x) { v = x; ret = forward ? 0 : 31; } else ret = forward ? 16 : 15; } else static assert(false); x = v & mask!0x00FF_00FF_00FF_00FFL; if (x) v = x; else ret += inc!8; x = v & mask!0x0F0F_0F0F_0F0F_0F0FL; if (x) v = x; else ret += inc!4; x = v & mask!0x3333_3333_3333_3333L; if (x) v = x; else ret += inc!2; x = v & mask!0x5555_5555_5555_5555L; if (!x) ret += inc!1; return ret; } unittest { assert(softBsf!uint(0u) == -1); assert(softBsr!uint(0u) == -1); assert(softBsf!ulong(0uL) == -1); assert(softBsr!ulong(0uL) == -1); assert(softBsf!uint(0x0031_A000) == 13); assert(softBsr!uint(0x0031_A000) == 21); assert(softBsf!ulong(0x0000_0001_8000_0000L) == 31); assert(softBsr!ulong(0x0000_0001_8000_0000L) == 32); foreach (b; 0 .. 64) { if (b < 32) { assert(softBsf!uint(1u << b) == b); assert(softBsr!uint(1u << b) == b); } assert(softBsf!ulong(1uL << b) == b); assert(softBsr!ulong(1uL << b) == b); } } /** * Tests the bit. * (No longer an intrisic - the compiler recognizes the patterns * in the body.) */ version (none) { // Our implementation returns an arbitrary non-zero value if the bit was // set, which is not what std.bitmanip expects. pragma(LDC_intrinsic, "ldc.bitop.bt") int bt(const scope size_t* p, size_t bitnum) pure @system; } else pragma(inline, true) // LDC int bt(const scope size_t* p, size_t bitnum) pure @system { static if (size_t.sizeof == 8) return ((p[bitnum >> 6] & (1L << (bitnum & 63)))) != 0; else static if (size_t.sizeof == 4) return ((p[bitnum >> 5] & (1 << (bitnum & 31)))) != 0; else static assert(0); } /// @system pure unittest { size_t[2] array; array[0] = 2; array[1] = 0x100; assert(bt(array.ptr, 1)); assert(array[0] == 2); assert(array[1] == 0x100); } version (LDC) { pragma(LDC_intrinsic, "ldc.bitop.bts") private int __bts(size_t* p, size_t bitnum) pure @system; pragma(LDC_intrinsic, "ldc.bitop.btc") private int __btc(size_t* p, size_t bitnum) pure @system; pragma(LDC_intrinsic, "ldc.bitop.btr") private int __btr(size_t* p, size_t bitnum) pure @system; } private int softBtx(string op)(size_t* p, size_t bitnum) pure @system { size_t indexIntoArray = bitnum / (size_t.sizeof*8); size_t bitmask = size_t(1) << (bitnum & ((size_t.sizeof*8) - 1)); size_t original = p[indexIntoArray]; mixin("p[indexIntoArray] = original " ~ op ~ " bitmask;"); return (original&bitmask) > 0 ? true : false; } /** * Tests and complements the bit. */ pragma(inline, true) // LDC int btc(size_t* p, size_t bitnum) pure @system { version (LDC) { if (!__ctfe) return __btc(p, bitnum); } else { pragma(inline, false); // such that DMD intrinsic detection will work } return softBtx!"^"(p, bitnum); } /** * Tests and resets (sets to 0) the bit. */ pragma(inline, true) // LDC int btr(size_t* p, size_t bitnum) pure @system { version (LDC) { if (!__ctfe) return __btr(p, bitnum); } else { pragma(inline, false); // such that DMD intrinsic detection will work } return softBtx!"& ~"(p, bitnum); } /** * Tests and sets the bit. * Params: * p = a non-NULL pointer to an array of size_ts. * bitnum = a bit number, starting with bit 0 of p[0], * and progressing. It addresses bits like the expression: --- p[index / (size_t.sizeof*8)] & (1 << (index & ((size_t.sizeof*8) - 1))) --- * Returns: * A non-zero value if the bit was set, and a zero * if it was clear. */ pragma(inline, true) // LDC int bts(size_t* p, size_t bitnum) pure @system { version (LDC) { if (!__ctfe) return __bts(p, bitnum); } else { pragma(inline, false); // such that DMD intrinsic detection will work } return softBtx!"|"(p, bitnum); } /// @system pure unittest { @system pure bool testbitset() { size_t[2] array; array[0] = 2; array[1] = 0x100; assert(btc(array.ptr, 35) == 0); if (size_t.sizeof == 8) { assert(array[0] == 0x8_0000_0002); assert(array[1] == 0x100); } else { assert(array[0] == 2); assert(array[1] == 0x108); } assert(btc(array.ptr, 35)); assert(array[0] == 2); assert(array[1] == 0x100); assert(bts(array.ptr, 35) == 0); if (size_t.sizeof == 8) { assert(array[0] == 0x8_0000_0002); assert(array[1] == 0x100); } else { assert(array[0] == 2); assert(array[1] == 0x108); } assert(btr(array.ptr, 35)); assert(array[0] == 2); assert(array[1] == 0x100); return true; } enum b = testbitset(); // CTFE test testbitset(); // runtime test } /** * Range over bit set. Each element is the bit number that is set. * * This is more efficient than testing each bit in a sparsely populated bit * set. Note that the first bit in the bit set would be bit 0. */ struct BitRange { /// Number of bits in each size_t enum bitsPerWord = size_t.sizeof * 8; private { const(size_t)*bits; // points at next word of bits to check size_t cur; // needed to allow searching bits using bsf size_t idx; // index of current set bit size_t len; // number of bits in the bit set. } @nogc nothrow pure: /** * Construct a BitRange. * * Params: * bitarr = The array of bits to iterate over * numBits = The total number of valid bits in the given bit array */ this(const(size_t)* bitarr, size_t numBits) @system { bits = bitarr; len = numBits; if (len) { // prime the first bit cur = *bits++ ^ 1; popFront(); } } /// Range functions size_t front() { assert(!empty); return idx; } /// ditto bool empty() const { return idx >= len; } /// ditto void popFront() @system { // clear the current bit auto curbit = idx % bitsPerWord; cur ^= size_t(1) << curbit; if (!cur) { // find next size_t with set bit idx -= curbit; while (!cur) { if ((idx += bitsPerWord) >= len) // now empty return; cur = *bits++; } idx += bsf(cur); } else { idx += bsf(cur) - curbit; } } } /// @system unittest { import core.stdc.stdlib : malloc, free; import core.stdc.string : memset; // initialize a bit array enum nBytes = (100 + BitRange.bitsPerWord - 1) / 8; size_t *bitArr = cast(size_t *)malloc(nBytes); scope(exit) free(bitArr); memset(bitArr, 0, nBytes); // set some bits bts(bitArr, 48); bts(bitArr, 24); bts(bitArr, 95); bts(bitArr, 78); enum sum = 48 + 24 + 95 + 78; // iterate size_t testSum; size_t nBits; foreach (b; BitRange(bitArr, 100)) { testSum += b; ++nBits; } assert(testSum == sum); assert(nBits == 4); } @system unittest { void testIt(size_t numBits, size_t[] bitsToTest...) { import core.stdc.stdlib : malloc, free; import core.stdc.string : memset; immutable numBytes = (numBits + size_t.sizeof * 8 - 1) / 8; size_t* bitArr = cast(size_t *)malloc(numBytes); scope(exit) free(bitArr); memset(bitArr, 0, numBytes); foreach (b; bitsToTest) bts(bitArr, b); auto br = BitRange(bitArr, numBits); foreach (b; bitsToTest) { assert(!br.empty); assert(b == br.front); br.popFront(); } assert(br.empty); } testIt(100, 0, 1, 31, 63, 85); testIt(100, 6, 45, 89, 92, 99); } /** * Swaps bytes in a 2 byte ushort. * Params: * x = value * Returns: * `x` with bytes swapped */ version (LDC) { alias byteswap = llvm_bswap!ushort; } else pragma(inline, false) ushort byteswap(ushort x) pure { /* Calling it bswap(ushort) would break existing code that calls bswap(uint). * * This pattern is meant to be recognized by the dmd code generator. * Don't change it without checking that an XCH instruction is still * used to implement it. * Inlining may also throw it off. */ return cast(ushort) (((x >> 8) & 0xFF) | ((x << 8) & 0xFF00u)); } /// unittest { assert(byteswap(cast(ushort)0xF234) == 0x34F2); static ushort xx = 0xF234; assert(byteswap(xx) == 0x34F2); } /** * Swaps bytes in a 4 byte uint end-to-end, i.e. byte 0 becomes * byte 3, byte 1 becomes byte 2, byte 2 becomes byte 1, byte 3 * becomes byte 0. */ version (LDC) { alias bswap = llvm_bswap!uint; } else uint bswap(uint v) pure; /// unittest { assert(bswap(0x01020304u) == 0x04030201u); static uint xx = 0x10203040u; assert(bswap(xx) == 0x40302010u); } /** * Swaps bytes in an 8 byte ulong end-to-end, i.e. byte 0 becomes * byte 7, byte 1 becomes byte 6, etc. * This is meant to be recognized by the compiler as an intrinsic. */ version (LDC) { alias bswap = llvm_bswap!ulong; } else ulong bswap(ulong v) pure; /// unittest { assert(bswap(0x01020304_05060708uL) == 0x08070605_04030201uL); static ulong xx = 0x10203040_50607080uL; assert(bswap(xx) == 0x80706050_40302010uL); } version (DigitalMars) version (AnyX86) @system // not pure { /** * Reads I/O port at port_address. */ ubyte inp(uint port_address); /** * ditto */ ushort inpw(uint port_address); /** * ditto */ uint inpl(uint port_address); /** * Writes and returns value to I/O port at port_address. */ ubyte outp(uint port_address, ubyte value); /** * ditto */ ushort outpw(uint port_address, ushort value); /** * ditto */ uint outpl(uint port_address, uint value); } version (LDC) @system // not pure { /** * Reads I/O port at port_address. */ uint inp(uint port_address) { assert(false, "inp not yet implemented for LDC."); } /** * ditto */ uint inpw(uint port_address) { assert(false, "inpw not yet implemented for LDC."); } /** * ditto */ uint inpl(uint port_address) { assert(false, "inpl not yet implemented for LDC."); } /** * Writes and returns value to I/O port at port_address. */ ubyte outp(uint port_address, uint value) { assert(false, "outp not yet implemented for LDC."); } /** * ditto */ ushort outpw(uint port_address, uint value) { assert(false, "outpw not yet implemented for LDC."); } /** * ditto */ uint outpl(uint port_address, uint value) { assert(false, "outpl not yet implemented for LDC."); } } version (LDC) { alias _popcnt = llvm_ctpop!ushort; pragma(inline, true): int _popcnt(uint x) pure { return cast(int) llvm_ctpop(x); } int _popcnt(ulong x) pure { return cast(int) llvm_ctpop(x); } } /** * Calculates the number of set bits in an integer. */ pragma(inline, true) // LDC int popcnt(uint x) pure { // Select the fastest method depending on the compiler and CPU architecture version (LDC) { if (!__ctfe) return _popcnt(x); } else version (DigitalMars) { static if (is(typeof(_popcnt(uint.max)))) { import core.cpuid; if (!__ctfe && hasPopcnt) return _popcnt(x); } } return softPopcnt!uint(x); } unittest { assert( popcnt( 0 ) == 0 ); assert( popcnt( 7 ) == 3 ); assert( popcnt( 0xAA )== 4 ); assert( popcnt( 0x8421_1248 ) == 8 ); assert( popcnt( 0xFFFF_FFFF ) == 32 ); assert( popcnt( 0xCCCC_CCCC ) == 16 ); assert( popcnt( 0x7777_7777 ) == 24 ); // Make sure popcnt() is available at CTFE enum test_ctfe = popcnt(uint.max); assert(test_ctfe == 32); } /// ditto pragma(inline, true) // LDC int popcnt(ulong x) pure { // Select the fastest method depending on the compiler and CPU architecture version (LDC) { if (!__ctfe) return _popcnt(x); } import core.cpuid; static if (size_t.sizeof == uint.sizeof) { const sx = Split64(x); version (DigitalMars) { static if (is(typeof(_popcnt(uint.max)))) { if (!__ctfe && hasPopcnt) return _popcnt(sx.lo) + _popcnt(sx.hi); } } return softPopcnt!uint(sx.lo) + softPopcnt!uint(sx.hi); } else static if (size_t.sizeof == ulong.sizeof) { version (DigitalMars) { static if (is(typeof(_popcnt(ulong.max)))) { if (!__ctfe && hasPopcnt) return _popcnt(x); } } return softPopcnt!ulong(x); } else static assert(false); } unittest { assert(popcnt(0uL) == 0); assert(popcnt(1uL) == 1); assert(popcnt((1uL << 32) - 1) == 32); assert(popcnt(0x48_65_6C_6C_6F_3F_21_00uL) == 28); assert(popcnt(ulong.max) == 64); // Make sure popcnt() is available at CTFE enum test_ctfe = popcnt(ulong.max); assert(test_ctfe == 64); } private int softPopcnt(N)(N x) pure if (is(N == uint) || is(N == ulong)) { // Avoid branches, and the potential for cache misses which // could be incurred with a table lookup. // We need to mask alternate bits to prevent the // sum from overflowing. // add neighbouring bits. Each bit is 0 or 1. enum mask1 = cast(N) 0x5555_5555_5555_5555L; x = x - ((x>>1) & mask1); // now each two bits of x is a number 00,01 or 10. // now add neighbouring pairs enum mask2a = cast(N) 0xCCCC_CCCC_CCCC_CCCCL; enum mask2b = cast(N) 0x3333_3333_3333_3333L; x = ((x & mask2a)>>2) + (x & mask2b); // now each nibble holds 0000-0100. Adding them won't // overflow any more, so we don't need to mask any more enum mask4 = cast(N) 0x0F0F_0F0F_0F0F_0F0FL; x = (x + (x >> 4)) & mask4; enum shiftbits = is(N == uint)? 24 : 56; enum maskMul = cast(N) 0x0101_0101_0101_0101L; x = (x * maskMul) >> shiftbits; return cast(int) x; } version (DigitalMars) version (AnyX86) { /** * Calculates the number of set bits in an integer * using the X86 SSE4 POPCNT instruction. * POPCNT is not available on all X86 CPUs. */ ushort _popcnt( ushort x ) pure; /// ditto int _popcnt( uint x ) pure; version (X86_64) { /// ditto int _popcnt( ulong x ) pure; } unittest { // Not everyone has SSE4 instructions import core.cpuid; if (!hasPopcnt) return; static int popcnt_x(ulong u) nothrow @nogc { int c; while (u) { c += u & 1; u >>= 1; } return c; } for (uint u = 0; u < 0x1_0000; ++u) { //writefln("%x %x %x", u, _popcnt(cast(ushort)u), popcnt_x(cast(ushort)u)); assert(_popcnt(cast(ushort)u) == popcnt_x(cast(ushort)u)); assert(_popcnt(cast(uint)u) == popcnt_x(cast(uint)u)); uint ui = u * 0x3_0001; assert(_popcnt(ui) == popcnt_x(ui)); version (X86_64) { assert(_popcnt(cast(ulong)u) == popcnt_x(cast(ulong)u)); ulong ul = u * 0x3_0003_0001; assert(_popcnt(ul) == popcnt_x(ul)); } } } } /** * Reverses the order of bits in a 32-bit integer. */ pragma(inline, true) uint bitswap( uint x ) pure { if (!__ctfe) { version (LDC) { return llvm_bitreverse(x); } else static if (is(typeof(asmBitswap32(x)))) return asmBitswap32(x); } return softBitswap!uint(x); } unittest { static void test(alias impl)() { assert (impl( 0x8000_0100 ) == 0x0080_0001); foreach (i; 0 .. 32) assert (impl(1 << i) == 1 << 32 - i - 1); } test!(bitswap)(); test!(softBitswap!uint)(); static if (is(typeof(asmBitswap32(0u)))) test!(asmBitswap32)(); // Make sure bitswap() is available at CTFE enum test_ctfe = bitswap(1U); assert(test_ctfe == (1U << 31)); } /** * Reverses the order of bits in a 64-bit integer. */ pragma(inline, true) ulong bitswap ( ulong x ) pure { if (!__ctfe) { version (LDC) { return llvm_bitreverse(x); } else static if (is(typeof(asmBitswap64(x)))) return asmBitswap64(x); } return softBitswap!ulong(x); } unittest { static void test(alias impl)() { assert (impl( 0b1000000000000000000000010000000000000000100000000000000000000001) == 0b1000000000000000000000010000000000000000100000000000000000000001); assert (impl( 0b1110000000000000000000010000000000000000100000000000000000000001) == 0b1000000000000000000000010000000000000000100000000000000000000111); foreach (i; 0 .. 64) assert (impl(1UL << i) == 1UL << 64 - i - 1); } test!(bitswap)(); test!(softBitswap!ulong)(); static if (is(typeof(asmBitswap64(0uL)))) test!(asmBitswap64)(); // Make sure bitswap() is available at CTFE enum test_ctfe = bitswap(1UL); assert(test_ctfe == (1UL << 63)); } private N softBitswap(N)(N x) pure if (is(N == uint) || is(N == ulong)) { // swap 1-bit pairs: enum mask1 = cast(N) 0x5555_5555_5555_5555L; x = ((x >> 1) & mask1) | ((x & mask1) << 1); // swap 2-bit pairs: enum mask2 = cast(N) 0x3333_3333_3333_3333L; x = ((x >> 2) & mask2) | ((x & mask2) << 2); // swap 4-bit pairs: enum mask4 = cast(N) 0x0F0F_0F0F_0F0F_0F0FL; x = ((x >> 4) & mask4) | ((x & mask4) << 4); // reverse the order of all bytes: x = bswap(x); return x; } version (AsmX86) { private uint asmBitswap32(uint x) @trusted pure { asm pure nothrow @nogc { naked; } version (D_InlineAsm_X86_64) { version (Win64) asm pure nothrow @nogc { mov EAX, ECX; } else asm pure nothrow @nogc { mov EAX, EDI; } } asm pure nothrow @nogc { // Author: Tiago Gasiba. mov EDX, EAX; shr EAX, 1; and EDX, 0x5555_5555; and EAX, 0x5555_5555; shl EDX, 1; or EAX, EDX; mov EDX, EAX; shr EAX, 2; and EDX, 0x3333_3333; and EAX, 0x3333_3333; shl EDX, 2; or EAX, EDX; mov EDX, EAX; shr EAX, 4; and EDX, 0x0f0f_0f0f; and EAX, 0x0f0f_0f0f; shl EDX, 4; or EAX, EDX; bswap EAX; ret; } } } version (LDC) {} else version (D_InlineAsm_X86_64) { private ulong asmBitswap64(ulong x) @trusted pure { asm pure nothrow @nogc { naked; } version (Win64) asm pure nothrow @nogc { mov RAX, RCX; } else asm pure nothrow @nogc { mov RAX, RDI; } asm pure nothrow @nogc { // Author: Tiago Gasiba. mov RDX, RAX; shr RAX, 1; mov RCX, 0x5555_5555_5555_5555L; and RDX, RCX; and RAX, RCX; shl RDX, 1; or RAX, RDX; mov RDX, RAX; shr RAX, 2; mov RCX, 0x3333_3333_3333_3333L; and RDX, RCX; and RAX, RCX; shl RDX, 2; or RAX, RDX; mov RDX, RAX; shr RAX, 4; mov RCX, 0x0f0f_0f0f_0f0f_0f0fL; and RDX, RCX; and RAX, RCX; shl RDX, 4; or RAX, RDX; bswap RAX; ret; } } } /** * Bitwise rotate `value` left (`rol`) or right (`ror`) by * `count` bit positions. */ pragma(inline, true) // LDC pure T rol(T)(const T value, const uint count) if (__traits(isIntegral, T) && __traits(isUnsigned, T)) { assert(count < 8 * T.sizeof); if (count == 0) return cast(T) value; return cast(T) ((value << count) | (value >> (T.sizeof * 8 - count))); } /// ditto pragma(inline, true) // LDC pure T ror(T)(const T value, const uint count) if (__traits(isIntegral, T) && __traits(isUnsigned, T)) { assert(count < 8 * T.sizeof); if (count == 0) return cast(T) value; return cast(T) ((value >> count) | (value << (T.sizeof * 8 - count))); } /// ditto pragma(inline, true) // LDC pure T rol(uint count, T)(const T value) if (__traits(isIntegral, T) && __traits(isUnsigned, T)) { static assert(count < 8 * T.sizeof); static if (count == 0) return cast(T) value; return cast(T) ((value << count) | (value >> (T.sizeof * 8 - count))); } /// ditto pragma(inline, true) // LDC pure T ror(uint count, T)(const T value) if (__traits(isIntegral, T) && __traits(isUnsigned, T)) { static assert(count < 8 * T.sizeof); static if (count == 0) return cast(T) value; return cast(T) ((value >> count) | (value << (T.sizeof * 8 - count))); } /// unittest { ubyte a = 0b11110000U; ulong b = ~1UL; assert(rol(a, 1) == 0b11100001); assert(ror(a, 1) == 0b01111000); assert(rol(a, 3) == 0b10000111); assert(ror(a, 3) == 0b00011110); assert(rol(a, 0) == a); assert(ror(a, 0) == a); assert(rol(b, 63) == ~(1UL << 63)); assert(ror(b, 63) == ~2UL); assert(rol!3(a) == 0b10000111); assert(ror!3(a) == 0b00011110); enum c = rol(uint(1), 0); enum d = ror(uint(1), 0); assert(c == uint(1)); assert(d == uint(1)); }
D
/Users/NMB12/Documents/caregiverapp/DerivedData/ReMindr/Build/Intermediates/ReMindr.build/Debug-iphoneos/ReMindr.build/Objects-normal/arm64/PhotoCollectionViewController.o : /Users/NMB12/Documents/caregiverapp/ReMindr/CustomPointAnnotation.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouriteCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCollectionViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceStationDetailsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceWebDetailsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCellCollectionViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCollectionAddPhotoHandler.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouritesTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Reminder.swift /Users/NMB12/Documents/caregiverapp/ReMindr/GeoSettingsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FastestRouteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AppDelegate.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyContact.swift /Users/NMB12/Documents/caregiverapp/ReMindr/NotificationTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Photo.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddReminderViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddLocationViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Geofence.swift /Users/NMB12/Documents/caregiverapp/ReMindr/photoInfoViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceStation.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicTableViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddContactViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/LocationViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/DetailViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/MapViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/ViewFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EditFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouriteOnlyViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyContactsTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/ZoomTransitioningDelegate.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Reachability.swift /Users/NMB12/Documents/caregiverapp/ReMindr/GeofencingViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyTableViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Favourite.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Panic.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicMapViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Users/NMB12/Documents/caregiverapp/Pods/Firebase/Core/Sources/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreLocation.swiftmodule /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/Firebase/Core/Sources/Firebase.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreData.swiftmodule /Users/NMB12/Documents/caregiverapp/DerivedData/ReMindr/Build/Intermediates/ReMindr.build/Debug-iphoneos/ReMindr.build/Objects-normal/arm64/PhotoCollectionViewController~partial.swiftmodule : /Users/NMB12/Documents/caregiverapp/ReMindr/CustomPointAnnotation.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouriteCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCollectionViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceStationDetailsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceWebDetailsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCellCollectionViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCollectionAddPhotoHandler.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouritesTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Reminder.swift /Users/NMB12/Documents/caregiverapp/ReMindr/GeoSettingsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FastestRouteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AppDelegate.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyContact.swift /Users/NMB12/Documents/caregiverapp/ReMindr/NotificationTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Photo.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddReminderViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddLocationViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Geofence.swift /Users/NMB12/Documents/caregiverapp/ReMindr/photoInfoViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceStation.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicTableViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddContactViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/LocationViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/DetailViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/MapViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/ViewFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EditFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouriteOnlyViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyContactsTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/ZoomTransitioningDelegate.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Reachability.swift /Users/NMB12/Documents/caregiverapp/ReMindr/GeofencingViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyTableViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Favourite.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Panic.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicMapViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Users/NMB12/Documents/caregiverapp/Pods/Firebase/Core/Sources/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreLocation.swiftmodule /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/Firebase/Core/Sources/Firebase.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreData.swiftmodule /Users/NMB12/Documents/caregiverapp/DerivedData/ReMindr/Build/Intermediates/ReMindr.build/Debug-iphoneos/ReMindr.build/Objects-normal/arm64/PhotoCollectionViewController~partial.swiftdoc : /Users/NMB12/Documents/caregiverapp/ReMindr/CustomPointAnnotation.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouriteCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCollectionViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceStationDetailsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceWebDetailsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCellCollectionViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PhotoCollectionAddPhotoHandler.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouritesTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Reminder.swift /Users/NMB12/Documents/caregiverapp/ReMindr/GeoSettingsViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FastestRouteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AppDelegate.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyContact.swift /Users/NMB12/Documents/caregiverapp/ReMindr/NotificationTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Photo.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddReminderViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddLocationViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Geofence.swift /Users/NMB12/Documents/caregiverapp/ReMindr/photoInfoViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PoliceStation.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicTableViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/AddContactViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/LocationViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/DetailViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/MapViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/ViewFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EditFavouriteViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/FavouriteOnlyViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyContactsTableViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/ZoomTransitioningDelegate.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Reachability.swift /Users/NMB12/Documents/caregiverapp/ReMindr/GeofencingViewController.swift /Users/NMB12/Documents/caregiverapp/ReMindr/EmergencyTableViewCell.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Favourite.swift /Users/NMB12/Documents/caregiverapp/ReMindr/Panic.swift /Users/NMB12/Documents/caregiverapp/ReMindr/PanicMapViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Users/NMB12/Documents/caregiverapp/Pods/Firebase/Core/Sources/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreLocation.swiftmodule /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailPasswordAuthProvider.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/NMB12/Documents/caregiverapp/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/NMB12/Documents/caregiverapp/Pods/Firebase/Core/Sources/Firebase.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreData.swiftmodule
D
# FIXED ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/icall_lite_translation.c ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/limits.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/comdef.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdint.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/_stdint40.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/stdint.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/cdefs.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_types.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_types.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_stdint.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_stdint.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdbool.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_defs.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_memory.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_timers.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc/icall.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdlib.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/_ti_config.h ICallBLE/icall_lite_translation.obj: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/linkage.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_assert.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h ICallBLE/icall_lite_translation.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc/icall_lite_translation.h C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/icall_lite_translation.c: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/limits.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/comdef.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdint.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/_stdint40.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/stdint.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/cdefs.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_types.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_types.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/machine/_stdint.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/sys/_stdint.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdbool.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_defs.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_memory.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc/osal_timers.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc/icall.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/stdlib.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/_ti_config.h: C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/linkage.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc/hal_assert.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_types.h: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc/icall_lite_translation.h:
D
/* * The MIT License (MIT) * * Copyright (c) 2014 Devisualization (Richard Andrew Cattermole) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ module test; void main() { import devisualization.image; import devisualization.image.mutable; import std.stdio; writeln("===============\nREAD\n==============="); Image img = imageFromFile("test/myfile.png"); writeln(img.rgba.allPixels); writeln("width: ", img.width); writeln("height: ", img.height); foreach(i, pixel; img.rgba) { writefln("%d: %s", i, pixel); } writeln("===============\nWRITE\n==============="); img.exportTo("test_output.png"); writeln("===============\nREAD - 2\n==============="); img = imageFromFile("test_output.png"); writeln(img.rgba.allPixels); writeln("width: ", img.width); writeln("height: ", img.height); foreach(i, pixel; img.rgba) { writefln("%d: %s", i, pixel); } writeln("===============\nMODIFY\n==============="); img = new MutableImage(img); img.rgba[2] = Color_RGBA.fromUbyte(2, 2, 2, 2); writeln(img.rgba.allPixels); writeln("width: ", img.width); writeln("height: ", img.height); foreach(i, pixel; img.rgba) { writefln("%d: %s", i, pixel); } }
D
someone skilled in the transcription of speech (especially dictation)
D
module org.serviio.dlna.UnsupportedDLNAMediaFileFormatException; import java.lang.String; public import java.lang.exceptions; public class UnsupportedDLNAMediaFileFormatException : Exception { private static const long serialVersionUID = -896277702729810672L; public this() { } public this(String message, Throwable cause) { super(message, cause); } public this(String message) { super(message); } public this(Throwable cause) { super(cause); } } /* Location: D:\Program Files\Serviio\lib\serviio.jar * Qualified Name: org.serviio.dlna.UnsupportedDLNAMediaFileFormatException * JD-Core Version: 0.6.2 */
D
an unexpected and inexplicable change in something (in a situation or a person's behavior, etc.
D
module org.serviio.upnp.service.contentdirectory.definition.XBox360ContentDirectoryDefinitionFilter; import java.util.Map; import org.serviio.upnp.service.contentdirectory.classes.ClassProperties; import org.serviio.upnp.service.contentdirectory.classes.ObjectClassType; public class XBox360ContentDirectoryDefinitionFilter : ContentDirectoryDefinitionFilter { public String filterObjectId(String requestedNodeId, bool isSearch) { if (isSearch) { if (requestedNodeId.equals("6")) return "A_AS"; if (requestedNodeId.equals("4")) return "A_S"; if (requestedNodeId.equals("5")) return "A_G"; if (requestedNodeId.equals("7")) return "A_ALB"; if (requestedNodeId.equals("16")) return "I_AI"; if (requestedNodeId.equals("F")) return "A_PL"; } else { if (requestedNodeId.equals("15")) { return "V"; }if (requestedNodeId.equals("16")) { return "I"; } } return requestedNodeId; } public ObjectClassType filterContainerClassType(ObjectClassType requestedObjectClass, String objectId) { if ((requestedObjectClass !is null) && (requestedObjectClass.getClassName().startsWith("object.container")) && (!objectId.startsWith("A"))) { return ObjectClassType.STORAGE_FOLDER; } return requestedObjectClass; } public void filterClassProperties(String objectId, Map!(ClassProperties, Object) values) { if ((objectId.startsWith("A_")) || (objectId.equals("I"))) { values.put(ClassProperties.SEARCHABLE, Boolean.TRUE); } } } /* Location: D:\Program Files\Serviio\lib\serviio.jar * Qualified Name: org.serviio.upnp.service.contentdirectory.definition.XBox360ContentDirectoryDefinitionFilter * JD-Core Version: 0.6.2 */
D
module d.llvm.codegen; import d.ir.expression; import d.ir.statement; import d.ir.symbol; import d.ir.type; import d.llvm.string; import d.llvm.symbol; import d.llvm.type; import d.object; import util.visitor; import llvm.c.analysis; import llvm.c.core; import llvm.c.target; final class CodeGenPass { import d.context.context; Context context; private SymbolGen symbolGen; private TypeGen typeGen; private StringGen stringGen; DruntimeGen druntimeGen; ObjectReference object; LLVMTargetDataRef targetData; LLVMContextRef llvmCtx; LLVMBuilderRef builder; LLVMModuleRef dmodule; LLVMValueRef thisPtr; LLVMValueRef lpContext; LLVMValueRef[] catchClauses; enum BlockKind { Exit, Success, Failure, Catch, } struct Block { BlockKind kind; Statement statement; LLVMBasicBlockRef landingPadBB; LLVMBasicBlockRef unwindBB; } Block[] unwindBlocks; LLVMValueRef unlikelyBranch; uint profKindID; this(Context context, string name, LLVMTargetDataRef targetData) { this.context = context; this.targetData = targetData; symbolGen = new SymbolGen(this); typeGen = new TypeGen(this); stringGen = new StringGen(this); druntimeGen = new DruntimeGen(this); llvmCtx = LLVMContextCreate(); builder = LLVMCreateBuilderInContext(llvmCtx); import std.string; dmodule = LLVMModuleCreateWithNameInContext(name.toStringz(), llvmCtx); LLVMValueRef[3] branch_metadata; auto id = "branch_weights"; branch_metadata[0] = LLVMMDStringInContext(llvmCtx, id.ptr, cast(uint) id.length); branch_metadata[1] = LLVMConstInt(LLVMInt32TypeInContext(llvmCtx), 65536, false); branch_metadata[2] = LLVMConstInt(LLVMInt32TypeInContext(llvmCtx), 0, false); unlikelyBranch = LLVMMDNodeInContext(llvmCtx, branch_metadata.ptr, cast(uint) branch_metadata.length); id = "prof"; profKindID = LLVMGetMDKindIDInContext(llvmCtx, id.ptr, cast(uint) id.length); } Module visit(Module m) { // Dump module content on failure (for debug purpose). scope(failure) LLVMDumpModule(dmodule); foreach(decl; m.members) { visit(decl); } checkModule(); return m; } auto visit(Symbol s) { return symbolGen.visit(s); } auto visit(TypeSymbol s) { return symbolGen.visit(s); } auto visit(Variable v) { return symbolGen.genCached(v); } auto visit(Function f) { return symbolGen.genCached(f); } auto getTypeInfo(TypeSymbol s) { return typeGen.getTypeInfo(s); } auto getVtbl(Class c) { return typeGen.getVtbl(c); } auto visit(Type t) { return typeGen.visit(t); } auto visit(FunctionType t) { return typeGen.visit(t); } auto buildStructType(Struct s) { return typeGen.visit(s); } auto buildUnionType(Union u) { return typeGen.visit(u); } auto buildClassType(Class c) { return typeGen.visit(c); } auto buildEnumType(Enum e) { return typeGen.visit(e); } auto getContext(Function f) { return symbolGen.getContext(f); } auto buildContextType(Function f) { return typeGen.visit(f); } auto buildDString(string str) { return stringGen.buildDString(str); } auto checkModule() { char* msg; if(LLVMVerifyModule(dmodule, LLVMVerifierFailureAction.ReturnStatus, &msg)) { scope(exit) LLVMDisposeMessage(msg); import std.c.string; auto error = msg[0 .. strlen(msg)].idup; throw new Exception(error); } } } final class DruntimeGen { private CodeGenPass pass; alias pass this; private LLVMValueRef[string] cache; this(CodeGenPass pass) { this.pass = pass; } private auto getNamedFunction(string name, lazy LLVMTypeRef type) { return cache.get(name, cache[name] = { import std.string; return LLVMAddFunction(pass.dmodule, name.toStringz(), type); }()); } private auto getNamedFunction(string name, LLVMValueRef function(CodeGenPass) build) { return cache.get(name, cache[name] = build(pass)); } auto getAssert() { // TODO: LLVMAddFunctionAttr(fun, LLVMAttribute.NoReturn); return getNamedFunction("_d_assert", LLVMFunctionType(LLVMVoidTypeInContext(llvmCtx), [LLVMStructTypeInContext(llvmCtx, [LLVMInt64TypeInContext(llvmCtx), LLVMPointerType(LLVMInt8TypeInContext(llvmCtx), 0)].ptr, 2, false), LLVMInt32TypeInContext(llvmCtx)].ptr, 2, false)); } auto getAssertMessage() { // TODO: LLVMAddFunctionAttr(fun, LLVMAttribute.NoReturn); return getNamedFunction("_d_assert_msg", LLVMFunctionType(LLVMVoidTypeInContext(llvmCtx), [LLVMStructTypeInContext(llvmCtx, [LLVMInt64TypeInContext(llvmCtx), LLVMPointerType(LLVMInt8TypeInContext(llvmCtx), 0)].ptr, 2, false), LLVMStructTypeInContext(llvmCtx, [LLVMInt64TypeInContext(llvmCtx), LLVMPointerType(LLVMInt8TypeInContext(llvmCtx), 0)].ptr, 2, false), LLVMInt32TypeInContext(llvmCtx)].ptr, 3, false)); } auto getArrayBound() { // TODO: LLVMAddFunctionAttr(fun, LLVMAttribute.NoReturn); return getNamedFunction("_d_arraybounds", LLVMFunctionType(LLVMVoidTypeInContext(llvmCtx), [LLVMStructTypeInContext(llvmCtx, [LLVMInt64TypeInContext(llvmCtx), LLVMPointerType(LLVMInt8TypeInContext(llvmCtx), 0)].ptr, 2, false), LLVMInt32TypeInContext(llvmCtx)].ptr, 2, false)); } auto getAllocMemory() { return getNamedFunction("_d_allocmemory", (p) { auto arg = LLVMInt64TypeInContext(p.llvmCtx); auto type = LLVMFunctionType(LLVMPointerType(LLVMInt8TypeInContext(p.llvmCtx), 0), &arg, 1, false); auto fun = LLVMAddFunction(p.dmodule, "_d_allocmemory", type); // Trying to get the patch into LLVM // LLVMAddReturnAttr(fun, LLVMAttribute.NoAlias); return fun; }); } auto getEhTypeidFor() { // TODO: LLVMAddFunctionAttr(fun, LLVMAttribute.NoAlias); return getNamedFunction("llvm.eh.typeid.for", LLVMFunctionType(LLVMInt32TypeInContext(llvmCtx), [LLVMPointerType(LLVMInt8TypeInContext(llvmCtx), 0)].ptr, 1, false)); } }
D