code
stringlengths
3
10M
language
stringclasses
31 values
/* Copyright: Marcelo S. N. Mancini (Hipreme|MrcSnm), 2018 - 2021 License: [https://creativecommons.org/licenses/by/4.0/|CC BY-4.0 License]. Authors: Marcelo S. N. Mancini Copyright Marcelo S. N. Mancini 2018 - 2021. Distributed under the CC BY-4.0 License. (See accompanying file LICENSE.txt or copy at https://creativecommons.org/licenses/by/4.0/ */ module hip.hiprenderer.backend.gl.glvertex; version(OpenGL): import hip.hiprenderer.backend.gl.glrenderer; import hip.error.handler; import hip.util.conv; import hip.config.opts; import hip.hiprenderer.renderer; import hip.hiprenderer.shader; import hip.hiprenderer.vertex; private int getGLUsage(HipBufferUsage usage) { final switch(usage) with(HipBufferUsage) { case STATIC: return GL_STATIC_DRAW; case DEFAULT: case DYNAMIC: return GL_DYNAMIC_DRAW; } } private int getGLAttributeType(HipAttributeType _t) { final switch(_t) with(HipAttributeType) { case Rgba32: return GL_UNSIGNED_BYTE; case Float: return GL_FLOAT; case Int: return GL_INT; case Uint: return GL_UNSIGNED_INT; case Bool: return GL_BOOL; } } private ubyte isGLAttributeNormalized(HipAttributeType _t) { final switch(_t) with(HipAttributeType) { case Rgba32: return GL_TRUE; case Float: return GL_FALSE; case Int: return GL_FALSE; case Uint: return GL_FALSE; case Bool: return GL_FALSE; } } class Hip_GL3_VertexBufferObject : IHipVertexBufferImpl { immutable int usage; size_t size; uint vbo; private __gshared Hip_GL3_VertexBufferObject boundVbo; this(size_t size, HipBufferUsage usage) { this.size = size; this.usage = getGLUsage(usage); glCall(() => glGenBuffers(1, &this.vbo)); } void bind() { if(boundVbo !is this) { glCall(()=>glBindBuffer(GL_ARRAY_BUFFER, this.vbo)); boundVbo = this; } } void unbind() { if(boundVbo is this) { glCall(()=>glBindBuffer(GL_ARRAY_BUFFER, 0)); boundVbo = null; } } void setData(size_t size, const(void*) data) { this.size = size; this.bind(); glCall(() => glBufferData(GL_ARRAY_BUFFER, size, cast(void*)data, this.usage)); } void updateData(int offset, size_t size, const(void*) data) { if(size + offset > this.size) { ErrorHandler.assertExit( false, "Tried to set data with size "~to!string(size)~"and offset "~to!string(offset)~ "for vertex buffer with size "~to!string(this.size)); } this.bind(); glCall(() => glBufferSubData(GL_ARRAY_BUFFER, offset, size, data)); } ~this(){glCall(() => glDeleteBuffers(1, &this.vbo));} } class Hip_GL3_IndexBufferObject : IHipIndexBufferImpl { immutable int usage; size_t size; index_t count; uint ebo; private __gshared Hip_GL3_IndexBufferObject boundEbo; this(index_t count, HipBufferUsage usage) { this.size = index_t.sizeof*count; this.count = count; this.usage = getGLUsage(usage); glCall(() => glGenBuffers(1, &this.ebo)); } void bind() { if(boundEbo !is this) { glCall(() => glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this.ebo)); boundEbo = this; } } void unbind() { if(boundEbo is this) { glCall(() => glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)); boundEbo = null; } } void setData(index_t count, const index_t* data) { this.count = count; this.size = index_t.sizeof*count; this.bind(); glCall(() => glBufferData(GL_ELEMENT_ARRAY_BUFFER, index_t.sizeof*count, cast(void*)data, this.usage)); } void updateData(int offset, index_t count, const index_t* data) { ErrorHandler.assertExit((offset+count)*index_t.sizeof <= size); this.bind(); glCall(() => glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, offset, count*index_t.sizeof, cast(void*)data)); } ~this(){glCall(() => glDeleteBuffers(1, &this.ebo));} } //Used as a wrapper class Hip_GL_VertexArrayObject : IHipVertexArrayImpl { import hip.util.data_structures; IHipVertexBufferImpl vbo; IHipIndexBufferImpl ebo; private alias VAOInfo = Pair!(HipVertexAttributeInfo, uint, "info", "stride"); VAOInfo[] vaoInfos; bool isWaitingCreation = false; private __gshared Hip_GL_VertexArrayObject boundVAO; void bind(IHipVertexBufferImpl vbo, IHipIndexBufferImpl ebo) { if(vbo is null) { isWaitingCreation = true; return; } else this.vbo = vbo; if(ebo is null) { isWaitingCreation = true; return; } else this.ebo = ebo; isWaitingCreation = false; if(boundVAO !is this) { vbo.bind(); ebo.bind(); foreach(vao; vaoInfos) { glCall(() => glEnableVertexAttribArray(vao.info.index)); glCall(() => glVertexAttribPointer( vao.info.index, vao.info.count, getGLAttributeType(vao.info.valueType), isGLAttributeNormalized(vao.info.valueType), vao.stride, cast(void*)vao.info.offset )); } boundVAO = this; } } void unbind(IHipVertexBufferImpl vbo, IHipIndexBufferImpl ebo) { if(boundVAO is this) { foreach(vao; vaoInfos) { glCall(() => glDisableVertexAttribArray(vao.info.index)); } vbo.unbind(); ebo.unbind(); boundVAO = null; } } void setAttributeInfo(ref HipVertexAttributeInfo info, uint stride) { if(info.index + 1 > vaoInfos.length) vaoInfos.length = info.index + 1; vaoInfos[info.index] = VAOInfo(info, stride); } void createInputLayout(Shader s){} } version(HipGLUseVertexArray) class Hip_GL3_VertexArrayObject : IHipVertexArrayImpl { uint vao; private __gshared Hip_GL3_VertexArrayObject boundVao; this() { glCall(() => glGenVertexArrays(1, &this.vao)); } void bind(IHipVertexBufferImpl vbo, IHipIndexBufferImpl ebo) { if(boundVao !is this) { glCall(() => glBindVertexArray(this.vao)); boundVao = this; } } void unbind(IHipVertexBufferImpl vbo, IHipIndexBufferImpl ebo) { if(boundVao is this) { glCall(() => glBindVertexArray(0)); boundVao = null; } } void setAttributeInfo(ref HipVertexAttributeInfo info, uint stride) { glCall(() => glVertexAttribPointer( info.index, info.count, getGLAttributeType(info.valueType), isGLAttributeNormalized(info.valueType), stride, cast(void*)info.offset )); glCall(() => glEnableVertexAttribArray(info.index)); } void createInputLayout(Shader s){} ~this(){glCall(() => glDeleteVertexArrays(1, &this.vao));} }
D
/root/Bureau/cours/Avance/rustlings/target/rls/debug/build/ryu-d79c1e673b5008b6/build_script_build-d79c1e673b5008b6: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-0.2.8/build.rs /root/Bureau/cours/Avance/rustlings/target/rls/debug/build/ryu-d79c1e673b5008b6/build_script_build-d79c1e673b5008b6.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-0.2.8/build.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-0.2.8/build.rs:
D
import std.stdio; import smack; class MySchedule { public { int totalHours = 30; int mondayH; int tuesdayH; int wednesdayH; int thursdayH; int fridayH; } invariant() { __VERIFIER_assert(totalHours >= mondayH + tuesdayH + wednesdayH + thursdayH + fridayH); } this(int mondayH, int tuesdayH, int wednesdayH, int thursdayH, int fridayH) in { __VERIFIER_assert(mondayH > 0 && mondayH < 9); __VERIFIER_assert(tuesdayH > 0 && tuesdayH < 9); __VERIFIER_assert(wednesdayH > 0 && wednesdayH < 9); __VERIFIER_assert(thursdayH > 0 && thursdayH < 9); __VERIFIER_assert(fridayH > 0 && fridayH < 9); } do { this.mondayH = mondayH; this.tuesdayH = tuesdayH; this.wednesdayH = wednesdayH; this.thursdayH = thursdayH; this.fridayH = fridayH; } void setDayH(int day, int hours) in { __VERIFIER_assert(hours > 0 && hours < 9); __VERIFIER_assert(day > 0 && day < 6); } do { switch(day) { case 1: this.mondayH = hours; break; case 2: this.tuesdayH = hours; break; case 3: this.wednesdayH = hours; break; case 4: this.thursdayH = hours; break; case 5: this.fridayH = hours; break; default: break; } } } int main() { MySchedule schedule = new MySchedule(1, 2, 3, 4, 5); schedule.setDayH(4, 7); schedule.setDayH(3, 8); schedule.setDayH(1, 4); return 0; }
D
/* * 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 glib.gregex; import glib.gtypes; import glib.gerror; import glib.gstring; enum GRegexError { G_REGEX_ERROR_COMPILE, G_REGEX_ERROR_OPTIMIZE, G_REGEX_ERROR_REPLACE, G_REGEX_ERROR_MATCH, G_REGEX_ERROR_INTERNAL, /* These are the error codes from PCRE + 100 */ G_REGEX_ERROR_STRAY_BACKSLASH = 101, G_REGEX_ERROR_MISSING_CONTROL_CHAR = 102, G_REGEX_ERROR_UNRECOGNIZED_ESCAPE = 103, G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER = 104, G_REGEX_ERROR_QUANTIFIER_TOO_BIG = 105, G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS = 106, G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS = 107, G_REGEX_ERROR_RANGE_OUT_OF_ORDER = 108, G_REGEX_ERROR_NOTHING_TO_REPEAT = 109, G_REGEX_ERROR_UNRECOGNIZED_CHARACTER = 112, G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS = 113, G_REGEX_ERROR_UNMATCHED_PARENTHESIS = 114, G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE = 115, G_REGEX_ERROR_UNTERMINATED_COMMENT = 118, G_REGEX_ERROR_EXPRESSION_TOO_LARGE = 120, G_REGEX_ERROR_MEMORY_ERROR = 121, G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND = 125, G_REGEX_ERROR_MALFORMED_CONDITION = 126, G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES = 127, G_REGEX_ERROR_ASSERTION_EXPECTED = 128, G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME = 130, G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = 131, G_REGEX_ERROR_HEX_CODE_TOO_LARGE = 134, G_REGEX_ERROR_INVALID_CONDITION = 135, G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND = 136, G_REGEX_ERROR_INFINITE_LOOP = 140, G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR = 142, G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME = 143, G_REGEX_ERROR_MALFORMED_PROPERTY = 146, G_REGEX_ERROR_UNKNOWN_PROPERTY = 147, G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG = 148, G_REGEX_ERROR_TOO_MANY_SUBPATTERNS = 149, G_REGEX_ERROR_INVALID_OCTAL_VALUE = 151, G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE = 154, G_REGEX_ERROR_DEFINE_REPETION = 155, G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS = 156, G_REGEX_ERROR_MISSING_BACK_REFERENCE = 157, G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE = 158, G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN = 159, G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB = 160, G_REGEX_ERROR_NUMBER_TOO_BIG = 161, G_REGEX_ERROR_MISSING_SUBPATTERN_NAME = 162, G_REGEX_ERROR_MISSING_DIGIT = 163, G_REGEX_ERROR_INVALID_DATA_CHARACTER = 164, G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME = 165, G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED = 166, G_REGEX_ERROR_INVALID_CONTROL_CHAR = 168, G_REGEX_ERROR_MISSING_NAME = 169, G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS = 171, G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES = 172, G_REGEX_ERROR_NAME_TOO_LONG = 175, G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE = 176 } //enum G_REGEX_ERROR = g_regex_error_quark (); extern(C) GQuark g_regex_error_quark (); enum GRegexCompileFlags { G_REGEX_CASELESS = 1 << 0, G_REGEX_MULTILINE = 1 << 1, G_REGEX_DOTALL = 1 << 2, G_REGEX_EXTENDED = 1 << 3, G_REGEX_ANCHORED = 1 << 4, G_REGEX_DOLLAR_ENDONLY = 1 << 5, G_REGEX_UNGREEDY = 1 << 9, G_REGEX_RAW = 1 << 11, G_REGEX_NO_AUTO_CAPTURE = 1 << 12, G_REGEX_OPTIMIZE = 1 << 13, G_REGEX_FIRSTLINE = 1 << 18, G_REGEX_DUPNAMES = 1 << 19, G_REGEX_NEWLINE_CR = 1 << 20, G_REGEX_NEWLINE_LF = 1 << 21, G_REGEX_NEWLINE_CRLF = G_REGEX_NEWLINE_CR | G_REGEX_NEWLINE_LF, G_REGEX_NEWLINE_ANYCRLF = G_REGEX_NEWLINE_CR | 1 << 22, G_REGEX_BSR_ANYCRLF = 1 << 23, G_REGEX_JAVASCRIPT_COMPAT = 1 << 25 } enum GRegexMatchFlags { G_REGEX_MATCH_ANCHORED = 1 << 4, G_REGEX_MATCH_NOTBOL = 1 << 7, G_REGEX_MATCH_NOTEOL = 1 << 8, G_REGEX_MATCH_NOTEMPTY = 1 << 10, G_REGEX_MATCH_PARTIAL = 1 << 15, G_REGEX_MATCH_NEWLINE_CR = 1 << 20, G_REGEX_MATCH_NEWLINE_LF = 1 << 21, G_REGEX_MATCH_NEWLINE_CRLF = G_REGEX_MATCH_NEWLINE_CR | G_REGEX_MATCH_NEWLINE_LF, G_REGEX_MATCH_NEWLINE_ANY = 1 << 22, G_REGEX_MATCH_NEWLINE_ANYCRLF = G_REGEX_MATCH_NEWLINE_CR | G_REGEX_MATCH_NEWLINE_ANY, G_REGEX_MATCH_BSR_ANYCRLF = 1 << 23, G_REGEX_MATCH_BSR_ANY = 1 << 24, G_REGEX_MATCH_PARTIAL_SOFT = G_REGEX_MATCH_PARTIAL, G_REGEX_MATCH_PARTIAL_HARD = 1 << 27, G_REGEX_MATCH_NOTEMPTY_ATSTART = 1 << 28 } struct GRegex; struct GMatchInfo; extern (C) { alias GRegexEvalCallback = gboolean function (const(GMatchInfo) *match_info, GString *result, gpointer user_data); GRegex *g_regex_new (const(gchar) *pattern, GRegexCompileFlags compile_options, GRegexMatchFlags match_options, GError **error); GRegex *g_regex_ref (GRegex *regex); void g_regex_unref (GRegex *regex); const(gchar) *g_regex_get_pattern (const(GRegex) *regex); gint g_regex_get_max_backref (const(GRegex) *regex); gint g_regex_get_capture_count (const(GRegex) *regex); gboolean g_regex_get_has_cr_or_lf (const(GRegex) *regex); gint g_regex_get_max_lookbehind (const(GRegex) *regex); gint g_regex_get_string_number (const(GRegex) *regex, const(gchar) *name); gchar *g_regex_escape_string (const(gchar) *str, gint length); gchar *g_regex_escape_nul (const(gchar) *str, gint length); GRegexCompileFlags g_regex_get_compile_flags (const(GRegex) *regex); GRegexMatchFlags g_regex_get_match_flags (const(GRegex) *regex); /* Matching. */ gboolean g_regex_match_simple (const(gchar) *pattern, const(gchar) *str, GRegexCompileFlags compile_options, GRegexMatchFlags match_options); gboolean g_regex_match (const(GRegex) *regex, const(gchar) *str, GRegexMatchFlags match_options, GMatchInfo **match_info); gboolean g_regex_match_full (const(GRegex) *regex, const(gchar) *str, gssize string_len, gint start_position, GRegexMatchFlags match_options, GMatchInfo **match_info, GError **error); gboolean g_regex_match_all (const(GRegex) *regex, const(gchar) *str, GRegexMatchFlags match_options, GMatchInfo **match_info); gboolean g_regex_match_all_full (const(GRegex) *regex, const(gchar) *str, gssize string_len, gint start_position, GRegexMatchFlags match_options, GMatchInfo **match_info, GError **error); /* String splitting. */ gchar **g_regex_split_simple (const(gchar) *pattern, const(gchar) *str, GRegexCompileFlags compile_options, GRegexMatchFlags match_options); gchar **g_regex_split (const(GRegex) *regex, const(gchar) *str, GRegexMatchFlags match_options); gchar **g_regex_split_full (const(GRegex) *regex, const(gchar) *str, gssize string_len, gint start_position, GRegexMatchFlags match_options, gint max_tokens, GError **error); /* String replacement. */ gchar *g_regex_replace (const(GRegex) *regex, const(gchar) *str, gssize string_len, gint start_position, const(gchar) *replacement, GRegexMatchFlags match_options, GError **error); gchar *g_regex_replace_literal (const(GRegex) *regex, const(gchar) *str, gssize string_len, gint start_position, const(gchar) *replacement, GRegexMatchFlags match_options, GError **error); gchar *g_regex_replace_eval (const(GRegex) *regex, const(gchar) *str, gssize string_len, gint start_position, GRegexMatchFlags match_options, GRegexEvalCallback eval, gpointer user_data, GError **error); gboolean g_regex_check_replacement (const(gchar) *replacement, gboolean *has_references, GError **error); /* Match info */ GRegex *g_match_info_get_regex (const(GMatchInfo) *match_info); const(gchar) *g_match_info_get_string (const(GMatchInfo) *match_info); GMatchInfo *g_match_info_ref (GMatchInfo *match_info); void g_match_info_unref (GMatchInfo *match_info); void g_match_info_free (GMatchInfo *match_info); gboolean g_match_info_next (GMatchInfo *match_info, GError **error); gboolean g_match_info_matches (const(GMatchInfo) *match_info); gint g_match_info_get_match_count (const(GMatchInfo) *match_info); gboolean g_match_info_is_partial_match (const(GMatchInfo) *match_info); gchar *g_match_info_expand_references(const(GMatchInfo) *match_info, const(gchar) *string_to_expand, GError **error); gchar *g_match_info_fetch (const(GMatchInfo) *match_info, gint match_num); gboolean g_match_info_fetch_pos (const(GMatchInfo) *match_info, gint match_num, gint *start_pos, gint *end_pos); gchar *g_match_info_fetch_named (const(GMatchInfo) *match_info, const(gchar) *name); gboolean g_match_info_fetch_named_pos (const(GMatchInfo) *match_info, const(gchar) *name, gint *start_pos, gint *end_pos); gchar **g_match_info_fetch_all (const(GMatchInfo) *match_info); }
D
module data; import batcher : vec2f, vec3f, vec4f, VertexSlice; import track_layer : Vertex; struct Data { enum State { Begin, Middle, End, } float x, y, z; long timestamp; State state; } //Id(12, 89) auto id12_89 = [ Data(2592.73, 29898.1, 0, 20000000, Data.State.Begin), Data(4718.28, 30201.3, 0, 120000000, Data.State.Middle), Data(7217.78, 31579.6, 0, 220000000, Data.State.Middle), Data(8803.98, 31867.5, 0, 320000000, Data.State.Middle), Data(10319.9, 32846.7, 0, 420000000, Data.State.Middle), Data(12101.3, 33290.6, 0, 520000000, Data.State.Middle), Data( 15099, 34126, 0, 620000000, Data.State.Middle), Data(15750.3, 34418.7, 0, 720000000, Data.State.Middle), Data( 18450, 35493.3, 0, 820000000, Data.State.Middle), Data(20338.8, 36117.9, 0, 920000000, Data.State.Middle), Data(22569.5, 36753, 0, 1020000000, Data.State.Middle), Data(23030.3, 37399.1, 0, 1120000000, Data.State.Middle), Data(26894.2, 38076.8, 0, 1220000000, Data.State.Middle), Data(27829.2, 38624.7, 0, 1320000000, Data.State.Middle), Data(30832.9, 39502.2, 0, 1420000000, Data.State.Middle), Data(31785.5, 39910.8, 0, 1520000000, Data.State.Middle), Data(34543.4, 39246.4, 0, 1620000000, Data.State.Middle), Data(36346.9, 38694.4, 0, 1720000000, Data.State.Middle), Data(38273.6, 38011, 0, 1820000000, Data.State.Middle), Data(39485.8, 37357, 0, 1920000000, Data.State.Middle), Data( 42242, 36425.5, 0, 2020000000, Data.State.Middle), Data(43082.6, 36391.4, 0, 2120000000, Data.State.Middle), Data(47068.2, 34976.8, 0, 2220000000, Data.State.Middle), Data(48361.4, 34596.8, 0, 2320000000, Data.State.Middle), Data(50459.5, 34002.1, 0, 2420000000, Data.State.Middle), Data(53024.4, 33244.2, 0, 2520000000, Data.State.Middle), Data(54822.9, 32615.2, 0, 2620000000, Data.State.Middle), Data(56916.5, 31945, 0, 2720000000, Data.State.Middle), Data(59601.7, 31186.4, 0, 2820000000, Data.State.End), ]; //Id( 1, 126) auto id1_126 = [ Data(3135.29, 668.659, 0, 10000000, Data.State.Begin), Data( 4860.4, -85.6403, 0, 110000000, Data.State.Middle), Data(7485.96, -190.656, 0, 210000000, Data.State.Middle), Data(9361.67, 2587.7, 0, 310000000, Data.State.Middle), Data(10817.4, 2053.81, 0, 410000000, Data.State.Middle), Data(12390.7, 2317.39, 0, 510000000, Data.State.Middle), Data(15186.9, 4456.81, 0, 610000000, Data.State.Middle), Data( 15811, 4352.42, 0, 710000000, Data.State.Middle), Data(18040.1, 4411.44, 0, 810000000, Data.State.Middle), Data(20886.9, 4700.86, 0, 910000000, Data.State.Middle), Data(22232.5, 6572.29, 0, 1010000000, Data.State.Middle), Data(23841.5, 7520, 0, 1110000000, Data.State.Middle), Data(25883.6, 8127.31, 0, 1210000000, Data.State.Middle), Data( 27827, 9057.05, 0, 1310000000, Data.State.Middle), Data(29128.5, 9154.44, 0, 1410000000, Data.State.Middle), Data(31602.9, 9282.4, 0, 1510000000, Data.State.Middle), Data(33973.6, 8615.77, 0, 1610000000, Data.State.Middle), Data(37100.9, 8723.32, 0, 1710000000, Data.State.Middle), Data(38716.1, 8272.56, 0, 1810000000, Data.State.Middle), Data(40968.5, 6778.36, 0, 1910000000, Data.State.Middle), Data(41736.1, 6818.2, 0, 2010000000, Data.State.Middle), Data(44605.6, 6152.04, 0, 2110000000, Data.State.Middle), Data(46346.3, 5509.49, 0, 2210000000, Data.State.Middle), Data(47749.2, 4449.36, 0, 2310000000, Data.State.Middle), Data(50347.4, 3547.09, 0, 2410000000, Data.State.Middle), Data(52208.5, 2735.65, 0, 2510000000, Data.State.Middle), Data(54349.9, 2661.61, 0, 2610000000, Data.State.Middle), Data(57004.1, 2121.54, 0, 2710000000, Data.State.Middle), Data(58742.9, 849.437, 0, 2810000000, Data.State.End), ];
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1994-1998 by Symantec * Copyright (C) 2000-2018 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/eh.d, _eh.d) * Documentation: https://dlang.org/phobos/dmd_eh.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/eh.d */ module dmd.eh; import core.stdc.stdio; import core.stdc.stdlib; import core.stdc.string; import dmd.globals; import dmd.backend.cc; import dmd.backend.cdef; import dmd.backend.code; import dmd.backend.code_x86; import dmd.backend.dt; import dmd.backend.el; import dmd.backend.global; import dmd.backend.obj; import dmd.backend.ty; import dmd.backend.type; extern (C++): // Support for D exception handling void error(const(char)* filename, uint linnum, uint charnum, const(char)* format, ...); package(dmd) @property @nogc nothrow auto NPTRSIZE() { return _tysize[TYnptr]; } /**************************** * Generate and output scope table. */ Symbol *except_gentables() { //printf("except_gentables()\n"); if (config.ehmethod == EHmethod.EH_DM && !(funcsym_p.Sfunc.Fflags3 & Feh_none)) { // BUG: alloca() changes the stack size, which is not reflected // in the fixed eh tables. if (Alloca.size) error(null, 0, 0, "cannot mix `core.std.stdlib.alloca()` and exception handling in `%s()`", &funcsym_p.Sident[0]); char[13+5+1] name = void; __gshared int tmpnum; sprintf(name.ptr,"_HandlerTable%d",tmpnum++); Symbol *s = symbol_name(name.ptr,SCstatic,tstypes[TYint]); symbol_keep(s); //symbol_debug(s); except_fillInEHTable(s); outdata(s); // output the scope table objmod.ehtables(funcsym_p,cast(uint)funcsym_p.Ssize,s); } return null; } /********************************************** * Initializes the Symbol s with the contents of the exception handler table. */ /* This is what the type should be on the target machine, not the host compiler * * struct Guard * { * if (EHmethod.EH_DM) * { * uint offset; // offset of start of guarded section (Linux) * uint endoffset; // ending offset of guarded section (Linux) * } * int last_index; // previous index (enclosing guarded section) * uint catchoffset; // offset to catch block from Symbol * void *finally; // finally code to execute * } */ void except_fillInEHTable(Symbol *s) { uint fsize = NPTRSIZE; // target size of function pointer scope dtb = new DtBuilder(); /* void* pointer to start of function (Windows) uint offset of ESP from EBP uint offset from start of function to return code uint nguards; // dimension of guard[] (Linux) Guard guard[]; // sorted such that the enclosing guarded sections come first catchoffset: uint ncatches; // number of catch blocks { void *type; // Symbol representing type uint bpoffset; // EBP offset of catch variable void *handler; // catch handler code } catch[]; */ /* Be careful of this, as we need the sizeof Guard on the target, not * in the compiler. */ uint GUARD_SIZE; if (config.ehmethod == EHmethod.EH_DM) GUARD_SIZE = (global.params.is64bit ? 3*8 : 5*4); else if (config.ehmethod == EHmethod.EH_WIN32) GUARD_SIZE = 3*4; else assert(0); int sz = 0; // Address of start of function if (config.ehmethod == EHmethod.EH_WIN32) { //symbol_debug(funcsym_p); dtb.xoff(funcsym_p,0,TYnptr); sz += fsize; } //printf("ehtables: func = %s, offset = x%x, startblock.Boffset = x%x\n", funcsym_p.Sident, funcsym_p.Soffset, startblock.Boffset); // Get offset of ESP from EBP long spoff = cod3_spoff(); dtb.dword(cast(int)spoff); sz += 4; // Offset from start of function to return code dtb.dword(cast(int)retoffset); sz += 4; // First, calculate starting catch offset int guarddim = 0; // max dimension of guard[] int ndctors = 0; // number of ESCdctor's foreach (b; BlockRange(startblock)) { if (b.BC == BC_try && b.Bscope_index >= guarddim) guarddim = b.Bscope_index + 1; // printf("b.BC = %2d, Bscope_index = %2d, last_index = %2d, offset = x%x\n", // b.BC, b.Bscope_index, b.Blast_index, b.Boffset); if (usednteh & EHcleanup) for (code *c = b.Bcode; c; c = code_next(c)) { if (c.Iop == (ESCAPE | ESCddtor)) ndctors++; } } //printf("guarddim = %d, ndctors = %d\n", guarddim, ndctors); if (config.ehmethod == EHmethod.EH_DM) { dtb.size(guarddim + ndctors); sz += NPTRSIZE; } uint catchoffset = sz + (guarddim + ndctors) * GUARD_SIZE; // Generate guard[] int i = 0; foreach (b; BlockRange(startblock)) { //printf("b = %p, b.Btry = %p, b.offset = %x\n", b, b.Btry, b.Boffset); if (b.BC == BC_try) { assert(b.Bscope_index >= i); if (i < b.Bscope_index) { int fillsize = (b.Bscope_index - i) * GUARD_SIZE; dtb.nzeros( fillsize); sz += fillsize; } i = b.Bscope_index + 1; int nsucc = b.numSucc(); if (config.ehmethod == EHmethod.EH_DM) { //printf("DHandlerInfo: offset = %x", (int)(b.Boffset - startblock.Boffset)); dtb.dword(cast(int)(b.Boffset - startblock.Boffset)); // offset to start of block // Compute ending offset uint endoffset; for (block *bn = b.Bnext; 1; bn = bn.Bnext) { //printf("\tbn = %p, bn.Btry = %p, bn.offset = %x\n", bn, bn.Btry, bn.Boffset); assert(bn); if (bn.Btry == b.Btry) { endoffset = cast(uint)(bn.Boffset - startblock.Boffset); break; } } //printf(" endoffset = %x, prev_index = %d\n", endoffset, b.Blast_index); dtb.dword(endoffset); // offset past end of guarded block } dtb.dword(b.Blast_index); // parent index if (b.jcatchvar) // if try-catch { assert(catchoffset); dtb.dword(catchoffset); dtb.size(0); // no finally handler catchoffset += NPTRSIZE + (nsucc - 1) * (3 * NPTRSIZE); } else // else try-finally { assert(nsucc == 2); dtb.dword(0); // no catch offset block *bhandler = b.nthSucc(1); assert(bhandler.BC == BC_finally); // To successor of BC_finally block bhandler = bhandler.nthSucc(0); // finally handler address if (config.ehmethod == EHmethod.EH_DM) { assert(bhandler.Boffset > startblock.Boffset); dtb.size(bhandler.Boffset - startblock.Boffset); // finally handler offset } else dtb.coff(cast(uint)bhandler.Boffset); } sz += GUARD_SIZE; } } /* Append to guard[] the guard blocks for temporaries that are created and destroyed * within a single expression. These are marked by the special instruction pairs * (ESCAPE | ESCdctor) and (ESCAPE | ESCddtor). */ enum STACKINC = 16; if (usednteh & EHcleanup) { int[STACKINC] stackbuf; int *stack = stackbuf.ptr; int stackmax = STACKINC; int scopeindex = guarddim; foreach (b; BlockRange(startblock)) { /* Set up stack of scope indices */ stack[0] = b.Btry ? b.Btry.Bscope_index : -1; int stacki = 1; uint boffset = cast(uint)b.Boffset; for (code *c = b.Bcode; c; c = code_next(c)) { if (c.Iop == (ESCAPE | ESCdctor)) { code *c2 = code_next(c); if (config.ehmethod == EHmethod.EH_WIN32) nteh_patchindex(c2, scopeindex); if (config.ehmethod == EHmethod.EH_DM) dtb.dword(cast(int)(boffset - startblock.Boffset)); // guard offset // Find corresponding ddtor instruction int n = 0; uint eoffset = boffset; uint foffset; for (; 1; c2 = code_next(c2)) { // https://issues.dlang.org/show_bug.cgi?id=13720 // optimizer might elide the corresponding ddtor if (!c2) goto Lnodtor; if (c2.Iop == (ESCAPE | ESCddtor)) { if (n) n--; else { foffset = eoffset; code *cf = code_next(c2); if (config.ehmethod == EHmethod.EH_WIN32) { nteh_patchindex(cf, stack[stacki - 1]); foffset += calccodsize(cf); cf = code_next(cf); } foffset += calccodsize(cf); while (!cf.isJumpOP()) { cf = code_next(cf); foffset += calccodsize(cf); } // issue 9438 //cf = code_next(cf); //foffset += calccodsize(cf); if (config.ehmethod == EHmethod.EH_DM) dtb.dword(cast(int)(eoffset - startblock.Boffset)); // guard offset break; } } else if (c2.Iop == (ESCAPE | ESCdctor)) { n++; } else eoffset += calccodsize(c2); } //printf("boffset = %x, eoffset = %x, foffset = %x\n", boffset, eoffset, foffset); dtb.dword(stack[stacki - 1]); // parent index dtb.dword(0); // no catch offset if (config.ehmethod == EHmethod.EH_DM) { assert(foffset > startblock.Boffset); dtb.size(foffset - startblock.Boffset); // finally handler offset } else dtb.coff(foffset); // finally handler address if (stacki == stackmax) { // stack[] is out of space; enlarge it int *pi = cast(int *)malloc((stackmax + STACKINC) * int.sizeof); assert(pi); memcpy(pi, stack, stackmax * int.sizeof); if (stack != stackbuf.ptr) free(stack); stack = pi; stackmax += STACKINC; } stack[stacki++] = scopeindex; ++scopeindex; sz += GUARD_SIZE; } else if (c.Iop == (ESCAPE | ESCddtor)) { stacki--; assert(stacki != 0); } Lnodtor: boffset += calccodsize(c); } } if (stack != stackbuf.ptr) free(stack); } // Generate catch[] foreach (b; BlockRange(startblock)) { if (b.BC == BC_try && b.jcatchvar) // if try-catch { int nsucc = b.numSucc(); dtb.size(nsucc - 1); // # of catch blocks sz += NPTRSIZE; for (int j = 1; j < nsucc; ++j) { block *bcatch = b.nthSucc(j); dtb.xoff(bcatch.Bcatchtype,0,TYnptr); dtb.size(cod3_bpoffset(b.jcatchvar)); // EBP offset // catch handler address if (config.ehmethod == EHmethod.EH_DM) { assert(bcatch.Boffset > startblock.Boffset); dtb.size(bcatch.Boffset - startblock.Boffset); // catch handler offset } else dtb.coff(cast(uint)bcatch.Boffset); sz += 3 * NPTRSIZE; } } } assert(sz != 0); s.Sdt = dtb.finish(); }
D
/Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/Objects-normal/x86_64/SCLAlertView.o : /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLAlertView.swift /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLExtensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Laird/Code/Projects/AllergyAlert/Pods/Target\ Support\ Files/SCLAlertView/SCLAlertView-umbrella.h /Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/Objects-normal/x86_64/SCLAlertView~partial.swiftmodule : /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLAlertView.swift /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLExtensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Laird/Code/Projects/AllergyAlert/Pods/Target\ Support\ Files/SCLAlertView/SCLAlertView-umbrella.h /Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/Objects-normal/x86_64/SCLAlertView~partial.swiftdoc : /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLAlertView.swift /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLExtensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Laird/Code/Projects/AllergyAlert/Pods/Target\ Support\ Files/SCLAlertView/SCLAlertView-umbrella.h /Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
/* Copyright (c) 2010 Ola Østtveit 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 Starfield; import std.conv; import std.random; import Entity; import SubSystem.Graphics; import gl3n.linalg; unittest { string[][string] dummyCache; Starfield starfield = new Starfield(new Graphics(dummyCache, 256, 128), 20); assert(starfield.m_stars.length > 0); } // TODO: parallax scrolling stuff class Starfield { invariant() { assert(m_graphics !is null); } public: // density - avg stars per square 'meter' this(Graphics p_graphics, float p_density) { m_graphics = p_graphics; populate(p_density); } void populate(float p_density) { foreach (entity; m_stars) { m_graphics.removeEntity(entity); } m_stars.length = 0; int stars = cast(int)(p_density / m_graphics.zoom); if (stars > 1000) stars = 1000; m_stars.length = stars; for (int n = 0; n < stars; n++) { //Entity star = new Entity(); string[string] starValues; starValues["drawsource"] = "Star"; starValues["radius"] = "0.25"; starValues["hideFromRadar"] = "true"; starValues["angle"] = to!string(uniform(0, 360)); starValues["position"] = to!string(vec3(uniform(-3.0/m_graphics.zoom, 3.0/m_graphics.zoom), uniform(-3.0/m_graphics.zoom, 3.0/m_graphics.zoom), uniform(-5.0, -3.0))); Entity star = new Entity(starValues); m_stars[n] = star; m_graphics.registerEntity(star); } } void draw() { m_graphics.update(); } private: Graphics m_graphics; Entity[] m_stars; }
D
import std.stdio, std.algorithm, std.typecons, std.array, std.range; struct Item { string name; int weight, value; } Item[] knapsack01DinamicProgramming(immutable Item[] items, in int limit) pure nothrow @safe { auto tab = new int[][](items.length + 1, limit + 1); foreach (immutable i, immutable it; items) foreach (immutable w; 1 .. limit + 1) tab[i + 1][w] = (it.weight > w) ? tab[i][w] : max(tab[i][w], tab[i][w - it.weight] + it.value); typeof(return) result; int w = limit; foreach_reverse (immutable i, immutable it; items) if (tab[i + 1][w] != tab[i][w]) { w -= it.weight; result ~= it; } return result; } void main() @safe { enum int limit = 400; immutable Item[] items = [ {"apple", 39, 40}, {"banana", 27, 60}, {"beer", 52, 10}, {"book", 30, 10}, {"camera", 32, 30}, {"cheese", 23, 30}, {"compass", 13, 35}, {"glucose", 15, 60}, {"map", 9, 150}, {"note-case", 22, 80}, {"sandwich", 50, 160}, {"socks", 4, 50}, {"sunglasses", 7, 20}, {"suntan cream", 11, 70}, {"t-shirt", 24, 15}, {"tin", 68, 45}, {"towel", 18, 12}, {"trousers", 48, 10}, {"umbrella", 73, 40}, {"water", 153, 200}, {"waterproof overclothes", 43, 75}, {"waterproof trousers", 42, 70}]; immutable bag = knapsack01DinamicProgramming(items, limit); writefln("Items:\n%-( %s\n%)", bag.map!q{ a.name }.retro); const t = reduce!q{ a[] += [b.weight, b.value] }([0, 0], bag); writeln("\nTotal weight and value: ", t[0] <= limit ? t : [0, 0]); }
D
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/ObservableArray.o : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextField.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Bond.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/QueryableDataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Observable.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISwitch.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UILabel.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/SignalProtocol.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISegmentedControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIRefreshControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarButtonItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIAccessibilityIdentification.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIApplication.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/BNDInvocation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIButton.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISearchBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISlider.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIDatePicker.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxyController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIStepper.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NotificationCenter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/CALayer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIGestureRecognizer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DynamicSubject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableSet.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSLayoutConstraint.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIImageView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITableView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UICollectionView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIActivityIndicatorView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIProgressView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/Observable2DArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableDictionary.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Property.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Modules/Differ.swiftmodule/x86_64.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Modules/ReactiveKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Bond/Bond-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Differ/Differ-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/ReactiveKit/ReactiveKit-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Supporting\ Files/Bond.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/BNDProtocolProxyBase/include/BNDProtocolProxyBase.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Headers/Differ-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Headers/ReactiveKit-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/ReactiveKit/ReactiveKit/ReactiveKit.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/unextended-module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Differ.build/module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/ReactiveKit.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/ObservableArray~partial.swiftmodule : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextField.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Bond.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/QueryableDataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Observable.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISwitch.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UILabel.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/SignalProtocol.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISegmentedControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIRefreshControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarButtonItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIAccessibilityIdentification.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIApplication.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/BNDInvocation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIButton.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISearchBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISlider.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIDatePicker.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxyController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIStepper.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NotificationCenter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/CALayer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIGestureRecognizer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DynamicSubject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableSet.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSLayoutConstraint.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIImageView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITableView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UICollectionView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIActivityIndicatorView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIProgressView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/Observable2DArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableDictionary.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Property.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Modules/Differ.swiftmodule/x86_64.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Modules/ReactiveKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Bond/Bond-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Differ/Differ-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/ReactiveKit/ReactiveKit-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Supporting\ Files/Bond.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/BNDProtocolProxyBase/include/BNDProtocolProxyBase.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Headers/Differ-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Headers/ReactiveKit-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/ReactiveKit/ReactiveKit/ReactiveKit.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/unextended-module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Differ.build/module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/ReactiveKit.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/ObservableArray~partial.swiftdoc : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextField.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Bond.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/QueryableDataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Observable.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISwitch.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UILabel.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/SignalProtocol.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISegmentedControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIRefreshControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarButtonItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIAccessibilityIdentification.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIApplication.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/BNDInvocation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIButton.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISearchBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISlider.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIDatePicker.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxyController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIStepper.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NotificationCenter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/CALayer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIGestureRecognizer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DynamicSubject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableSet.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSLayoutConstraint.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIImageView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITableView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UICollectionView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIActivityIndicatorView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIProgressView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/Observable2DArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableDictionary.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Property.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Modules/Differ.swiftmodule/x86_64.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Modules/ReactiveKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Bond/Bond-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Differ/Differ-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/ReactiveKit/ReactiveKit-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Supporting\ Files/Bond.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/BNDProtocolProxyBase/include/BNDProtocolProxyBase.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Headers/Differ-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Headers/ReactiveKit-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/ReactiveKit/ReactiveKit/ReactiveKit.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/unextended-module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Differ.build/module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/ReactiveKit.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
func void b_assignschiffswachenguard(var C_NPC schiffswache) { if((MIS_SHIPISFREE == TRUE) || (MIS_SCVISITSHIP == LOG_RUNNING)) { if(schiffswache.voice == 4) { AI_Output(self,other,"DIA_Pal_Schiffswache_Ambient_04_00"); //Sledujeme tě. Nezapomínej na to. }; if(schiffswache.voice == 9) { AI_Output(self,other,"DIA_Pal_Schiffswache_Ambient_09_01"); //Dokud jsi tady, nedělej žádné potíže. }; if(schiffswache.voice == 12) { AI_Output(self,other,"DIA_Pal_Schiffswache_Ambient_12_02"); //Ani nepomysli na to, že bys tu mohl něco ukrást, jasné? }; AI_StopProcessInfos(schiffswache); Npc_SetRefuseTalk(schiffswache,60); Npc_SetRefuseTalk(pal_220_schiffswache,60); Npc_SetRefuseTalk(pal_221_schiffswache,60); Npc_SetRefuseTalk(pal_222_schiffswache,60); Npc_SetRefuseTalk(pal_223_schiffswache,60); Npc_SetRefuseTalk(pal_224_schiffswache,60); Npc_SetRefuseTalk(pal_225_schiffswache,60); Npc_SetRefuseTalk(pal_226_schiffswache,60); Npc_SetRefuseTalk(pal_227_schiffswache,60); Npc_SetRefuseTalk(pal_228_schiffswache,60); } else { b_say(self,other,"$ALARM"); AI_StopProcessInfos(self); b_attack(self,other,AR_GUARDSTOPSINTRUDER,1); Npc_SetRefuseTalk(schiffswache,20); Npc_SetRefuseTalk(pal_220_schiffswache,20); Npc_SetRefuseTalk(pal_221_schiffswache,20); Npc_SetRefuseTalk(pal_222_schiffswache,20); Npc_SetRefuseTalk(pal_223_schiffswache,20); Npc_SetRefuseTalk(pal_224_schiffswache,20); Npc_SetRefuseTalk(pal_225_schiffswache,20); Npc_SetRefuseTalk(pal_226_schiffswache,20); Npc_SetRefuseTalk(pal_227_schiffswache,20); Npc_SetRefuseTalk(pal_228_schiffswache,20); }; }; func void b_assignschiffswacheninfos(var C_NPC schiffswache) { if(MIS_OCGATEOPEN == TRUE) { if(schiffswache.voice == 4) { AI_Output(self,other,"DIA_Pal_Schiffswache_AmbientKap5_04_00"); //Ti zatracení skřeti vzali útokem Garondův hrad. Musíme jednat rychle. }; if(schiffswache.voice == 9) { AI_Output(self,other,"DIA_Pal_Schiffswache_AmbientKap5_09_01"); //Kdybychom chytili toho zrádce, co otevřel hlavní bránu do hradu, udělali bychom s ním krátký proces. }; if(schiffswache.voice == 12) { AI_Output(self,other,"DIA_Pal_Schiffswache_AmbientKap5_12_02"); //Už nemůžeme déle čekat. Chlapi v Hornickém údolí potřebují naši pomoc dřív, než zaútočí další vlna. }; } else { if(schiffswache.voice == 4) { AI_Output(self,other,"DIA_Pal_Schiffswache_AmbientKap5_04_03"); //Garond žádá úplnou mobilizaci. Do Hornického údolí se vydáme co nevidět. }; if(schiffswache.voice == 9) { AI_Output(self,other,"DIA_Pal_Schiffswache_AmbientKap5_09_04"); //Skřeti musí dostat pořádnou lekci. }; if(schiffswache.voice == 12) { AI_Output(self,other,"DIA_Pal_Schiffswache_AmbientKap5_12_05"); //Nemůžu se dočkat, až těm skřetům dáme co proto. Začneme už brzo. }; }; AI_StopProcessInfos(schiffswache); }; func void b_assignschiffswachentalk(var C_NPC schiffswache) { if(KAPITEL >= 5) { b_assignschiffswacheninfos(schiffswache); } else { b_assignschiffswachenguard(schiffswache); }; }; func int b_assignschiffswacheninfoconditions(var C_NPC schiffswache) { if((KAPITEL < 5) && (Npc_RefuseTalk(self) == FALSE) && (MIS_SCVISITSHIP != LOG_RUNNING)) { return TRUE; } else if(Npc_IsInState(self,zs_talk)) { return TRUE; }; };
D
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/WebSocket.build/WebSocket+Server.swift.o : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketFrameSequence.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket+Server.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/Exports.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket+Client.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.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/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/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/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/WebSocket.build/WebSocket+Server~partial.swiftmodule : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketFrameSequence.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket+Server.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/Exports.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket+Client.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.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/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/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/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/WebSocket.build/WebSocket+Server~partial.swiftdoc : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketFrameSequence.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket+Server.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/Exports.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocket+Client.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.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/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/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/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/akshara/Projects/TreeHacks2018/TreeHacks2018/DerivedData/SpeakMarvel/Build/Intermediates.noindex/SpeakMarvel.build/Debug-iphonesimulator/SpeakMarvel.build/Objects-normal/x86_64/Player.o : /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/AppDelegate.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Models/Quote.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Controllers/MainViewController.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Controllers/ButtonViewController.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Models/Player.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/CardsCollectionViewLayout.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/akshara/Projects/TreeHacks2018/TreeHacks2018/DerivedData/SpeakMarvel/Build/Intermediates.noindex/SpeakMarvel.build/Debug-iphonesimulator/SpeakMarvel.build/Objects-normal/x86_64/Player~partial.swiftmodule : /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/AppDelegate.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Models/Quote.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Controllers/MainViewController.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Controllers/ButtonViewController.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Models/Player.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/CardsCollectionViewLayout.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/akshara/Projects/TreeHacks2018/TreeHacks2018/DerivedData/SpeakMarvel/Build/Intermediates.noindex/SpeakMarvel.build/Debug-iphonesimulator/SpeakMarvel.build/Objects-normal/x86_64/Player~partial.swiftdoc : /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/AppDelegate.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Models/Quote.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Controllers/MainViewController.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Controllers/ButtonViewController.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/Models/Player.swift /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/CardsCollectionViewLayout.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
D
/Users/TK/projects/smDriver/MyProject/Build/Intermediates/smDriver.build/Debug/smDriver.build/Objects-normal/x86_64/main.o : /Users/TK/projects/smDriver/MyProject/Sources/smDriver/file.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/ame.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/main.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/downloader.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/httpRequest.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/TK/projects/smDriver/MyProject/.build/checkouts/GD--5030097390346150950/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/TK/projects/smDriver/MyProject/Build/Intermediates/smDriver.build/Debug/smDriver.build/Objects-normal/x86_64/main~partial.swiftmodule : /Users/TK/projects/smDriver/MyProject/Sources/smDriver/file.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/ame.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/main.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/downloader.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/httpRequest.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/TK/projects/smDriver/MyProject/.build/checkouts/GD--5030097390346150950/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/TK/projects/smDriver/MyProject/Build/Intermediates/smDriver.build/Debug/smDriver.build/Objects-normal/x86_64/main~partial.swiftdoc : /Users/TK/projects/smDriver/MyProject/Sources/smDriver/file.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/ame.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/main.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/downloader.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/httpRequest.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/TK/projects/smDriver/MyProject/.build/checkouts/GD--5030097390346150950/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; import std.algorithm; immutable MAX = 28123; uint SumOfDivisors(uint n) { uint sum = 1; for (uint i = 2; i * i <= n; ++i) if (n % i == 0) { sum += i; if (i * i < n) sum += n / i; } return sum; } unittest { assert(SumOfDivisors(1) == 1); assert(SumOfDivisors(12) == 16); assert(SumOfDivisors(16) == 15); assert(SumOfDivisors(28) == 28); } uint[] FindAbundantNumbers(uint max) { uint[] abundants; foreach (i; 12 .. max + 1) if (SumOfDivisors(i) > i) abundants ~= i; return abundants; } unittest { assert(FindAbundantNumbers(100) == [12, 18, 20, 24, 30, 36, 40, 42, 48, 54, 56, 60, 66, 70, 72, 78, 80, 84, 88, 90, 96, 100]); } auto FindNumbersWhichAreSumOfTwoAbundants(uint max) { bool[MAX + 1] result; uint[] abundants = FindAbundantNumbers(max); foreach (i; 0 .. abundants.length) foreach (j; i .. abundants.length) { uint sum = abundants[i] + abundants[j]; if (sum <= max) result[sum] = true; } return result; } void main() { uint result; auto arr = FindNumbersWhichAreSumOfTwoAbundants(MAX); foreach (i; 0 .. arr.length) if (!arr[i]) result += i; writeln(result); }
D
/home/arnav/Desktop/rust_proj/covweed/target/debug/deps/futures_io-feed551711b2b215.rmeta: /home/arnav/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.17/src/lib.rs /home/arnav/Desktop/rust_proj/covweed/target/debug/deps/libfutures_io-feed551711b2b215.rlib: /home/arnav/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.17/src/lib.rs /home/arnav/Desktop/rust_proj/covweed/target/debug/deps/futures_io-feed551711b2b215.d: /home/arnav/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.17/src/lib.rs /home/arnav/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.17/src/lib.rs:
D
// Written in the D programming language. /** * * Custom types for TOML's datetimes that add fractional time to D ones. * * License: $(HTTP https://github.com/Kripth/toml/blob/master/LICENSE, MIT) * Authors: Kripth * References: $(LINK https://github.com/toml-lang/toml/blob/master/README.md) * Source: $(HTTP https://github.com/Kripth/toml/blob/master/src/toml/datetime.d, toml/_datetime.d) * */ module toml.datetime; import std.conv : to; import std.datetime : Duration, dur, DateTimeD = DateTime, Date, TimeOfDayD = TimeOfDay; struct DateTime { public Date date; public TimeOfDay timeOfDay; public inout @property DateTimeD dateTime() { return DateTimeD(this.date, this.timeOfDay.timeOfDay); } alias dateTime this; public static pure DateTime fromISOExtString(string str) { Duration frac; if(str.length > 19 && str[19] == '.') { frac = dur!"msecs"(to!ulong(str[20..$])); str = str[0..19]; } auto dt = DateTimeD.fromISOExtString(str); return DateTime(dt.date, TimeOfDay(dt.timeOfDay, frac)); } public inout string toISOExtString() { return this.date.toISOExtString() ~ "T" ~ this.timeOfDay.toString(); } } struct TimeOfDay { public TimeOfDayD timeOfDay; public Duration fracSecs; alias timeOfDay this; public static pure TimeOfDay fromISOExtString(string str) { Duration frac; if(str.length > 8 && str[8] == '.') { frac = dur!"msecs"(to!ulong(str[9..$])); str = str[0..8]; } return TimeOfDay(TimeOfDayD.fromISOExtString(str), frac); } public inout string toISOExtString() { immutable msecs = this.fracSecs.total!"msecs"; if(msecs != 0) { return this.timeOfDay.toISOExtString() ~ "." ~ to!string(msecs); } else { return this.timeOfDay.toISOExtString(); } } }
D
platform/android/Rhodes/jni/src/rhodes.cpp /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/jni/com_rhomobile_rhodes_RhodesService.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/jni/com_rhomobile_rhodes_RhodesAppOptions.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoConf.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoStd.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoPort.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoDefs.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stdio.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/ctype.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_prolog.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/errno.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stdlib.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/pthread.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/stat.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/string /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/debug/_debug.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_cstddef.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_cstdlib.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_cmath.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/math.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_cstring.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/using/cstring /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_algobase.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/climits /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_pair.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/type_traits.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/type_manips.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_move_construct_fwk.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_iterator_base.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ptrs_specialize.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_algobase.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_function_base.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_iterator.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_new.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/../../gabi++/include/new /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/cstddef /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/../../gabi++/include/cstddef /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_cstdio.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_construct.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_fwd.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_iosfwd.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/char_traits.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_cwchar.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_mbstate_t.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_uninitialized.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_base.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_npos.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_operators.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ctraits_fns.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_function.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_function_adaptors.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_range_errors.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_hash.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_hash_fun.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_io.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ostream.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ios.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ios_base.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_stdexcept_base.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_exception.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_locale.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_threads.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_threads.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ctime.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_facets_fwd.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ctype.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/c_locale.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_numpunct.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ios.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_streambuf.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_streambuf.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ostreambuf_iterator.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_ostream.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_num_put.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_iostream_string.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_num_put.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_limits.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/cfloat /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/float.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_limits.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_istream.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_istreambuf_iterator.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_istream.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_num_get.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_num_get.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string_io.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/vector /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_vector.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_vector.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_bvector.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_relops_cont.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/map /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_map.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_tree.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_tree.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/memory /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_tempbuf.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_tempbuf.c /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_raw_storage_iter.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/stl/_auto_ptr.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/logging/RhoLogConf.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoStd.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoMutexLock.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sync/SyncThread.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/logging/RhoLog.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/logging/RhoLogConf.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/StringConverter.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/logging/RhoLogCat.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoPort.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoFatalError.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/db/DBAdapter.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/db/DBResult.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/AutoPointer.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/IRhoThreadImpl.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sqlite/sqlite3.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/db/DBAttrManager.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/IRhoCrypt.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sync/SyncEngine.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/IRhoClassFactory.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/net/INetRequest.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/InputStream.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sync/ISyncProtocol.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sync/SyncSource.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sync/SyncNotify.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/ThreadQueue.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoThread.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoSystem.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/sync/ClientRegister.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/JNIRhodes.h /Users/karamon/SDK/android-ndk/sources/cxx-stl/stlport/stlport/assert.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/common/RhoDefs.h /Users/karamon/Projects/rhodes/vd-mobile/bin/tmp/include/genconfig.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/details/rhojava.inc /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/RhoClassFactory.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/net/ssl.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/curl.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/curlver.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/curlbuild.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/curlrules.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/easy.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/multi.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/../shared/curl/include/curl/curl.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/sslimpl.h
D
import std.stdio; import std.conv; import std.math; void main() { ulong n; readf("%s", &n); ulong tmax = n-1; ulong tmin = tmax; ulong[] d = [1]; foreach (i; 2..n.to!double.sqrt().to!ulong + 1) { if (0 != n % i) { continue; } d ~= i; } ulong nd = d.length; foreach (i; 0..nd) { foreach (j; i..nd) { ulong a = d[i]; ulong b = d[j]; if (0 != n % (a*b)) { continue; } ulong c = n / a / b; ulong x = a + b + c - 3; tmin = (tmin <= x) ? tmin : x; } } writeln(tmin, " ", tmax); }
D
/** * Skadi.d Web Framework * * Authors: Faianca * Copyright: Copyright (c) 2015 Faianca * License: MIT License, see LICENSE */ module Application.PostBundle.Services.TestService; import skadi.framework; class TestService { string getLol() { return "lol"; } }
D
import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop, core.stdc.stdio; immutable long MAX = 2*10^^6+1; immutable long MOD = 10^^9+7; long powmod(long a, long x, long m) { a %= m; long ret = 1; while (x) { if (x % 2) ret = ret * a % m; a = a * a % m; x /= 2; } return ret; } void main() { auto modinv = new long[](MAX); modinv[0] = modinv[1] = 1; foreach(i; 2..MAX) { modinv[i] = modinv[MOD % i] * (MOD - MOD / i) % MOD; } auto f_mod = new long[](MAX); auto f_modinv = new long[](MAX); f_mod[0] = f_mod[1] = 1; f_modinv[0] = f_modinv[1] = 1; foreach(i; 2..MAX) { f_mod[i] = (i * f_mod[i-1]) % MOD; f_modinv[i] = (modinv[i] * f_modinv[i-1]) % MOD; } long nck(long n, long k) { return f_mod[n] * f_modinv[n-k] % MOD * f_modinv[k] % MOD; } auto s = readln.split.map!(to!long); auto N = s[0]; auto M = s[1]; long ans = 0; foreach (i; 0..M) { long p = nck(M, i) * powmod(M-i, N, MOD) % MOD; if (i % 2 == 0) ans = (ans + p) % MOD; else { ans = (ans - p) % MOD; ans = (ans + MOD) % MOD; } } writeln((ans + MOD) % MOD); }
D
/home/dart/Documents/doc/rust_start/open_macro2/main/target/rls/debug/deps/main-41cdcdb987529b23.rmeta: src/main.rs /home/dart/Documents/doc/rust_start/open_macro2/main/target/rls/debug/deps/main-41cdcdb987529b23.d: src/main.rs src/main.rs:
D
// REQUIRED_ARGS: import core.stdc.stdarg; extern(C) { int printf(const char*, ...); version(Windows) { int _snprintf(char*, size_t, const char*, ...); alias _snprintf snprintf; } else int snprintf(char*, size_t, const char*, ...); } /*************************************/ // https://www.digitalmars.com/d/archives/digitalmars/D/bugs/4766.html // Only with -O real randx() { return 1.2; } void test1() { float x10=randx(); float x11=randx(); float x20=randx(); float x21=randx(); float y10=randx(); float y11=randx(); float y20=randx(); float y21=randx(); float tmp=( x20*x21 + y10*y10 + y10*y11 + y11*y11 + y11*y20 + y20*y20 + y10*y21 + y11*y21 + y21*y21); assert(tmp > 0); } /*************************************/ void test2() { double x10=randx(); double x11=randx(); double x20=randx(); double x21=randx(); double y10=randx(); double y11=randx(); double y20=randx(); double y21=randx(); double tmp=( x20*x21 + y10*y10 + y10*y11 + y11*y11 + y11*y20 + y20*y20 + y10*y21 + y11*y21 + y21*y21); assert(tmp > 0); } /*************************************/ void test3() { real x10=randx(); real x11=randx(); real x20=randx(); real x21=randx(); real y10=randx(); real y11=randx(); real y20=randx(); real y21=randx(); real tmp=( x20*x21 + y10*y10 + y10*y11 + y11*y11 + y11*y20 + y20*y20 + y10*y21 + y11*y21 + y21*y21); assert(tmp > 0); } /*************************************/ void test4() { printf("main() : (-128 >= 0)=%s, (-128 <= 0)=%s\n", cast(char*)(-128 >= 0 ? "true" : "false"), cast(char*)(-128 <= 0 ? "true" : "false")); printf("main() : (128 >= 0)=%s, (128 <= 0)=%s\n", cast(char*)(128 >= 0 ? "true" : "false"), cast(char*)(128 <= 0 ? "true" : "false")); assert((-128 >= 0 ? "true" : "false") == "false"), assert((-128 <= 0 ? "true" : "false") == "true"); assert((+128 >= 0 ? "true" : "false") == "true"), assert((+128 <= 0 ? "true" : "false") == "false"); } /*************************************/ int foo5() { assert(0); } // No return. int abc5() { printf("foo = %d\n", foo5()); return 0; } void test5() { } /*************************************/ class A9 { this(int[] params ...) { for (int i = 0; i < params.length; i++) { assert(params[i] == i + 1); } } } class B9 { this() { init(); } private void init() { A9 test1 = new A9(1, 2, 3); A9 test2 = new A9(1, 2, 3, 4); int[3] arg; arg[0]=1, arg[1]=2, arg[2]=3; A9 test3 = new A9(arg); } } void test9() { B9 test2 = new B9(); } /*************************************/ void test10() { auto i = 5u; auto s = typeid(typeof(i)).toString; printf("%.*s\n", cast(int)s.length, s.ptr); assert(typeid(typeof(i)) == typeid(uint)); } /*************************************/ void test11() { printf("%d\n", 3); printf("xhello world!\n"); } /*************************************/ real x16; void foo16() { x16 = -x16; } void bar16() { return foo16(); } void test16() { x16=2; bar16(); assert(x16==-2); } /*************************************/ class Bar17 { this(...) {} } class Foo17 { void opBinary(string op : "+") (Bar17 b) {} } void test17() { auto f = new Foo17; f + new Bar17; } /*************************************/ template u18(int n) { static if (n==1) { int a = 1; } else int b = 4; } void test18() { mixin u18!(2); assert(b == 4); } /*************************************/ class DP { private: void I(char[] p) { I(p[1..p.length]); } } void test19() { } /*************************************/ struct Struct20 { int i; } void test20() { auto s = new Struct20; s.i = 7; } /*************************************/ class C21(float f) { float ff = f; } void test21() { auto a = new C21!(1.2); C21!(1.2) b = new C21!(1.2); } /*************************************/ const int c23 = b23 * b23; const int a23 = 1; const int b23 = a23 * 3; template T23(int n) { int[n] x23; } mixin T23!(c23); void test23() { assert(x23.length==9); } /*************************************/ template cat(int n) { const int dog = n; } const char [] bird = "canary"; const int sheep = cat!(bird.length).dog; void test25() { assert(sheep == 6); } /*************************************/ void test27() { int x; string s = (int*function(int ...)[]).mangleof; printf("%.*s\n", cast(int)s.length, s.ptr); assert((int*function(int ...)[]).mangleof == "APFiXPi"); assert(typeof(x).mangleof == "i"); assert(x.mangleof == "_D6test226test27FZ1xi"); } /*************************************/ void test29() { ulong a = 10_000_000_000_000_000, b = 1_000_000_000_000_000; printf("test29\n%llx\n%llx\n%llx\n", a, b, a / b); assert((a / b) == 10); } static assert((10_000_000_000_000_000 / 1_000_000_000_000_000) == 10); /*************************************/ template chook(int n) { const int chook = 3; } template dog(alias f) { const int dog = chook!(f.mangleof.length); } class pig {} const int goose = dog!(pig); void test30() { printf("%d\n", goose); assert(goose == 3); } /*************************************/ template dog31(string sheep) { immutable string dog31 = "daschund"; } void test31() { string duck = dog31!("bird"[1..3]); assert(duck == "daschund"); } /*************************************/ struct particle { int active; /* Active (Yes/No) */ float life; /* Particle Life */ float fade; /* Fade Speed */ float r; /* Red Value */ float g; /* Green Value */ float b; /* Blue Value */ float x; /* X Position */ float y; /* Y Position */ float xi; /* X Direction */ float yi; /* Y Direction */ float xg; /* X Gravity */ float yg; /* Y Gravity */ } particle[10000] particles; void test32() { } /*************************************/ class Foo33 { template foo() { int foo() { return 6; } } } void test33() { Foo33 f = new Foo33; assert(f.foo!()() == 6); with (f) assert(foo!()() == 6); } /*************************************/ template dog34(string duck) { const int dog34 = 2; } void test34() { int aardvark = dog34!("cat" ~ "pig"); assert(aardvark == 2); } /*************************************/ class A35 { private bool quit; void halt() {quit = true;} bool isHalted() {return quit;} } void test35() { auto a = new A35; a.halt; // error here a.halt(); a.isHalted; // error here bool done = a.isHalted; if (a.isHalted) { } } /*************************************/ void test36() { bool q = (0.9 + 3.5L == 0.9L + 3.5L); assert(q); static assert(0.9 + 3.5L == 0.9L + 3.5L); assert(0.9 + 3.5L == 0.9L + 3.5L); } /*************************************/ abstract class Foo37(T) { void bar () { } } class Bar37 : Foo37!(int) { } void test37() { auto f = new Bar37; } /*************************************/ void test38() { auto s=`hello`; assert(s.length==5); assert(s[0]=='h'); assert(s[1]=='e'); assert(s[2]=='l'); assert(s[3]=='l'); assert(s[4]=='o'); } /*************************************/ void test39() { int value=1; string key = "eins"; int[char[]] array; array[key]=value; int* ptr = key in array; assert(value == *ptr); } /*************************************/ void test40() { auto s=r"hello"; assert(s.length==5); assert(s[0]=='h'); assert(s[1]=='e'); assert(s[2]=='l'); assert(s[3]=='l'); assert(s[4]=='o'); } /*************************************/ void test41() { version (Windows) { version(D_InlineAsm){ double a = 1.2; double b = 0.2; double c = 1.4; asm{ movq XMM0, a; movq XMM1, b; addsd XMM1, XMM0; movq c, XMM1; } a += b; b = a-c; b = (b>0) ? b : (-1 * b); assert(b < b.epsilon*4); } } } /*************************************/ const char[] tapir = "some horned animal"; const byte[] antelope = cast(byte []) tapir; void test42() { } /*************************************/ void test43() { string armadillo = "abc" ~ 'a'; assert(armadillo == "abca"); string armadillo2 = 'b' ~ "abc"; assert(armadillo2 == "babc"); } /*************************************/ const uint baboon44 = 3; const int monkey44 = 4; const ape44 = monkey44 * baboon44; void test44() { assert(ape44 == 12); } /*************************************/ class A45 { this() { b = new B(); b.x = 5; // illegal } class B { protected int x; } B b; } void test45() { } /*************************************/ class C46(T) { private T i; // or protected or package } void test46() { C46!(int) c = new C46!(int); // class t4.C46!(int).C46 member i is not accessible c.i = 10; } /*************************************/ void bug5809() { ushort[2] x = void; x[0] = 0; x[1] = 0x1234; ushort *px = &x[0]; uint b = px[0]; assert(px[0] == 0); } /*************************************/ void bug7546() { double p = -0.0; assert(p == 0); } /*************************************/ real poly_asm(real x, real[] A) in { assert(A.length > 0); } do { version (D_InlineAsm_X86) { version (linux) { asm // assembler by W. Bright { // EDX = (A.length - 1) * real.sizeof mov ECX,A[EBP] ; // ECX = A.length dec ECX ; lea EDX,[ECX][ECX*8] ; add EDX,ECX ; add EDX,ECX ; add EDX,ECX ; add EDX,A+4[EBP] ; fld real ptr [EDX] ; // ST0 = coeff[ECX] jecxz return_ST ; fld x[EBP] ; // ST0 = x fxch ST(1) ; // ST1 = x, ST0 = r align 4 ; L2: fmul ST,ST(1) ; // r *= x fld real ptr -12[EDX] ; sub EDX,12 ; // deg-- faddp ST(1),ST ; dec ECX ; jne L2 ; fxch ST(1) ; // ST1 = r, ST0 = x fstp ST(0) ; // dump x align 4 ; return_ST: ; ; } } else version (OSX) { asm // assembler by W. Bright { // EDX = (A.length - 1) * real.sizeof mov ECX,A[EBP] ; // ECX = A.length dec ECX ; lea EDX,[ECX*8] ; add EDX,EDX ; add EDX,A+4[EBP] ; fld real ptr [EDX] ; // ST0 = coeff[ECX] jecxz return_ST ; fld x[EBP] ; // ST0 = x fxch ST(1) ; // ST1 = x, ST0 = r align 4 ; L2: fmul ST,ST(1) ; // r *= x fld real ptr -16[EDX] ; sub EDX,16 ; // deg-- faddp ST(1),ST ; dec ECX ; jne L2 ; fxch ST(1) ; // ST1 = r, ST0 = x fstp ST(0) ; // dump x align 4 ; return_ST: ; ; } } else version (FreeBSD) { asm // assembler by W. Bright { // EDX = (A.length - 1) * real.sizeof mov ECX,A[EBP] ; // ECX = A.length dec ECX ; lea EDX,[ECX][ECX*8] ; add EDX,ECX ; add EDX,ECX ; add EDX,ECX ; add EDX,A+4[EBP] ; fld real ptr [EDX] ; // ST0 = coeff[ECX] jecxz return_ST ; fld x[EBP] ; // ST0 = x fxch ST(1) ; // ST1 = x, ST0 = r align 4 ; L2: fmul ST,ST(1) ; // r *= x fld real ptr -12[EDX] ; sub EDX,12 ; // deg-- faddp ST(1),ST ; dec ECX ; jne L2 ; fxch ST(1) ; // ST1 = r, ST0 = x fstp ST(0) ; // dump x align 4 ; return_ST: ; ; } } else version (Solaris) { asm // assembler by W. Bright { // EDX = (A.length - 1) * real.sizeof mov ECX,A[EBP] ; // ECX = A.length dec ECX ; lea EDX,[ECX][ECX*8] ; add EDX,ECX ; add EDX,ECX ; add EDX,ECX ; add EDX,A+4[EBP] ; fld real ptr [EDX] ; // ST0 = coeff[ECX] jecxz return_ST ; fld x[EBP] ; // ST0 = x fxch ST(1) ; // ST1 = x, ST0 = r align 4 ; L2: fmul ST,ST(1) ; // r *= x fld real ptr -12[EDX] ; sub EDX,12 ; // deg-- faddp ST(1),ST ; dec ECX ; jne L2 ; fxch ST(1) ; // ST1 = r, ST0 = x fstp ST(0) ; // dump x align 4 ; return_ST: ; ; } } else { asm // assembler by W. Bright { // EDX = (A.length - 1) * real.sizeof mov ECX,A[EBP] ; // ECX = A.length dec ECX ; lea EDX,[ECX][ECX*8] ; add EDX,ECX ; add EDX,A+4[EBP] ; fld real ptr [EDX] ; // ST0 = coeff[ECX] jecxz return_ST ; fld x[EBP] ; // ST0 = x fxch ST(1) ; // ST1 = x, ST0 = r align 4 ; L2: fmul ST,ST(1) ; // r *= x fld real ptr -10[EDX] ; sub EDX,10 ; // deg-- faddp ST(1),ST ; dec ECX ; jne L2 ; fxch ST(1) ; // ST1 = r, ST0 = x fstp ST(0) ; // dump x align 4 ; return_ST: ; ; } } } else { printf("Sorry, you don't seem to have InlineAsm_X86\n"); return 0; } } real poly_c(real x, real[] A) in { assert(A.length > 0); } do { ptrdiff_t i = A.length - 1; real r = A[i]; while (--i >= 0) { r *= x; r += A[i]; } return r; } void test47() { real x = 3.1; static real[] pp = [56.1, 32.7, 6]; real r; printf("The result should be %Lf\n",(56.1L + (32.7L + 6L * x) * x)); printf("The C version outputs %Lf\n", poly_c(x, pp)); printf("The asm version outputs %Lf\n", poly_asm(x, pp)); r = (56.1L + (32.7L + 6L * x) * x); assert(r == poly_c(x, pp)); version (D_InlineAsm_X86) assert(r == poly_asm(x, pp)); } /*************************************/ const c48 = 1uL-1; void test48() { assert(c48 == 0); } /*************************************/ template cat49() { static assert(1); // OK static if (1) { static assert(1); // doesn't work static if (1) { static assert(1); // OK const int cat49 = 3; } } } void test49() { const int a = cat49!(); assert(a == 3); } /*************************************/ void test50() { if (auto x = 1) { assert(typeid(typeof(x)) == typeid(int)); assert(x == 1); } else assert(0); if (int x = 1) { assert(typeid(typeof(x)) == typeid(int)); assert(x == 1); } else assert(0); if (1) { } else assert(0); } /*************************************/ void test51() { bool b; assert(b == false); b &= 1; assert(b == false); b |= 1; assert(b == true); b ^= 1; assert(b == false); b = b | true; assert(b == true); b = b & false; assert(b == false); b = b ^ true; assert(b == true); b = !b; assert(b == false); } /*************************************/ alias int function (int) x52; template T52(string str){ const int T52 = 1; } static assert(T52!(x52.mangleof)); void test52() { } /*************************************/ void myfunc(int a1, ...) { va_list argument_list; TypeInfo argument_type; string sa; int ia; double da; assert(_arguments.length == 9); va_start(argument_list, a1); for (int i = 0; i < _arguments.length; ) { if ((argument_type=_arguments[i++]) == typeid(string)) { va_arg(argument_list, sa); switch (i) { case 1: assert(sa == "2"); break; case 7: assert(sa == "8"); break; case 8: assert(sa == "9"); break; case 9: assert(sa == "10"); break; default: printf("i = %d\n", i); assert(false); } } else if (argument_type == typeid(int)) { va_arg(argument_list, ia); assert(ia == i+1); } else if (argument_type == typeid(double)) { va_arg(argument_list, da); const e = i+1; assert((e - 0.0001) < da && da < (e + 0.0001)); } else { assert(false, argument_type.toString()); } } va_end(argument_list); } void test6758() { myfunc(1, 2, 3, 4, 5, 6, 7, 8, "9", "10"); // Fails. myfunc(1, 2.0, 3, 4, 5, 6, 7, 8, "9", "10"); // Works OK. myfunc(1, 2, 3, 4, 5, 6, 7, "8", "9", "10"); // Works OK. myfunc(1, "2", 3, 4, 5, 6, 7, 8, "9", "10"); // Works OK. } /*************************************/ real f18573() { return 1; } void test18573() { cast(void) f18573(); cast(void) f18573(); cast(void) f18573(); cast(void) f18573(); cast(void) f18573(); cast(void) f18573(); cast(void) f18573(); real b = 2; assert(b == 2); /* fails; should pass */ } /*************************************/ int main() { test1(); test2(); test3(); test4(); test5(); test9(); test10(); test11(); test16(); test17(); test18(); test19(); test20(); test21(); test23(); test25(); test27(); test29(); test30(); test31(); test32(); test33(); test34(); test35(); test36(); test37(); test38(); test39(); test40(); test41(); test42(); test43(); test44(); test45(); test46(); bug5809(); bug7546(); test47(); test48(); test49(); test50(); test51(); test52(); test6758(); test18573(); printf("Success\n"); return 0; }
D
/** Pawn class for defining it's behavior. Source: $(PHOBOSSRC libchess/pieces/_pawn.d) Copyright: Copyright Michael Weber Jr. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Michael Weber JR. */ module libchess.pieces.pawn; import libchess.piece; import libchess.defs; class Pawn : Piece { this(int Color) { super(Color == WHITE ? wP : bP, Color); } override string toString() pure nothrow @nogc { return Color == WHITE ? "P" : "p"; } override bool isMajor() pure nothrow @nogc const { return false; } override bool isMinor() pure nothrow @nogc const { return false; } override bool isBig() pure nothrow @nogc const { return false; } override bool isPawn() pure nothrow @nogc { return true; } override bool isKnight() pure nothrow @nogc { return false; } override bool isKing() pure nothrow @nogc { return false; } override bool isRQ() pure nothrow @nogc { return false; } override bool isBQ() pure nothrow @nogc { return false; } override bool slides() pure nothrow @nogc { return false; } static int[8] getDir() pure nothrow @nogc { return [ 0, 0, 0, 0, 0, 0, 0, 0 ]; } }
D
module main; import std.stdio, std.algorithm, std.range, std.conv, std.typecons, std.bigint, toolbox, dataset; //Add all the natural numbers below 1000 that are multiples of 3 or 5. auto problem1() { return iota(1000) .filter!(x => !(x % 3) || !(x % 5)) .sum; } //Find the sum of all the even-valued terms in the Fibonacci < 4 million. auto problem2() { return fibonacci(1, 2) .takeWhile!(x => x < 4_000_000) .filter!(x => !(x % 2)) .sum; } //Find the largest prime factor of a composite number. auto problem3() { return 600_851_475_143UL .primefacs[$ - 1]; } //Find the largest palindrome made from the product of two 3-digit numbers. auto problem4() { return iota(101U, 1000U) .map!(x => iota(100U, x) .map!(y => (x * y))) .rfilter!ispalindrome .rmax; } //What is the smallest positive number that is evenly divisible by all of //the numbers from 1 to 20? auto problem5() { return iota(20U, 0U, -1) .reduce!((acc, x) => lcm(acc, x)); } //Find the difference between the sum of the squares of the first one //hundred natural numbers and the square of the sum. auto problem6() { return tuple(1, 100) .bind!((x, y) => tuple( iota(x, y + 1) .map!(n => n ^^ 2) .sum, iota(x, y + 1) .sum .apply!(n => n ^^ 2)) .bind!((sumofsquares, squareofsums) => squareofsums - sumofsquares)); } //What is the 10001st prime number? auto problem7() { return 100_0000U .primes .drop(10_000) .front; } //Find the greatest product of thirteen consecutive digits in the 1000-digit number. auto problem8() { return iotai(0, p8data.length - 13) .map!(x => p8data[x..x + 13] .map!(c => (c - '0').to!ulong) .prod) .max; } //There exists exactly one Pythagorean triplet for which a + b + c = 1000. //Find the product abc. auto problem9() { return iota(1, 1000) .map!(x => iota(x + 1, 1000) .map!(y => tuple(x, y, 1000 - x - y))) .trfilter!((x, y, z) => (y < z) && (x^^2 + y^^2 == z^^2)) .rfront .expand .only .prod; } //Find the sum of all the primes below two million. auto problem10() { return 2_000_000UL.primes .sum; } //What is the greatest product of four adjacent numbers in any direction //(up, down, left, right, or diagonally) in the 20x20 grid? auto problem11() { return tuple(p11data.length, p11data[0].length) .bind!((nrows, ncols) => only(tuple(0, ncols - 3, 0, nrows, 1, 0), tuple(0, ncols - 3, 0, nrows - 3, 1, 1), tuple(0, ncols, 0, nrows - 3, 0, 1), tuple(3, ncols, 0, nrows - 3, -1, 1)) .tmap!((xstart, xend, ystart, yend, xstep, ystep) => iota(xstart, xend) .map!(x => iota(ystart, yend) .map!(y => iotai(0, 3) .map!(n => p11data[y + n*ystep][x + n*xstep]) .prod)))) .rmax; } //What is the value of the first triangle number to have over five //hundred divisors? auto problem12() { return triangle .drop(1) .map!(tri => tuple(tri, tri.primefacs .apply!((in r) => r.uniq .apply!((in u) => u .map!(uf => r .count!(rf => rf == uf) + 1) .prod)))) .dropWhile!(t => t .bind!((tri, nf) => nf <= 500)) .front .bind!((tri, nf) => tri); } //Work out the first ten digits of the sum of the following one hundred //50-digit numbers. auto problem13() { return p13data .map!((in s) => s.to!BigInt) .sum .toDecimalString .take(10); } //The following iterative sequence is defined for the set of positive //integers: n -> n/2 (n is even), n -> 3n + 1 (n is odd). Which starting //number, under one million, produces the longest chain? auto problem15() { return tuple(20UL, 20UL) .bind!((x, y) => (x + y).ncr(x)); } auto testproblem() { return 0; } void main(string[] args) { problem15.writeln; // Lets the user press <Return> before program returns stdin.readln(); }
D
prototype Mst_Default_Zombie(C_Npc) { name[0] = "Зомби"; guild = GIL_ZOMBIE; aivar[AIV_MM_REAL_ID] = ID_ZOMBIE; level = 20; attribute[ATR_STRENGTH] = 100; attribute[ATR_DEXTERITY] = 100; attribute[ATR_HITPOINTS_MAX] = 400; attribute[ATR_HITPOINTS] = 400; attribute[ATR_MANA_MAX] = 100; attribute[ATR_MANA] = 100; protection[PROT_BLUNT] = 50; protection[PROT_EDGE] = 50; protection[PROT_POINT] = 50; protection[PROT_FIRE] = 50; protection[PROT_FLY] = 50; protection[PROT_MAGIC] = 0; damagetype = DAM_EDGE; fight_tactic = FAI_ZOMBIE; senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL; senses_range = PERC_DIST_MONSTER_ACTIVE_MAX; aivar[AIV_MM_FollowTime] = FOLLOWTIME_MEDIUM; aivar[AIV_MM_FollowInWater] = FALSE; start_aistate = ZS_MM_AllScheduler; aivar[AIV_MM_RestStart] = OnlyRoutine; }; func void B_SetVisuals_Zombie01() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",0,DEFAULT,-1); }; func void B_SetVisuals_Zombie02() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",1,DEFAULT,-1); }; func void B_SetVisuals_Zombie03() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,1,"Zom_Head",0,DEFAULT,-1); }; func void B_SetVisuals_Zombie04() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,1,"Zom_Head",1,DEFAULT,-1); }; instance Zombie01(Mst_Default_Zombie) { B_SetVisuals_Zombie01(); Npc_SetToFistMode(self); }; instance Zombie02(Mst_Default_Zombie) { B_SetVisuals_Zombie02(); Npc_SetToFistMode(self); }; instance Zombie03(Mst_Default_Zombie) { B_SetVisuals_Zombie03(); Npc_SetToFistMode(self); }; instance Zombie04(Mst_Default_Zombie) { B_SetVisuals_Zombie04(); Npc_SetToFistMode(self); }; instance Zombie_Addon_Knecht(Mst_Default_Zombie) { name[0] = "Приспешник Ворона"; Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",0,DEFAULT,ITAR_Thorus_Addon); Npc_SetToFistMode(self); }; instance Zombie_Addon_Bloodwyn(Mst_Default_Zombie) { name[0] = "Пробудившийся Бладвин"; level = 25; attribute[ATR_HITPOINTS_MAX] = 1600; attribute[ATR_HITPOINTS] = 1600; Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",0,DEFAULT,ITAR_Thorus_Addon); Npc_SetToFistMode(self); }; func void ZS_Pal_ZOMBIE() { self.senses = SENSE_SMELL; self.senses_range = 2000; Npc_SetPercTime(self,1); Npc_PercEnable(self,PERC_ASSESSPLAYER,B_Pal_ZOMBIE_RISE); self.aivar[AIV_TAPOSITION] = NOTINPOS; }; func int ZS_Pal_ZOMBIE_Loop() { if(self.aivar[AIV_TAPOSITION] == NOTINPOS) { AI_PlayAni(self,"T_DOWN"); self.aivar[AIV_TAPOSITION] = ISINPOS; }; return LOOP_CONTINUE; }; func void ZS_Pal_ZOMBIE_END() { }; func void B_Pal_ZOMBIE_RISE() { if(Npc_GetDistToNpc(self,hero) <= 1400) { AI_PlayAni(self,"T_RISE"); AI_StartState(self,ZS_MM_Attack,0,""); self.bodyStateInterruptableOverride = FALSE; self.start_aistate = ZS_MM_AllScheduler; self.aivar[AIV_MM_RestStart] = OnlyRoutine; }; }; func void B_SetVisuals_Pal_Zombie01() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",0,DEFAULT,itar_pal_skel); }; func void B_SetVisuals_Pal_Zombie02() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",1,DEFAULT,itar_pal_skel); }; func void B_SetVisuals_Pal_Zombie03() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,1,"Zom_Head",0,DEFAULT,itar_pal_skel); }; func void B_SetVisuals_Pal_Zombie04() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,1,"Zom_Head",1,DEFAULT,itar_pal_skel); }; instance Pal_Zombie01(Mst_Default_Zombie) { B_SetVisuals_Pal_Zombie01(); Npc_SetToFistMode(self); start_aistate = ZS_Pal_ZOMBIE; aivar[AIV_MM_RestStart] = OnlyRoutine; }; instance Pal_Zombie02(Mst_Default_Zombie) { B_SetVisuals_Pal_Zombie02(); Npc_SetToFistMode(self); start_aistate = ZS_Pal_ZOMBIE; aivar[AIV_MM_RestStart] = OnlyRoutine; }; instance Pal_Zombie03(Mst_Default_Zombie) { B_SetVisuals_Pal_Zombie03(); Npc_SetToFistMode(self); start_aistate = ZS_Pal_ZOMBIE; aivar[AIV_MM_RestStart] = OnlyRoutine; }; instance Pal_Zombie04(Mst_Default_Zombie) { B_SetVisuals_Pal_Zombie04(); Npc_SetToFistMode(self); start_aistate = ZS_Pal_ZOMBIE; aivar[AIV_MM_RestStart] = OnlyRoutine; }; func void B_SetVisuals_Maya_Zombie01() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",0,DEFAULT,ITAR_MayaZombie_Addon); }; func void B_SetVisuals_Maya_Zombie02() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,0,"Zom_Head",1,DEFAULT,ITAR_MayaZombie_Addon); }; func void B_SetVisuals_Maya_Zombie03() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,1,"Zom_Head",0,DEFAULT,ITAR_MayaZombie_Addon); }; func void B_SetVisuals_Maya_Zombie04() { Mdl_SetVisual(self,"Zombie.mds"); Mdl_SetVisualBody(self,"Zom_Body",0,1,"Zom_Head",1,DEFAULT,ITAR_MayaZombie_Addon); }; instance MayaZombie01(Mst_Default_Zombie) { B_SetVisuals_Maya_Zombie01(); Npc_SetToFistMode(self); start_aistate = ZS_Pal_ZOMBIE; aivar[AIV_MM_RestStart] = OnlyRoutine; }; instance MayaZombie02(Mst_Default_Zombie) { B_SetVisuals_Maya_Zombie02(); Npc_SetToFistMode(self); }; instance MayaZombie03(Mst_Default_Zombie) { B_SetVisuals_Maya_Zombie03(); Npc_SetToFistMode(self); start_aistate = ZS_Pal_ZOMBIE; aivar[AIV_MM_RestStart] = OnlyRoutine; }; instance MayaZombie04(Mst_Default_Zombie) { B_SetVisuals_Maya_Zombie04(); Npc_SetToFistMode(self); }; instance MayaZombie04_Totenw(Mst_Default_Zombie) { B_SetVisuals_Maya_Zombie04(); Npc_SetToFistMode(self); }; instance Summoned_ZOMBIE(Mst_Default_Zombie) { name[0] = NAME_Addon_Summoned_Zombie; guild = GIL_SummonedZombie; aivar[AIV_MM_REAL_ID] = ID_SummonedZombie; level = 0; attribute[ATR_STRENGTH] = 200; attribute[ATR_DEXTERITY] = 200; aivar[AIV_PARTYMEMBER] = TRUE; B_SetAttitude(self,ATT_FRIENDLY); start_aistate = ZS_MM_Rtn_Summoned; B_SetVisuals_Maya_Zombie04(); Npc_SetToFistMode(self); };
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; /// enum EPS = 1e-10; /// double add(double a, double b) { if (abs(a + b) < EPS * (abs(a) + abs(b))) return 0; return a + b; } /// struct P { double x, y; this(double x, double y) { this.x = x; this.y = y; } P opBinary(string op)(P p) { static if (op == "+") return P(add(x, p.x), add(y, p.y)); else static if (op == "-") return P(add(x, -p.x), add(y, -p.y)); else static assert(0, "Operator '"~op~"' not implemented"); } P opBinary(string op)(double d) { static if (op == "*") return P(x * d, y * d); else static if (op == "/") return P(x / d, y / d); else static assert(0, "Operator '"~op~"' not implemented"); } // dot product double dot(P p) { return add(x * p.x, y * p.y); } // cross product double det(P p) { return add(x * p.y, -y * p.x); } double dist(P p) { return sqrt((x - p.x)^^2 + (y - p.y)^^2); } P middle(P p) { return P((x + p.x)/2, (y + p.y)/2); } P rotate(double th) { return P(add(x * cos(th), -y * sin(th)), add(x * sin(th), y * cos(th))); } P rotate(P p, double th) { auto q = P(x - p.x, y - p.y).rotate(th); return P(q.x + p.x, q.y + p.y); } } // 線分p1-p2上に点qがあるか判定 bool on_seg(P p1, P p2, P q) { return (p1 - q).det(p2 - q) == 0 && (p1 - q).dot(p2 - q) <= 0; } void main() { auto N = readln.chomp.to!int; P[] ps; foreach (_; 0..N) { auto xy = readln.split.to!(double[]); ps ~= P(xy[0], xy[1]); } int r; foreach (i; 0..N-1) { foreach (j; i+1..N) { int rr; foreach (p; ps) if (on_seg(ps[i], ps[j], p)) ++rr; r = max(r, rr); } } writeln(r); }
D
import std.stdio; struct X { } extern(C) int _ZN1X1yEv(X* _this); extern(C) X* _Z5SomeXv(); void main() { X *x = _Z5SomeXv(); int i = _ZN1X1yEv(x); writeln("i: ", i); }
D
.hd lstake "take characters from a linked string" 03/23/80 pointer function lstake (ptr, len) pointer ptr integer len .sp Library: vlslb .fs The value of the function is a pointer to a string consisting of the first 'len' characters of the string specified by 'ptr'. .im A string of length 'len' is allocated, and the first 'len' characters of the string specified by 'ptr' are copied into it using 'lsgetc' and 'lsputc'. .ca lsallo, lsgetc, lsputc .bu Locally supported. .sa lsdrop (4), lssubs (4)
D
/** Contains high-level functionality for working with packages. Copyright: © 2012-2013 Matthias Dondorff, © 2012-2016 Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Matthias Dondorff, Sönke Ludwig, Martin Nowak, Nick Sabalausky */ module dub.package_; public import dub.recipe.packagerecipe; import dub.compilers.compiler; import dub.dependency; import dub.description; import dub.recipe.json; import dub.recipe.sdl; import dub.internal.utils; import dub.internal.vibecompat.core.log; import dub.internal.vibecompat.core.file; import dub.internal.vibecompat.data.json; import dub.internal.vibecompat.inet.url; import std.algorithm; import std.array; import std.conv; import std.exception; import std.file; import std.range; import std.string; import std.typecons : Nullable; /// Lists the supported package recipe formats. enum PackageFormat { json, /// JSON based, using the ".json" file extension sdl /// SDLang based, using the ".sdl" file extension } struct FilenameAndFormat { string filename; PackageFormat format; } /// Supported package descriptions in decreasing order of preference. static immutable FilenameAndFormat[] packageInfoFiles = [ {"dub.json", PackageFormat.json}, {"dub.sdl", PackageFormat.sdl}, {"package.json", PackageFormat.json} ]; /// Returns a list of all recognized package recipe file names in descending order of precedence. @property string[] packageInfoFilenames() { return packageInfoFiles.map!(f => cast(string)f.filename).array; } /// Returns the default package recile file name. @property string defaultPackageFilename() { return packageInfoFiles[0].filename; } /** Represents a package, including its sub packages. */ class Package { private { NativePath m_path; NativePath m_infoFile; PackageRecipe m_info; PackageRecipe m_rawRecipe; Package m_parentPackage; } /** Constructs a `Package` using an in-memory package recipe. Params: json_recipe = The package recipe in JSON format recipe = The package recipe in generic format root = The directory in which the package resides (if any). parent = Reference to the parent package, if the new package is a sub package. version_override = Optional version to associate to the package instead of the one declared in the package recipe, or the one determined by invoking the VCS (GIT currently). */ this(Json json_recipe, NativePath root = NativePath(), Package parent = null, string version_override = "") { import dub.recipe.json; PackageRecipe recipe; parseJson(recipe, json_recipe, parent ? parent.name : null); this(recipe, root, parent, version_override); } /// ditto this(PackageRecipe recipe, NativePath root = NativePath(), Package parent = null, string version_override = "") { // save the original recipe m_rawRecipe = recipe.clone; if (!version_override.empty) recipe.version_ = version_override; // try to run git to determine the version of the package if no explicit version was given if (recipe.version_.length == 0 && !parent) { try recipe.version_ = determineVersionFromSCM(root); catch (Exception e) logDebug("Failed to determine version by SCM: %s", e.msg); if (recipe.version_.length == 0) { logDiagnostic("Note: Failed to determine version of package %s at %s. Assuming ~master.", recipe.name, this.path.toNativeString()); // TODO: Assume unknown version here? // recipe.version_ = Version.unknown.toString(); recipe.version_ = Version.masterBranch.toString(); } else logDiagnostic("Determined package version using GIT: %s %s", recipe.name, recipe.version_); } m_parentPackage = parent; m_path = root; m_path.endsWithSlash = true; // use the given recipe as the basis m_info = recipe; fillWithDefaults(); } /** Searches the given directory for package recipe files. Params: directory = The directory to search Returns: Returns the full path to the package file, if any was found. Otherwise returns an empty path. */ static NativePath findPackageFile(NativePath directory) { foreach (file; packageInfoFiles) { auto filename = directory ~ file.filename; if (existsFile(filename)) return filename; } return NativePath.init; } /** Constructs a `Package` using a package that is physically present on the local file system. Params: root = The directory in which the package resides. recipe_file = Optional path to the package recipe file. If left empty, the `root` directory will be searched for a recipe file. parent = Reference to the parent package, if the new package is a sub package. version_override = Optional version to associate to the package instead of the one declared in the package recipe, or the one determined by invoking the VCS (GIT currently). */ static Package load(NativePath root, NativePath recipe_file = NativePath.init, Package parent = null, string version_override = "") { import dub.recipe.io; if (recipe_file.empty) recipe_file = findPackageFile(root); enforce(!recipe_file.empty, "No package file found in %s, expected one of %s" .format(root.toNativeString(), packageInfoFiles.map!(f => cast(string)f.filename).join("/"))); auto recipe = readPackageRecipe(recipe_file, parent ? parent.name : null); auto ret = new Package(recipe, root, parent, version_override); ret.m_infoFile = recipe_file; return ret; } /** Returns the qualified name of the package. The qualified name includes any possible parent package if this package is a sub package. */ @property string name() const { if (m_parentPackage) return m_parentPackage.name ~ ":" ~ m_info.name; else return m_info.name; } /** Returns the directory in which the package resides. Note that this can be empty for packages that are not stored in the local file system. */ @property NativePath path() const { return m_path; } /** Accesses the version associated with this package. Note that this is a shortcut to `this.recipe.version_`. */ @property Version version_() const { return m_parentPackage ? m_parentPackage.version_ : Version(m_info.version_); } /// ditto @property void version_(Version value) { assert(m_parentPackage is null); m_info.version_ = value.toString(); } /** Accesses the recipe contents of this package. The recipe contains any default values and configurations added by DUB. To access the raw user recipe, use the `rawRecipe` property. See_Also: `rawRecipe` */ @property ref inout(PackageRecipe) recipe() inout { return m_info; } /** Accesses the original package recipe. The returned recipe matches exactly the contents of the original package recipe. For the effective package recipe, augmented with DUB generated default settings and configurations, use the `recipe` property. See_Also: `recipe` */ @property ref const(PackageRecipe) rawRecipe() const { return m_rawRecipe; } /** Returns the path to the package recipe file. Note that this can be empty for packages that are not stored in the local file system. */ @property NativePath recipePath() const { return m_infoFile; } /** Returns the base package of this package. The base package is the root of the sub package hierarchy (i.e. the topmost parent). This will be `null` for packages that are not sub packages. */ @property inout(Package) basePackage() inout { return m_parentPackage ? m_parentPackage.basePackage : this; } /** Returns the parent of this package. The parent package is the package that contains a sub package. This will be `null` for packages that are not sub packages. */ @property inout(Package) parentPackage() inout { return m_parentPackage; } /** Returns the list of all sub packages. Note that this is a shortcut for `this.recipe.subPackages`. */ @property inout(SubPackage)[] subPackages() inout { return m_info.subPackages; } /** Returns the list of all build configuration names. Configuration contents can be accessed using `this.recipe.configurations`. */ @property string[] configurations() const { auto ret = appender!(string[])(); foreach (ref config; m_info.configurations) ret.put(config.name); return ret.data; } /** Writes the current recipe contents to a recipe file. The parameter-less overload writes to `this.path`, which must not be empty. The default recipe file name will be used in this case. */ void storeInfo() { storeInfo(m_path); m_infoFile = m_path ~ defaultPackageFilename; } /// ditto void storeInfo(NativePath path) const { enforce(!version_.isUnknown, "Trying to store a package with an 'unknown' version, this is not supported."); auto filename = path ~ defaultPackageFilename; auto dstFile = openFile(filename.toNativeString(), FileMode.createTrunc); scope(exit) dstFile.close(); dstFile.writePrettyJsonString(m_info.toJson()); } /** Returns the package recipe of a non-path-based sub package. For sub packages that are declared within the package recipe of the parent package, this function will return the corresponding recipe. Sub packages declared using a path must be loaded manually (or using the `PackageManager`). */ Nullable!PackageRecipe getInternalSubPackage(string name) { foreach (ref p; m_info.subPackages) if (p.path.empty && p.recipe.name == name) return Nullable!PackageRecipe(p.recipe); return Nullable!PackageRecipe(); } /** Searches for use of compiler-specific flags that have generic alternatives. This will output a warning message for each such flag to the console. */ void warnOnSpecialCompilerFlags() { // warn about use of special flags m_info.buildSettings.warnOnSpecialCompilerFlags(m_info.name, null); foreach (ref config; m_info.configurations) config.buildSettings.warnOnSpecialCompilerFlags(m_info.name, config.name); } /** Retrieves a build settings template. If no `config` is given, this returns the build settings declared at the root level of the package recipe. Otherwise returns the settings declared within the given configuration (excluding those at the root level). Note that this is a shortcut to accessing `this.recipe.buildSettings` or `this.recipe.configurations[].buildSettings`. */ const(BuildSettingsTemplate) getBuildSettings(string config = null) const { if (config.length) { foreach (ref conf; m_info.configurations) if (conf.name == config) return conf.buildSettings; assert(false, "Unknown configuration: "~config); } else { return m_info.buildSettings; } } /** Returns all BuildSettings for the given platform and configuration. This will gather the effective build settings declared in tha package recipe for when building on a particular platform and configuration. Root build settings and configuration specific settings will be merged. */ BuildSettings getBuildSettings(in BuildPlatform platform, string config) const { BuildSettings ret; m_info.buildSettings.getPlatformSettings(ret, platform, this.path); bool found = false; foreach(ref conf; m_info.configurations){ if( conf.name != config ) continue; conf.buildSettings.getPlatformSettings(ret, platform, this.path); found = true; break; } assert(found || config is null, "Unknown configuration for "~m_info.name~": "~config); // construct default target name based on package name if( ret.targetName.empty ) ret.targetName = this.name.replace(":", "_"); // special support for DMD style flags getCompiler("dmd").extractBuildOptions(ret); return ret; } /** Returns the combination of all build settings for all configurations and platforms. This can be useful for IDEs to gather a list of all potentially used files or settings. */ BuildSettings getCombinedBuildSettings() const { BuildSettings ret; m_info.buildSettings.getPlatformSettings(ret, BuildPlatform.any, this.path); foreach(ref conf; m_info.configurations) conf.buildSettings.getPlatformSettings(ret, BuildPlatform.any, this.path); // construct default target name based on package name if (ret.targetName.empty) ret.targetName = this.name.replace(":", "_"); // special support for DMD style flags getCompiler("dmd").extractBuildOptions(ret); return ret; } /** Adds build type specific settings to an existing set of build settings. This function searches the package recipe for overridden build types. If none is found, the default build settings will be applied, if `build_type` matches a default build type name. An exception is thrown otherwise. */ void addBuildTypeSettings(ref BuildSettings settings, in BuildPlatform platform, string build_type) const { if (build_type == "$DFLAGS") { import std.process; string dflags = environment.get("DFLAGS"); settings.addDFlags(dflags.split()); return; } if (auto pbt = build_type in m_info.buildTypes) { logDiagnostic("Using custom build type '%s'.", build_type); pbt.getPlatformSettings(settings, platform, this.path); } else { with(BuildOption) switch (build_type) { default: throw new Exception(format("Unknown build type for %s: '%s'", this.name, build_type)); case "plain": break; case "debug": settings.addOptions(debugMode, debugInfo); break; case "release": settings.addOptions(releaseMode, optimize, inline); break; case "release-debug": settings.addOptions(releaseMode, optimize, inline, debugInfo); break; case "release-nobounds": settings.addOptions(releaseMode, optimize, inline, noBoundsCheck); break; case "unittest": settings.addOptions(unittests, debugMode, debugInfo); break; case "docs": settings.addOptions(syntaxOnly, _docs); break; case "ddox": settings.addOptions(syntaxOnly, _ddox); break; case "profile": settings.addOptions(profile, optimize, inline, debugInfo); break; case "profile-gc": settings.addOptions(profileGC, debugInfo); break; case "cov": settings.addOptions(coverage, debugInfo); break; case "unittest-cov": settings.addOptions(unittests, coverage, debugMode, debugInfo); break; } } } /** Returns the selected configuration for a certain dependency. If no configuration is specified in the package recipe, null will be returned instead. FIXME: The `platform` parameter is currently ignored, as the `"subConfigurations"` field doesn't support platform suffixes. */ string getSubConfiguration(string config, in Package dependency, in BuildPlatform platform) const { bool found = false; foreach(ref c; m_info.configurations){ if( c.name == config ){ if( auto pv = dependency.name in c.buildSettings.subConfigurations ) return *pv; found = true; break; } } assert(found || config is null, "Invalid configuration \""~config~"\" for "~this.name); if( auto pv = dependency.name in m_info.buildSettings.subConfigurations ) return *pv; return null; } /** Returns the default configuration to build for the given platform. This will return the first configuration that is applicable to the given platform, or `null` if none is applicable. By default, only library configurations will be returned. Setting `allow_non_library` to `true` will also return executable configurations. See_Also: `getPlatformConfigurations` */ string getDefaultConfiguration(in BuildPlatform platform, bool allow_non_library = false) const { foreach (ref conf; m_info.configurations) { if (!conf.matchesPlatform(platform)) continue; if (!allow_non_library && conf.buildSettings.targetType == TargetType.executable) continue; return conf.name; } return null; } /** Returns a list of configurations suitable for the given platform. Params: platform = The platform against which to match configurations allow_non_library = If set to true, executable configurations will also be included. See_Also: `getDefaultConfiguration` */ string[] getPlatformConfigurations(in BuildPlatform platform, bool allow_non_library = false) const { auto ret = appender!(string[]); foreach(ref conf; m_info.configurations){ if (!conf.matchesPlatform(platform)) continue; if (!allow_non_library && conf.buildSettings.targetType == TargetType.executable) continue; ret ~= conf.name; } if (ret.data.length == 0) ret.put(null); return ret.data; } /** Determines if the package has a dependency to a certain package. Params: dependency_name = The name of the package to search for config = Name of the configuration to use when searching for dependencies See_Also: `getDependencies` */ bool hasDependency(string dependency_name, string config) const { if (dependency_name in m_info.buildSettings.dependencies) return true; foreach (ref c; m_info.configurations) if ((config.empty || c.name == config) && dependency_name in c.buildSettings.dependencies) return true; return false; } /** Retrieves all dependencies for a particular configuration. This includes dependencies that are declared at the root level of the package recipe, as well as those declared within the specified configuration. If no configuration with the given name exists, only dependencies declared at the root level will be returned. See_Also: `hasDependency` */ const(Dependency[string]) getDependencies(string config) const { Dependency[string] ret; foreach (k, v; m_info.buildSettings.dependencies) ret[k] = v; foreach (ref conf; m_info.configurations) if (conf.name == config) { foreach (k, v; conf.buildSettings.dependencies) ret[k] = v; break; } return ret; } /** Returns a list of all possible dependencies of the package. This list includes all dependencies of all configurations. The same package may occur multiple times with possibly different `Dependency` values. */ PackageDependency[] getAllDependencies() const { auto ret = appender!(PackageDependency[]); getAllDependenciesRange().copy(ret); return ret.data; } // Left as package until the final API for this has been found package auto getAllDependenciesRange() const { return this.recipe.buildSettings.dependencies.byKeyValue .map!(bs => PackageDependency(bs.key, bs.value)) .chain( this.recipe.configurations .map!(c => c.buildSettings.dependencies.byKeyValue .map!(bs => PackageDependency(bs.key, bs.value)) ) .joiner() ); } /** Returns a description of the package for use in IDEs or build tools. */ PackageDescription describe(BuildPlatform platform, string config) const { return describe(platform, getCompiler(platform.compilerBinary), config); } /// ditto PackageDescription describe(BuildPlatform platform, Compiler compiler, string config) const { PackageDescription ret; ret.configuration = config; ret.path = m_path.toNativeString(); ret.name = this.name; ret.version_ = this.version_; ret.description = m_info.description; ret.homepage = m_info.homepage; ret.authors = m_info.authors.dup; ret.copyright = m_info.copyright; ret.license = m_info.license; ret.dependencies = getDependencies(config).keys; // save build settings BuildSettings bs = getBuildSettings(platform, config); BuildSettings allbs = getCombinedBuildSettings(); ret.targetType = bs.targetType; ret.targetPath = bs.targetPath; ret.targetName = bs.targetName; if (ret.targetType != TargetType.none && compiler) ret.targetFileName = compiler.getTargetFileName(bs, platform); ret.workingDirectory = bs.workingDirectory; ret.mainSourceFile = bs.mainSourceFile; ret.dflags = bs.dflags; ret.lflags = bs.lflags; ret.libs = bs.libs; ret.copyFiles = bs.copyFiles; ret.versions = bs.versions; ret.debugVersions = bs.debugVersions; ret.importPaths = bs.importPaths; ret.stringImportPaths = bs.stringImportPaths; ret.preGenerateCommands = bs.preGenerateCommands; ret.postGenerateCommands = bs.postGenerateCommands; ret.preBuildCommands = bs.preBuildCommands; ret.postBuildCommands = bs.postBuildCommands; // prettify build requirements output for (int i = 1; i <= BuildRequirement.max; i <<= 1) if (bs.requirements & cast(BuildRequirement)i) ret.buildRequirements ~= cast(BuildRequirement)i; // prettify options output for (int i = 1; i <= BuildOption.max; i <<= 1) if (bs.options & cast(BuildOption)i) ret.options ~= cast(BuildOption)i; // collect all possible source files and determine their types SourceFileRole[string] sourceFileTypes; foreach (f; allbs.stringImportFiles) sourceFileTypes[f] = SourceFileRole.unusedStringImport; foreach (f; allbs.importFiles) sourceFileTypes[f] = SourceFileRole.unusedImport; foreach (f; allbs.sourceFiles) sourceFileTypes[f] = SourceFileRole.unusedSource; foreach (f; bs.stringImportFiles) sourceFileTypes[f] = SourceFileRole.stringImport; foreach (f; bs.importFiles) sourceFileTypes[f] = SourceFileRole.import_; foreach (f; bs.sourceFiles) sourceFileTypes[f] = SourceFileRole.source; foreach (f; sourceFileTypes.byKey.array.sort()) { SourceFileDescription sf; sf.path = f; sf.role = sourceFileTypes[f]; ret.files ~= sf; } return ret; } private void fillWithDefaults() { auto bs = &m_info.buildSettings; // check for default string import folders if ("" !in bs.stringImportPaths) { foreach(defvf; ["views"]){ if( existsFile(m_path ~ defvf) ) bs.stringImportPaths[""] ~= defvf; } } // check for default source folders immutable hasSP = ("" in bs.sourcePaths) !is null; immutable hasIP = ("" in bs.importPaths) !is null; if (!hasSP || !hasIP) { foreach (defsf; ["source/", "src/"]) { if (existsFile(m_path ~ defsf)) { if (!hasSP) bs.sourcePaths[""] ~= defsf; if (!hasIP) bs.importPaths[""] ~= defsf; } } } // check for default app_main string app_main_file; auto pkg_name = m_info.name.length ? m_info.name : "unknown"; foreach(sf; bs.sourcePaths.get("", null)){ auto p = m_path ~ sf; if( !existsFile(p) ) continue; foreach(fil; ["app.d", "main.d", pkg_name ~ "/main.d", pkg_name ~ "/" ~ "app.d"]){ if( existsFile(p ~ fil) ) { app_main_file = (NativePath(sf) ~ fil).toNativeString(); break; } } } // generate default configurations if none are defined if (m_info.configurations.length == 0) { if (bs.targetType == TargetType.executable) { BuildSettingsTemplate app_settings; app_settings.targetType = TargetType.executable; if (bs.mainSourceFile.empty) app_settings.mainSourceFile = app_main_file; m_info.configurations ~= ConfigurationInfo("application", app_settings); } else if (bs.targetType != TargetType.none) { BuildSettingsTemplate lib_settings; lib_settings.targetType = bs.targetType == TargetType.autodetect ? TargetType.library : bs.targetType; if (bs.targetType == TargetType.autodetect) { if (app_main_file.length) { lib_settings.excludedSourceFiles[""] ~= app_main_file; BuildSettingsTemplate app_settings; app_settings.targetType = TargetType.executable; app_settings.mainSourceFile = app_main_file; m_info.configurations ~= ConfigurationInfo("application", app_settings); } } m_info.configurations ~= ConfigurationInfo("library", lib_settings); } } } package void simpleLint() const { if (m_parentPackage) { if (m_parentPackage.path != path) { if (this.recipe.license.length && this.recipe.license != m_parentPackage.recipe.license) logWarn("Warning: License in subpackage %s is different than it's parent package, this is discouraged.", name); } } if (name.empty) logWarn("Warning: The package in %s has no name.", path); bool[string] cnames; foreach (ref c; this.recipe.configurations) { if (c.name in cnames) logWarn("Warning: Multiple configurations with the name \"%s\" are defined in package \"%s\". This will most likely cause configuration resolution issues.", c.name, this.name); cnames[c.name] = true; } } } private string determineVersionFromSCM(NativePath path) { // On Windows, which is slow at running external processes, // cache the version numbers that are determined using // GIT to speed up the initialization phase. version (Windows) { import std.file : exists, readText; // quickly determine head commit without invoking GIT string head_commit; auto hpath = (path ~ ".git/HEAD").toNativeString(); if (exists(hpath)) { auto head_ref = readText(hpath).strip(); if (head_ref.startsWith("ref: ")) { auto rpath = (path ~ (".git/"~head_ref[5 .. $])).toNativeString(); if (exists(rpath)) head_commit = readText(rpath).strip(); } } // return the last determined version for that commit // not that this is not always correct, most notably when // a tag gets added/removed/changed and changes the outcome // of the full version detection computation auto vcachepath = path ~ ".dub/version.json"; if (existsFile(vcachepath)) { auto ver = jsonFromFile(vcachepath); if (head_commit == ver["commit"].opt!string) return ver["version"].get!string; } } // if no cache file or the HEAD commit changed, perform full detection auto ret = determineVersionWithGIT(path); version (Windows) { // update version cache file if (head_commit.length) { if (!existsFile(path ~".dub")) createDirectory(path ~ ".dub"); atomicWriteJsonFile(vcachepath, Json(["commit": Json(head_commit), "version": Json(ret)])); } } return ret; } // determines the version of a package that is stored in a GIT working copy // by invoking the "git" executable private string determineVersionWithGIT(NativePath path) { import std.process; import dub.semver; auto git_dir = path ~ ".git"; if (!existsFile(git_dir) || !isDir(git_dir.toNativeString)) return null; auto git_dir_param = "--git-dir=" ~ git_dir.toNativeString(); static string exec(scope string[] params...) { auto ret = executeShell(escapeShellCommand(params)); if (ret.status == 0) return ret.output.strip; logDebug("'%s' failed with exit code %s: %s", params.join(" "), ret.status, ret.output.strip); return null; } auto tag = exec("git", git_dir_param, "describe", "--long", "--tags"); if (tag !is null) { auto parts = tag.split("-"); auto commit = parts[$-1]; auto num = parts[$-2].to!int; tag = parts[0 .. $-2].join("-"); if (tag.startsWith("v") && isValidVersion(tag[1 .. $])) { if (num == 0) return tag[1 .. $]; else if (tag.canFind("+")) return format("%s.commit.%s.%s", tag[1 .. $], num, commit); else return format("%s+commit.%s.%s", tag[1 .. $], num, commit); } } auto branch = exec("git", git_dir_param, "rev-parse", "--abbrev-ref", "HEAD"); if (branch !is null) { if (branch != "HEAD") return "~" ~ branch; } return null; }
D
// **************************************************** // B_AssessTalk // ------------ // aufgerufen durch Ansprechen (Wahrnehmung ASSESSTALK) // oder durch B_AssessPlayer (NSC hat Important-Info) // GILT AUCH FÜR MONSTER // **************************************************** func void B_AssessTalk () { // EXIT IF... // ------- FORBIDDEN: Levelinspektor oder Rockefeller wird ignoriert ------ var C_NPC PCL; PCL = Hlp_GetNpc(PC_Levelinspektor); var C_NPC PCR; PCR = Hlp_GetNpc(PC_Rockefeller); if (Hlp_GetInstanceID(other) == Hlp_GetInstanceID(PCL)) || (Hlp_GetInstanceID(other) == Hlp_GetInstanceID(PCR)) { PrintScreen (ConcatStrings("Stimme: ", IntToString(self.voice)), -1, 70, FONT_Screen, 2); PrintScreen ("KEIN HERO!", -1, -1, FONT_Screen, 2); PrintScreen (IntToString(self.aivar[AIV_FollowDist]), -1, 70, FONT_Screen, 2); if (C_NpcIsInQuarter (self) == Q_KASERNE) { PrintScreen ("Q_KASERNE", -1, 30, FONT_Screen, 2); }; if (C_NpcIsInQuarter (self) == Q_GALGEN) { PrintScreen ("Q_GALGEN", -1, 30, FONT_Screen, 2); }; if (C_NpcIsInQuarter (self) == Q_MARKT) { PrintScreen ("Q_MARKT", -1, 30, FONT_Screen, 2); }; if (C_NpcIsInQuarter (self) == Q_TEMPEL) { PrintScreen ("Q_TEMPEL", -1, 30, FONT_Screen, 2); }; if (C_NpcIsInQuarter (self) == Q_UNTERSTADT) { PrintScreen ("Q_UNTERSTADT", -1, 30, FONT_Screen, 2); }; if (C_NpcIsInQuarter (self) == Q_HAFEN) { PrintScreen ("Q_HAFEN", -1, 30, FONT_Screen, 2); }; if (C_NpcIsInQuarter (self) == Q_OBERSTADT) { PrintScreen ("Q_OBERSTADT", -1, 30, FONT_Screen, 2); }; return; }; // ------ Exit-Conditions NUR für Monster if (self.guild > GIL_SEPERATOR_HUM) { // ------ Monster hat keine Info ------ if (Npc_CheckInfo (self, 1) == FALSE) { if (Npc_CheckInfo (self, 0) == FALSE) { return; }; }; }; // ------ Exit-Conditions NUR für Humans ------ if (self.guild < GIL_SEPERATOR_HUM) { // ------ Spieler ist Enemy ------ if (B_AssessEnemy()) { return; }; // ------ Spieler ist Mörder ------ if (B_GetPlayerCrime(self) == CRIME_MURDER) && (C_WantToAttackMurder(self, other)) { B_Attack (self, other, AR_HumanMurderedHuman, 0); return; }; if (C_PlayerIsFakeBandit (self,other) == TRUE) && (self.guild != GIL_BDT) { B_Attack (self,other,AR_GuildEnemy,0); return; }; if (C_RefuseTalk(self,other)) { if C_PlayerHasFakeGuild (self,other) { Npc_ClearAIQueue (self); AI_StartState (self,ZS_CommentFakeGuild , 1, ""); return; } else { B_Say (self, other, "$NOTNOW"); return; }; }; }; // FUNC // ------ Spieler labert NSC an ------ if (self.aivar[AIV_NpcStartedTalk] == FALSE) { if ( C_BodyStateContains(self,BS_WALK) || C_BodyStateContains(self,BS_RUN) ) { B_Say (other,self,"$SC_HEYWAITASECOND"); } else if (!Npc_CanSeeNpc(self, other)) { var int rnd; rnd = Hlp_Random(100); if (rnd <= 25) { B_Say (other,self,"$SC_HEYTURNAROUND"); } else if (rnd <= 50) { B_Say (other,self,"$SC_HEYTURNAROUND02"); } else if (rnd <= 75) { B_Say (other,self,"$SC_HEYTURNAROUND03"); } else if (rnd <= 99) { B_Say (other,self,"$SC_HEYTURNAROUND04"); }; }; }; Npc_ClearAIQueue (self); B_ClearPerceptions (self); // ------ NSC bleibt sitzen oder steht in Ruhe auf bzw. beendet Mobsi in Ruhe ----------------- if (C_BodyStateContains(self, BS_SIT)) { if (self.aivar[AIV_NpcStartedTalk] == TRUE) { AI_StandUpQuick (other); //Spieler anhalten } else { AI_StandUp (other); //Spieler anhalten }; if (Npc_CanSeeNpc(self, other)) { AI_StartState (self, ZS_Talk, 0, ""); //sitzenbleiben } else //nicht sehen { //HACK: Im ObservePlayer kann ein NSC sitzen, ohne daß in der END-Routine des ZS sauber aufgestanden wird (klar, denn ZS_ObservePlayer_End hat kein StandUp o.ä. - darf dies auch nicht haben) if (Npc_IsInState (self, ZS_ObservePlayer)) { AI_StandUp (self); }; AI_StartState (self, ZS_Talk, 1, ""); //aufstehen }; return; } else //nicht sitzen { if (self.aivar[AIV_NpcStartedTalk] == TRUE) { AI_StandUpQuick (self); AI_StandUpQuick (other); //Spieler anhalten } else { AI_StandUp (self); AI_StandUp (other); //Spieler anhalten }; AI_StartState (self, ZS_Talk, 0, ""); //sitzenbleiben return; }; };
D
/Users/go7hic/workspace/Github/Rust-in-action/kt/target/debug/deps/bitflags-0d92ac6ffc2d8ebf.rmeta: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.3.2/src/lib.rs /Users/go7hic/workspace/Github/Rust-in-action/kt/target/debug/deps/bitflags-0d92ac6ffc2d8ebf.d: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.3.2/src/lib.rs /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.3.2/src/lib.rs:
D
/Users/dali/Documents/GitHub/rustlings/target/release/deps/console-533b8bf740d6ebae.rmeta: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/lib.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/common_term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/kb.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/unix_term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/utils.rs /Users/dali/Documents/GitHub/rustlings/target/release/deps/libconsole-533b8bf740d6ebae.rlib: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/lib.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/common_term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/kb.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/unix_term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/utils.rs /Users/dali/Documents/GitHub/rustlings/target/release/deps/console-533b8bf740d6ebae.d: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/lib.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/common_term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/kb.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/unix_term.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/utils.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/lib.rs: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/common_term.rs: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/kb.rs: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/term.rs: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/unix_term.rs: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/utils.rs:
D
module android.java.android.print.PrintDocumentInfo_Builder_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import2 = android.java.java.lang.Class_d_interface; import import0 = android.java.android.print.PrintDocumentInfo_Builder_d_interface; import import1 = android.java.android.print.PrintDocumentInfo_d_interface; @JavaName("PrintDocumentInfo$Builder") final class PrintDocumentInfo_Builder : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import this(string); @Import import0.PrintDocumentInfo_Builder setPageCount(int); @Import import0.PrintDocumentInfo_Builder setContentType(int); @Import import1.PrintDocumentInfo build(); @Import import2.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 = "Landroid/print/PrintDocumentInfo$Builder;"; }
D
import std.string,std.conv,std.process, core.thread, core.memory, std.file, std.path, std.c.windows.windows; import std.stdio, std.math, std.datetime,std.array; void main(string[] args) { string exedir=std.path.dirName(args[0]); StopWatch sw; sw.start(); uint cThreads=4; if(args.length<2) { writeln("Usage: buildlib.exe <targetlibname.lib> %FLAGS%"); writeln("Flags:"); writeln("-i%directory%\t\tSpecify folder where source files are stored"); writeln("-ddoc%macrofile.ddoc%\t\tCreate documentation"); writeln("-docdir%directory%\t\tdocumentation output path; Default is \"%targetlibname%_doc\\\""); writeln(" "); writeln("Buildlib by Alexander Bothe (alexanderbothe.com)"); writeln("This tool compiles all d sources in a directory (by default start directory will be scanned) and outputs an import library."); return; } auto libs=new string[0]; string lib=args[1]; string obj_dir=exedir~"\\objs_"~baseName(lib); bool makeDoc=false; string ddoc, docdir=lib~"_doc"; foreach(i,arg;args[2 .. $]) { if(startsWith(arg,"-i")) { libs~=arg[2 .. $]; continue; } if(startsWith(arg,"-ddoc")) { makeDoc=true; ddoc=arg[5 .. $]; continue; } if(startsWith(arg,"-docdir")) { docdir=arg[7 .. $]; continue; } } string cmp="dmd -c %s -of"~obj_dir~"\\%s"~(makeDoc?( " -D -Dd"~docdir~( ddoc!=""?(" "~ddoc):"" ) ):""); string lnk="lib -c -n -p128 "~lib~" %s"; writeln(cmp); try{ rmdir(obj_dir); }catch{} int dmd(string src) { scope string cmd=std.string.format(cmp,src,baseName(src,".d")~".obj"); writeln(src); return system(cmd); } string[] d_files; // Enumerate all *.d files foreach(scanLib;libs) foreach (DirEntry e; dirEntries(scanLib, SpanMode.breadth)) { if(!isFile(e.name)) continue; if(extension(e.name)!=".d") continue; d_files~=e.name; } if(d_files.length<=10) cThreads=2; if(d_files.length<=6) cThreads=1; writeln(d_files.length," Files to compile"); // Compile them Thread[] cmpThs; int done; int per_th=cast(int)((d_files.length)/cThreads); int k; for(int i; i<cThreads; i++) { Thread tth=new Thread((){ int ti=i; auto tdone=done; auto todo=tdone+per_th; if(ti+1==cThreads || todo>d_files.length) todo=d_files.length; done=todo; foreach(j,src; d_files[tdone .. todo]) { k++; if(dmd(src)!=0) { writeln("Compile Error!\n"); return; } } }); tth.start(); cmpThs~=tth; Thread.sleep(700_000); } foreach(th; cmpThs) th.join(); // Link all together string objs; foreach(src;d_files) { string obj=obj_dir~"\\"~baseName(src,".d")~".obj"; if(!exists(obj)) { writeln(src~" was not built!"); return; } objs~=" "~obj; } writeln(format(lnk,"%objs%")); system(format(lnk,objs)); sw.stop(); long diff=sw.peek().msecs; long th=diff/1000/60/60; long tm=diff/1000/60-th*60; double ts=cast(double)diff/1000-cast(double)tm*60; writeln(format("\nTotal time needed: %s s, %s min, %s h", ts, tm, th)); }
D
/Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/Objects-normal/armv7/DateTime.o : /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/Number.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/UIKit.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/DateTime.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/MCSwift.h /Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/unextended-module.modulemap /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 /Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/Objects-normal/armv7/DateTime~partial.swiftmodule : /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/Number.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/UIKit.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/DateTime.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/MCSwift.h /Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/unextended-module.modulemap /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 /Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/Objects-normal/armv7/DateTime~partial.swiftdoc : /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/Number.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/UIKit.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/DateTime.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/MCSwift.h /Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/unextended-module.modulemap /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
D
/home/shing/Documents/Rust/test2/target/debug/deps/libcrypto_hash-ca787da45b635fa8.rlib: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/lib.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/imp/openssl.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/test.rs /home/shing/Documents/Rust/test2/target/debug/deps/crypto_hash-ca787da45b635fa8.d: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/lib.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/imp/openssl.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/test.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/lib.rs: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/imp/openssl.rs: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/test.rs:
D
//---------------------------------------------------------------------- // Info EXIT //---------------------------------------------------------------------- INSTANCE DIA_Addon_Huno_EXIT (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 999; condition = DIA_Addon_Huno_EXIT_Condition; information = DIA_Addon_Huno_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_Addon_Huno_EXIT_Condition() { return TRUE; }; FUNC VOID DIA_Addon_Huno_EXIT_Info() { AI_StopProcessInfos (self); }; // ************************************************************ // PICK POCKET // ************************************************************ INSTANCE DIA_Addon_Huno_PICKPOCKET (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 900; condition = DIA_Addon_Huno_PICKPOCKET_Condition; information = DIA_Addon_Huno_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_80; }; FUNC INT DIA_Addon_Huno_PICKPOCKET_Condition() { C_Beklauen (85, 102); }; FUNC VOID DIA_Addon_Huno_PICKPOCKET_Info() { Info_ClearChoices (DIA_Addon_Huno_PICKPOCKET); Info_AddChoice (DIA_Addon_Huno_PICKPOCKET, DIALOG_BACK ,DIA_Addon_Huno_PICKPOCKET_BACK); Info_AddChoice (DIA_Addon_Huno_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Addon_Huno_PICKPOCKET_DoIt); }; func void DIA_Addon_Huno_PICKPOCKET_DoIt() { B_Beklauen (); Info_ClearChoices (DIA_Addon_Huno_PICKPOCKET); }; func void DIA_Addon_Huno_PICKPOCKET_BACK() { Info_ClearChoices (DIA_Addon_Huno_PICKPOCKET); }; //---------------------------------------------------------------------- // Abwimmeln //---------------------------------------------------------------------- instance DIA_Addon_Huno_Abwimmeln (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 1; condition = DIA_Addon_Huno_Abwimmeln_Condition; information = DIA_Addon_Huno_Abwimmeln_Info; permanent = TRUE; important = TRUE; }; FUNC INT DIA_Addon_Huno_Abwimmeln_Condition() { if (Huno_MEGA_Angepisst == TRUE) { return TRUE; }; if (Huno_zuSnaf == TRUE) && (!Npc_KnowsInfo (other, DIA_Addon_Fisk_Meeting)) && (Npc_IsInState (self, ZS_Talk)) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_Abwimmeln_Info() { if (Huno_MEGA_Angepisst == TRUE) { AI_Output (self, other, "DIA_Addon_Huno_Abwimmeln_06_00"); //Co poâád chceš? Táhni! } else //schickt dich in die Kneipe { AI_Output (self, other, "DIA_Addon_Huno_Abwimmeln_06_01"); //Na co čekáš? Jdi do hospody! }; AI_StopProcessInfos (self); }; //---------------------------------------------------------------------- // Info Hi //---------------------------------------------------------------------- var int Knows_Flucht; var int Huno_Angepisst; //---------------------------------------------------------------------- instance DIA_Addon_Huno_Hi (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 1; condition = DIA_Addon_Huno_Hi_Condition; information = DIA_Addon_Huno_Hi_Info; permanent = FALSE; description = "Na první pohled je jasné, že víš co dęláš."; }; FUNC INT DIA_Addon_Huno_Hi_Condition() { return TRUE; }; FUNC VOID DIA_Addon_Huno_Hi_Info() { AI_Output (other, self, "DIA_Addon_Huno_Hi_15_00");//Na první pohled je jasné, že víš co dęáš. AI_Output (self, other, "DIA_Addon_Huno_Hi_06_01");//Jednou jsem to už slyšel ... pâinesl jsi tu ocel? AI_Output (other, self, "DIA_Addon_Huno_Hi_15_02");//Ocel? Ne, myslím, že si mę s nękým pleteš ... AI_Output (self, other, "DIA_Addon_Huno_Hi_06_03");//Hm ... pâipadáš mi známý. Nepotkali jsme se už? Info_ClearChoices (DIA_Addon_Huno_Hi); Info_AddChoice (DIA_Addon_Huno_Hi,"Jasnę, ve Starém táboâe.",DIA_Addon_Huno_Hi_JA); Info_AddChoice (DIA_Addon_Huno_Hi,"Nepamatuji se.",DIA_Addon_Huno_Hi_NO); Log_CreateTopic (Topic_Addon_BDT_Trader,LOG_NOTE); B_LogEntry (Topic_Addon_BDT_Trader,"Huno prodává kováâské vybavení."); }; FUNC VOID DIA_Addon_Huno_Hi_JA() { AI_Output (other, self, "DIA_Addon_Huno_Hi_JA_15_00");//Jasnę, ve Starém táboâe. AI_Output (self, other, "DIA_Addon_Huno_Hi_JA_06_01");//Starý tábor ... aha ... ty jsi ten zvędavý chlápek ... myslel jsem, že jsi mrtvý. AI_Output (other, self, "DIA_Addon_Huno_Hi_JA_15_02");//No jo, to si myslí všichni. Kdo ještę pâežil? AI_Output (self, other, "DIA_Addon_Huno_Hi_JA_06_03");//Pár lidí. Nękteâí prchli s Ravenem jako já. Hodnę chlapů však zahynulo v táboâe. Info_ClearChoices (DIA_Addon_Huno_Hi); Knows_Flucht = TRUE; }; FUNC VOID DIA_Addon_Huno_Hi_NO() { AI_Output (other, self, "DIA_Addon_Huno_Hi_NO_15_00");//Nepamatuji se. AI_Output (self, other, "DIA_Addon_Huno_Hi_NO_06_01");//Hm ... mám hlavu jak stâep ... k čertu s tím ... Info_ClearChoices (DIA_Addon_Huno_Hi); }; //---------------------------------------------------------------------- // Info Blitz //---------------------------------------------------------------------- INSTANCE DIA_Addon_Huno_Blitz (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 2; condition = DIA_Addon_Huno_Blitz_Condition; information = DIA_Addon_Huno_Blitz_Info; permanent = FALSE; description = "Âekni mi o tvém útęku."; }; FUNC INT DIA_Addon_Huno_Blitz_Condition() { if (Knows_Flucht == TRUE) && (Huno_Angepisst == FALSE) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_Blitz_Info() { AI_Output (other, self, "DIA_Addon_Huno_Blitz_15_00");//Âekni mi o tvém útęku. AI_Output (self, other, "DIA_Addon_Huno_Blitz_06_01");//V den, kdy padla bariéra, nastal obrovský zmatek. AI_Output (self, other, "DIA_Addon_Huno_Blitz_06_02");//Nękteâí se schovali - jiní utekli a všechno bylo vyplenęno. AI_Output (other, self, "DIA_Addon_Huno_Blitz_15_03");//Co jsi udęlal? AI_Output (self, other, "DIA_Addon_Huno_Blitz_06_04");//Zkusil jsem utéct z tábora, jenomže se náhle vyjasnilo a mou kůží projela žhavá bolest. AI_Output (self, other, "DIA_Addon_Huno_Blitz_06_05");//trefil mę ten zatracený blesk! Ale vypadá to, že jsem neohluchl ... //AI_Output (self, other, "DIA_Blitz_06_07");//BLITZ AI_Output (self, other, "DIA_Addon_Huno_Blitz_06_06");//Až pozdęji mi âekli, že mę Thorus našel a vzal s sebou. }; //---------------------------------------------------------------------- // Info Armor //---------------------------------------------------------------------- var int Huno_ArmorPerm; //---------------------------------------------------------- INSTANCE DIA_Addon_Huno_Armor (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 3; condition = DIA_Addon_Huno_Armor_Condition; information = DIA_Addon_Huno_Armor_Info; permanent = TRUE; description = "Potâebuju lepší zbroj."; }; FUNC INT DIA_Addon_Huno_Armor_Condition() { if (Npc_KnowsInfo (other,DIA_Addon_Huno_Hi)) && (Huno_ArmorPerm == FALSE) && (Huno_Angepisst == FALSE) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_Armor_Info() { Info_ClearChoices (DIA_Addon_Huno_Armor); AI_Output (other, self, "DIA_Addon_Huno_Armor_15_00"); //Potâebuju lepší zbroj. if (Huno_ArmorCheap == FALSE) { AI_Output (self, other, "DIA_Addon_Huno_Armor_06_01"); //Takže - můžeš ho mít. To, že je tak drahé, je Estebanovo naâízení. AI_Output (self, other, "DIA_Addon_Huno_Armor_06_02"); //Ten zmetek si bere podíl z každé zbroje co prodám. BDT_Armor_H_Value = 2100; Info_AddChoice (DIA_Addon_Huno_Armor, DIALOG_BACK, DIA_Addon_Huno_Armor_BACK); Info_AddChoice (DIA_Addon_Huno_Armor, "Koupit tęžkou zbroj bandity (Ochrana proti zbraním: 50, šípům: 50, cena: 2100)", DIA_Addon_Huno_Armor_BUY); } else //CHEAP { AI_Output (other, self, "DIA_Addon_Huno_Armor_15_03"); //Fisk mi âekl, že bys pro mę mohl udęlat speciální cenu. AI_Output (self, other, "DIA_Addon_Huno_Armor_06_04"); //Tak Fisk? Hm, fajn. Stejnę mu dlužím laskavost. BDT_Armor_H_Value = 1400; Info_AddChoice (DIA_Addon_Huno_Armor, DIALOG_BACK, DIA_Addon_Huno_Armor_BACK); Info_AddChoice (DIA_Addon_Huno_Armor, "Koupit tęžkou zbroj bandity (Ochrana proti zbraním: 45, šípům: 45, cena: 1400)", DIA_Addon_Huno_Armor_BUY); }; }; func void DIA_Addon_Huno_Armor_Back() { Info_ClearChoices (DIA_Addon_Huno_Armor); }; func void DIA_Addon_Huno_Armor_Buy() { AI_Output (other, self, "DIA_Addon_Huno_Armor_Buy_15_00"); //Ok, vezmu si tu zbroj. if B_GiveInvItems (other, self, ItMi_Gold, BDT_Armor_H_Value) { AI_Output (self, other, "DIA_Addon_Huno_Armor_Buy_06_01"); //Vypadá dobâe. B_GiveInvItems (self, other,ITAR_BDT_H,1); } else { AI_Output (self, other, "DIA_Addon_Huno_Armor_Buy_06_02"); //Nemáš peníze, nebude zbroj. }; if (BDT_Armor_H_Value < 2100) //nur, wenn billliger! { Huno_ArmorPerm = TRUE; }; Info_ClearChoices (DIA_Addon_Huno_Armor); }; //---------------------------------------------------------------------- // ATTENTAT //---------------------------------------------------------------------- INSTANCE DIA_Addon_Huno_Attentat (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 4; condition = DIA_Addon_Huno_Attentat_Condition; information = DIA_Addon_Huno_Attentat_Info; permanent = FALSE; description = "O tom pokusu zavraždit Estebana ..."; }; FUNC INT DIA_Addon_Huno_Attentat_Condition() { if (MIS_Judas == LOG_RUNNING) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_Attentat_Info() { B_Say (other, self, "$ATTENTAT_ADDON_DESCRIPTION2"); //O tom pokusu zavraždit Estebana ... AI_Output (self, other, "DIA_Addon_Huno_Attentat_06_00"); //(výhružnę) Co ode mę chceš? AI_Output (other, self, "DIA_Addon_Huno_Attentat_15_01"); //Hledám zamęstnavatele ... AI_Output (self, other, "DIA_Addon_Huno_Attentat_06_02"); //A proč s tím lezeš za mnou? AI_Output (other, self, "DIA_Addon_Huno_Attentat_15_03"); //Myslel jsem, že o tom nęco víš. AI_Output (self, other, "DIA_Addon_Huno_Attentat_06_04"); //Kašlu ti na to! }; //---------------------------------------------------------------------- // Paar Dinge gehört //---------------------------------------------------------------------- var int Huno_nochmal; var int Huno_SomeThings_PERM; var int Huno_Counter; //------------------------------------- func void B_Addon_Huno_Stress() { AI_Output (self, other, "DIA_Addon_Huno_Stress_06_00"); //(vzdychá) Teë poslouchej! Aă už tę tu nevidím nebo se neznám! Huno_Angepisst = TRUE; }; INSTANCE DIA_Addon_Huno_SomeThings (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 4; condition = DIA_Addon_Huno_SomeThings_Condition; information = DIA_Addon_Huno_SomeThings_Info; permanent = TRUE; description = "Slyšel jsem o tobę nęjaké zvęsti ..."; }; FUNC INT DIA_Addon_Huno_SomeThings_Condition() { if (Npc_KnowsInfo(other,DIA_Addon_Huno_Attentat)) && (Huno_SomeThings_PERM == FALSE) && ( (Finn_TellAll == TRUE) || (Paul_TellAll == TRUE) || (Emilio_TellAll == TRUE) ) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_SomeThings_Info() { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_15_00"); //Slyšel jsem o tobę nęjaké zvęsti ... if (Huno_nochmal == FALSE) { AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_01"); //No? Huno_nochmal = TRUE; } else { AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_02"); //Zase ty? (hrozí) Doufám, že tentokrát je to nęco důležitého ... }; Huno_Counter = 0; if (Finn_TellAll == TRUE) { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_15_03"); //Slyšel jsem, že v dobę toho pokusu o vraždu jsi nebyl tam kde bys męl ... AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_04"); //(výhružnę) Pokračuj? Huno_Counter = Huno_Counter + 1; }; if (Paul_TellAll == TRUE) { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_15_05"); //Paul âíkal, že Estebana nenávidíš. AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_06"); //(výhružnę) Jo? Opravdu? A co ještę âíkal? Huno_Counter = Huno_Counter + 1; }; if (Emilio_TellAll == TRUE) { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_15_07"); //Emilio tę prozradil! Tutovę o té vraždę nęco víš! AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_08"); //(klidnę) Tak ti jsi mluvil se starým Emiliem, jo?? if (Huno_Counter > 0) { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_15_09"); //A on není jediný, kdo tę podežrívá. AI_PlayAni(self, "T_SEARCH"); AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_10"); //No a? Huno_SomeThings_PERM = TRUE; Info_ClearChoices (DIA_Addon_Huno_SomeThings); Info_AddChoice (DIA_Addon_Huno_SomeThings, "Potâebuji si nęco vyjasnit se zamęstnavatelem!", DIA_Addon_Huno_SomeThings_Contra); Info_AddChoice (DIA_Addon_Huno_SomeThings, "Jestli jsi za tou vraždou, zaplatíš za to!", DIA_Addon_Huno_SomeThings_Pro); B_LogEntry (Topic_Addon_Esteban, "Vypadá to, že mám Huna v hrsti."); } else { AI_Output (self, other, "DIA_Addon_Huno_SomeThings_06_11"); //(vyhrožuje) Možná by si si s ním męl promluvit ještę jednou. Jsem si jistý, že POZDĘJI bude tvrdit pâesnę opak! B_Addon_Huno_Stress(); AI_StopProcessInfos (self); }; } else { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_15_12"); //Nic dalšího ... B_Addon_Huno_Stress(); AI_StopProcessInfos (self); }; }; func void DIA_Addon_Huno_SomeThings_Pro() { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_Pro_15_00"); //Jestli jsi za tou vraždou, zaplatíš za to! AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Pro_06_01"); //(dochází mu trpęlivost) Jsi idiot! Opravdu si myslíš, že se tím Estebanovi zavdęčíš? AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Pro_06_02"); //Táhni! Huno_MEGA_Angepisst = TRUE; Info_ClearChoices (DIA_Addon_Huno_SomeThings); AI_StopProcessInfos (self); }; func void DIA_Addon_Huno_SomeThings_Contra() { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_Contra_15_00"); //Potâebuji si nęco vyjasnit se zamęstnavatelem! AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_01"); //S Estebanem? Fakt? Posluž si! AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_02"); //Už na tu dodávku oceli od pirátů čekám pâíliš dlouho. AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_03"); //Tipnul bych, že Esteban ji zabavil, aby mi ji pak mohl prodat dráž. AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_04"); //Nedęlá to osobnę. Má na to pár prašivých banditů, kteâí jsou na jeho výplatní pásce. AI_Output (other, self, "DIA_Addon_Huno_SomeThings_Contra_15_05"); //Kde jsi to slyšel? AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_06"); //Opilí banditi moc mluví ... AI_Output (other, self, "DIA_Addon_Huno_SomeThings_Contra_15_07"); //Znáš jméno toho sdílného bandity? AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_08"); //To nestojí za pozornost. Ale ten chlápek, kterého hledáš, je Juan. Ale už jsem ho dlouho nevidęl v táboâe. AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Contra_06_09"); //Budeš ho muset najít nękde v té žumpę venku. MIS_Huno_Stahl = LOG_RUNNING; Huno_Angepisst = FALSE; Log_CreateTopic (Topic_Addon_Huno,LOG_MISSION); Log_SetTopicStatus (Topic_Addon_Huno,LOG_RUNNING); B_LogEntry (Topic_Addon_Huno,"Huno čeká na dodávku oceli od pirátů. Myslí si, že nęjaký chlápek Juan ji zastavil na Estebanův pâíkaz a schovává se nękde v bažinách."); Info_ClearChoices (DIA_Addon_Huno_SomeThings); Info_AddChoice (DIA_Addon_Huno_SomeThings, "Nejprve mi âekni, kdo je ten, co tę zamęstnal!", DIA_Addon_Huno_SomeThings_TellMeNow); Info_AddChoice (DIA_Addon_Huno_SomeThings, "Ok, udęlám to pro tebe!", DIA_Addon_Huno_SomeThings_Mission); }; func void DIA_Addon_Huno_SomeThings_Mission() { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_Mission_15_00"); //Ok, udęlám to pro tebe! AI_Output (self, other, "DIA_Addon_Huno_SomeThings_Mission_06_01"); //Dobâe. Uvidíme, jestli se ti dá vęâit. Info_ClearChoices (DIA_Addon_Huno_SomeThings); AI_StopProcessInfos (self); }; func void DIA_Addon_Huno_SomeThings_TellMeNow() { AI_Output (other, self, "DIA_Addon_Huno_SomeThings_TellMeNow_15_00"); //Nejprve mi âekni, kdo je ten, co tę zamęstnal! AI_Output (self, other, "DIA_Addon_Huno_SomeThings_TellMeNow_06_01"); //Ne. Nevęâím ti. AI_Output (other, self, "DIA_Addon_Huno_SomeThings_TellMeNow_15_02"); //Dávej pozor. Další můj rozhovor bude s tím zamęstnavatelem nebo s Estebanem. AI_Output (other, self, "DIA_Addon_Huno_SomeThings_TellMeNow_15_03"); //S kým se bavíš je tvoje vęc. AI_Output (self, other, "DIA_Addon_Huno_SomeThings_TellMeNow_06_04"); //(vzdychá) Tak dobâe! Zprostâedkuju ti s ním setkání. Ale bude po mém, rozumíš? AI_Output (self, other, "DIA_Addon_Huno_SomeThings_TellMeNow_06_05"); //Jdi do hospody a promluv si s barmanem. On ti âekne, co dál. Huno_zuSnaf = TRUE; Info_ClearChoices (DIA_Addon_Huno_SomeThings); AI_StopProcessInfos (self); B_LogEntry (Topic_Addon_Esteban, "Huno mi âekl, že bych si męl promluvit se Snafem."); }; //---------------------------------------------------------------------- // Info Paket //---------------------------------------------------------------------- INSTANCE DIA_Addon_Huno_Paket (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 3; condition = DIA_Addon_Huno_Paket_Condition; information = DIA_Addon_Huno_Paket_Info; permanent = FALSE; description = "Mám tu ocel."; }; FUNC INT DIA_Addon_Huno_Paket_Condition() { if (MIS_Huno_Stahl == LOG_RUNNING) && (Npc_HasItems (other, ItMi_Addon_Steel_Paket) >= 1) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_Paket_Info() { AI_Output (other, self, "DIA_Addon_Huno_Paket_15_00");//Mám tu ocel. B_GiveInvItems (other, self, ItMi_Addon_Steel_Paket,1); AI_Output (self, other, "DIA_Addon_Huno_Paket_06_01"); //A? Byl tam i Juan? AI_Output (other, self, "DIA_Addon_Huno_Paket_15_02"); //Byl. AI_Output (self, other, "DIA_Addon_Huno_Paket_06_03"); //Vędęl jsem to. Ta krysa Esteban v tom byl namočený. if (Huno_zuSnaf == TRUE) { AI_Output (self, other, "DIA_Addon_Huno_Paket_06_04"); //Jsi fajn. Abych byl upâímný, tak jsem to od tebe nečekal. AI_Output (self, other, "DIA_Addon_Huno_Paket_06_05"); //Tady, vezmi si tuhle odmęnu. B_GiveInvItems (self, other, itmi_gold, 200); } else { AI_Output (other, self, "DIA_Addon_Huno_Paket_15_06"); //A co teë bude s naší dohodou? AI_Output (self, other, "DIA_Addon_Huno_Paket_06_07"); //Muž, se kterým chceš mluvit, tę čeká v hospodę. Promluv si s barmanem. Huno_zuSnaf = TRUE; }; B_LogEntry (Topic_Addon_Esteban, "Huno mi âekl, že bych si męl promluvit se Snafem."); MIS_Huno_Stahl = LOG_SUCCESS; B_GivePlayerXP (XP_Addon_HunoStahl); }; //---------------------------------------------------------------------- // Info Trade //---------------------------------------------------------------------- INSTANCE DIA_Addon_Huno_Trade (C_INFO) { npc = BDT_1099_Addon_Huno; nr = 888; condition = DIA_Addon_Huno_Trade_Condition; information = DIA_Addon_Huno_Trade_Info; permanent = TRUE; trade = TRUE; description = DIALOG_TRADE; }; FUNC INT DIA_Addon_Huno_Trade_Condition() { if (Huno_Angepisst == FALSE) { return TRUE; }; }; FUNC VOID DIA_Addon_Huno_Trade_Info() { B_Say (other,self,"$TRADE_3"); B_GiveTradeInv(self); };
D
module cuda_d_examples.matmul2; import std.stdio; import cuda_d.cuda; import cuda_d.cublas; import cuda_d.cublas_api; import cuda_d.cublas_v2; import cuda_d.cuda_runtime_api; import cuda_d.curand; void gpu_blas_mmul(const double *A, const double *B, double *C, const int m, const int k, const int n) { int lda=m,ldb=k,ldc=m; const double alf = 1; const double bet = 0; const double *alpha = &alf; const double *beta = &bet; // Create a handle for CUBLAS cublasHandle_t handle; cublasCreate(&handle); // Do the actual multiplication cublasDgemm(handle, cublasOperation_t.CUBLAS_OP_N, cublasOperation_t.CUBLAS_OP_N, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc); // Destroy the handle cublasDestroy(handle); } void print_matrix(const double *A, int nr_rows_A, int nr_cols_A) { for(int i = 0; i < nr_rows_A; ++i){ for(int j = 0; j < nr_cols_A; ++j){ writeln(A[j * nr_rows_A + i]); } writeln(); } writeln(); } void call_gemm_routine(){ // Allocate 3 arrays on CPU int nr_rows_A, nr_cols_A, nr_rows_B, nr_cols_B, nr_rows_C, nr_cols_C; // for simplicity we are going to use square arrays nr_rows_A = nr_cols_A = nr_rows_B = nr_cols_B = nr_rows_C = nr_cols_C = 3; auto h_A = new double[nr_rows_A * nr_cols_A]; auto h_B = new double[nr_rows_B * nr_cols_B]; auto h_C = new double[nr_rows_C * nr_cols_C]; // Allocate 3 arrays on GPU double* d_A, d_B, d_C; cudaMalloc(cast(void **)&d_A,nr_rows_A * nr_cols_A * cast(int)double.sizeof); cudaMalloc(cast(void **)&d_B,nr_rows_B * nr_cols_B * cast(int)double.sizeof); cudaMalloc(cast(void **)&d_C,nr_rows_C * nr_cols_C * cast(int)double.sizeof); // Fill the arrays A and B on GPU with random numbers double[] random_A = [3, 3, 3, 3, 3, 3, 3, 3, 3]; double[] random_B = [5, 5, 5, 5, 5, 5, 5, 5, 5]; // Optionally we can copy the data back on CPU and print the arrays cudaMemcpy(cast(void*)d_A, cast(void*)random_A, nr_rows_A * nr_cols_A * cast(int)double.sizeof, cudaMemcpyKind.cudaMemcpyHostToDevice); cudaMemcpy(h_A.ptr,d_A,nr_rows_A * nr_cols_A * cast(int)double.sizeof, cudaMemcpyKind.cudaMemcpyDeviceToHost); cudaMemcpy(cast(void*)d_B, cast(void*)random_B, nr_rows_B * nr_cols_B * cast(int)double.sizeof, cudaMemcpyKind.cudaMemcpyHostToDevice); cudaMemcpy(h_B.ptr,d_A,nr_rows_A * nr_cols_A * cast(int)double.sizeof, cudaMemcpyKind.cudaMemcpyDeviceToHost); writeln( "h_A ="); print_matrix(h_A.ptr, nr_rows_A, nr_cols_A); writeln( "B ="); print_matrix(h_B.ptr, nr_rows_B, nr_cols_B); // Multiply A and B on GPU gpu_blas_mmul(d_A, d_B, d_C, nr_rows_A, nr_cols_A, nr_cols_B); // Copy (and print) the result on host memory cudaMemcpy(h_C.ptr,d_C,nr_rows_C * nr_cols_C * cast(int)double.sizeof, cudaMemcpyKind.cudaMemcpyDeviceToHost); writeln( "C =" ); print_matrix(h_C.ptr, nr_rows_C, nr_cols_C); //Free GPU memory cudaFree(d_A); cudaFree(d_B); cudaFree(d_C); // Free CPU memory //free(h_A); //free(h_B); //free(h_C); }
D
/* REPL plan: easy movement to/from a real editor can edit a specific function repl is a different set of globals maybe ctrl+enter to execute vs insert another line write state to file read state from file state consists of all variables and source to functions. maybe need @retained for a variable that is meant to keep its value between loads? ddoc???? Steal Ruby's [regex, capture] maybe and the => operator too I kinda like the javascript foo`blargh` template literals too. */ /++ A small script interpreter that builds on [arsd.jsvar] to be easily embedded inside and to have has easy two-way interop with the host D program. The script language it implements is based on a hybrid of D and Javascript. The type the language uses is based directly on [var] from [arsd.jsvar]. The interpreter is slightly buggy and poorly documented, but the basic functionality works well and much of your existing knowledge from Javascript will carry over, making it hopefully easy to use right out of the box. See the [#examples] to quickly get the feel of the script language as well as the interop. $(TIP A goal of this language is to blur the line between D and script, but in the examples below, which are generated from D unit tests, the non-italics code is D, and the italics is the script. Notice how it is a string passed to the [interpret] function. In some smaller, stand-alone code samples, there will be a tag "adrscript" in the upper right of the box to indicate it is script. Otherwise, it is D. ) Installation_instructions: This script interpreter is contained entirely in two files: jsvar.d and script.d. Download both of them and add them to your project. Then, `import arsd.script;`, declare and populate a `var globals = var.emptyObject;`, and `interpret("some code", globals);` in D. There's nothing else to it, no complicated build, no external dependencies. $(CONSOLE $ wget https://raw.githubusercontent.com/adamdruppe/arsd/master/script.d $ wget https://raw.githubusercontent.com/adamdruppe/arsd/master/jsvar.d $ dmd yourfile.d script.d jsvar.d ) Script_features: OVERVIEW $(LIST * easy interop with D thanks to arsd.jsvar. When interpreting, pass a var object to use as globals. This object also contains the global state when interpretation is done. * mostly familiar syntax, hybrid of D and Javascript * simple implementation is moderately small and fairly easy to hack on (though it gets messier by the day), but it isn't made for speed. ) SPECIFICS $(LIST // * Allows identifiers-with-dashes. To do subtraction, put spaces around the minus sign. * Allows identifiers starting with a dollar sign. * string literals come in "foo" or 'foo', like Javascript, or `raw string` like D. Also come as “nested “double quotes” are an option!” * double quoted string literals can do Ruby-style interpolation: "Hello, #{name}". * mixin aka eval (does it at runtime, so more like eval than mixin, but I want it to look like D) * scope guards, like in D * Built-in assert() which prints its source and its arguments * try/catch/finally/throw You can use try as an expression without any following catch to return the exception: ```adrscript var a = try throw "exception";; // the double ; is because one closes the try, the second closes the var // a is now the thrown exception ``` * for/while/foreach * D style operators: +-/* on all numeric types, ~ on strings and arrays, |&^ on integers. Operators can coerce types as needed: 10 ~ "hey" == "10hey". 10 + "3" == 13. Any math, except bitwise math, with a floating point component returns a floating point component, but pure int math is done as ints (unlike Javascript btw). Any bitwise math coerces to int. So you can do some type coercion like this: ```adrscript a = a|0; // forces to int a = "" ~ a; // forces to string a = a+0.0; // coerces to float ``` Though casting is probably better. * Type coercion via cast, similarly to D. ```adrscript var a = "12"; a.typeof == "String"; a = cast(int) a; a.typeof == "Integral"; a == 12; ``` Supported types for casting to: int/long (both actually an alias for long, because of how var works), float/double/real, string, char/dchar (these return *integral* types), and arrays, int[], string[], and float[]. This forwards directly to the D function var.opCast. * some operator overloading on objects, passing opBinary(op, rhs), length, and perhaps others through like they would be in D. opIndex(name) opIndexAssign(value, name) // same order as D, might some day support [n1, n2] => (value, n1, n2) obj.__prop("name", value); // bypasses operator overloading, useful for use inside the opIndexAssign especially Note: if opIndex is not overloaded, getting a non-existent member will actually add it to the member. This might be a bug but is needed right now in the D impl for nice chaining. Or is it? FIXME FIXME: it doesn't do opIndex with multiple args. * if/else * array slicing, but note that slices are rvalues currently * variables must start with A-Z, a-z, _, or $, then must be [A-Za-z0-9_]*. (The $ can also stand alone, and this is a special thing when slicing, so you probably shouldn't use it at all.). Variable names that start with __ are reserved and you shouldn't use them. * int, float, string, array, bool, and `#{}` (previously known as `json!q{}` aka object) literals * var.prototype, var.typeof. prototype works more like Mozilla's __proto__ than standard javascript prototype. * the `|>` pipeline operator * classes: ```adrscript // inheritance works class Foo : bar { // constructors, D style this(var a) { ctor.... } // static vars go on the auto created prototype static var b = 10; // instance vars go on this instance itself var instancevar = 20; // "virtual" functions can be overridden kinda like you expect in D, though there is no override keyword function virt() { b = 30; // lexical scoping is supported for static variables and functions // but be sure to use this. as a prefix for any class defined instance variables in here this.instancevar = 10; } } var foo = new Foo(12); foo.newFunc = function() { this.derived = 0; }; // this is ok too, and scoping, including 'this', works like in Javascript ``` You can also use 'new' on another object to get a copy of it. * return, break, continue, but currently cannot do labeled breaks and continues * __FILE__, __LINE__, but currently not as default arguments for D behavior (they always evaluate at the definition point) * most everything are expressions, though note this is pretty buggy! But as a consequence: for(var a = 0, b = 0; a < 10; a+=1, b+=1) {} won't work but this will: for(var a = 0, b = 0; a < 10; {a+=1; b+=1}) {} You can encase things in {} anywhere instead of a comma operator, and it works kinda similarly. {} creates a new scope inside it and returns the last value evaluated. * functions: var fn = function(args...) expr; or function fn(args....) expr; Special function local variables: _arguments = var[] of the arguments passed _thisfunc = reference to the function itself this = reference to the object on which it is being called - note this is like Javascript, not D. args can say var if you want, but don't have to default arguments supported in any position when calling, you can use the default keyword to use the default value in any position * macros: A macro is defined just like a function, except with the macro keyword instead of the function keyword. The difference is a macro must interpret its own arguments - it is passed AST objects instead of values. Still a WIP. ) Todo_list: I also have a wishlist here that I may do in the future, but don't expect them any time soon. FIXME: maybe some kind of splat operator too. choose([1,2,3]...) expands to choose(1,2,3) make sure superclass ctors are called FIXME: prettier stack trace when sent to D FIXME: support more escape things in strings like \n, \t etc. FIXME: add easy to use premade packages for the global object. FIXME: the debugger statement from javascript might be cool to throw in too. FIXME: add continuations or something too - actually doing it with fibers works pretty well FIXME: Also ability to get source code for function something so you can mixin. FIXME: add COM support on Windows ???? Might be nice: varargs lambdas - maybe without function keyword and the x => foo syntax from D. History: April 28, 2020: added `#{}` as an alternative to the `json!q{}` syntax for object literals. Also fixed unary `!` operator. April 26, 2020: added `switch`, fixed precedence bug, fixed doc issues and added some unittests Started writing it in July 2013. Yes, a basic precedence issue was there for almost SEVEN YEARS. You can use this as a toy but please don't use it for anything too serious, it really is very poorly written and not intelligently designed at all. +/ module arsd.script; /++ This example shows the basics of how to interact with the script. The string enclosed in `q{ .. }` is the script language source. The [var] type comes from [arsd.jsvar] and provides a dynamic type to D. It is the same type used in the script language and is weakly typed, providing operator overloads to work with many D types seamlessly. However, if you do need to convert it to a static type, such as if passing to a function, you can use `get!T` to get a static type out of it. +/ unittest { var globals = var.emptyObject; globals.x = 25; // we can set variables on the global object globals.name = "script.d"; // of various types // and we can make native functions available to the script globals.sum = (int a, int b) { return a + b; }; // This is the source code of the script. It is similar // to javascript with pieces borrowed from D, so should // be pretty familiar. string scriptSource = q{ function foo() { return 13; } var a = foo() + 12; assert(a == 25); // you can also access the D globals from the script assert(x == 25); assert(name == "script.d"); // as well as call D functions set via globals: assert(sum(5, 6) == 11); // I will also set a function to call from D function bar(str) { // unlike Javascript though, we use the D style // concatenation operator. return str ~ " concatenation"; } }; // once you have the globals set up, you call the interpreter // with one simple function. interpret(scriptSource, globals); // finally, globals defined from the script are accessible here too: // however, notice the two sets of parenthesis: the first is because // @property is broken in D. The second set calls the function and you // can pass values to it. assert(globals.foo()() == 13); assert(globals.bar()("test") == "test concatenation"); // this shows how to convert the var back to a D static type. int x = globals.x.get!int; } /++ $(H3 Macros) Macros are like functions, but instead of evaluating their arguments at the call site and passing value, the AST nodes are passed right in. Calling the node evaluates the argument and yields the result (this is similar to to `lazy` parameters in D), and they also have methods like `toSourceCode`, `type`, and `interpolate`, which forwards to the given string. The language also supports macros and custom interpolation functions. This example shows an interpolation string being passed to a macro and used with a custom interpolation string. You might use this to encode interpolated things or something like that. +/ unittest { var globals = var.emptyObject; interpret(q{ macro test(x) { return x.interpolate(function(str) { return str ~ "test"; }); } var a = "cool"; assert(test("hey #{a}") == "hey cooltest"); }, globals); } /++ $(H3 Classes demo) See also: [arsd.jsvar.subclassable] for more interop with D classes. +/ unittest { var globals = var.emptyObject; interpret(q{ class Base { function foo() { return "Base"; } function set() { this.a = 10; } function get() { return this.a; } // this MUST be used for instance variables though as they do not exist in static lookup function test() { return foo(); } // I did NOT use `this` here which means it does STATIC lookup! // kinda like mixin templates in D lol. var a = 5; static var b = 10; // static vars are attached to the class specifically } class Child : Base { function foo() { assert(super.foo() == "Base"); return "Child"; }; function set() { this.a = 7; } function get2() { return this.a; } var a = 9; } var c = new Child(); assert(c.foo() == "Child"); assert(c.test() == "Base"); // static lookup of methods if you don't use `this` /* // these would pass in D, but do NOT pass here because of dynamic variable lookup in script. assert(c.get() == 5); assert(c.get2() == 9); c.set(); assert(c.get() == 5); // parent instance is separate assert(c.get2() == 7); */ // showing the shared vars now.... I personally prefer the D way but meh, this lang // is an unholy cross of D and Javascript so that means it sucks sometimes. assert(c.get() == c.get2()); c.set(); assert(c.get2() == 7); assert(c.get() == c.get2()); // super, on the other hand, must always be looked up statically, or else this // next example with infinite recurse and smash the stack. class Third : Child { } var t = new Third(); assert(t.foo() == "Child"); }, globals); } /++ $(H3 Properties from D) Note that it is not possible yet to define a property function from the script language. +/ unittest { static class Test { // the @scriptable is required to make it accessible @scriptable int a; @scriptable @property int ro() { return 30; } int _b = 20; @scriptable @property int b() { return _b; } @scriptable @property int b(int val) { return _b = val; } } Test test = new Test; test.a = 15; var globals = var.emptyObject; globals.test = test; // but once it is @scriptable, both read and write works from here: interpret(q{ assert(test.a == 15); test.a = 10; assert(test.a == 10); assert(test.ro == 30); // @property functions from D wrapped too test.ro = 40; assert(test.ro == 30); // setting it does nothing though assert(test.b == 20); // reader still works if read/write available too test.b = 25; assert(test.b == 25); // writer action reflected // however other opAssign operators are not implemented correctly on properties at this time so this fails! //test.b *= 2; //assert(test.b == 50); }, globals); // and update seen back in D assert(test.a == 10); // on the original native object assert(test.b == 25); assert(globals.test.a == 10); // and via the var accessor for member var assert(globals.test.b == 25); // as well as @property func } public import arsd.jsvar; import std.stdio; import std.traits; import std.conv; import std.json; import std.array; import std.range; /* ************************************** script to follow ****************************************/ /++ A base class for exceptions that can never be caught by scripts; throwing it from a function called from a script is guaranteed to bubble all the way up to your [interpret] call.. (scripts can also never catch Error btw) History: Added on April 24, 2020 (v7.3.0) +/ class NonScriptCatchableException : Exception { import std.exception; /// mixin basicExceptionCtors; } //class TEST : Throwable {this() { super("lol"); }} /// Thrown on script syntax errors and the sort. class ScriptCompileException : Exception { string s; int lineNumber; this(string msg, string s, int lineNumber, string file = __FILE__, size_t line = __LINE__) { this.s = s; this.lineNumber = lineNumber; super(to!string(lineNumber) ~ ": " ~ msg, file, line); } } /// Thrown on things like interpretation failures. class ScriptRuntimeException : Exception { string s; int lineNumber; this(string msg, string s, int lineNumber, string file = __FILE__, size_t line = __LINE__) { this.s = s; this.lineNumber = lineNumber; super(to!string(lineNumber) ~ ": " ~ msg, file, line); } } /// struct ScriptLocation { string scriptFilename; /// int lineNumber; /// } /// This represents an exception thrown by `throw x;` inside the script as it is interpreted. class ScriptException : Exception { /// var payload; /// ScriptLocation loc; /// ScriptLocation[] callStack; this(var payload, ScriptLocation loc, string file = __FILE__, size_t line = __LINE__) { this.payload = payload; if(loc.scriptFilename.length == 0) loc.scriptFilename = "user_script"; this.loc = loc; super(loc.scriptFilename ~ "@" ~ to!string(loc.lineNumber) ~ ": " ~ to!string(payload), file, line); } /* override string toString() { return loc.scriptFilename ~ "@" ~ to!string(loc.lineNumber) ~ ": " ~ payload.get!string ~ to!string(callStack); } */ // might be nice to take a D exception and put a script stack trace in there too...... // also need toString to show the callStack } struct ScriptToken { enum Type { identifier, keyword, symbol, string, int_number, float_number } Type type; string str; string scriptFilename; int lineNumber; string wasSpecial; } // these need to be ordered from longest to shortest // some of these aren't actually used, like struct and goto right now, but I want them reserved for later private enum string[] keywords = [ "function", "continue", "__FILE__", "__LINE__", // these two are special to the lexer "foreach", "json!q{", "default", "finally", "return", "static", "struct", "import", "module", "assert", "switch", "while", "catch", "throw", "scope", "break", "class", "false", "mixin", "macro", "super", // "this" is just treated as just a magic identifier..... "auto", // provided as an alias for var right now, may change later "null", "else", "true", "eval", "goto", "enum", "case", "cast", "var", "for", "try", "new", "if", "do", ]; private enum string[] symbols = [ ">>>", // FIXME "//", "/*", "/+", "&&", "||", "+=", "-=", "*=", "/=", "~=", "==", "<=", ">=","!=", "%=", "&=", "|=", "^=", "#{", "..", "<<", ">>", // FIXME "|>", "=>", // FIXME "?", ".",",",";",":", "[", "]", "{", "}", "(", ")", "&", "|", "^", "+", "-", "*", "/", "=", "<", ">","~","!","%" ]; // we need reference semantics on this all the time class TokenStream(TextStream) { TextStream textStream; string text; int lineNumber = 1; string scriptFilename; void advance(ptrdiff_t size) { foreach(i; 0 .. size) { if(text.empty) break; if(text[0] == '\n') lineNumber ++; text = text[1 .. $]; // text.popFront(); // don't want this because it pops too much trying to do its own UTF-8, which we already handled! } } this(TextStream ts, string fn) { textStream = ts; scriptFilename = fn; text = textStream.front; popFront; } ScriptToken next; // FIXME: might be worth changing this so i can peek far enough ahead to do () => expr lambdas. ScriptToken peek; bool peeked; void pushFront(ScriptToken f) { peek = f; peeked = true; } ScriptToken front() { if(peeked) return peek; else return next; } bool empty() { advanceSkips(); return text.length == 0 && textStream.empty && !peeked; } int skipNext; void advanceSkips() { if(skipNext) { skipNext--; popFront(); } } void popFront() { if(peeked) { peeked = false; return; } assert(!empty); mainLoop: while(text.length) { ScriptToken token; token.lineNumber = lineNumber; token.scriptFilename = scriptFilename; if(text[0] == ' ' || text[0] == '\t' || text[0] == '\n' || text[0] == '\r') { advance(1); continue; } else if(text[0] >= '0' && text[0] <= '9') { int pos; bool sawDot; while(pos < text.length && ((text[pos] >= '0' && text[pos] <= '9') || text[pos] == '.')) { if(text[pos] == '.') { if(sawDot) break; else sawDot = true; } pos++; } if(text[pos - 1] == '.') { // This is something like "1.x", which is *not* a floating literal; it is UFCS on an int sawDot = false; pos --; } token.type = sawDot ? ScriptToken.Type.float_number : ScriptToken.Type.int_number; token.str = text[0 .. pos]; advance(pos); } else if((text[0] >= 'a' && text[0] <= 'z') || (text[0] == '_') || (text[0] >= 'A' && text[0] <= 'Z') || text[0] == '$') { bool found = false; foreach(keyword; keywords) if(text.length >= keyword.length && text[0 .. keyword.length] == keyword && // making sure this isn't an identifier that starts with a keyword (text.length == keyword.length || !( ( (text[keyword.length] >= '0' && text[keyword.length] <= '9') || (text[keyword.length] >= 'a' && text[keyword.length] <= 'z') || (text[keyword.length] == '_') || (text[keyword.length] >= 'A' && text[keyword.length] <= 'Z') ) ))) { found = true; if(keyword == "__FILE__") { token.type = ScriptToken.Type.string; token.str = to!string(token.scriptFilename); token.wasSpecial = keyword; } else if(keyword == "__LINE__") { token.type = ScriptToken.Type.int_number; token.str = to!string(token.lineNumber); token.wasSpecial = keyword; } else { token.type = ScriptToken.Type.keyword; // auto is done as an alias to var in the lexer just so D habits work there too if(keyword == "auto") { token.str = "var"; token.wasSpecial = keyword; } else token.str = keyword; } advance(keyword.length); break; } if(!found) { token.type = ScriptToken.Type.identifier; int pos; if(text[0] == '$') pos++; while(pos < text.length && ((text[pos] >= 'a' && text[pos] <= 'z') || (text[pos] == '_') || //(pos != 0 && text[pos] == '-') || // allow mid-identifier dashes for this-kind-of-name. For subtraction, add a space. (text[pos] >= 'A' && text[pos] <= 'Z') || (text[pos] >= '0' && text[pos] <= '9'))) { pos++; } token.str = text[0 .. pos]; advance(pos); } } else if(text[0] == '"' || text[0] == '\'' || text[0] == '`' || // Also supporting double curly quoted strings: “foo” which nest. This is the utf 8 coding: (text.length >= 3 && text[0] == 0xe2 && text[1] == 0x80 && text[2] == 0x9c)) { char end = text[0]; // support single quote and double quote strings the same int openCurlyQuoteCount = (end == 0xe2) ? 1 : 0; bool escapingAllowed = end != '`'; // `` strings are raw, they don't support escapes. the others do. token.type = ScriptToken.Type.string; int pos = openCurlyQuoteCount ? 3 : 1; // skip the opening dchar int started = pos; bool escaped = false; bool mustCopy = false; bool allowInterpolation = text[0] == '"'; bool atEnd() { if(pos == text.length) return false; if(openCurlyQuoteCount) { if(openCurlyQuoteCount == 1) return (pos + 3 <= text.length && text[pos] == 0xe2 && text[pos+1] == 0x80 && text[pos+2] == 0x9d); // ” else // greater than one means we nest return false; } else return text[pos] == end; } bool interpolationDetected = false; bool inInterpolate = false; int interpolateCount = 0; while(pos < text.length && (escaped || inInterpolate || !atEnd())) { if(inInterpolate) { if(text[pos] == '{') interpolateCount++; else if(text[pos] == '}') { interpolateCount--; if(interpolateCount == 0) inInterpolate = false; } pos++; continue; } if(escaped) { mustCopy = true; escaped = false; } else { if(text[pos] == '\\' && escapingAllowed) escaped = true; if(allowInterpolation && text[pos] == '#' && pos + 1 < text.length && text[pos + 1] == '{') { interpolationDetected = true; inInterpolate = true; } if(openCurlyQuoteCount) { // also need to count curly quotes to support nesting if(pos + 3 <= text.length && text[pos+0] == 0xe2 && text[pos+1] == 0x80 && text[pos+2] == 0x9c) // “ openCurlyQuoteCount++; if(pos + 3 <= text.length && text[pos+0] == 0xe2 && text[pos+1] == 0x80 && text[pos+2] == 0x9d) // ” openCurlyQuoteCount--; } } pos++; } if(pos == text.length && (escaped || inInterpolate || !atEnd())) throw new ScriptCompileException("Unclosed string literal", token.scriptFilename, token.lineNumber); if(mustCopy) { // there must be something escaped in there, so we need // to copy it and properly handle those cases string copy; copy.reserve(pos + 4); escaped = false; foreach(idx, dchar ch; text[started .. pos]) { if(escaped) { escaped = false; switch(ch) { case '\\': copy ~= "\\"; break; case 'n': copy ~= "\n"; break; case 'r': copy ~= "\r"; break; case 'a': copy ~= "\a"; break; case 't': copy ~= "\t"; break; case '#': copy ~= "#"; break; case '"': copy ~= "\""; break; case '\'': copy ~= "'"; break; default: throw new ScriptCompileException("Unknown escape char " ~ cast(char) ch, token.scriptFilename, token.lineNumber); } continue; } else if(ch == '\\') { escaped = true; continue; } copy ~= ch; } token.str = copy; } else { token.str = text[started .. pos]; } if(interpolationDetected) token.wasSpecial = "\""; advance(pos + ((end == 0xe2) ? 3 : 1)); // skip the closing " too } else { // let's check all symbols bool found = false; foreach(symbol; symbols) if(text.length >= symbol.length && text[0 .. symbol.length] == symbol) { if(symbol == "//") { // one line comment int pos = 0; while(pos < text.length && text[pos] != '\n' && text[0] != '\r') pos++; advance(pos); continue mainLoop; } else if(symbol == "/*") { int pos = 0; while(pos + 1 < text.length && text[pos..pos+2] != "*/") pos++; if(pos + 1 == text.length) throw new ScriptCompileException("unclosed /* */ comment", token.scriptFilename, lineNumber); advance(pos + 2); continue mainLoop; } else if(symbol == "/+") { int open = 0; int pos = 0; while(pos + 1 < text.length) { if(text[pos..pos+2] == "/+") { open++; pos++; } else if(text[pos..pos+2] == "+/") { open--; pos++; if(open == 0) break; } pos++; } if(pos + 1 == text.length) throw new ScriptCompileException("unclosed /+ +/ comment", token.scriptFilename, lineNumber); advance(pos + 1); continue mainLoop; } // FIXME: documentation comments found = true; token.type = ScriptToken.Type.symbol; token.str = symbol; advance(symbol.length); break; } if(!found) { // FIXME: make sure this gives a valid utf-8 sequence throw new ScriptCompileException("unknown token " ~ text[0], token.scriptFilename, lineNumber); } } next = token; return; } textStream.popFront(); if(!textStream.empty()) { text = textStream.front; goto mainLoop; } return; } } TokenStream!TextStream lexScript(TextStream)(TextStream textStream, string scriptFilename) if(is(ElementType!TextStream == string)) { return new TokenStream!TextStream(textStream, scriptFilename); } class MacroPrototype : PrototypeObject { var func; // macros are basically functions that get special treatment for their arguments // they are passed as AST objects instead of interpreted // calling an AST object will interpret it in the script this(var func) { this.func = func; this._properties["opCall"] = (var _this, var[] args) { return func.apply(_this, args); }; } } alias helper(alias T) = T; // alternative to virtual function for converting the expression objects to script objects void addChildElementsOfExpressionToScriptExpressionObject(ClassInfo c, Expression _thisin, PrototypeObject sc, ref var obj) { foreach(itemName; __traits(allMembers, mixin(__MODULE__))) static if(__traits(compiles, __traits(getMember, mixin(__MODULE__), itemName))) { alias Class = helper!(__traits(getMember, mixin(__MODULE__), itemName)); static if(is(Class : Expression)) if(c == typeid(Class)) { auto _this = cast(Class) _thisin; foreach(memberName; __traits(allMembers, Class)) { alias member = helper!(__traits(getMember, Class, memberName)); static if(is(typeof(member) : Expression)) { auto lol = __traits(getMember, _this, memberName); if(lol is null) obj[memberName] = null; else obj[memberName] = lol.toScriptExpressionObject(sc); } static if(is(typeof(member) : Expression[])) { obj[memberName] = var.emptyArray; foreach(m; __traits(getMember, _this, memberName)) if(m !is null) obj[memberName] ~= m.toScriptExpressionObject(sc); else obj[memberName] ~= null; } static if(is(typeof(member) : string) || is(typeof(member) : long) || is(typeof(member) : real) || is(typeof(member) : bool)) { obj[memberName] = __traits(getMember, _this, memberName); } } } } } struct InterpretResult { var value; PrototypeObject sc; enum FlowControl { Normal, Return, Continue, Break, Goto } FlowControl flowControl; string flowControlDetails; // which label } class Expression { abstract InterpretResult interpret(PrototypeObject sc); // this returns an AST object that can be inspected and possibly altered // by the script. Calling the returned object will interpret the object in // the original scope passed var toScriptExpressionObject(PrototypeObject sc) { var obj = var.emptyObject; obj["type"] = typeid(this).name; obj["toSourceCode"] = (var _this, var[] args) { Expression e = this; return var(e.toString()); }; obj["opCall"] = (var _this, var[] args) { Expression e = this; // FIXME: if they changed the properties in the // script, we should update them here too. return e.interpret(sc).value; }; obj["interpolate"] = (var _this, var[] args) { StringLiteralExpression e = cast(StringLiteralExpression) this; if(!e) return var(null); return e.interpolate(args.length ? args[0] : var(null), sc); }; // adding structure is going to be a little bit magical // I could have done this with a virtual function, but I'm lazy. addChildElementsOfExpressionToScriptExpressionObject(typeid(this), this, sc, obj); return obj; } string toInterpretedString(PrototypeObject sc) { return toString(); } } class MixinExpression : Expression { Expression e1; this(Expression e1) { this.e1 = e1; } override string toString() { return "mixin(" ~ e1.toString() ~ ")"; } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(.interpret(e1.interpret(sc).value.get!string ~ ";", sc), sc); } } class StringLiteralExpression : Expression { string content; bool allowInterpolation; ScriptToken token; override string toString() { import std.string : replace; return "\"" ~ content.replace(`\`, `\\`).replace("\"", "\\\"") ~ "\""; } this(ScriptToken token) { this.token = token; this(token.str); if(token.wasSpecial == "\"") allowInterpolation = true; } this(string s) { content = s; } var interpolate(var funcObj, PrototypeObject sc) { import std.string : indexOf; if(allowInterpolation) { string r; auto c = content; auto idx = c.indexOf("#{"); while(idx != -1) { r ~= c[0 .. idx]; c = c[idx + 2 .. $]; idx = 0; int open = 1; while(idx < c.length) { if(c[idx] == '}') open--; else if(c[idx] == '{') open++; if(open == 0) break; idx++; } if(open != 0) throw new ScriptRuntimeException("Unclosed interpolation thing", token.scriptFilename, token.lineNumber); auto code = c[0 .. idx]; var result = .interpret(code, sc); if(funcObj == var(null)) r ~= result.get!string; else r ~= funcObj(result).get!string; c = c[idx + 1 .. $]; idx = c.indexOf("#{"); } r ~= c; return var(r); } else { return var(content); } } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(interpolate(var(null), sc), sc); } } class BoolLiteralExpression : Expression { bool literal; this(string l) { literal = to!bool(l); } override string toString() { return to!string(literal); } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(var(literal), sc); } } class IntLiteralExpression : Expression { long literal; this(string s) { literal = to!long(s); } override string toString() { return to!string(literal); } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(var(literal), sc); } } class FloatLiteralExpression : Expression { this(string s) { literal = to!real(s); } real literal; override string toString() { return to!string(literal); } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(var(literal), sc); } } class NullLiteralExpression : Expression { this() {} override string toString() { return "null"; } override InterpretResult interpret(PrototypeObject sc) { var n; return InterpretResult(n, sc); } } class NegationExpression : Expression { Expression e; this(Expression e) { this.e = e;} override string toString() { return "-" ~ e.toString(); } override InterpretResult interpret(PrototypeObject sc) { var n = e.interpret(sc).value; return InterpretResult(-n, sc); } } class NotExpression : Expression { Expression e; this(Expression e) { this.e = e;} override string toString() { return "!" ~ e.toString(); } override InterpretResult interpret(PrototypeObject sc) { var n = e.interpret(sc).value; return InterpretResult(var(!n), sc); } } class BitFlipExpression : Expression { Expression e; this(Expression e) { this.e = e;} override string toString() { return "~" ~ e.toString(); } override InterpretResult interpret(PrototypeObject sc) { var n = e.interpret(sc).value; // possible FIXME given the size. but it is fuzzy when dynamic.. return InterpretResult(var(~(n.get!long)), sc); } } class ArrayLiteralExpression : Expression { this() {} override string toString() { string s = "["; foreach(i, ele; elements) { if(i) s ~= ", "; s ~= ele.toString(); } s ~= "]"; return s; } Expression[] elements; override InterpretResult interpret(PrototypeObject sc) { var n = var.emptyArray; foreach(i, element; elements) n[i] = element.interpret(sc).value; return InterpretResult(n, sc); } } class ObjectLiteralExpression : Expression { Expression[string] elements; override string toString() { string s = "#{"; bool first = true; foreach(k, e; elements) { if(first) first = false; else s ~= ", "; s ~= "\"" ~ k ~ "\":"; // FIXME: escape if needed s ~= e.toString(); } s ~= "}"; return s; } PrototypeObject backing; this(PrototypeObject backing = null) { this.backing = backing; } override InterpretResult interpret(PrototypeObject sc) { var n; if(backing is null) n = var.emptyObject; else n._object = backing; foreach(k, v; elements) n[k] = v.interpret(sc).value; return InterpretResult(n, sc); } } class FunctionLiteralExpression : Expression { this() { // we want this to not be null at all when we're interpreting since it is used as a comparison for a magic operation if(DefaultArgumentDummyObject is null) DefaultArgumentDummyObject = new PrototypeObject(); } this(VariableDeclaration args, Expression bod, PrototypeObject lexicalScope = null) { this(); this.arguments = args; this.functionBody = bod; this.lexicalScope = lexicalScope; } override string toString() { string s = (isMacro ? "macro" : "function") ~ " ("; if(arguments !is null) s ~= arguments.toString(); s ~= ") "; s ~= functionBody.toString(); return s; } /* function identifier (arg list) expression so var e = function foo() 10; // valid var e = function foo() { return 10; } // also valid // the return value is just the last expression's result that was evaluated // to return void, be sure to do a "return;" at the end of the function */ VariableDeclaration arguments; Expression functionBody; // can be a ScopeExpression btw PrototypeObject lexicalScope; bool isMacro; override InterpretResult interpret(PrototypeObject sc) { assert(DefaultArgumentDummyObject !is null); var v; v._metadata = new ScriptFunctionMetadata(this); v._function = (var _this, var[] args) { auto argumentsScope = new PrototypeObject(); PrototypeObject scToUse; if(lexicalScope is null) scToUse = sc; else { scToUse = lexicalScope; scToUse._secondary = sc; } argumentsScope.prototype = scToUse; argumentsScope._getMember("this", false, false) = _this; argumentsScope._getMember("_arguments", false, false) = args; argumentsScope._getMember("_thisfunc", false, false) = v; if(arguments) foreach(i, identifier; arguments.identifiers) { argumentsScope._getMember(identifier, false, false); // create it in this scope... if(i < args.length && !(args[i].payloadType() == var.Type.Object && args[i]._payload._object is DefaultArgumentDummyObject)) argumentsScope._getMember(identifier, false, true) = args[i]; else if(arguments.initializers[i] !is null) argumentsScope._getMember(identifier, false, true) = arguments.initializers[i].interpret(sc).value; } if(functionBody !is null) return functionBody.interpret(argumentsScope).value; else { assert(0); } }; if(isMacro) { var n = var.emptyObject; n._object = new MacroPrototype(v); v = n; } return InterpretResult(v, sc); } } class CastExpression : Expression { string type; Expression e1; override string toString() { return "cast(" ~ type ~ ") " ~ e1.toString(); } override InterpretResult interpret(PrototypeObject sc) { var n = e1.interpret(sc).value; foreach(possibleType; CtList!("int", "long", "float", "double", "real", "char", "dchar", "string", "int[]", "string[]", "float[]")) { if(type == possibleType) n = mixin("cast(" ~ possibleType ~ ") n"); } return InterpretResult(n, sc); } } class VariableDeclaration : Expression { string[] identifiers; Expression[] initializers; this() {} override string toString() { string s = ""; foreach(i, ident; identifiers) { if(i) s ~= ", "; s ~= "var " ~ ident; if(initializers[i] !is null) s ~= " = " ~ initializers[i].toString(); } return s; } override InterpretResult interpret(PrototypeObject sc) { var n; foreach(i, identifier; identifiers) { n = sc._getMember(identifier, false, false); auto initializer = initializers[i]; if(initializer) { n = initializer.interpret(sc).value; sc._getMember(identifier, false, false) = n; } } return InterpretResult(n, sc); } } template CtList(T...) { alias CtList = T; } class BinaryExpression : Expression { string op; Expression e1; Expression e2; override string toString() { return e1.toString() ~ " " ~ op ~ " " ~ e2.toString(); } override string toInterpretedString(PrototypeObject sc) { return e1.toInterpretedString(sc) ~ " " ~ op ~ " " ~ e2.toInterpretedString(sc); } this(string op, Expression e1, Expression e2) { this.op = op; this.e1 = e1; this.e2 = e2; } override InterpretResult interpret(PrototypeObject sc) { var left = e1.interpret(sc).value; var right = e2.interpret(sc).value; //writeln(left, " "~op~" ", right); var n; sw: switch(op) { // I would actually kinda prefer this to be static foreach, but normal // tuple foreach here has broaded compiler compatibility. foreach(ctOp; CtList!("+", "-", "*", "/", "==", "!=", "<=", ">=", ">", "<", "~", "&&", "||", "&", "|", "^", "%")) //, ">>", "<<", ">>>")) // FIXME case ctOp: { n = mixin("left "~ctOp~" right"); break sw; } default: assert(0, op); } return InterpretResult(n, sc); } } class OpAssignExpression : Expression { string op; Expression e1; Expression e2; this(string op, Expression e1, Expression e2) { this.op = op; this.e1 = e1; this.e2 = e2; } override string toString() { return e1.toString() ~ " " ~ op ~ "= " ~ e2.toString(); } override InterpretResult interpret(PrototypeObject sc) { auto v = cast(VariableExpression) e1; if(v is null) throw new ScriptRuntimeException("not an lvalue", null, 0 /* FIXME */); var right = e2.interpret(sc).value; //writeln(left, " "~op~"= ", right); var n; foreach(ctOp; CtList!("+=", "-=", "*=", "/=", "~=", "&=", "|=", "^=", "%=")) if(ctOp[0..1] == op) n = mixin("v.getVar(sc) "~ctOp~" right"); // FIXME: ensure the variable is updated in scope too return InterpretResult(n, sc); } } class PipelineExpression : Expression { Expression e1; Expression e2; CallExpression ce; ScriptLocation loc; this(ScriptLocation loc, Expression e1, Expression e2) { this.loc = loc; this.e1 = e1; this.e2 = e2; if(auto ce = cast(CallExpression) e2) { this.ce = new CallExpression(loc, ce.func); this.ce.arguments = [e1] ~ ce.arguments; } else { this.ce = new CallExpression(loc, e2); this.ce.arguments ~= e1; } } override string toString() { return e1.toString() ~ " |> " ~ e2.toString(); } override InterpretResult interpret(PrototypeObject sc) { return ce.interpret(sc); } } class AssignExpression : Expression { Expression e1; Expression e2; bool suppressOverloading; this(Expression e1, Expression e2, bool suppressOverloading = false) { this.e1 = e1; this.e2 = e2; this.suppressOverloading = suppressOverloading; } override string toString() { return e1.toString() ~ " = " ~ e2.toString(); } override InterpretResult interpret(PrototypeObject sc) { auto v = cast(VariableExpression) e1; if(v is null) throw new ScriptRuntimeException("not an lvalue", null, 0 /* FIXME */); auto ret = v.setVar(sc, e2.interpret(sc).value, false, suppressOverloading); return InterpretResult(ret, sc); } } class VariableExpression : Expression { string identifier; this(string identifier) { this.identifier = identifier; } override string toString() { return identifier; } override string toInterpretedString(PrototypeObject sc) { return getVar(sc).get!string; } ref var getVar(PrototypeObject sc, bool recurse = true) { return sc._getMember(identifier, true /* FIXME: recurse?? */, true); } ref var setVar(PrototypeObject sc, var t, bool recurse = true, bool suppressOverloading = false) { return sc._setMember(identifier, t, true /* FIXME: recurse?? */, true, suppressOverloading); } ref var getVarFrom(PrototypeObject sc, ref var v) { return v[identifier]; } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(getVar(sc), sc); } } class SuperExpression : Expression { VariableExpression dot; string origDot; this(VariableExpression dot) { if(dot !is null) { origDot = dot.identifier; //dot.identifier = "__super_" ~ dot.identifier; // omg this is so bad } this.dot = dot; } override string toString() { if(dot is null) return "super"; else return "super." ~ origDot; } override InterpretResult interpret(PrototypeObject sc) { var a = sc._getMember("super", true, true); if(a._object is null) throw new Exception("null proto for super"); PrototypeObject proto = a._object.prototype; if(proto is null) throw new Exception("no super"); //proto = proto.prototype; if(dot !is null) a = proto._getMember(dot.identifier, true, true); else a = proto._getMember("__ctor", true, true); return InterpretResult(a, sc); } } class DotVarExpression : VariableExpression { Expression e1; VariableExpression e2; bool recurse = true; this(Expression e1) { this.e1 = e1; super(null); } this(Expression e1, VariableExpression e2, bool recurse = true) { this.e1 = e1; this.e2 = e2; this.recurse = recurse; //assert(typeid(e2) == typeid(VariableExpression)); super("<do not use>");//e1.identifier ~ "." ~ e2.identifier); } override string toString() { return e1.toString() ~ "." ~ e2.toString(); } override ref var getVar(PrototypeObject sc, bool recurse = true) { if(!this.recurse) { // this is a special hack... if(auto ve = cast(VariableExpression) e1) { return ve.getVar(sc)._getOwnProperty(e2.identifier); } assert(0); } if(e2.identifier == "__source") { auto val = e1.interpret(sc).value; if(auto meta = cast(ScriptFunctionMetadata) val._metadata) return *(new var(meta.convertToString())); else return *(new var(val.toJson())); } if(auto ve = cast(VariableExpression) e1) { return this.getVarFrom(sc, ve.getVar(sc, recurse)); } else if(cast(StringLiteralExpression) e1 && e2.identifier == "interpolate") { auto se = cast(StringLiteralExpression) e1; var* functor = new var; //if(!se.allowInterpolation) //throw new ScriptRuntimeException("Cannot interpolate this string", se.token.lineNumber); (*functor)._function = (var _this, var[] args) { return se.interpolate(args.length ? args[0] : var(null), sc); }; return *functor; } else { // make a temporary for the lhs auto v = new var(); *v = e1.interpret(sc).value; return this.getVarFrom(sc, *v); } } override ref var setVar(PrototypeObject sc, var t, bool recurse = true, bool suppressOverloading = false) { if(suppressOverloading) return e1.interpret(sc).value.opIndexAssignNoOverload(t, e2.identifier); else return e1.interpret(sc).value.opIndexAssign(t, e2.identifier); } override ref var getVarFrom(PrototypeObject sc, ref var v) { return e2.getVarFrom(sc, v); } override string toInterpretedString(PrototypeObject sc) { return getVar(sc).get!string; } } class IndexExpression : VariableExpression { Expression e1; Expression e2; this(Expression e1, Expression e2) { this.e1 = e1; this.e2 = e2; super(null); } override string toString() { return e1.toString() ~ "[" ~ e2.toString() ~ "]"; } override ref var getVar(PrototypeObject sc, bool recurse = true) { if(auto ve = cast(VariableExpression) e1) return ve.getVar(sc, recurse)[e2.interpret(sc).value]; else { auto v = new var(); *v = e1.interpret(sc).value; return this.getVarFrom(sc, *v); } } override ref var setVar(PrototypeObject sc, var t, bool recurse = true, bool suppressOverloading = false) { return getVar(sc,recurse) = t; } } class SliceExpression : Expression { // e1[e2 .. e3] Expression e1; Expression e2; Expression e3; this(Expression e1, Expression e2, Expression e3) { this.e1 = e1; this.e2 = e2; this.e3 = e3; } override string toString() { return e1.toString() ~ "[" ~ e2.toString() ~ " .. " ~ e3.toString() ~ "]"; } override InterpretResult interpret(PrototypeObject sc) { var lhs = e1.interpret(sc).value; auto specialScope = new PrototypeObject(); specialScope.prototype = sc; specialScope._getMember("$", false, false) = lhs.length; return InterpretResult(lhs[e2.interpret(specialScope).value .. e3.interpret(specialScope).value], sc); } } class LoopControlExpression : Expression { InterpretResult.FlowControl op; this(string op) { if(op == "continue") this.op = InterpretResult.FlowControl.Continue; else if(op == "break") this.op = InterpretResult.FlowControl.Break; else assert(0, op); } override string toString() { import std.string; return to!string(this.op).toLower(); } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(var(null), sc, op); } } class ReturnExpression : Expression { Expression value; this(Expression v) { value = v; } override string toString() { return "return " ~ value.toString(); } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(value.interpret(sc).value, sc, InterpretResult.FlowControl.Return); } } class ScopeExpression : Expression { this(Expression[] expressions) { this.expressions = expressions; } Expression[] expressions; override string toString() { string s; s = "{\n"; foreach(expr; expressions) { s ~= "\t"; s ~= expr.toString(); s ~= ";\n"; } s ~= "}"; return s; } override InterpretResult interpret(PrototypeObject sc) { var ret; auto innerScope = new PrototypeObject(); innerScope.prototype = sc; innerScope._getMember("__scope_exit", false, false) = var.emptyArray; innerScope._getMember("__scope_success", false, false) = var.emptyArray; innerScope._getMember("__scope_failure", false, false) = var.emptyArray; scope(exit) { foreach(func; innerScope._getMember("__scope_exit", false, true)) func(); } scope(success) { foreach(func; innerScope._getMember("__scope_success", false, true)) func(); } scope(failure) { foreach(func; innerScope._getMember("__scope_failure", false, true)) func(); } foreach(expression; expressions) { auto res = expression.interpret(innerScope); ret = res.value; if(res.flowControl != InterpretResult.FlowControl.Normal) return InterpretResult(ret, sc, res.flowControl); } return InterpretResult(ret, sc); } } class SwitchExpression : Expression { Expression expr; CaseExpression[] cases; CaseExpression default_; override InterpretResult interpret(PrototypeObject sc) { auto e = expr.interpret(sc); bool hitAny; bool fallingThrough; bool secondRun; var last; again: foreach(c; cases) { if(!secondRun && !fallingThrough && c is default_) continue; if(fallingThrough || (secondRun && c is default_) || c.condition.interpret(sc) == e) { fallingThrough = false; if(!secondRun) hitAny = true; InterpretResult ret; expr_loop: foreach(exp; c.expressions) { ret = exp.interpret(sc); with(InterpretResult.FlowControl) final switch(ret.flowControl) { case Normal: last = ret.value; break; case Return: case Goto: return ret; case Continue: fallingThrough = true; break expr_loop; case Break: return InterpretResult(last, sc); } } if(!fallingThrough) break; } } if(!hitAny && !secondRun) { secondRun = true; goto again; } return InterpretResult(last, sc); } } class CaseExpression : Expression { this(Expression condition) { this.condition = condition; } Expression condition; Expression[] expressions; override string toString() { string code; if(condition is null) code = "default:"; else code = "case " ~ condition.toString() ~ ":"; foreach(expr; expressions) code ~= "\n" ~ expr.toString() ~ ";"; return code; } override InterpretResult interpret(PrototypeObject sc) { // I did this inline up in the SwitchExpression above. maybe insane?! assert(0); } } unittest { interpret(q{ var a = 10; // case and break should work var brk; // var brk = switch doesn't parse, but this will..... // (I kinda went everything is an expression but not all the way. this code SUX.) brk = switch(a) { case 10: a = 30; break; case 30: a = 40; break; default: a = 0; } assert(a == 30); assert(brk == 30); // value of switch set to last expression evaled inside // so should default switch(a) { case 20: a = 40; break; default: a = 40; } assert(a == 40); switch(a) { case 40: a = 50; case 60: // no implicit fallthrough in this lang... a = 60; } assert(a == 50); var ret; ret = switch(a) { case 50: a = 60; continue; // request fallthrough. D uses "goto case", but I haven't implemented any goto yet so continue is best fit case 90: a = 70; } assert(a == 70); // the explicit `continue` requests fallthrough behavior assert(ret == 70); }); } class ForeachExpression : Expression { VariableDeclaration decl; Expression subject; Expression loopBody; override string toString() { return "foreach(" ~ decl.toString() ~ "; " ~ subject.toString() ~ ") " ~ loopBody.toString(); } override InterpretResult interpret(PrototypeObject sc) { var result; assert(loopBody !is null); auto loopScope = new PrototypeObject(); loopScope.prototype = sc; InterpretResult.FlowControl flowControl; static string doLoopBody() { return q{ if(decl.identifiers.length > 1) { sc._getMember(decl.identifiers[0], false, false) = i; sc._getMember(decl.identifiers[1], false, false) = item; } else { sc._getMember(decl.identifiers[0], false, false) = item; } auto res = loopBody.interpret(loopScope); result = res.value; flowControl = res.flowControl; if(flowControl == InterpretResult.FlowControl.Break) break; if(flowControl == InterpretResult.FlowControl.Return) break; //if(flowControl == InterpretResult.FlowControl.Continue) // this is fine, we still want to do the advancement };} var what = subject.interpret(sc).value; foreach(i, item; what) { mixin(doLoopBody()); } if(flowControl != InterpretResult.FlowControl.Return) flowControl = InterpretResult.FlowControl.Normal; return InterpretResult(result, sc, flowControl); } } class ForExpression : Expression { Expression initialization; Expression condition; Expression advancement; Expression loopBody; this() {} override InterpretResult interpret(PrototypeObject sc) { var result; assert(loopBody !is null); auto loopScope = new PrototypeObject(); loopScope.prototype = sc; if(initialization !is null) initialization.interpret(loopScope); InterpretResult.FlowControl flowControl; static string doLoopBody() { return q{ auto res = loopBody.interpret(loopScope); result = res.value; flowControl = res.flowControl; if(flowControl == InterpretResult.FlowControl.Break) break; if(flowControl == InterpretResult.FlowControl.Return) break; //if(flowControl == InterpretResult.FlowControl.Continue) // this is fine, we still want to do the advancement if(advancement) advancement.interpret(loopScope); };} if(condition !is null) { while(condition.interpret(loopScope).value) { mixin(doLoopBody()); } } else while(true) { mixin(doLoopBody()); } if(flowControl != InterpretResult.FlowControl.Return) flowControl = InterpretResult.FlowControl.Normal; return InterpretResult(result, sc, flowControl); } override string toString() { string code = "for("; if(initialization !is null) code ~= initialization.toString(); code ~= "; "; if(condition !is null) code ~= condition.toString(); code ~= "; "; if(advancement !is null) code ~= advancement.toString(); code ~= ") "; code ~= loopBody.toString(); return code; } } class IfExpression : Expression { Expression condition; Expression ifTrue; Expression ifFalse; this() {} override InterpretResult interpret(PrototypeObject sc) { InterpretResult result; assert(condition !is null); auto ifScope = new PrototypeObject(); ifScope.prototype = sc; if(condition.interpret(ifScope).value) { if(ifTrue !is null) result = ifTrue.interpret(ifScope); } else { if(ifFalse !is null) result = ifFalse.interpret(ifScope); } return InterpretResult(result.value, sc, result.flowControl); } override string toString() { string code = "if "; code ~= condition.toString(); code ~= " "; if(ifTrue !is null) code ~= ifTrue.toString(); else code ~= " { }"; if(ifFalse !is null) code ~= " else " ~ ifFalse.toString(); return code; } } class TernaryExpression : Expression { Expression condition; Expression ifTrue; Expression ifFalse; this() {} override InterpretResult interpret(PrototypeObject sc) { InterpretResult result; assert(condition !is null); auto ifScope = new PrototypeObject(); ifScope.prototype = sc; if(condition.interpret(ifScope).value) { result = ifTrue.interpret(ifScope); } else { result = ifFalse.interpret(ifScope); } return InterpretResult(result.value, sc, result.flowControl); } override string toString() { string code = ""; code ~= condition.toString(); code ~= " ? "; code ~= ifTrue.toString(); code ~= " : "; code ~= ifFalse.toString(); return code; } } // this is kinda like a placement new, and currently isn't exposed inside the language, // but is used for class inheritance class ShallowCopyExpression : Expression { Expression e1; Expression e2; this(Expression e1, Expression e2) { this.e1 = e1; this.e2 = e2; } override InterpretResult interpret(PrototypeObject sc) { auto v = cast(VariableExpression) e1; if(v is null) throw new ScriptRuntimeException("not an lvalue", null, 0 /* FIXME */); v.getVar(sc, false)._object.copyPropertiesFrom(e2.interpret(sc).value._object); return InterpretResult(var(null), sc); } } class NewExpression : Expression { Expression what; Expression[] args; this(Expression w) { what = w; } override InterpretResult interpret(PrototypeObject sc) { assert(what !is null); var[] args; foreach(arg; this.args) args ~= arg.interpret(sc).value; var original = what.interpret(sc).value; var n = original._copy_new; if(n.payloadType() == var.Type.Object) { var ctor = original.prototype ? original.prototype._getOwnProperty("__ctor") : var(null); if(ctor) ctor.apply(n, args); } return InterpretResult(n, sc); } } class ThrowExpression : Expression { Expression whatToThrow; ScriptToken where; this(Expression e, ScriptToken where) { whatToThrow = e; this.where = where; } override InterpretResult interpret(PrototypeObject sc) { assert(whatToThrow !is null); throw new ScriptException(whatToThrow.interpret(sc).value, ScriptLocation(where.scriptFilename, where.lineNumber)); assert(0); } } class ExceptionBlockExpression : Expression { Expression tryExpression; string[] catchVarDecls; Expression[] catchExpressions; Expression[] finallyExpressions; override InterpretResult interpret(PrototypeObject sc) { InterpretResult result; result.sc = sc; assert(tryExpression !is null); assert(catchVarDecls.length == catchExpressions.length); if(catchExpressions.length || (catchExpressions.length == 0 && finallyExpressions.length == 0)) try { result = tryExpression.interpret(sc); } catch(NonScriptCatchableException e) { // the script cannot catch these so it continues up regardless throw e; } catch(Exception e) { var ex = var.emptyObject; ex.type = typeid(e).name; ex.msg = e.msg; ex.file = e.file; ex.line = e.line; // FIXME: this only allows one but it might be nice to actually do different types at some point if(catchExpressions.length) foreach(i, ce; catchExpressions) { auto catchScope = new PrototypeObject(); catchScope.prototype = sc; catchScope._getMember(catchVarDecls[i], false, false) = ex; result = ce.interpret(catchScope); } else result = InterpretResult(ex, sc); } finally { foreach(fe; finallyExpressions) result = fe.interpret(sc); } else try { result = tryExpression.interpret(sc); } finally { foreach(fe; finallyExpressions) result = fe.interpret(sc); } return result; } } class ParentheticalExpression : Expression { Expression inside; this(Expression inside) { this.inside = inside; } override string toString() { return "(" ~ inside.toString() ~ ")"; } override InterpretResult interpret(PrototypeObject sc) { return InterpretResult(inside.interpret(sc).value, sc); } } class AssertKeyword : Expression { ScriptToken token; this(ScriptToken token) { this.token = token; } override string toString() { return "assert"; } override InterpretResult interpret(PrototypeObject sc) { if(AssertKeywordObject is null) AssertKeywordObject = new PrototypeObject(); var dummy; dummy._object = AssertKeywordObject; return InterpretResult(dummy, sc); } } PrototypeObject AssertKeywordObject; PrototypeObject DefaultArgumentDummyObject; class CallExpression : Expression { Expression func; Expression[] arguments; ScriptLocation loc; override string toString() { string s = func.toString() ~ "("; foreach(i, arg; arguments) { if(i) s ~= ", "; s ~= arg.toString(); } s ~= ")"; return s; } this(ScriptLocation loc, Expression func) { this.loc = loc; this.func = func; } override string toInterpretedString(PrototypeObject sc) { return interpret(sc).value.get!string; } override InterpretResult interpret(PrototypeObject sc) { if(auto asrt = cast(AssertKeyword) func) { auto assertExpression = arguments[0]; Expression assertString; if(arguments.length > 1) assertString = arguments[1]; var v = assertExpression.interpret(sc).value; if(!v) throw new ScriptException( var(this.toString() ~ " failed, got: " ~ assertExpression.toInterpretedString(sc)), ScriptLocation(asrt.token.scriptFilename, asrt.token.lineNumber)); return InterpretResult(v, sc); } auto f = func.interpret(sc).value; bool isMacro = (f.payloadType == var.Type.Object && ((cast(MacroPrototype) f._payload._object) !is null)); var[] args; foreach(argument; arguments) if(argument !is null) { if(isMacro) // macro, pass the argument as an expression object args ~= argument.toScriptExpressionObject(sc); else // regular function, interpret the arguments args ~= argument.interpret(sc).value; } else { if(DefaultArgumentDummyObject is null) DefaultArgumentDummyObject = new PrototypeObject(); var dummy; dummy._object = DefaultArgumentDummyObject; args ~= dummy; } var _this; if(auto dve = cast(DotVarExpression) func) { _this = dve.e1.interpret(sc).value; } else if(auto ide = cast(IndexExpression) func) { _this = ide.interpret(sc).value; } else if(auto se = cast(SuperExpression) func) { // super things are passed this object despite looking things up on the prototype // so it calls the correct instance _this = sc._getMember("this", true, true); } try { return InterpretResult(f.apply(_this, args), sc); } catch(ScriptException se) { se.callStack ~= loc; throw se; } } } ScriptToken requireNextToken(MyTokenStreamHere)(ref MyTokenStreamHere tokens, ScriptToken.Type type, string str = null, string file = __FILE__, size_t line = __LINE__) { if(tokens.empty) throw new ScriptCompileException("script ended prematurely", null, 0, file, line); auto next = tokens.front; if(next.type != type || (str !is null && next.str != str)) throw new ScriptCompileException("unexpected '"~next.str~"' while expecting " ~ to!string(type) ~ " " ~ str, next.scriptFilename, next.lineNumber, file, line); tokens.popFront(); return next; } bool peekNextToken(MyTokenStreamHere)(MyTokenStreamHere tokens, ScriptToken.Type type, string str = null, string file = __FILE__, size_t line = __LINE__) { if(tokens.empty) return false; auto next = tokens.front; if(next.type != type || (str !is null && next.str != str)) return false; return true; } VariableExpression parseVariableName(MyTokenStreamHere)(ref MyTokenStreamHere tokens) { assert(!tokens.empty); auto token = tokens.front; if(token.type == ScriptToken.Type.identifier) { tokens.popFront(); return new VariableExpression(token.str); } throw new ScriptCompileException("Found "~token.str~" when expecting identifier", token.scriptFilename, token.lineNumber); } Expression parsePart(MyTokenStreamHere)(ref MyTokenStreamHere tokens) { if(!tokens.empty) { auto token = tokens.front; Expression e; if(token.str == "super") { tokens.popFront(); VariableExpression dot; if(!tokens.empty && tokens.front.str == ".") { tokens.popFront(); dot = parseVariableName(tokens); } e = new SuperExpression(dot); } else if(token.type == ScriptToken.Type.identifier) e = parseVariableName(tokens); else if(token.type == ScriptToken.Type.symbol && (token.str == "-" || token.str == "+" || token.str == "!" || token.str == "~")) { auto op = token.str; tokens.popFront(); e = parsePart(tokens); if(op == "-") e = new NegationExpression(e); else if(op == "!") e = new NotExpression(e); else if(op == "~") e = new BitFlipExpression(e); } else { tokens.popFront(); if(token.type == ScriptToken.Type.int_number) e = new IntLiteralExpression(token.str); else if(token.type == ScriptToken.Type.float_number) e = new FloatLiteralExpression(token.str); else if(token.type == ScriptToken.Type.string) e = new StringLiteralExpression(token); else if(token.type == ScriptToken.Type.symbol || token.type == ScriptToken.Type.keyword) { switch(token.str) { case "true": case "false": e = new BoolLiteralExpression(token.str); break; case "new": // FIXME: why is this needed here? maybe it should be here instead of parseExpression tokens.pushFront(token); return parseExpression(tokens); case "(": //tokens.popFront(); auto parenthetical = new ParentheticalExpression(parseExpression(tokens)); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); return parenthetical; case "[": // array literal auto arr = new ArrayLiteralExpression(); bool first = true; moreElements: if(tokens.empty) throw new ScriptCompileException("unexpected end of file when reading array literal", token.scriptFilename, token.lineNumber); auto peek = tokens.front; if(peek.type == ScriptToken.Type.symbol && peek.str == "]") { tokens.popFront(); return arr; } if(!first) tokens.requireNextToken(ScriptToken.Type.symbol, ","); else first = false; arr.elements ~= parseExpression(tokens); goto moreElements; case "json!q{": case "#{": // json object literal auto obj = new ObjectLiteralExpression(); /* these go string or ident which is the key then a colon then an expression which is the value then optionally a comma then either } which finishes it, or another key */ if(tokens.empty) throw new ScriptCompileException("unexpected end of file when reading object literal", token.scriptFilename, token.lineNumber); moreKeys: auto key = tokens.front; tokens.popFront(); if(key.type == ScriptToken.Type.symbol && key.str == "}") { // all done! e = obj; break; } if(key.type != ScriptToken.Type.string && key.type != ScriptToken.Type.identifier) { throw new ScriptCompileException("unexpected '"~key.str~"' when reading object literal", key.scriptFilename, key.lineNumber); } tokens.requireNextToken(ScriptToken.Type.symbol, ":"); auto value = parseExpression(tokens); if(tokens.empty) throw new ScriptCompileException("unclosed object literal", key.scriptFilename, key.lineNumber); if(tokens.peekNextToken(ScriptToken.Type.symbol, ",")) tokens.popFront(); obj.elements[key.str] = value; goto moreKeys; case "macro": case "function": tokens.requireNextToken(ScriptToken.Type.symbol, "("); auto exp = new FunctionLiteralExpression(); if(!tokens.peekNextToken(ScriptToken.Type.symbol, ")")) exp.arguments = parseVariableDeclaration(tokens, ")"); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); exp.functionBody = parseExpression(tokens); exp.isMacro = token.str == "macro"; e = exp; break; case "null": e = new NullLiteralExpression(); break; case "mixin": case "eval": tokens.requireNextToken(ScriptToken.Type.symbol, "("); e = new MixinExpression(parseExpression(tokens)); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); break; default: goto unknown; } } else { unknown: throw new ScriptCompileException("unexpected '"~token.str~"' when reading ident", token.scriptFilename, token.lineNumber); } } funcLoop: while(!tokens.empty) { auto peek = tokens.front; if(peek.type == ScriptToken.Type.symbol) { switch(peek.str) { case "(": e = parseFunctionCall(tokens, e); break; case "[": tokens.popFront(); auto e1 = parseExpression(tokens); if(tokens.peekNextToken(ScriptToken.Type.symbol, "..")) { tokens.popFront(); e = new SliceExpression(e, e1, parseExpression(tokens)); } else { e = new IndexExpression(e, e1); } tokens.requireNextToken(ScriptToken.Type.symbol, "]"); break; case ".": tokens.popFront(); e = new DotVarExpression(e, parseVariableName(tokens)); break; default: return e; // we don't know, punt it elsewhere } } else return e; // again, we don't know, so just punt it down the line } return e; } throw new ScriptCompileException("Ran out of tokens when trying to parsePart", null, 0); } Expression parseArguments(MyTokenStreamHere)(ref MyTokenStreamHere tokens, Expression exp, ref Expression[] where) { // arguments. auto peek = tokens.front; if(peek.type == ScriptToken.Type.symbol && peek.str == ")") { tokens.popFront(); return exp; } moreArguments: if(tokens.peekNextToken(ScriptToken.Type.keyword, "default")) { tokens.popFront(); where ~= null; } else { where ~= parseExpression(tokens); } if(tokens.empty) throw new ScriptCompileException("unexpected end of file when parsing call expression", peek.scriptFilename, peek.lineNumber); peek = tokens.front; if(peek.type == ScriptToken.Type.symbol && peek.str == ",") { tokens.popFront(); goto moreArguments; } else if(peek.type == ScriptToken.Type.symbol && peek.str == ")") { tokens.popFront(); return exp; } else throw new ScriptCompileException("unexpected '"~peek.str~"' when reading argument list", peek.scriptFilename, peek.lineNumber); } Expression parseFunctionCall(MyTokenStreamHere)(ref MyTokenStreamHere tokens, Expression e) { assert(!tokens.empty); auto peek = tokens.front; auto exp = new CallExpression(ScriptLocation(peek.scriptFilename, peek.lineNumber), e); tokens.popFront(); if(tokens.empty) throw new ScriptCompileException("unexpected end of file when parsing call expression", peek.scriptFilename, peek.lineNumber); return parseArguments(tokens, exp, exp.arguments); } Expression parseFactor(MyTokenStreamHere)(ref MyTokenStreamHere tokens) { auto e1 = parsePart(tokens); loop: while(!tokens.empty) { auto peek = tokens.front; if(peek.type == ScriptToken.Type.symbol) { switch(peek.str) { case "*": case "/": case "%": tokens.popFront(); e1 = new BinaryExpression(peek.str, e1, parsePart(tokens)); break; default: break loop; } } else throw new Exception("Got " ~ peek.str ~ " when expecting symbol"); } return e1; } Expression parseAddend(MyTokenStreamHere)(ref MyTokenStreamHere tokens) { auto e1 = parseFactor(tokens); loop: while(!tokens.empty) { auto peek = tokens.front; if(peek.type == ScriptToken.Type.symbol) { switch(peek.str) { case "..": // possible FIXME case ")": // possible FIXME case "]": // possible FIXME case "}": // possible FIXME case ",": // possible FIXME these are passed on to the next thing case ";": case ":": // idk return e1; case "|>": tokens.popFront(); e1 = new PipelineExpression(ScriptLocation(peek.scriptFilename, peek.lineNumber), e1, parseFactor(tokens)); break; case ".": tokens.popFront(); e1 = new DotVarExpression(e1, parseVariableName(tokens)); break; case "=": tokens.popFront(); return new AssignExpression(e1, parseExpression(tokens)); case "&&": // thanks to mzfhhhh for fix case "||": tokens.popFront(); e1 = new BinaryExpression(peek.str, e1, parseExpression(tokens)); break; case "?": // is this the right precedence? auto e = new TernaryExpression(); e.condition = e1; tokens.requireNextToken(ScriptToken.Type.symbol, "?"); e.ifTrue = parseExpression(tokens); tokens.requireNextToken(ScriptToken.Type.symbol, ":"); e.ifFalse = parseExpression(tokens); e1 = e; break; case "~": // FIXME: make sure this has the right associativity case "&": case "|": case "^": case "&=": case "|=": case "^=": case "+": case "-": case "==": case "!=": case "<=": case ">=": case "<": case ">": tokens.popFront(); e1 = new BinaryExpression(peek.str, e1, parseAddend(tokens)); break; case "+=": case "-=": case "*=": case "/=": case "~=": case "%=": tokens.popFront(); return new OpAssignExpression(peek.str[0..1], e1, parseExpression(tokens)); default: throw new ScriptCompileException("Parse error, unexpected " ~ peek.str ~ " when looking for operator", peek.scriptFilename, peek.lineNumber); } //} else if(peek.type == ScriptToken.Type.identifier || peek.type == ScriptToken.Type.number) { //return parseFactor(tokens); } else throw new ScriptCompileException("Parse error, unexpected '" ~ peek.str ~ "'", peek.scriptFilename, peek.lineNumber); } return e1; } Expression parseExpression(MyTokenStreamHere)(ref MyTokenStreamHere tokens, bool consumeEnd = false) { Expression ret; ScriptToken first; string expectedEnd = ";"; //auto e1 = parseFactor(tokens); while(tokens.peekNextToken(ScriptToken.Type.symbol, ";")) { tokens.popFront(); } if(!tokens.empty) { first = tokens.front; if(tokens.peekNextToken(ScriptToken.Type.symbol, "{")) { auto start = tokens.front; tokens.popFront(); auto e = parseCompoundStatement(tokens, start.lineNumber, "}").array; ret = new ScopeExpression(e); expectedEnd = null; // {} don't need ; at the end } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "scope")) { auto start = tokens.front; tokens.popFront(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); auto ident = tokens.requireNextToken(ScriptToken.Type.identifier); switch(ident.str) { case "success": case "failure": case "exit": break; default: throw new ScriptCompileException("unexpected " ~ ident.str ~ ". valid scope(idents) are success, failure, and exit", ident.scriptFilename, ident.lineNumber); } tokens.requireNextToken(ScriptToken.Type.symbol, ")"); string i = "__scope_" ~ ident.str; auto literal = new FunctionLiteralExpression(); literal.functionBody = parseExpression(tokens); auto e = new OpAssignExpression("~", new VariableExpression(i), literal); ret = e; } else if(tokens.peekNextToken(ScriptToken.Type.symbol, "(")) { auto start = tokens.front; tokens.popFront(); auto parenthetical = new ParentheticalExpression(parseExpression(tokens)); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); if(tokens.peekNextToken(ScriptToken.Type.symbol, "(")) { // we have a function call, e.g. (test)() ret = parseFunctionCall(tokens, parenthetical); } else ret = parenthetical; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "new")) { auto start = tokens.front; tokens.popFront(); auto expr = parseVariableName(tokens); auto ne = new NewExpression(expr); if(tokens.peekNextToken(ScriptToken.Type.symbol, "(")) { tokens.popFront(); parseArguments(tokens, ne, ne.args); } ret = ne; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "class")) { auto start = tokens.front; tokens.popFront(); Expression[] expressions; // the way classes work is they are actually object literals with a different syntax. new foo then just copies it /* we create a prototype object we create an object, with that prototype set all functions and static stuff to the prototype the rest goes to the object the expression returns the object we made */ auto vars = new VariableDeclaration(); vars.identifiers = ["__proto", "__obj"]; auto staticScopeBacking = new PrototypeObject(); auto instanceScopeBacking = new PrototypeObject(); vars.initializers = [new ObjectLiteralExpression(staticScopeBacking), new ObjectLiteralExpression(instanceScopeBacking)]; expressions ~= vars; // FIXME: operators need to have their this be bound somehow since it isn't passed // OR the op rewrite could pass this expressions ~= new AssignExpression( new DotVarExpression(new VariableExpression("__obj"), new VariableExpression("prototype")), new VariableExpression("__proto")); auto classIdent = tokens.requireNextToken(ScriptToken.Type.identifier); expressions ~= new AssignExpression( new DotVarExpression(new VariableExpression("__proto"), new VariableExpression("__classname")), new StringLiteralExpression(classIdent.str)); if(tokens.peekNextToken(ScriptToken.Type.symbol, ":")) { tokens.popFront(); auto inheritFrom = tokens.requireNextToken(ScriptToken.Type.identifier); // we set our prototype to the Foo prototype, thereby inheriting any static data that way (includes functions) // the inheritFrom object itself carries instance data that we need to copy onto our instance expressions ~= new AssignExpression( new DotVarExpression(new VariableExpression("__proto"), new VariableExpression("prototype")), new DotVarExpression(new VariableExpression(inheritFrom.str), new VariableExpression("prototype"))); expressions ~= new AssignExpression( new DotVarExpression(new VariableExpression("__proto"), new VariableExpression("super")), new VariableExpression(inheritFrom.str) ); // and copying the instance initializer from the parent expressions ~= new ShallowCopyExpression(new VariableExpression("__obj"), new VariableExpression(inheritFrom.str)); } tokens.requireNextToken(ScriptToken.Type.symbol, "{"); void addVarDecl(VariableDeclaration decl, string o) { foreach(i, ident; decl.identifiers) { // FIXME: make sure this goes on the instance, never the prototype! expressions ~= new AssignExpression( new DotVarExpression( new VariableExpression(o), new VariableExpression(ident), false), decl.initializers[i], true // no overloading because otherwise an early opIndexAssign can mess up the decls ); } } // FIXME: we could actually add private vars and just put them in this scope. maybe while(!tokens.peekNextToken(ScriptToken.Type.symbol, "}")) { if(tokens.peekNextToken(ScriptToken.Type.symbol, ";")) { tokens.popFront(); continue; } if(tokens.peekNextToken(ScriptToken.Type.identifier, "this")) { // ctor tokens.popFront(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); auto args = parseVariableDeclaration(tokens, ")"); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); auto bod = parseExpression(tokens); expressions ~= new AssignExpression( new DotVarExpression( new VariableExpression("__proto"), new VariableExpression("__ctor")), new FunctionLiteralExpression(args, bod, staticScopeBacking)); } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "var")) { // instance variable auto decl = parseVariableDeclaration(tokens, ";"); addVarDecl(decl, "__obj"); } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "static")) { // prototype var tokens.popFront(); auto decl = parseVariableDeclaration(tokens, ";"); addVarDecl(decl, "__proto"); } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "function")) { // prototype function tokens.popFront(); auto ident = tokens.requireNextToken(ScriptToken.Type.identifier); tokens.requireNextToken(ScriptToken.Type.symbol, "("); VariableDeclaration args; if(!tokens.peekNextToken(ScriptToken.Type.symbol, ")")) args = parseVariableDeclaration(tokens, ")"); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); auto bod = parseExpression(tokens); expressions ~= new AssignExpression( new DotVarExpression( new VariableExpression("__proto"), new VariableExpression(ident.str), false), new FunctionLiteralExpression(args, bod, staticScopeBacking)); } else throw new ScriptCompileException("Unexpected " ~ tokens.front.str ~ " when reading class decl", tokens.front.scriptFilename, tokens.front.lineNumber); } tokens.requireNextToken(ScriptToken.Type.symbol, "}"); // returning he object from the scope... expressions ~= new VariableExpression("__obj"); auto scopeExpr = new ScopeExpression(expressions); auto classVarExpr = new VariableDeclaration(); classVarExpr.identifiers = [classIdent.str]; classVarExpr.initializers = [scopeExpr]; ret = classVarExpr; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "if")) { tokens.popFront(); auto e = new IfExpression(); e.condition = parseExpression(tokens); e.ifTrue = parseExpression(tokens); if(tokens.peekNextToken(ScriptToken.Type.symbol, ";")) { tokens.popFront(); } if(tokens.peekNextToken(ScriptToken.Type.keyword, "else")) { tokens.popFront(); e.ifFalse = parseExpression(tokens); } ret = e; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "switch")) { tokens.popFront(); auto e = new SwitchExpression(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); e.expr = parseExpression(tokens); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); tokens.requireNextToken(ScriptToken.Type.symbol, "{"); while(!tokens.peekNextToken(ScriptToken.Type.symbol, "}")) { if(tokens.peekNextToken(ScriptToken.Type.keyword, "case")) { auto start = tokens.front; tokens.popFront(); auto c = new CaseExpression(parseExpression(tokens)); e.cases ~= c; tokens.requireNextToken(ScriptToken.Type.symbol, ":"); while(!tokens.peekNextToken(ScriptToken.Type.keyword, "default") && !tokens.peekNextToken(ScriptToken.Type.keyword, "case") && !tokens.peekNextToken(ScriptToken.Type.symbol, "}")) { c.expressions ~= parseStatement(tokens); while(tokens.peekNextToken(ScriptToken.Type.symbol, ";")) tokens.popFront(); } } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "default")) { tokens.popFront(); tokens.requireNextToken(ScriptToken.Type.symbol, ":"); auto c = new CaseExpression(null); while(!tokens.peekNextToken(ScriptToken.Type.keyword, "case") && !tokens.peekNextToken(ScriptToken.Type.symbol, "}")) { c.expressions ~= parseStatement(tokens); while(tokens.peekNextToken(ScriptToken.Type.symbol, ";")) tokens.popFront(); } e.cases ~= c; e.default_ = c; } else throw new ScriptCompileException("A switch statement must consists of cases and a default, nothing else ", tokens.front.scriptFilename, tokens.front.lineNumber); } tokens.requireNextToken(ScriptToken.Type.symbol, "}"); expectedEnd = ""; ret = e; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "foreach")) { tokens.popFront(); auto e = new ForeachExpression(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); e.decl = parseVariableDeclaration(tokens, ";"); tokens.requireNextToken(ScriptToken.Type.symbol, ";"); e.subject = parseExpression(tokens); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); e.loopBody = parseExpression(tokens); ret = e; expectedEnd = ""; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "cast")) { tokens.popFront(); auto e = new CastExpression(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); e.type = tokens.requireNextToken(ScriptToken.Type.identifier).str; if(tokens.peekNextToken(ScriptToken.Type.symbol, "[")) { e.type ~= "[]"; tokens.popFront(); tokens.requireNextToken(ScriptToken.Type.symbol, "]"); } tokens.requireNextToken(ScriptToken.Type.symbol, ")"); e.e1 = parseExpression(tokens); ret = e; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "for")) { tokens.popFront(); auto e = new ForExpression(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); e.initialization = parseStatement(tokens, ";"); tokens.requireNextToken(ScriptToken.Type.symbol, ";"); e.condition = parseExpression(tokens); tokens.requireNextToken(ScriptToken.Type.symbol, ";"); e.advancement = parseExpression(tokens); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); e.loopBody = parseExpression(tokens); ret = e; expectedEnd = ""; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "while")) { tokens.popFront(); auto e = new ForExpression(); e.condition = parseExpression(tokens); e.loopBody = parseExpression(tokens); ret = e; expectedEnd = ""; } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "break") || tokens.peekNextToken(ScriptToken.Type.keyword, "continue")) { auto token = tokens.front; tokens.popFront(); ret = new LoopControlExpression(token.str); } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "return")) { tokens.popFront(); Expression retVal; if(tokens.peekNextToken(ScriptToken.Type.symbol, ";")) retVal = new NullLiteralExpression(); else retVal = parseExpression(tokens); ret = new ReturnExpression(retVal); } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "throw")) { auto token = tokens.front; tokens.popFront(); ret = new ThrowExpression(parseExpression(tokens), token); } else if(tokens.peekNextToken(ScriptToken.Type.keyword, "try")) { auto tryToken = tokens.front; auto e = new ExceptionBlockExpression(); tokens.popFront(); e.tryExpression = parseExpression(tokens, true); bool hadSomething = false; while(tokens.peekNextToken(ScriptToken.Type.keyword, "catch")) { if(hadSomething) throw new ScriptCompileException("Only one catch block is allowed currently ", tokens.front.scriptFilename, tokens.front.lineNumber); hadSomething = true; tokens.popFront(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); if(tokens.peekNextToken(ScriptToken.Type.keyword, "var")) tokens.popFront(); auto ident = tokens.requireNextToken(ScriptToken.Type.identifier); e.catchVarDecls ~= ident.str; tokens.requireNextToken(ScriptToken.Type.symbol, ")"); e.catchExpressions ~= parseExpression(tokens); } while(tokens.peekNextToken(ScriptToken.Type.keyword, "finally")) { hadSomething = true; tokens.popFront(); e.finallyExpressions ~= parseExpression(tokens); } //if(!hadSomething) //throw new ScriptCompileException("Parse error, missing finally or catch after try", tryToken.lineNumber); ret = e; } else ret = parseAddend(tokens); } else { //assert(0); // return null; throw new ScriptCompileException("Parse error, unexpected end of input when reading expression", null, 0);//token.lineNumber); } //writeln("parsed expression ", ret.toString()); if(expectedEnd.length && tokens.empty && consumeEnd) // going loose on final ; at the end of input for repl convenience throw new ScriptCompileException("Parse error, unexpected end of input when reading expression, expecting " ~ expectedEnd, first.scriptFilename, first.lineNumber); if(expectedEnd.length && consumeEnd) { if(tokens.peekNextToken(ScriptToken.Type.symbol, expectedEnd)) tokens.popFront(); // FIXME //if(tokens.front.type != ScriptToken.Type.symbol && tokens.front.str != expectedEnd) //throw new ScriptCompileException("Parse error, missing "~expectedEnd~" at end of expression (starting on "~to!string(first.lineNumber)~"). Saw "~tokens.front.str~" instead", tokens.front.lineNumber); // tokens = tokens[1 .. $]; } return ret; } VariableDeclaration parseVariableDeclaration(MyTokenStreamHere)(ref MyTokenStreamHere tokens, string termination) { VariableDeclaration decl = new VariableDeclaration(); bool equalOk; anotherVar: assert(!tokens.empty); auto firstToken = tokens.front; // var a, var b is acceptable if(tokens.peekNextToken(ScriptToken.Type.keyword, "var")) tokens.popFront(); equalOk= true; if(tokens.empty) throw new ScriptCompileException("Parse error, dangling var at end of file", firstToken.scriptFilename, firstToken.lineNumber); Expression initializer; auto identifier = tokens.front; if(identifier.type != ScriptToken.Type.identifier) throw new ScriptCompileException("Parse error, found '"~identifier.str~"' when expecting var identifier", identifier.scriptFilename, identifier.lineNumber); tokens.popFront(); tryTermination: if(tokens.empty) throw new ScriptCompileException("Parse error, missing ; after var declaration at end of file", firstToken.scriptFilename, firstToken.lineNumber); auto peek = tokens.front; if(peek.type == ScriptToken.Type.symbol) { if(peek.str == "=") { if(!equalOk) throw new ScriptCompileException("Parse error, unexpected '"~identifier.str~"' after reading var initializer", peek.scriptFilename, peek.lineNumber); equalOk = false; tokens.popFront(); initializer = parseExpression(tokens); goto tryTermination; } else if(peek.str == ",") { tokens.popFront(); decl.identifiers ~= identifier.str; decl.initializers ~= initializer; goto anotherVar; } else if(peek.str == termination) { decl.identifiers ~= identifier.str; decl.initializers ~= initializer; //tokens = tokens[1 .. $]; // we're done! } else throw new ScriptCompileException("Parse error, unexpected '"~peek.str~"' when reading var declaration", peek.scriptFilename, peek.lineNumber); } else throw new ScriptCompileException("Parse error, unexpected '"~peek.str~"' when reading var declaration", peek.scriptFilename, peek.lineNumber); return decl; } Expression parseStatement(MyTokenStreamHere)(ref MyTokenStreamHere tokens, string terminatingSymbol = null) { skip: // FIXME if(tokens.empty) return null; if(terminatingSymbol !is null && (tokens.front.type == ScriptToken.Type.symbol && tokens.front.str == terminatingSymbol)) return null; // we're done auto token = tokens.front; // tokens = tokens[1 .. $]; final switch(token.type) { case ScriptToken.Type.keyword: case ScriptToken.Type.symbol: switch(token.str) { // assert case "assert": tokens.popFront(); return parseFunctionCall(tokens, new AssertKeyword(token)); //break; // declarations case "var": return parseVariableDeclaration(tokens, ";"); case ";": tokens.popFront(); // FIXME goto skip; // literals case "function": case "macro": // function can be a literal, or a declaration. tokens.popFront(); // we're peeking ahead if(tokens.peekNextToken(ScriptToken.Type.identifier)) { // decl style, rewrite it into var ident = function style // tokens.popFront(); // skipping the function keyword // already done above with the popFront auto ident = tokens.front; tokens.popFront(); tokens.requireNextToken(ScriptToken.Type.symbol, "("); auto exp = new FunctionLiteralExpression(); if(!tokens.peekNextToken(ScriptToken.Type.symbol, ")")) exp.arguments = parseVariableDeclaration(tokens, ")"); tokens.requireNextToken(ScriptToken.Type.symbol, ")"); exp.functionBody = parseExpression(tokens); // a ; should NOT be required here btw auto e = new VariableDeclaration(); e.identifiers ~= ident.str; e.initializers ~= exp; exp.isMacro = token.str == "macro"; return e; } else { tokens.pushFront(token); // put it back since everyone expects us to have done that goto case; // handle it like any other expression } case "json!{": case "#{": case "[": case "(": case "null": // scope case "{": case "scope": case "cast": // classes case "class": case "new": case "super": // flow control case "if": case "while": case "for": case "foreach": case "switch": // exceptions case "try": case "throw": // evals case "eval": case "mixin": // flow case "continue": case "break": case "return": return parseExpression(tokens); // unary prefix operators case "!": case "~": case "-": return parseExpression(tokens); // BTW add custom object operator overloading to struct var // and custom property overloading to PrototypeObject default: // whatever else keyword or operator related is actually illegal here throw new ScriptCompileException("Parse error, unexpected " ~ token.str, token.scriptFilename, token.lineNumber); } // break; case ScriptToken.Type.identifier: case ScriptToken.Type.string: case ScriptToken.Type.int_number: case ScriptToken.Type.float_number: return parseExpression(tokens); } assert(0); } struct CompoundStatementRange(MyTokenStreamHere) { // FIXME: if MyTokenStreamHere is not a class, this fails! MyTokenStreamHere tokens; int startingLine; string terminatingSymbol; bool isEmpty; this(MyTokenStreamHere t, int startingLine, string terminatingSymbol) { tokens = t; this.startingLine = startingLine; this.terminatingSymbol = terminatingSymbol; popFront(); } bool empty() { return isEmpty; } Expression got; Expression front() { return got; } void popFront() { while(!tokens.empty && (terminatingSymbol is null || !(tokens.front.type == ScriptToken.Type.symbol && tokens.front.str == terminatingSymbol))) { auto n = parseStatement(tokens, terminatingSymbol); if(n is null) continue; got = n; return; } if(tokens.empty && terminatingSymbol !is null) { throw new ScriptCompileException("Reached end of file while trying to reach matching " ~ terminatingSymbol, null, startingLine); } if(terminatingSymbol !is null) { assert(tokens.front.str == terminatingSymbol); tokens.skipNext++; } isEmpty = true; } } CompoundStatementRange!MyTokenStreamHere //Expression[] parseCompoundStatement(MyTokenStreamHere)(ref MyTokenStreamHere tokens, int startingLine = 1, string terminatingSymbol = null) { return (CompoundStatementRange!MyTokenStreamHere(tokens, startingLine, terminatingSymbol)); } auto parseScript(MyTokenStreamHere)(MyTokenStreamHere tokens) { /* the language's grammar is simple enough maybe flow control should be statements though lol. they might not make sense inside. Expressions: var identifier; var identifier = initializer; var identifier, identifier2 return expression; return ; json!{ object literal } { scope expression } [ array literal ] other literal function (arg list) other expression ( expression ) // parenthesized expression operator expression // unary expression expression operator expression // binary expression expression (other expression... args) // function call Binary Operator precedence : . [] * / + - ~ < > == != = */ return parseCompoundStatement(tokens); } var interpretExpressions(ExpressionStream)(ExpressionStream expressions, PrototypeObject variables) if(is(ElementType!ExpressionStream == Expression)) { assert(variables !is null); var ret; foreach(expression; expressions) { auto res = expression.interpret(variables); variables = res.sc; ret = res.value; } return ret; } var interpretStream(MyTokenStreamHere)(MyTokenStreamHere tokens, PrototypeObject variables) if(is(ElementType!MyTokenStreamHere == ScriptToken)) { assert(variables !is null); // this is an entry point that all others lead to, right before getting to interpretExpressions... return interpretExpressions(parseScript(tokens), variables); } var interpretStream(MyTokenStreamHere)(MyTokenStreamHere tokens, var variables) if(is(ElementType!MyTokenStreamHere == ScriptToken)) { return interpretStream(tokens, (variables.payloadType() == var.Type.Object && variables._payload._object !is null) ? variables._payload._object : new PrototypeObject()); } var interpret(string code, PrototypeObject variables, string scriptFilename = null) { assert(variables !is null); return interpretStream(lexScript(repeat(code, 1), scriptFilename), variables); } /++ This is likely your main entry point to the interpreter. It will interpret the script code given, with the given global variable object (which will be modified by the script, meaning you can pass it to subsequent calls to `interpret` to store context), and return the result of the last expression given. --- var globals = var.emptyObject; // the global object must be an object of some type globals.x = 10; globals.y = 15; // you can also set global functions through this same style, etc var result = interpret(`x + y`, globals); assert(result == 25); --- $(TIP If you want to just call a script function, interpret the definition of it, then just call it through the `globals` object you passed to it. --- var globals = var.emptyObject; interpret(`function foo(name) { return "hello, " ~ name ~ "!"; }`, globals); var result = globals.foo()("world"); assert(result == "hello, world!"); --- ) Params: code = the script source code you want to interpret scriptFilename = the filename of the script, if you want to provide it. Gives nicer error messages if you provide one. variables = The global object of the script context. It will be modified by the user script. Returns: the result of the last expression evaluated by the script engine +/ var interpret(string code, var variables = null, string scriptFilename = null) { return interpretStream( lexScript(repeat(code, 1), scriptFilename), (variables.payloadType() == var.Type.Object && variables._payload._object !is null) ? variables._payload._object : new PrototypeObject()); } /// var interpretFile(File file, var globals) { import std.algorithm; return interpretStream(lexScript(file.byLine.map!((a) => a.idup), file.name), (globals.payloadType() == var.Type.Object && globals._payload._object !is null) ? globals._payload._object : new PrototypeObject()); } /// Enhanced repl uses arsd.terminal for better ux. Added April 26, 2020. Default just uses std.stdio. void repl(bool enhanced = false)(var globals) { static if(enhanced) { import arsd.terminal; Terminal terminal = Terminal(ConsoleOutputMode.linear); auto lines() { struct Range { string line; string front() { return line; } bool empty() { return line is null; } void popFront() { line = terminal.getline(": "); terminal.writeln(); } } Range r; r.popFront(); return r; } void writeln(T...)(T t) { terminal.writeln(t); terminal.flush(); } } else { import std.stdio; auto lines() { return stdin.byLine; } } import std.algorithm; auto variables = (globals.payloadType() == var.Type.Object && globals._payload._object !is null) ? globals._payload._object : new PrototypeObject(); // we chain to ensure the priming popFront succeeds so we don't throw here auto tokens = lexScript( chain(["var __skipme = 0;"], map!((a) => a.idup)(lines)) , "stdin"); auto expressions = parseScript(tokens); while(!expressions.empty) { try { expressions.popFront; auto expression = expressions.front; auto res = expression.interpret(variables); variables = res.sc; writeln(">>> ", res.value); } catch(ScriptCompileException e) { writeln("*+* ", e.msg); tokens.popFront(); // skip the one we threw on... } catch(Exception e) { writeln("*** ", e.msg); } } } class ScriptFunctionMetadata : VarMetadata { FunctionLiteralExpression fle; this(FunctionLiteralExpression fle) { this.fle = fle; } string convertToString() { return fle.toString(); } }
D
void main() { auto hash = ["foo":42, "bar":100]; assert("foo" in hash); }
D
/++ The main module, housing startup logic and the main event loop. No module (save [kameloso.entrypoint]) should be importing this. See_Also: [kameloso.kameloso], [kameloso.common], [kameloso.config] Copyright: [JR](https://github.com/zorael) License: [Boost Software License 1.0](https://www.boost.org/users/license.html) Authors: [JR](https://github.com/zorael) +/ module kameloso.main; private: import kameloso.common : logger; import kameloso.kameloso : Kameloso; import kameloso.net : ListenAttempt; import kameloso.plugins.common.core : IRCPlugin; import kameloso.pods : CoreSettings; import dialect.defs; import lu.common : Next; import std.stdio : stdout; import std.typecons : Flag, No, Yes; // gcOptions /++ A value line for [rt_options] to fine-tune the garbage collector. Older compilers don't support all the garbage collector options newer compilers do (breakpoints being at `2.085` for the precise garbage collector and cleanup behaviour, and `2.098` for the forking one). So in one way or another we need to specialise for compiler versions. This is one way. See_Also: [rt_options] https://dlang.org/spec/garbage.html +/ enum gcOptions = () { import std.array : Appender; Appender!(char[]) sink; sink.reserve(128); sink.put("gcopt="); version(GCStatsOnExit) { sink.put("profile:1 "); } else version(unittest) { // Always print profile information on unittest builds sink.put("profile:1 "); } sink.put("cleanup:finalize "); version(PreciseGC) { sink.put("gc:precise "); } static if (__VERSION__ >= 2098L) { version(ConcurrentGC) { sink.put("fork:1 "); } } // Tweak these numbers as we see fit sink.put("initReserve:8 minPoolSize:8"); // incPoolSize:16 return sink.data; }().idup; // rt_options /++ Fine-tune the garbage collector. See_Also: [gcOptions] https://dlang.org/spec/garbage.html +/ extern(C) public __gshared const string[] rt_options = [ /++ Garbage collector options. +/ gcOptions, /++ Tells the garbage collector to scan the DATA and TLS segments precisely, on Windows. +/ "scanDataSeg=precise", ]; // globalAbort /++ Abort flag. This is set when the program is interrupted (such as via Ctrl+C). Other parts of the program will be monitoring it, to take the cue and abort when it is set. Must be `__gshared` or it doesn't seem to work on Windows. +/ public __gshared Flag!"abort" globalAbort; version(Posix) { // signalRaised /++ The value of the signal, when the process was sent one that meant it should abort. This determines the shell exit code to return. +/ private int signalRaised; } // signalHandler /++ Called when a signal is raised, usually `SIGINT`. Sets the [globalAbort] variable to true so other parts of the program knows to gracefully shut down. Params: sig = Integer value of the signal raised. +/ extern (C) void signalHandler(int sig) nothrow @nogc @system { import kameloso.common : globalHeadless; import core.stdc.stdio : printf; // $ kill -l // https://man7.org/linux/man-pages/man7/signal.7.html static immutable string[32] signalNames = [ 0 : "<err>", /// Should never happen. 1 : "HUP", /// Hangup detected on controlling terminal or death of controlling process. 2 : "INT", /// Interrupt from keyboard. 3 : "QUIT", /// Quit from keyboard. 4 : "ILL", /// Illegal instruction. 5 : "TRAP", /// Trace/breakpoint trap. 6 : "ABRT", /// Abort signal from `abort(3)`. 7 : "BUS", /// Bus error: access to an undefined portion of a memory object. 8 : "FPE", /// Floating-point exception. 9 : "KILL", /// Kill signal. 10 : "USR1", /// User-defined signal 1. 11 : "SEGV", /// Invalid memory reference. 12 : "USR2", /// User-defined signal 2. 13 : "PIPE", /// Broken pipe: write to pipe with no readers. 14 : "ALRM", /// Timer signal from `alarm(2)`. 15 : "TERM", /// Termination signal. 16 : "STKFLT",/// Stack fault on coprocessor. (unused?) 17 : "CHLD", /// Child stopped or terminated. 18 : "CONT", /// Continue if stopped. 19 : "STOP", /// Stop process. 20 : "TSTP", /// Stop typed at terminal. 21 : "TTIN", /// Terminal input for background process. 22 : "TTOU", /// Terminal output for background process. 23 : "URG", /// Urgent condition on socket. (4.2 BSD) 24 : "XCPU", /// CPU time limit exceeded. (4.2 BSD) 25 : "XFSZ", /// File size limit exceeded. (4.2 BSD) 26 : "VTALRM",/// Virtual alarm clock. (4.2 BSD) 27 : "PROF", /// Profile alarm clock. 28 : "WINCH", /// Window resize signal. (4.3 BSD, Sun) 29 : "POLL", /// Pollable event; a synonym for `SIGIO`: I/O now possible. (System V) 30 : "PWR", /// Power failure. (System V) 31 : "SYS", /// Bad system call. (SVr4) ]; if (globalHeadless && !*globalHeadless && (sig < signalNames.length)) { if (!globalAbort) { printf("...caught signal SIG%s!\n", signalNames[sig].ptr); } else if (sig == 2) { printf("...caught another signal SIG%s! " ~ "(press Enter if nothing happens, or Ctrl+C again)\n", signalNames[sig].ptr); } } if (globalAbort) resetSignals(); else globalAbort = Yes.abort; version(Posix) { signalRaised = sig; } } // messageFiber /++ A Generator Fiber function that checks for concurrency messages and performs action based on what was received. The return value yielded to the caller tells it whether the received action means the bot should exit or not. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. +/ void messageFiber(ref Kameloso instance) { import kameloso.common : OutgoingLine; import kameloso.constants : Timeout; import kameloso.messaging : Message; import kameloso.string : replaceTokens; import kameloso.thread : OutputRequest, ThreadMessage; import std.concurrency : yield; import std.datetime.systime : Clock; import core.time : Duration, msecs; // The Generator we use this function with popFronts the first thing it does // after being instantiated. We're not ready for that yet, so catch the next // yield (which is upon messenger.call()). yield(Next.init); // Loop forever; we'll just terminate the Generator when we want to quit. while (true) { auto next = Next.continue_; /++ Handle [kameloso.thread.ThreadMessage]s based on their [kameloso.thread.ThreadMessage.Type|Type]s. +/ void onThreadMessage(ThreadMessage message) scope { with (ThreadMessage.Type) switch (message.type) { case pong: /+ PONGs literally always have the same content, so micro-optimise this a bit by only allocating the string once and keeping it if the contents don't change. +/ static string pongline; if (!pongline.length || (pongline[6..$] != message.content)) { pongline = "PONG :" ~ message.content; } instance.priorityBuffer.put(OutgoingLine(pongline, Yes.quiet)); break; case ping: // No need to micro-optimise here, PINGs should be very rare immutable pingline = "PING :" ~ message.content; instance.priorityBuffer.put(OutgoingLine(pingline, Yes.quiet)); break; case sendline: instance.outbuffer.put(OutgoingLine( message.content, cast(Flag!"quiet")(message.quiet || instance.settings.hideOutgoing))); break; case quietline: instance.outbuffer.put(OutgoingLine( message.content, Yes.quiet)); break; case immediateline: instance.immediateBuffer.put(OutgoingLine( message.content, cast(Flag!"quiet")(message.quiet || instance.settings.hideOutgoing))); break; case shortenReceiveTimeout: instance.flags.wantReceiveTimeoutShortened = true; break; case busMessage: foreach (plugin; instance.plugins) { plugin.onBusMessage(message.content, message.payload); } break; case quit: // This will automatically close the connection. immutable reason = message.content.length ? message.content : instance.bot.quitReason; immutable quitMessage = "QUIT :" ~ reason.replaceTokens(instance.parser.client); instance.priorityBuffer.put(OutgoingLine( quitMessage, cast(Flag!"quiet")message.quiet)); instance.flags.quitMessageSent = true; next = Next.returnSuccess; break; case reconnect: import kameloso.thread : Boxed; if (auto boxedReexecFlag = cast(Boxed!bool)message.payload) { // Re-exec explicitly requested instance.flags.askedToReexec = boxedReexecFlag.payload; } else { // Normal reconnect instance.flags.askedToReconnect = true; } immutable quitMessage = message.content.length ? message.content : "Reconnecting."; instance.priorityBuffer.put(OutgoingLine( "QUIT :" ~ quitMessage, Yes.quiet)); instance.flags.quitMessageSent = true; next = Next.retry; break; case wantLiveSummary: instance.flags.wantLiveSummary = true; break; case abort: *instance.abort = Yes.abort; break; case reload: foreach (plugin; instance.plugins) { if (!plugin.isEnabled) continue; try { if (!message.content.length || (plugin.name == message.content)) { plugin.reload(); } } catch (Exception e) { enum pattern = "The <l>%s</> plugin threw an exception when reloading: <t>%s"; logger.errorf(pattern, plugin.name, e.msg); version(PrintStacktraces) logger.trace(e); } } break; case save: import kameloso.config : writeConfigurationFile; syncGuestChannels(instance); writeConfigurationFile(instance, instance.settings.configFile); break; case popCustomSetting: size_t[] toRemove; foreach (immutable i, immutable line; instance.customSettings) { import lu.string : nom; string slice = line; // mutable immutable setting = slice.nom!(Yes.inherit)('='); if (setting == message.content) toRemove ~= i; } foreach_reverse (immutable i; toRemove) { import std.algorithm.mutation : SwapStrategy, remove; instance.customSettings = instance.customSettings .remove!(SwapStrategy.unstable)(i); } toRemove = null; break; case putUser: import kameloso.thread : Boxed; auto boxedUser = cast(Boxed!IRCUser)message.payload; assert(boxedUser, "Incorrectly cast message payload: " ~ typeof(boxedUser).stringof); auto user = boxedUser.payload; foreach (plugin; instance.plugins) { if (auto existingUser = user.nickname in plugin.state.users) { immutable prevClass = existingUser.class_; *existingUser = user; existingUser.class_ = prevClass; } else { plugin.state.users[user.nickname] = user; } } break; default: enum pattern = "onThreadMessage received unexpected message type: <t>%s"; logger.errorf(pattern, message.type); if (instance.settings.flush) stdout.flush(); break; } } /++ Reverse-formats an event and sends it to the server. +/ void eventToServer(Message m) scope { import lu.string : splitLineAtPosition; import std.conv : text; import std.format : format; enum maxIRCLineLength = 512-2; // sans CRLF version(TwitchSupport) { // The first two checks are probably superfluous immutable fast = (instance.parser.server.daemon == IRCServer.Daemon.twitch) && (m.event.type != IRCEvent.Type.QUERY) && (m.properties & Message.Property.fast); } immutable background = (m.properties & Message.Property.background); immutable quietFlag = cast(Flag!"quiet") (instance.settings.hideOutgoing || (m.properties & Message.Property.quiet)); immutable force = (m.properties & Message.Property.forced); immutable priority = (m.properties & Message.Property.priority); immutable immediate = (m.properties & Message.Property.immediate); string line; string prelude; string[] lines; with (IRCEvent.Type) switch (m.event.type) { case CHAN: enum pattern = "PRIVMSG %s :"; prelude = pattern.format(m.event.channel); lines = m.event.content.splitLineAtPosition(' ', maxIRCLineLength-prelude.length); break; case QUERY: version(TwitchSupport) { if (instance.parser.server.daemon == IRCServer.Daemon.twitch) { /*if (m.event.target.nickname == instance.parser.client.nickname) { // "You cannot whisper to yourself." (whisper_invalid_self) return; }*/ enum pattern = "PRIVMSG #%s :/w %s "; prelude = pattern.format(instance.parser.client.nickname, m.event.target.nickname); } } enum pattern = "PRIVMSG %s :"; if (!prelude.length) prelude = pattern.format(m.event.target.nickname); lines = m.event.content.splitLineAtPosition(' ', maxIRCLineLength-prelude.length); break; case EMOTE: immutable emoteTarget = m.event.target.nickname.length ? m.event.target.nickname : m.event.channel; version(TwitchSupport) { if (instance.parser.server.daemon == IRCServer.Daemon.twitch) { enum pattern = "PRIVMSG %s :/me "; prelude = pattern.format(emoteTarget); lines = m.event.content.splitLineAtPosition(' ', maxIRCLineLength-prelude.length); } } if (!prelude.length) { import dialect.common : IRCControlCharacter; enum pattern = "PRIVMSG %s :%cACTION %s%2$c"; line = pattern.format(emoteTarget, cast(char)IRCControlCharacter.ctcp, m.event.content); } break; case MODE: import lu.string : strippedRight; enum pattern = "MODE %s %s %s"; line = pattern.format(m.event.channel, m.event.aux[0], m.event.content.strippedRight); break; case TOPIC: enum pattern = "TOPIC %s :%s"; line = pattern.format(m.event.channel, m.event.content); break; case INVITE: enum pattern = "INVITE %s %s"; line = pattern.format(m.event.channel, m.event.target.nickname); break; case JOIN: if (m.event.aux[0].length) { // Key, assume only one channel line = text("JOIN ", m.event.channel, ' ', m.event.aux[0]); } else { prelude = "JOIN "; lines = m.event.channel.splitLineAtPosition(',', maxIRCLineLength-prelude.length); } break; case KICK: immutable reason = m.event.content.length ? " :" ~ m.event.content : string.init; enum pattern = "KICK %s %s%s"; line = pattern.format(m.event.channel, m.event.target.nickname, reason); break; case PART: if (m.event.content.length) { // Reason given, assume only one channel line = text( "PART ", m.event.channel, " :", m.event.content.replaceTokens(instance.parser.client)); } else { prelude = "PART "; lines = m.event.channel.splitLineAtPosition(',', maxIRCLineLength-prelude.length); } break; case NICK: line = "NICK " ~ m.event.target.nickname; break; case PRIVMSG: if (m.event.channel.length) { goto case CHAN; } else { goto case QUERY; } case RPL_WHOISACCOUNT: import kameloso.constants : Timeout; import std.datetime.systime : Clock; immutable then = instance.previousWhoisTimestamps.get(m.event.target.nickname, 0); immutable hysteresis = force ? 1 : Timeout.whoisRetry; version(TraceWhois) { version(unittest) {} else { import std.stdio : writef, writefln, writeln; enum pattern = "[TraceWhois] messageFiber caught request to " ~ "WHOIS \"%s\" from %s (quiet:%s, background:%s)"; writef( pattern, m.event.target.nickname, m.caller, cast(bool)quietFlag, cast(bool)background); } } if ((m.event.time - then) > hysteresis) { version(TraceWhois) { version(unittest) {} else { writeln(" ...and actually issuing."); } } line = "WHOIS " ~ m.event.target.nickname; instance.previousWhoisTimestamps[m.event.target.nickname] = m.event.time; propagateWhoisTimestamp(instance, m.event.target.nickname, m.event.time); } else { version(TraceWhois) { version(unittest) {} else { enum alreadyIssuedPattern = " ...but already issued %d seconds ago."; writefln(alreadyIssuedPattern, (m.event.time - then)); } } } version(TraceWhois) { if (instance.settings.flush) stdout.flush(); } break; case QUIT: immutable rawReason = m.event.content.length ? m.event.content : instance.bot.quitReason; immutable reason = rawReason.replaceTokens(instance.parser.client); line = "QUIT :" ~ reason; instance.flags.quitMessageSent = true; next = Next.returnSuccess; break; case UNSET: line = m.event.content; break; default: logger.error("messageFiber.eventToServer missing case for outgoing event type <l>", m.event.type); break; } void appropriateline(const string finalLine) { if (immediate) { return instance.immediateBuffer.put(OutgoingLine(finalLine, quietFlag)); } version(TwitchSupport) { if (/*(instance.parser.server.daemon == IRCServer.Daemon.twitch) &&*/ fast) { // Send a line via the fastbuffer, faster than normal sends. return instance.fastbuffer.put(OutgoingLine(finalLine, quietFlag)); } } if (priority) { instance.priorityBuffer.put(OutgoingLine(finalLine, quietFlag)); } else if (background) { // Send a line via the low-priority background buffer. instance.backgroundBuffer.put(OutgoingLine(finalLine, quietFlag)); } else if (quietFlag) { instance.outbuffer.put(OutgoingLine(finalLine, Yes.quiet)); } else { instance.outbuffer.put(OutgoingLine(finalLine, cast(Flag!"quiet")instance.settings.hideOutgoing)); } } if (lines.length) { foreach (immutable i, immutable splitLine; lines) { immutable finalLine = m.event.tags.length ? text('@', m.event.tags, ' ', prelude, splitLine) : text(prelude, splitLine); appropriateline(finalLine); } } else if (line.length) { if (m.event.tags.length) line = text('@', m.event.tags, ' ', line); appropriateline(line); } lines = null; } /++ Proxies the passed message to the [kameloso.logger.logger]. +/ void proxyLoggerMessages(OutputRequest request) scope { if (instance.settings.headless) return; with (OutputRequest.Level) final switch (request.logLevel) { case writeln: import kameloso.logger : LogLevel; import kameloso.terminal.colours.tags : expandTags; import std.stdio : writeln; writeln(request.line.expandTags(LogLevel.off)); if (instance.settings.flush) stdout.flush(); break; case trace: logger.trace(request.line); break; case log: logger.log(request.line); break; case info: logger.info(request.line); break; case warning: logger.warning(request.line); break; case error: logger.error(request.line); break; case critical: logger.critical(request.line); break; case fatal: logger.fatal(request.line); break; } } /++ Timestamp of when the loop started. +/ immutable loopStartTime = Clock.currTime; static immutable maxReceiveTime = Timeout.messageReadMsecs.msecs; while (!*instance.abort && (next == Next.continue_) && ((Clock.currTime - loopStartTime) <= maxReceiveTime)) { import std.concurrency : receiveTimeout; import std.variant : Variant; immutable receivedSomething = receiveTimeout(Duration.zero, &onThreadMessage, &eventToServer, &proxyLoggerMessages, (Variant v) scope { // Caught an unhandled message enum pattern = "Main thread message fiber received unknown Variant: <l>%s"; logger.warningf(pattern, v.type); } ); if (!receivedSomething) break; } yield(next); } assert(0, "`while (true)` loop break in `messageFiber`"); } // mainLoop /++ This loops creates a [std.concurrency.Generator|Generator] [core.thread.fiber.Fiber|Fiber] to loop over the connected [std.socket.Socket|Socket]. Full lines are stored in [kameloso.net.ListenAttempt|ListenAttempt]s, which are yielded in the [std.concurrency.Generator|Generator] to be caught here, consequently parsed into [dialect.defs.IRCEvent|IRCEvent]s, and then dispatched to all plugins. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. Returns: [lu.common.Next.returnFailure|Next.returnFailure] if circumstances mean the bot should exit with a non-zero exit code, [lu.common.Next.returnSuccess|Next.returnSuccess] if it should exit by returning `0`, [lu.common.Next.retry|Next.retry] if the bot should reconnect to the server. [lu.common.Next.continue_|Next.continue_] is never returned. +/ auto mainLoop(ref Kameloso instance) { import kameloso.constants : Timeout; import kameloso.net : ListenAttempt, SocketSendException, listenFiber; import std.concurrency : Generator; import std.datetime.systime : Clock, SysTime; import core.thread : Fiber; /// Variable denoting what we should do next loop. Next next; alias State = ListenAttempt.State; // Instantiate a Generator to read from the socket and yield lines auto listener = new Generator!ListenAttempt(() => listenFiber( instance.conn, *instance.abort, Timeout.connectionLost)); // Likewise a Generator to handle concurrency messages auto messenger = new Generator!Next(() => messageFiber(instance)); scope(exit) { destroy(listener); destroy(messenger); listener = null; messenger = null; } /++ Invokes the messenger Generator. +/ Next callMessenger() { try { messenger.call(); } catch (Exception e) { import kameloso.string : doublyBackslashed; enum pattern = "Unhandled messenger exception: <t>%s</> (at <l>%s</>:<l>%d</>)"; logger.warningf(pattern, e.msg, e.file.doublyBackslashed, e.line); version(PrintStacktraces) logger.trace(e); return Next.returnFailure; } if (messenger.state == Fiber.State.HOLD) { return messenger.front; } else { logger.error("Internal error, thread messenger Fiber ended unexpectedly."); return Next.returnFailure; } } /++ Processes buffers and sends queued messages to the server. +/ void processBuffers(ref uint timeoutFromMessages) { bool buffersHaveMessages = ( !instance.outbuffer.empty | !instance.backgroundBuffer.empty | !instance.immediateBuffer.empty | !instance.priorityBuffer.empty); version(TwitchSupport) { buffersHaveMessages |= !instance.fastbuffer.empty; } if (buffersHaveMessages) { immutable untilNext = sendLines(instance); if ((untilNext > 0.0) && (untilNext < instance.connSettings.messageBurst)) { immutable untilNextMsecs = cast(uint)(untilNext * 1000); if (untilNextMsecs < instance.conn.receiveTimeout) { timeoutFromMessages = untilNextMsecs; } } } } // Immediately check for messages, in case starting plugins left some next = callMessenger(); if (next != Next.continue_) return next; /// The history entry for the current connection. Kameloso.ConnectionHistoryEntry* historyEntry; immutable historyEntryIndex = instance.connectionHistory.length; // snapshot index, 0 at first instance.connectionHistory ~= Kameloso.ConnectionHistoryEntry.init; historyEntry = &instance.connectionHistory[historyEntryIndex]; historyEntry.startTime = Clock.currTime.toUnixTime; historyEntry.stopTime = historyEntry.startTime; // In case we abort before the first read is recorded /// UNIX timestamp of when the Socket receive timeout was shortened. long timeWhenReceiveWasShortened; /// `Timeout.maxShortenDurationMsecs` in hecto-nanoseconds. enum maxShortenDurationHnsecs = Timeout.maxShortenDurationMsecs * 10_000; /++ The timestamp of when the previous loop started. Start at `SysTime.init` so the first tick always runs. +/ SysTime previousLoop; // = Clock.currTime; do { if (*instance.abort) return Next.returnFailure; if (!instance.settings.headless && instance.flags.wantLiveSummary) { // Live connection summary requested. printSummary(instance); instance.flags.wantLiveSummary = false; } if (listener.state == Fiber.State.TERM) { // Listening Generator disconnected by itself; reconnect return Next.retry; } immutable now = Clock.currTime; immutable nowInUnix = now.toUnixTime; immutable nowInHnsecs = now.stdTime; immutable elapsed = (now - previousLoop); /// The timestamp of the next scheduled delegate or fiber across all plugins. long nextGlobalScheduledTimestamp; /// Whether or not blocking was disabled on the socket to force an instant read timeout. bool socketBlockingDisabled; /// Whether or not to check messages after doing the pre-onEvent routines bool shouldCheckMessages; /// Adjusted receive timeout based on outgoing message buffers. uint timeoutFromMessages = uint.max; foreach (plugin; instance.plugins) { if (!plugin.isEnabled) continue; // Tick the plugin, and flag to check for messages if it returns true shouldCheckMessages |= plugin.tick(elapsed); if (plugin.state.specialRequests.length) { scope(exit) instance.checkPluginForUpdates(plugin); try { processSpecialRequests(instance, plugin); } catch (Exception e) { logPluginActionException( e, plugin, IRCEvent.init, "specialRequests"); } if (*instance.abort) return Next.returnFailure; } if (plugin.state.scheduledFibers.length || plugin.state.scheduledDelegates.length) { if (plugin.state.nextScheduledTimestamp <= nowInHnsecs) { // These handle exceptions internally processScheduledDelegates(plugin, nowInHnsecs); processScheduledFibers(plugin, nowInHnsecs); plugin.state.updateSchedule(); // Something is always removed instance.conn.socket.blocking = false; // Instantly timeout read to check messages socketBlockingDisabled = true; if (*instance.abort) return Next.returnFailure; } if (!nextGlobalScheduledTimestamp || (plugin.state.nextScheduledTimestamp < nextGlobalScheduledTimestamp)) { nextGlobalScheduledTimestamp = plugin.state.nextScheduledTimestamp; } } } if (shouldCheckMessages) { next = callMessenger(); if (*instance.abort) return Next.returnFailure; try { processBuffers(timeoutFromMessages); } catch (SocketSendException _) { logger.error("Failure sending data to server! Connection lost?"); return Next.retry; } } // Set timeout *before* the receive, else we'll just be applying the delay too late if (nextGlobalScheduledTimestamp) { immutable delayToNextMsecs = cast(uint)((nextGlobalScheduledTimestamp - nowInHnsecs) / 10_000); if (delayToNextMsecs < instance.conn.receiveTimeout) { instance.conn.receiveTimeout = (delayToNextMsecs > 0) ? delayToNextMsecs : 1; } } // Once every 24h, clear the `previousWhoisTimestamps` AA. // That should be enough to stop it from being a memory leak. if ((nowInUnix % 86_400) == 0) { instance.previousWhoisTimestamps.clear(); propagateWhoisTimestamps(instance); } // Call the generator, query it for event lines listener.call(); listenerloop: foreach (const attempt; listener) { if (*instance.abort) return Next.returnFailure; immutable actionAfterListen = listenAttemptToNext(instance, attempt); with (Next) final switch (actionAfterListen) { case continue_: import std.algorithm.comparison : max; historyEntry.bytesReceived += max(attempt.bytesReceived, 0); historyEntry.stopTime = nowInUnix; ++historyEntry.numEvents; processLineFromServer(instance, attempt.line, nowInUnix); break; case retry: // Break and try again historyEntry.stopTime = nowInUnix; break listenerloop; case returnFailure: return Next.retry; case returnSuccess: // should never happen case crash: // ditto import lu.conv : Enum; import std.conv : text; immutable message = text( "`listenAttemptToNext` returned `", Enum!Next.toString(actionAfterListen), "`"); assert(0, message); } } // Check concurrency messages to see if we should exit next = callMessenger(); if (*instance.abort) return Next.returnFailure; //else if (next != Next.continue_) return next; // process buffers before passing on Next.retry try { processBuffers(timeoutFromMessages); } catch (SocketSendException _) { logger.error("Failure sending data to server! Connection lost?"); return Next.retry; } if (timeWhenReceiveWasShortened && (nowInHnsecs > (timeWhenReceiveWasShortened + maxShortenDurationHnsecs))) { // Shortened duration passed, reset timestamp to disable it timeWhenReceiveWasShortened = 0L; } if (instance.flags.wantReceiveTimeoutShortened) { // Set the timestamp and unset the bool instance.flags.wantReceiveTimeoutShortened = false; timeWhenReceiveWasShortened = nowInHnsecs; } if ((timeoutFromMessages < uint.max) || nextGlobalScheduledTimestamp || timeWhenReceiveWasShortened) { import kameloso.constants : ConnectionDefaultFloats; import std.algorithm.comparison : min; immutable defaultTimeout = timeWhenReceiveWasShortened ? cast(uint)(Timeout.receiveMsecs * ConnectionDefaultFloats.receiveShorteningMultiplier) : instance.connSettings.receiveTimeout; immutable untilNextGlobalScheduled = nextGlobalScheduledTimestamp ? cast(uint)(nextGlobalScheduledTimestamp - nowInHnsecs)/10_000 : uint.max; immutable supposedNewTimeout = min(defaultTimeout, timeoutFromMessages, untilNextGlobalScheduled); if (supposedNewTimeout != instance.conn.receiveTimeout) { instance.conn.receiveTimeout = (supposedNewTimeout > 0) ? supposedNewTimeout : 1; } } if (socketBlockingDisabled) { // Restore blocking behaviour. instance.conn.socket.blocking = true; } previousLoop = now; } while (next == Next.continue_); return next; } // sendLines /++ Sends strings to the server from the message buffers. Broken out of [mainLoop] to make it more legible. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. Returns: How many milliseconds until the next message in the buffers should be sent. +/ auto sendLines(ref Kameloso instance) { if (!instance.immediateBuffer.empty) { cast(void)instance.throttleline( instance.immediateBuffer, No.dryRun, No.sendFaster, Yes.immediate); } if (!instance.priorityBuffer.empty) { immutable untilNext = instance.throttleline(instance.priorityBuffer); if (untilNext > 0.0) return untilNext; } version(TwitchSupport) { if (!instance.fastbuffer.empty) { immutable untilNext = instance.throttleline( instance.fastbuffer, No.dryRun, Yes.sendFaster); if (untilNext > 0.0) return untilNext; } } if (!instance.outbuffer.empty) { immutable untilNext = instance.throttleline(instance.outbuffer); if (untilNext > 0.0) return untilNext; } if (!instance.backgroundBuffer.empty) { immutable untilNext = instance.throttleline(instance.backgroundBuffer); if (untilNext > 0.0) return untilNext; } return 0.0; } // listenAttemptToNext /++ Translates the [kameloso.net.ListenAttempt.State|ListenAttempt.State] received from a [std.concurrency.Generator|Generator] into a [lu.common.Next|Next], while also providing warnings and error messages. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. attempt = The [kameloso.net.ListenAttempt|ListenAttempt] to map the `.state` value of. Returns: A [lu.common.Next|Next] describing what action [mainLoop] should take next. +/ auto listenAttemptToNext(ref Kameloso instance, const ListenAttempt attempt) { // Handle the attempt; switch on its state with (ListenAttempt.State) final switch (attempt.state) { case unset: // should never happen case prelisten: // ditto import lu.conv : Enum; import std.conv : text; assert(0, text("listener yielded `", Enum!(ListenAttempt.State).toString(attempt.state), "` state")); case isEmpty: // Empty line yielded means nothing received; break foreach and try again return Next.retry; case hasString: // hasString means we should drop down and continue processing return Next.continue_; case warning: // Benign socket error; break foreach and try again import kameloso.constants : Timeout; import kameloso.thread : interruptibleSleep; import core.time : msecs; version(Posix) { import kameloso.common : errnoStrings; enum pattern = "Connection error! (<l>%s</>) <t>(%s)"; logger.warningf(pattern, attempt.error, errnoStrings[attempt.errno]); } else version(Windows) { enum pattern = "Connection error! (<l>%s</>) <t>(%d)"; logger.warningf(pattern, attempt.error, attempt.errno); } else { static assert(0, "Unsupported platform, please file a bug."); } // Sleep briefly so it won't flood the screen on chains of errors static immutable readErrorGracePeriod = Timeout.readErrorGracePeriodMsecs.msecs; interruptibleSleep(readErrorGracePeriod, *instance.abort); return Next.retry; case timeout: // No point printing the errno, it'll just be EAGAIN or EWOULDBLOCK. logger.error("Connection timed out."); instance.conn.connected = false; return Next.returnFailure; case error: if (attempt.bytesReceived == 0) { //logger.error("Connection error: empty server response!"); logger.error("Connection lost."); } else { version(Posix) { import kameloso.common : errnoStrings; enum pattern = "Connection error: invalid server response! (<l>%s</>) <t>(%s)"; logger.errorf(pattern, attempt.error, errnoStrings[attempt.errno]); } else version(Windows) { enum pattern = "Connection error: invalid server response! (<l>%s</>) <t>(%d)"; logger.errorf(pattern, attempt.error, attempt.errno); } else { static assert(0, "Unsupported platform, please file a bug."); } } instance.conn.connected = false; return Next.returnFailure; } } // logPluginActionException /++ Logs an exception thrown by a plugin action. Params: base = The exception thrown. plugin = The plugin that threw the exception. event = The event that triggered the plugin action. fun = The name of the plugin action that threw the exception. +/ void logPluginActionException( Exception base, const IRCPlugin plugin, const IRCEvent event, const string fun) { import lu.string : NomException; import std.utf : UTFException; import core.exception : UnicodeException; if (auto e = cast(NomException)base) { enum pattern = `NomException %s.%s: tried to nom "<t>%s</>" with "<l>%s</>"`; logger.warningf(pattern, plugin.name, fun, e.haystack, e.needle); if (event.raw.length) printEventDebugDetails(event, event.raw); version(PrintStacktraces) logger.trace(e.info); } else if (auto e = cast(UTFException)base) { enum pattern = "UTFException %s.%s: <t>%s"; logger.warningf(pattern, plugin.name, fun, e.msg); version(PrintStacktraces) logger.trace(e.info); } else if (auto e = cast(UnicodeException)base) { enum pattern = "UnicodeException %s.%s: <t>%s"; logger.warningf(pattern, plugin.name, fun, e.msg); version(PrintStacktraces) logger.trace(e.info); } else { enum pattern = "Exception %s.%s: <t>%s"; logger.warningf(pattern, plugin.name, fun, base.msg); if (event.raw.length) printEventDebugDetails(event, event.raw); version(PrintStacktraces) logger.trace(base); } } // processLineFromServer /++ Processes a line read from the server, constructing an [dialect.defs.IRCEvent|IRCEvent] and dispatches it to all plugins. Params: instance = The current [kameloso.kameloso.Kameloso|Kameloso] instance. raw = A raw line as read from the server. nowInUnix = Current timestamp in UNIX time. +/ void processLineFromServer( ref Kameloso instance, const string raw, const long nowInUnix) { import kameloso.string : doublyBackslashed; import dialect.common : IRCParseException; import lu.string : NomException; import std.typecons : Flag, No, Yes; import std.utf : UTFException; import core.exception : UnicodeException; // Delay initialising the event so we don't do it twice; // once here, once in toIRCEvent IRCEvent event = void; bool eventWasInitialised; scope(failure) { if (!instance.settings.headless) { import lu.string : contains; import std.algorithm.searching : canFind; // Something asserted logger.error("scopeguard tripped."); printEventDebugDetails(event, raw, cast(Flag!"eventWasInitialised")eventWasInitialised); // Print the raw line char by char if it contains non-printables if (raw.canFind!((c) => c < ' ')) { import std.stdio : writefln; import std.string : representation; foreach (immutable c; raw.representation) { enum pattern = "%3d: '%c'"; writefln(pattern, c, cast(char)c); } } if (instance.settings.flush) stdout.flush(); } } try { // Sanitise and try again once on UTF/Unicode exceptions import std.encoding : sanitize; try { event = instance.parser.toIRCEvent(raw); } catch (UTFException e) { event = instance.parser.toIRCEvent(sanitize(raw)); if (event.errors.length) event.errors ~= " | "; event.errors ~= "UTFException: " ~ e.msg; } catch (UnicodeException e) { event = instance.parser.toIRCEvent(sanitize(raw)); if (event.errors.length) event.errors ~= " | "; event.errors ~= "UnicodeException: " ~ e.msg; } eventWasInitialised = true; // Save timestamp in the event itself. event.time = nowInUnix; version(TwitchSupport) { if (instance.parser.server.daemon == IRCServer.Daemon.twitch && event.content.length) { import std.algorithm.searching : endsWith; /+ On Twitch, sometimes the content string ends with an invisible [ 243, 160, 128, 128 ], possibly because of a browser extension circumventing the duplicate message block. It wrecks things. So slice it away if detected. +/ static immutable ubyte[4] badTail = [ 243, 160, 128, 128 ]; if ((cast(ubyte[])event.content).endsWith(badTail[])) { event.content = cast(string)(cast(ubyte[])event.content[0..$-badTail.length]); } } } version(TwitchSupport) { // If it's an RPL_WELCOME event, record it as having been seen so we // know we can't reconnect without waiting a bit. if (event.type == IRCEvent.Type.RPL_WELCOME) { instance.flags.sawWelcome = true; } } alias ParserUpdates = typeof(instance.parser.updates); if (instance.parser.updates & ParserUpdates.client) { // Parsing changed the client; propagate instance.parser.updates &= ~ParserUpdates.client; instance.propagate(instance.parser.client); } if (instance.parser.updates & ParserUpdates.server) { // Parsing changed the server; propagate instance.parser.updates &= ~ParserUpdates.server; instance.propagate(instance.parser.server); } // Let each plugin postprocess the event foreach (plugin; instance.plugins) { if (!plugin.isEnabled) continue; try { plugin.postprocess(event); } catch (Exception e) { logPluginActionException( e, plugin, event, "postprocess"); } if (*instance.abort) return; // handled in mainLoop listenerloop instance.checkPluginForUpdates(plugin); } // Let each plugin process the event foreach (plugin; instance.plugins) { if (!plugin.isEnabled) continue; try { plugin.onEvent(event); } catch (Exception e) { logPluginActionException( e, plugin, event, "onEvent"); } // These handle exceptions internally if (*instance.abort) return; if (plugin.state.hasPendingReplays) processPendingReplays(instance, plugin); if (plugin.state.readyReplays.length) processReadyReplays(instance, plugin); if (*instance.abort) return; processAwaitingDelegates(plugin, event); processAwaitingFibers(plugin, event); if (*instance.abort) return; instance.checkPluginForUpdates(plugin); } // Take some special actions on select event types with (IRCEvent.Type) switch (event.type) { case SELFCHAN: case SELFEMOTE: case SELFQUERY: // Treat self-events as if we sent them ourselves, to properly // rate-limit the account itself. This stops Twitch from // giving spam warnings. We can easily tell whether it's a channel // we're the broadcaster in, but no such luck with whether // we're a moderator. For now, just assume we're moderator // in all our home channels. version(TwitchSupport) { import std.algorithm.searching : canFind; // Send faster in home channels. Assume we're a mod and won't be throttled. // (There's no easy way to tell from here.) if (event.channel.length && instance.bot.homeChannels.canFind(event.channel)) { instance.throttleline(instance.fastbuffer, Yes.dryRun, Yes.sendFaster); } else { instance.throttleline(instance.outbuffer, Yes.dryRun); } } else { instance.throttleline(instance.outbuffer, Yes.dryRun); } break; case QUIT: // Remove users from the WHOIS history when they quit the server. instance.previousWhoisTimestamps.remove(event.sender.nickname); break; case NICK: // Transfer WHOIS history timestamp when a user changes its nickname. if (const timestamp = event.sender.nickname in instance.previousWhoisTimestamps) { instance.previousWhoisTimestamps[event.target.nickname] = *timestamp; instance.previousWhoisTimestamps.remove(event.sender.nickname); } break; default: break; } } catch (IRCParseException e) { enum pattern = "IRCParseException: <t>%s</> (at <l>%s</>:<l>%d</>)"; logger.warningf(pattern, e.msg, e.file.doublyBackslashed, e.line); printEventDebugDetails(event, raw); version(PrintStacktraces) logger.trace(e.info); } catch (NomException e) { enum pattern = `NomException: tried to nom "<l>%s</>" with "<l>%s</>" (at <l>%s</>:<l>%d</>)`; logger.warningf(pattern, e.haystack, e.needle, e.file.doublyBackslashed, e.line); printEventDebugDetails(event, raw); version(PrintStacktraces) logger.trace(e.info); } catch (UTFException e) { enum pattern = "UTFException: <t>%s"; logger.warningf(pattern, e.msg); version(PrintStacktraces) logger.trace(e.info); } catch (UnicodeException e) { enum pattern = "UnicodeException: <t>%s"; logger.warningf(pattern, e.msg); version(PrintStacktraces) logger.trace(e.info); } catch (Exception e) { enum pattern = "Unhandled exception: <t>%s</> (at <l>%s</>:<l>%d</>)"; logger.warningf(pattern, e.msg, e.file.doublyBackslashed, e.line); printEventDebugDetails(event, raw); version(PrintStacktraces) logger.trace(e); } } // processAwaitingDelegates /++ Processes the awaiting delegates of an [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. Does not remove delegates after calling them. They are expected to remove themselves after finishing if they aren't awaiting any further events. Params: plugin = The [kameloso.plugins.common.core.IRCPlugin|IRCPlugin] whose [dialect.defs.IRCEvent.Type|IRCEvent.Type]-awaiting delegates to iterate and process. event = The triggering const [dialect.defs.IRCEvent|IRCEvent]. +/ void processAwaitingDelegates(IRCPlugin plugin, const ref IRCEvent event) { /++ Handle awaiting delegates of a specified type. +/ void processImpl(void delegate(IRCEvent)[] dgsForType) { foreach (immutable i, dg; dgsForType) { try { dg(event); } catch (Exception e) { enum pattern = "Exception %s.awaitingDelegates[%d]: <t>%s"; logger.warningf(pattern, plugin.name, i, e.msg); printEventDebugDetails(event, event.raw); version(PrintStacktraces) logger.trace(e); } } } if (plugin.state.awaitingDelegates[event.type].length) { processImpl(plugin.state.awaitingDelegates[event.type]); } if (plugin.state.awaitingDelegates[IRCEvent.Type.ANY].length) { processImpl(plugin.state.awaitingDelegates[IRCEvent.Type.ANY]); } } // processAwaitingFibers /++ Processes the awaiting [core.thread.fiber.Fiber|Fiber]s of an [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. Don't delete [core.thread.fiber.Fiber|Fiber]s, as they can be reset and reused. Params: plugin = The [kameloso.plugins.common.core.IRCPlugin|IRCPlugin] whose [dialect.defs.IRCEvent.Type|IRCEvent.Type]-awaiting [core.thread.fiber.Fiber|Fiber]s to iterate and process. event = The triggering [dialect.defs.IRCEvent|IRCEvent]. +/ void processAwaitingFibers(IRCPlugin plugin, const ref IRCEvent event) { import core.thread : Fiber; /++ Handle awaiting Fibers of a specified type. +/ void processAwaitingFibersImpl( Fiber[] fibersForType, ref Fiber[] expiredFibers) { foreach (immutable i, fiber; fibersForType) { try { if (fiber.state == Fiber.State.HOLD) { import kameloso.thread : CarryingFiber; // Specialcase CarryingFiber!IRCEvent to update it to carry // the current IRCEvent. if (auto carryingFiber = cast(CarryingFiber!IRCEvent)fiber) { carryingFiber.payload = event; carryingFiber.call(); // We need to reset the payload so that we can differentiate // between whether the Fiber was called due to an incoming // (awaited) event or due to a timer. delegates will have // to cache the event if they don't want it to get reset. carryingFiber.resetPayload(); } else { fiber.call(); } } if (fiber.state == Fiber.State.TERM) { expiredFibers ~= fiber; } } catch (Exception e) { logPluginActionException( e, plugin, event, "awaitingFibers"); expiredFibers ~= fiber; } } } Fiber[] expiredFibers; if (plugin.state.awaitingFibers[event.type].length) { processAwaitingFibersImpl( plugin.state.awaitingFibers[event.type], expiredFibers); } if (plugin.state.awaitingFibers[IRCEvent.Type.ANY].length) { processAwaitingFibersImpl( plugin.state.awaitingFibers[IRCEvent.Type.ANY], expiredFibers); } // Clean up processed Fibers foreach (ref expiredFiber; expiredFibers) { // Detect duplicates that were already destroyed and skip if (!expiredFiber) continue; foreach (ref fibersByType; plugin.state.awaitingFibers) { foreach_reverse (immutable i, /*ref*/ fiber; fibersByType) { import std.algorithm.mutation : SwapStrategy, remove; if (fiber is expiredFiber) { fibersByType = fibersByType.remove!(SwapStrategy.unstable)(i); } } } destroy(expiredFiber); expiredFiber = null; // needs ref } expiredFibers = null; } // processScheduledDelegates /++ Processes the queued [kameloso.thread.ScheduledDelegate|ScheduledDelegate]s of an [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. Params: plugin = The [kameloso.plugins.common.core.IRCPlugin|IRCPlugin] whose queued [kameloso.thread.ScheduledDelegate|ScheduledDelegate]s to iterate and process. nowInHnsecs = Current timestamp to compare the [kameloso.thread.ScheduledDelegate|ScheduledDelegate]'s timestamp with. +/ void processScheduledDelegates(IRCPlugin plugin, const long nowInHnsecs) in ((nowInHnsecs > 0), "Tried to process queued `ScheduledDelegate`s with an unset timestamp") { size_t[] toRemove; foreach (immutable i, scheduledDg; plugin.state.scheduledDelegates) { if (scheduledDg.timestamp > nowInHnsecs) continue; try { scheduledDg.dg(); } catch (Exception e) { logPluginActionException( e, plugin, IRCEvent.init, "scheduledDelegates"); } finally { destroy(scheduledDg.dg); scheduledDg.dg = null; } toRemove ~= i; // Always removed a scheduled delegate after processing } // Clean up processed delegates foreach_reverse (immutable i; toRemove) { import std.algorithm.mutation : SwapStrategy, remove; plugin.state.scheduledDelegates = plugin.state.scheduledDelegates .remove!(SwapStrategy.unstable)(i); } toRemove = null; } // processScheduledFibers /++ Processes the queued [kameloso.thread.ScheduledFiber|ScheduledFiber]s of an [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. Params: plugin = The [kameloso.plugins.common.core.IRCPlugin|IRCPlugin] whose queued [kameloso.thread.ScheduledFiber|ScheduledFiber]s to iterate and process. nowInHnsecs = Current timestamp to compare the [kameloso.thread.ScheduledFiber|ScheduledFiber]'s timestamp with. +/ void processScheduledFibers(IRCPlugin plugin, const long nowInHnsecs) in ((nowInHnsecs > 0), "Tried to process queued `ScheduledFiber`s with an unset timestamp") { import core.thread : Fiber; size_t[] toRemove; foreach (immutable i, ref scheduledFiber; plugin.state.scheduledFibers) { if (scheduledFiber.timestamp > nowInHnsecs) continue; try { if (scheduledFiber.fiber.state == Fiber.State.HOLD) { scheduledFiber.fiber.call(); } } catch (Exception e) { logPluginActionException( e, plugin, IRCEvent.init, "scheduledFibers"); } finally { // destroy the Fiber if it has ended if (scheduledFiber.fiber.state == Fiber.State.TERM) { destroy(scheduledFiber.fiber); scheduledFiber.fiber = null; // needs ref } } // Always remove a scheduled Fiber after processing toRemove ~= i; } // Clean up processed Fibers foreach_reverse (immutable i; toRemove) { import std.algorithm.mutation : SwapStrategy, remove; plugin.state.scheduledFibers = plugin.state.scheduledFibers .remove!(SwapStrategy.unstable)(i); } toRemove = null; } // processReadyReplays /++ Handles the queue of ready-to-replay objects, re-postprocessing events from the current (main loop) context, outside of any plugin. Params: instance = Reference to the current bot instance. plugin = The current [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. +/ void processReadyReplays(ref Kameloso instance, IRCPlugin plugin) { import core.thread : Fiber; foreach (immutable i, replay; plugin.state.readyReplays) { version(WithPersistenceService) { // Postprocessing will reapply class, but not if there is already // a custom class (assuming channel cache hit) replay.event.sender.class_ = IRCUser.Class.unset; replay.event.target.class_ = IRCUser.Class.unset; } foreach (postprocessor; instance.plugins) { try { postprocessor.postprocess(replay.event); } catch (Exception e) { logPluginActionException( e, postprocessor, replay.event, "postprocessReadyReplay"); } } // If we're here no exceptions were thrown try { replay.dg(replay); } catch (Exception e) { logPluginActionException( e, plugin, replay.event, "readyReplay"); } finally { destroy(replay.dg); replay.dg = null; } } // All ready replays guaranteed exhausted plugin.state.readyReplays = null; } // processPendingReplay /++ Takes a queue of pending [kameloso.plugins.common.core.Replay|Replay] objects and issues WHOIS queries for each one, unless it has already been done recently (within [kameloso.constants.Timeout.whoisRetry|Timeout.whoisRetry] seconds). Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. plugin = The relevant [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. +/ void processPendingReplays(ref Kameloso instance, IRCPlugin plugin) { import kameloso.constants : Timeout; import kameloso.messaging : Message, whois; import std.datetime.systime : Clock; // Walk through replays and call WHOIS on those that haven't been // WHOISed in the last Timeout.whoisRetry seconds immutable now = Clock.currTime.toUnixTime; foreach (immutable nickname, replaysForNickname; plugin.state.pendingReplays) { version(TraceWhois) { import std.stdio : writef, writefln, writeln; if (!instance.settings.headless) { import std.algorithm.iteration : map; auto callerNames = replaysForNickname.map!(replay => replay.caller); enum pattern = "[TraceWhois] processReplays saw request to " ~ "WHOIS \"%s\" from: %-(%s, %)"; writef(pattern, nickname, callerNames); } } immutable lastWhois = instance.previousWhoisTimestamps.get(nickname, 0L); if ((now - lastWhois) > Timeout.whoisRetry) { version(TraceWhois) { if (!instance.settings.headless) { writeln(" ...and actually issuing."); } } /*instance.outbuffer.put(OutgoingLine("WHOIS " ~ nickname, cast(Flag!"quiet")instance.settings.hideOutgoing)); instance.previousWhoisTimestamps[nickname] = now; propagateWhoisTimestamp(instance, nickname, now);*/ enum properties = (Message.Property.forced | Message.Property.quiet); whois(plugin.state, nickname, properties); } else { version(TraceWhois) { if (!instance.settings.headless) { enum pattern = " ...but already issued %d seconds ago."; writefln(pattern, (now - lastWhois)); } } } version(TraceWhois) { if (instance.settings.flush) stdout.flush(); } } } // processSpecialRequests /++ Iterates through a plugin's array of [kameloso.plugins.common.core.SpecialRequest|SpecialRequest]s. Depending on what their [kameloso.plugins.common.core.SpecialRequest.fiber|fiber] member (which is in actually a [kameloso.thread.CarryingFiber|CarryingFiber]) can be cast to, it prepares a payload, assigns it to the [kameloso.thread.CarryingFiber|CarryingFiber], and calls it. If plugins need support for new types of requests, they must be defined and hardcoded here. There's no way to let plugins process the requests themselves without letting them peek into [kameloso.kameloso.Kameloso|the Kameloso instance]. The array is always cleared after iteration, so requests that yield must first re-queue themselves. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. plugin = The relevant [kameloso.plugins.common.core.IRCPlugin|IRCPlugin]. +/ void processSpecialRequests(ref Kameloso instance, IRCPlugin plugin) { import kameloso.thread : CarryingFiber; import std.typecons : Tuple; import core.thread : Fiber; auto specialRequestsSnapshot = plugin.state.specialRequests; plugin.state.specialRequests = null; top: foreach (request; specialRequestsSnapshot) { scope(exit) { if (request.fiber.state == Fiber.State.TERM) { // Clean up destroy(request.fiber); } destroy(request); request = null; } alias PeekCommandsPayload = Tuple!(IRCPlugin.CommandMetadata[string][string]); alias GetSettingPayload = Tuple!(string, string, string); alias SetSettingPayload = Tuple!(bool); if (auto fiber = cast(CarryingFiber!(PeekCommandsPayload))(request.fiber)) { immutable channelName = request.context; IRCPlugin.CommandMetadata[string][string] commandAA; foreach (thisPlugin; instance.plugins) { if (channelName.length) { commandAA[thisPlugin.name] = thisPlugin.channelSpecificCommands(channelName); } else { commandAA[thisPlugin.name] = thisPlugin.commands; } } fiber.payload[0] = commandAA; fiber.call(); continue; } else if (auto fiber = cast(CarryingFiber!(GetSettingPayload))(request.fiber)) { import lu.string : beginsWith, nom; import std.array : Appender; import std.algorithm.iteration : splitter; immutable expression = request.context; string slice = expression; // mutable immutable pluginName = slice.nom!(Yes.inherit)('.'); alias setting = slice; Appender!(char[]) sink; sink.reserve(256); // guesstimate void apply() { if (setting.length) { import lu.string : strippedLeft; foreach (const line; sink.data.splitter('\n')) { string lineslice = cast(string)line; // need a string for nom and strippedLeft... if (lineslice.beginsWith('#')) lineslice = lineslice[1..$]; const thisSetting = lineslice.nom!(Yes.inherit)(' '); if (thisSetting != setting) continue; const value = lineslice.strippedLeft; fiber.payload[0] = pluginName; fiber.payload[1] = setting; fiber.payload[2] = value; fiber.call(); return; } } else { import std.conv : to; string[] allSettings; foreach (const line; sink.data.splitter('\n')) { string lineslice = cast(string)line; // need a string for nom and strippedLeft... if (!lineslice.beginsWith('[')) allSettings ~= lineslice.nom!(Yes.inherit)(' '); } fiber.payload[0] = pluginName; //fiber.payload[1] = string.init; fiber.payload[2] = allSettings.to!string; fiber.call(); allSettings = null; return; } // If we're here, no such setting was found fiber.payload[0] = pluginName; //fiber.payload[1] = string.init; //fiber.payload[2] = string.init; fiber.call(); return; } switch (pluginName) { case "core": import lu.serialisation : serialise; sink.serialise(instance.settings); apply(); continue; case "connection": // May leak secrets? certFile, privateKey etc... // Careful with how we make this functionality available import lu.serialisation : serialise; sink.serialise(instance.connSettings); apply(); continue; default: foreach (thisPlugin; instance.plugins) { if (thisPlugin.name != pluginName) continue; thisPlugin.serialiseConfigInto(sink); apply(); continue top; } // If we're here, no plugin was found //fiber.payload[0] = string.init; //fiber.payload[1] = string.init; //fiber.payload[2] = string.init; fiber.call(); continue; } } else if (auto fiber = cast(CarryingFiber!(SetSettingPayload))(request.fiber)) { import kameloso.plugins.common.misc : applyCustomSettings; immutable expression = request.context; // Borrow settings from the first plugin. It's taken by value immutable success = applyCustomSettings( instance.plugins, [ expression ], instance.plugins[0].state.settings); fiber.payload[0] = success; fiber.call(); continue; } else { logger.error("Unknown special request type: " ~ typeof(request).stringof); } } if (plugin.state.specialRequests.length) { // One or more new requests were added while processing these ones return processSpecialRequests(instance, plugin); } } // setupSignals /++ Registers some process signals to redirect to our own [signalHandler], so we can (for instance) catch Ctrl+C and gracefully shut down. On Posix, additionally ignore `SIGPIPE` so that we can catch SSL errors and not just immediately terminate. +/ void setupSignals() nothrow @nogc { import core.stdc.signal : SIGINT, SIGTERM, signal; signal(SIGINT, &signalHandler); signal(SIGTERM, &signalHandler); version(Posix) { import core.sys.posix.signal : SIG_IGN, SIGHUP, SIGPIPE, SIGQUIT; signal(SIGHUP, &signalHandler); signal(SIGQUIT, &signalHandler); signal(SIGPIPE, SIG_IGN); } } // resetSignals /++ Resets signal handlers to the system default. +/ void resetSignals() nothrow @nogc { import core.stdc.signal : SIG_DFL, SIGINT, SIGTERM, signal; signal(SIGINT, SIG_DFL); signal(SIGTERM, SIG_DFL); version(Posix) { import core.sys.posix.signal : SIGHUP, SIGQUIT; signal(SIGHUP, SIG_DFL); signal(SIGQUIT, SIG_DFL); } } // tryGetopt /++ Attempt handling `getopt`, wrapped in try-catch blocks. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. Returns: [lu.common.Next|Next].* depending on what action the calling site should take. +/ auto tryGetopt(ref Kameloso instance) { import kameloso.plugins.common.misc : IRCPluginSettingsException; import kameloso.config : handleGetopt; import kameloso.configreader : ConfigurationFileReadFailureException; import kameloso.string : doublyBackslashed; import lu.common : FileTypeMismatchException; import lu.serialisation : DeserialisationException; import std.conv : ConvException; import std.getopt : GetOptException; import std.process : ProcessException; try { // Act on arguments getopt, pass return value to main return handleGetopt(instance); } catch (GetOptException e) { enum pattern = "Error parsing command-line arguments: <t>%s"; logger.errorf(pattern, e.msg); //version(PrintStacktraces) logger.trace(e.info); } catch (ConvException e) { enum pattern = "Error converting command-line arguments: <t>%s"; logger.errorf(pattern, e.msg); //version(PrintStacktraces) logger.trace(e.info); } catch (FileTypeMismatchException e) { enum pattern = "Specified configuration file <l>%s</> is not a file!"; logger.errorf(pattern, e.filename.doublyBackslashed); //version(PrintStacktraces) logger.trace(e.info); } catch (ConfigurationFileReadFailureException e) { enum pattern = "Error reading and decoding configuration file [<l>%s</>]: <l>%s"; logger.errorf(pattern, e.filename.doublyBackslashed, e.msg); version(PrintStacktraces) logger.trace(e.info); } catch (DeserialisationException e) { enum pattern = "Error parsing configuration file: <t>%s"; logger.errorf(pattern, e.msg); version(PrintStacktraces) logger.trace(e.info); } catch (ProcessException e) { enum pattern = "Failed to open <l>%s</> in an editor: <t>%s"; logger.errorf(pattern, instance.settings.configFile.doublyBackslashed, e.msg); version(PrintStacktraces) logger.trace(e.info); } catch (IRCPluginSettingsException e) { // Can be thrown from printSettings logger.error(e.msg); version(PrintStacktraces) logger.trace(e.info); } catch (Exception e) { enum pattern = "Unexpected exception: <t>%s"; logger.errorf(pattern, e.msg); version(PrintStacktraces) logger.trace(e); } return Next.returnFailure; } // tryConnect /++ Tries to connect to the IPs in [kameloso.kameloso.Kameloso.conn.ips|Kameloso.conn.ips] by leveraging [kameloso.net.connectFiber|connectFiber], reacting on the [kameloso.net.ConnectionAttempt|ConnectionAttempt]s it yields to provide feedback to the user. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. Returns: [lu.common.Next.continue_|Next.continue_] if connection succeeded, [lu.common.Next.returnFailure|Next.returnFailure] if connection failed and the program should exit. +/ auto tryConnect(ref Kameloso instance) { import kameloso.constants : ConnectionDefaultFloats, ConnectionDefaultIntegers, MagicErrorStrings, Timeout; import kameloso.net : ConnectionAttempt, connectFiber; import kameloso.thread : interruptibleSleep; import std.concurrency : Generator; auto connector = new Generator!ConnectionAttempt(() => connectFiber( instance.conn, ConnectionDefaultIntegers.retries, *instance.abort)); scope(exit) { destroy(connector); connector = null; } try { connector.call(); } catch (Exception e) { /+ We can only detect SSL context creation failure based on the string in the generic Exception thrown, sadly. +/ if (e.msg == MagicErrorStrings.sslContextCreationFailure) { enum message = "Connection error: <l>" ~ MagicErrorStrings.sslLibraryNotFoundRewritten ~ " <t>(is OpenSSL installed?)"; enum wikiMessage = cast(string)MagicErrorStrings.visitWikiOneliner; logger.error(message); logger.error(wikiMessage); version(Windows) { enum getoptMessage = cast(string)MagicErrorStrings.getOpenSSLSuggestion; logger.error(getoptMessage); } } else { enum pattern = "Connection error: <l>%s"; logger.errorf(pattern, e.msg); } return Next.returnFailure; } uint incrementedRetryDelay = Timeout.connectionRetry; enum transientSSLFailureTolerance = 10; uint numTransientSSLFailures; foreach (const attempt; connector) { import lu.string : beginsWith; import core.time : seconds; if (*instance.abort) return Next.returnFailure; immutable lastRetry = (attempt.retryNum+1 == ConnectionDefaultIntegers.retries); enum unableToConnectString = "Unable to connect socket: "; immutable errorString = attempt.error.length ? (attempt.error.beginsWith(unableToConnectString) ? attempt.error[unableToConnectString.length..$] : attempt.error) : string.init; void verboselyDelay() { enum pattern = "Retrying in <i>%d</> seconds..."; logger.logf(pattern, incrementedRetryDelay); interruptibleSleep(incrementedRetryDelay.seconds, *instance.abort); import std.algorithm.comparison : min; incrementedRetryDelay = cast(uint)(incrementedRetryDelay * ConnectionDefaultFloats.delayIncrementMultiplier); incrementedRetryDelay = min(incrementedRetryDelay, Timeout.connectionDelayCap); } void verboselyDelayToNextIP() { enum pattern = "Failed to connect to IP. Trying next IP in <i>%d</> seconds."; logger.logf(pattern, Timeout.connectionRetry); incrementedRetryDelay = Timeout.connectionRetry; interruptibleSleep(Timeout.connectionRetry.seconds, *instance.abort); } with (ConnectionAttempt.State) final switch (attempt.state) { case unset: // should never happen assert(0, "connector yielded `unset` state"); case preconnect: import lu.common : sharedDomains; import std.socket : AddressException, AddressFamily; string resolvedHost; // mutable if (!instance.settings.numericAddresses) { try { resolvedHost = attempt.ip.toHostNameString; } catch (AddressException e) { /* std.socket.AddressException@std/socket.d(1301): Could not get host name: Success ---------------- ??:? pure @safe bool std.exception.enforce!(bool).enforce(bool, lazy object.Throwable) [0x2cf5f0] ??:? const @trusted immutable(char)[] std.socket.Address.toHostString(bool) [0x4b2d7c6] */ // Just let the string be empty } if (*instance.abort) return Next.returnFailure; } immutable rtPattern = !resolvedHost.length && (attempt.ip.addressFamily == AddressFamily.INET6) ? "Connecting to [<i>%s</>]:<i>%s</> %s..." : "Connecting to <i>%s</>:<i>%s</> %s..."; immutable ssl = instance.conn.ssl ? "(SSL) " : string.init; immutable address = (!resolvedHost.length || (instance.parser.server.address == resolvedHost) || (sharedDomains(instance.parser.server.address, resolvedHost) < 2)) ? attempt.ip.toAddrString : resolvedHost; logger.logf(rtPattern, address, attempt.ip.toPortString, ssl); continue; case connected: logger.log("Connected!"); return Next.continue_; case delayThenReconnect: version(Posix) { import core.stdc.errno : EINPROGRESS; enum errnoInProgress = EINPROGRESS; } else version(Windows) { import core.sys.windows.winsock2 : WSAEINPROGRESS; enum errnoInProgress = WSAEINPROGRESS; } else { static assert(0, "Unsupported platform, please file a bug."); } if (attempt.errno == errnoInProgress) { logger.warning("Connection timed out."); } else if (attempt.errno == 0) { logger.warning("Connection failed."); } else { version(Posix) { import kameloso.common : errnoStrings; enum pattern = "Connection failed with <l>%s</>: <t>%s"; logger.warningf(pattern, errnoStrings[attempt.errno], errorString); } else version(Windows) { enum pattern = "Connection failed with error <l>%d</>: <t>%s"; logger.warningf(pattern, attempt.errno, errorString); } else { static assert(0, "Unsupported platform, please file a bug."); } } if (*instance.abort) return Next.returnFailure; if (!lastRetry) verboselyDelay(); numTransientSSLFailures = 0; continue; case delayThenNextIP: // Check abort before delaying and then again after if (*instance.abort) return Next.returnFailure; verboselyDelayToNextIP(); if (*instance.abort) return Next.returnFailure; numTransientSSLFailures = 0; continue; /*case noMoreIPs: logger.warning("Could not connect to server!"); return Next.returnFailure;*/ case ipv6Failure: version(Posix) { import kameloso.common : errnoStrings; enum pattern = "IPv6 connection failed with <l>%s</>: <t>%s"; logger.warningf(pattern, errnoStrings[attempt.errno], errorString); } else version(Windows) { enum pattern = "IPv6 connection failed with error <l>%d</>: <t>%s"; logger.warningf(pattern, attempt.errno, errorString); } else { static assert(0, "Unsupported platform, please file a bug."); } if (*instance.abort) return Next.returnFailure; if (!lastRetry) goto case delayThenNextIP; numTransientSSLFailures = 0; continue; case transientSSLFailure: import lu.string : contains; // "Failed to establish SSL connection after successful connect (system lib)" // "Failed to establish SSL connection after successful connect" --> attempted SSL on non-SSL server enum pattern = "Failed to connect: <l>%s"; logger.errorf(pattern, attempt.error); if (*instance.abort) return Next.returnFailure; if ((numTransientSSLFailures++ < transientSSLFailureTolerance) && attempt.error.contains("(system lib)")) { // Random failure, just reconnect immediately // but only `transientSSLFailureTolerance` times } else { if (!lastRetry) verboselyDelay(); } continue; case fatalSSLFailure: enum pattern = "Failed to connect: <l>%s"; logger.errorf(pattern, attempt.error); return Next.returnFailure; case invalidConnectionError: case error: version(Posix) { import kameloso.common : errnoStrings; enum pattern = "Failed to connect: <l>%s</> (<t>%s</>)"; logger.errorf(pattern, errorString, errnoStrings[attempt.errno]); } else version(Windows) { enum pattern = "Failed to connect: <l>%s</> (<t>%d</>)"; logger.errorf(pattern, errorString, attempt.errno); } else { static assert(0, "Unsupported platform, please file a bug."); } if (attempt.state == invalidConnectionError) { goto case delayThenNextIP; } else { return Next.returnFailure; } } } return Next.returnFailure; } // tryResolve /++ Tries to resolve the address in [kameloso.kameloso.Kameloso.parser.server|Kameloso.parser.server] to IPs, by leveraging [kameloso.net.resolveFiber|resolveFiber], reacting on the [kameloso.net.ResolveAttempt|ResolveAttempt]s it yields to provide feedback to the user. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. firstConnect = Whether or not this is the first time we're attempting a connection. Returns: [lu.common.Next.continue_|Next.continue_] if resolution succeeded, [lu.common.Next.returnFailure|Next.returnFailure] if it failed and the program should exit. +/ auto tryResolve(ref Kameloso instance, const Flag!"firstConnect" firstConnect) { import kameloso.constants : Timeout; import kameloso.net : ResolveAttempt, resolveFiber; import std.concurrency : Generator; auto resolver = new Generator!ResolveAttempt(() => resolveFiber( instance.conn, instance.parser.server.address, instance.parser.server.port, cast(Flag!"useIPv6")instance.connSettings.ipv6, *instance.abort)); scope(exit) { destroy(resolver); resolver = null; } uint incrementedRetryDelay = Timeout.connectionRetry; enum incrementMultiplier = 1.2; void delayOnNetworkDown() { import kameloso.thread : interruptibleSleep; import std.algorithm.comparison : min; import core.time : seconds; enum pattern = "Network down? Retrying in <i>%d</> seconds."; logger.logf(pattern, incrementedRetryDelay); interruptibleSleep(incrementedRetryDelay.seconds, *instance.abort); if (*instance.abort) return; enum delayCap = 10*60; // seconds incrementedRetryDelay = cast(uint)(incrementedRetryDelay * incrementMultiplier); incrementedRetryDelay = min(incrementedRetryDelay, delayCap); } foreach (const attempt; resolver) { import lu.string : beginsWith; if (*instance.abort) return Next.returnFailure; enum getaddrinfoErrorString = "getaddrinfo error: "; immutable errorString = attempt.error.length ? (attempt.error.beginsWith(getaddrinfoErrorString) ? attempt.error[getaddrinfoErrorString.length..$] : attempt.error) : string.init; with (ResolveAttempt.State) final switch (attempt.state) { case unset: // Should never happen assert(0, "resolver yielded `unset` state"); case preresolve: // No message for this continue; case success: import lu.string : plurality; enum pattern = "<i>%s</> resolved into <i>%d</> %s."; logger.logf( pattern, instance.parser.server.address, instance.conn.ips.length, instance.conn.ips.length.plurality("IP", "IPs")); return Next.continue_; case exception: enum pattern = "Could not resolve server address: <l>%s</> <t>(%d)"; logger.warningf(pattern, errorString, attempt.errno); delayOnNetworkDown(); if (*instance.abort) return Next.returnFailure; continue; case error: enum pattern = "Could not resolve server address: <l>%s</> <t>(%d)"; logger.errorf(pattern, errorString, attempt.errno); if (firstConnect) { // First attempt and a failure; something's wrong, abort enum firstConnectPattern = "Failed to resolve host. Verify that you are " ~ "connected to the Internet and that the server address (<i>%s</>) is correct."; logger.logf(firstConnectPattern, instance.parser.server.address); return Next.returnFailure; } else { // Not the first attempt yet failure; transient error? retry delayOnNetworkDown(); if (*instance.abort) return Next.returnFailure; continue; } case failure: logger.error("Failed to resolve host."); return Next.returnFailure; } } return Next.returnFailure; } // postInstanceSetup /++ Sets up the program (terminal) environment. Depending on your platform it may set any of thread name, terminal title and console codepages. This is called very early during execution. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso] instance. +/ void postInstanceSetup(ref Kameloso instance) { import kameloso.constants : KamelosoInfo; import kameloso.terminal : isTerminal, setTerminalTitle; version(Windows) { import kameloso.terminal : setConsoleModeAndCodepage; // Set up the console to display text and colours properly. setConsoleModeAndCodepage(); } version(Posix) { import kameloso.thread : setThreadName; setThreadName("kameloso"); } if (isTerminal) { // TTY or whitelisted pseudo-TTY setTerminalTitle(); } } // setDefaultDirectories /++ Sets default directories in the passed [kameloso.pods.CoreSettings|CoreSettings]. This is called during early execution. Params: settings = A reference to some [kameloso.pods.CoreSettings|CoreSettings]. +/ void setDefaultDirectories(ref CoreSettings settings) @safe { import kameloso.constants : KamelosoFilenames; import kameloso.platform : cbd = configurationBaseDirectory, rbd = resourceBaseDirectory; import std.path : buildNormalizedPath; settings.configFile = buildNormalizedPath(cbd, "kameloso", KamelosoFilenames.configuration); settings.resourceDirectory = buildNormalizedPath(rbd, "kameloso"); } // verifySettings /++ Verifies some settings and returns whether the program should continue executing (or whether there were errors such that we should exit). This is called after command-line arguments have been parsed. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. Returns: [lu.common.Next.returnFailure|Next.returnFailure] if the program should exit, [lu.common.Next.continue_|Next.continue_] otherwise. +/ auto verifySettings(ref Kameloso instance) { if (!instance.settings.force) { import dialect.common : isValidNickname; IRCServer conservativeServer; conservativeServer.maxNickLength = 25; // Twitch max, should be enough if (!instance.parser.client.nickname.isValidNickname(conservativeServer)) { // No need to print the nickname, visible from printObjects preivously logger.error("Invalid nickname!"); return Next.returnFailure; } /*if (!instance.settings.prefix.length) { logger.error("No prefix configured!"); return Next.returnFailure; }*/ } // No point having these checks be bypassable with --force if (instance.connSettings.messageRate <= 0) { logger.error("Message rate must be a number greater than zero!"); return Next.returnFailure; } else if (instance.connSettings.messageBurst <= 0) { logger.error("Message burst must be a number greater than zero!"); return Next.returnFailure; } version(Posix) { import lu.string : contains; // Workaround for Issue 19247: // Segmentation fault when resolving address with std.socket.getAddress inside a Fiber // the workaround being never resolve addresses that don't contain at least one dot immutable addressIsResolvable = instance.settings.force || instance.parser.server.address == "localhost" || instance.parser.server.address.contains('.') || instance.parser.server.address.contains(':'); } else version(Windows) { // On Windows this doesn't happen, so allow all addresses. enum addressIsResolvable = true; } else { static assert(0, "Unsupported platform, please file a bug."); } if (!addressIsResolvable) { enum pattern = "Invalid address! [<l>%s</>]"; logger.errorf(pattern, instance.parser.server.address); return Next.returnFailure; } return Next.continue_; } // resolvePaths /++ Resolves resource directory private key/certificate file paths semi-verbosely. This is called after settings have been verified, before plugins are initialised. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. +/ void resolvePaths(ref Kameloso instance) @safe { import kameloso.platform : rbd = resourceBaseDirectory; import std.file : exists; import std.path : absolutePath, buildNormalizedPath, dirName, expandTilde, isAbsolute; import std.range : only; immutable defaultResourceHomeDir = buildNormalizedPath(rbd, "kameloso"); version(Posix) { instance.settings.resourceDirectory = instance.settings.resourceDirectory.expandTilde(); } // Resolve and create the resource directory // Assume nothing has been entered if it is the default resource dir sans server etc if (instance.settings.resourceDirectory == defaultResourceHomeDir) { version(Windows) { import std.string : replace; instance.settings.resourceDirectory = buildNormalizedPath( defaultResourceHomeDir, "server", instance.parser.server.address.replace(':', '_')); } else version(Posix) { instance.settings.resourceDirectory = buildNormalizedPath( defaultResourceHomeDir, "server", instance.parser.server.address); } else { static assert(0, "Unsupported platform, please file a bug."); } } if (!instance.settings.resourceDirectory.exists) { import kameloso.string : doublyBackslashed; import std.file : mkdirRecurse; mkdirRecurse(instance.settings.resourceDirectory); enum pattern = "Created resource directory <i>%s"; logger.logf(pattern, instance.settings.resourceDirectory.doublyBackslashed); } instance.settings.configDirectory = instance.settings.configFile.dirName; auto filerange = only( &instance.connSettings.caBundleFile, &instance.connSettings.privateKeyFile, &instance.connSettings.certFile); foreach (/*const*/ file; filerange) { if (!file.length) continue; *file = (*file).expandTilde; if (!(*file).isAbsolute && !(*file).exists) { immutable fullPath = instance.settings.configDirectory.isAbsolute ? absolutePath(*file, instance.settings.configDirectory) : buildNormalizedPath(instance.settings.configDirectory, *file); if (fullPath.exists) { *file = fullPath; } // else leave as-is } } } // startBot /++ Main connection logic. This function *starts* the bot, after it has been sufficiently initialised. It resolves and connects to servers, then hands off execution to [mainLoop]. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. attempt = out-reference [AttemptState] aggregate of state variables used when connecting. +/ void startBot(ref Kameloso instance, out AttemptState attempt) { import kameloso.plugins.common.misc : IRCPluginInitialisationException, pluginNameOfFilename, pluginFileBaseName; import kameloso.constants : ShellReturnValue; import kameloso.string : doublyBackslashed; import kameloso.terminal : TerminalToken, isTerminal; import dialect.parsing : IRCParser; import std.algorithm.comparison : among; // Save a backup snapshot of the client, for restoring upon reconnections IRCClient backupClient = instance.parser.client; enum bellString = "" ~ cast(char)(TerminalToken.bell); immutable bell = isTerminal ? bellString : string.init; outerloop: do { // *instance.abort is guaranteed to be false here. instance.generateNewConnectionID(); attempt.silentExit = true; if (!attempt.firstConnect) { import kameloso.constants : Timeout; import kameloso.thread : exhaustMessages, interruptibleSleep; import core.time : seconds; version(TwitchSupport) { import std.algorithm.searching : endsWith; immutable lastConnectAttemptFizzled = instance.parser.server.address.endsWith(".twitch.tv") && !instance.flags.sawWelcome; } else { enum lastConnectAttemptFizzled = false; } if ((!lastConnectAttemptFizzled && instance.settings.reexecToReconnect) || instance.flags.askedToReexec) { import kameloso.platform : ExecException, execvp; import kameloso.terminal : isTerminal, resetTerminalTitle, setTerminalTitle; import std.process : ProcessException; if (!instance.settings.headless) { if (instance.settings.exitSummary && instance.connectionHistory.length) { printSummary(instance); } version(GCStatsOnExit) { import kameloso.common : printGCStats; printGCStats(); } immutable message = instance.flags.askedToReexec ? "Re-executing as requested." : "Re-executing to reconnect as per settings."; logger.info(message); version(Windows) { // Don't writeln on Windows, leave room for "Forked into PID" message } else { import std.stdio : stdout, writeln; writeln(); stdout.flush(); } } try { import core.stdc.stdlib : exit; // Clear the terminal title if we're in a terminal if (isTerminal) resetTerminalTitle(); auto pid = execvp(instance.args); // On Windows, if we're here, the call succeeded // Posix should never be here; it will either exec or throw enum pattern = "Forked into PID <l>%d</>."; logger.infof(pattern, pid.processID); //resetConsoleModeAndCodepage(); // Don't, it will be called via atexit exit(0); } catch (ProcessException e) { enum pattern = "Failed to spawn a new process: <t>%s</>."; logger.errorf(pattern, e.msg); } catch (ExecException e) { enum pattern = "Failed to <l>execvp</> with an error value of <l>%d</>."; logger.errorf(pattern, e.retval); } catch (Exception e) { enum pattern = "Unexpected exception: <t>%s"; logger.errorf(pattern, e.msg); version(PrintStacktraces) logger.trace(e); } // Reset the terminal title after a failed execvp/fork if (isTerminal) setTerminalTitle(); } // Carry some values but otherwise restore the pristine client backup backupClient.nickname = instance.parser.client.nickname; //instance.parser.client = backupClient; // Initialised below // Exhaust leftover queued messages exhaustMessages(); // Clear outgoing messages instance.outbuffer.clear(); instance.backgroundBuffer.clear(); instance.priorityBuffer.clear(); instance.immediateBuffer.clear(); version(TwitchSupport) { instance.fastbuffer.clear(); } auto gracePeriodBeforeReconnect = Timeout.connectionRetry.seconds; // mutable version(TwitchSupport) { if (lastConnectAttemptFizzled || instance.flags.askedToReconnect) { import core.time : msecs; /+ We either saw an instant disconnect before even getting to RPL_WELCOME, or we're reconnecting. Quickly attempt again. +/ static immutable twitchRegistrationFailConnectionRetry = Timeout.twitchRegistrationFailConnectionRetryMsecs.msecs; gracePeriodBeforeReconnect = twitchRegistrationFailConnectionRetry; } } if (!lastConnectAttemptFizzled && !instance.flags.askedToReconnect) { logger.log("One moment..."); } interruptibleSleep(gracePeriodBeforeReconnect, *instance.abort); if (*instance.abort) break outerloop; // Re-instantiate plugins here so it isn't done on the first connect attempt instance.instantiatePlugins(); // Reset throttling, in case there were queued messages. instance.throttle.reset(); // Clear WHOIS history instance.previousWhoisTimestamps.clear(); // Reset the server but keep the address and port immutable addressSnapshot = instance.parser.server.address; immutable portSnapshot = instance.parser.server.port; instance.parser.server = typeof(instance.parser.server).init; // TODO: Add IRCServer constructor instance.parser.server.address = addressSnapshot; instance.parser.server.port = portSnapshot; // Reset transient state flags instance.flags = typeof(instance.flags).init; } scope(exit) { // Always teardown when exiting this loop (for any reason) instance.teardownPlugins(); } // May as well check once here, in case something in instantiatePlugins aborted or so. if (*instance.abort) break outerloop; instance.conn.reset(); // reset() sets the receive timeout to the enum default, so make sure to // update it to any custom value after each reset() call. instance.conn.receiveTimeout = instance.connSettings.receiveTimeout; /+ Resolve. +/ immutable actionAfterResolve = tryResolve( instance, cast(Flag!"firstConnect")(attempt.firstConnect)); if (*instance.abort) break outerloop; // tryResolve interruptibleSleep can abort with (Next) final switch (actionAfterResolve) { case continue_: break; case returnFailure: // No need to teardown; the scopeguard does it for us. attempt.retval = ShellReturnValue.resolutionFailure; break outerloop; case returnSuccess: // Ditto attempt.retval = ShellReturnValue.success; break outerloop; case retry: // should never happen case crash: // ditto import lu.conv : Enum; import std.conv : text; assert(0, text("`tryResolve` returned `", Enum!Next.toString(actionAfterResolve), "`")); } /+ Initialise all plugins' resources. Ensure initialised resources after resolve so we know we have a valid server to create a directory for. +/ try { instance.initPluginResources(); if (*instance.abort) break outerloop; } catch (IRCPluginInitialisationException e) { if (e.malformedFilename.length) { enum pattern = "The <l>%s</> plugin failed to load its resources; " ~ "<l>%s</> is malformed. (at <l>%s</>:<l>%d</>)%s"; logger.errorf( pattern, e.pluginName, e.malformedFilename.doublyBackslashed, e.file.pluginFileBaseName.doublyBackslashed, e.line, bell); } else { enum pattern = "The <l>%s</> plugin failed to load its resources; " ~ "<l>%s</> (at <l>%s</>:<l>%d</>)%s"; logger.errorf( pattern, e.pluginName, e.msg, e.file.pluginFileBaseName.doublyBackslashed, e.line, bell); } version(PrintStacktraces) logger.trace(e.info); attempt.retval = ShellReturnValue.pluginResourceLoadFailure; break outerloop; } catch (Exception e) { enum pattern = "An unexpected error occurred while initialising " ~ "plugin resources: <t>%s</> (at <l>%s</>:<l>%d</>)%s"; logger.errorf( pattern, e.msg, e.file.pluginFileBaseName.doublyBackslashed, e.line, bell); version(PrintStacktraces) logger.trace(e); attempt.retval = ShellReturnValue.pluginResourceLoadException; break outerloop; } /+ Connect. +/ immutable actionAfterConnect = tryConnect(instance); if (*instance.abort) break outerloop; // tryConnect interruptibleSleep can abort with (Next) final switch (actionAfterConnect) { case continue_: break; case returnFailure: // No need to saveOnExit, the scopeguard takes care of that attempt.retval = ShellReturnValue.connectionFailure; break outerloop; case returnSuccess: // should never happen case retry: // ditto case crash: // ditto import lu.conv : Enum; import std.conv : text; assert(0, text("`tryConnect` returned `", Enum!Next.toString(actionAfterConnect), "`")); } // Reinit with its own server. instance.parser = IRCParser(backupClient, instance.parser.server); /+ Set up all plugins. +/ try { instance.setupPlugins(); if (*instance.abort) break outerloop; } catch (IRCPluginInitialisationException e) { if (e.malformedFilename.length) { enum pattern = "The <l>%s</> plugin failed to setup; " ~ "<l>%s</> is malformed. (at <l>%s</>:<l>%d</>)%s"; logger.errorf( pattern, e.pluginName, e.malformedFilename.doublyBackslashed, e.file.pluginFileBaseName.doublyBackslashed, e.line, bell); } else { enum pattern = "The <l>%s</> plugin failed to setup; " ~ "<l>%s</> (at <l>%s</>:<l>%d</>)%s"; logger.errorf( pattern, e.pluginName, e.msg, e.file.pluginFileBaseName.doublyBackslashed, e.line, bell); } version(PrintStacktraces) logger.trace(e.info); attempt.retval = ShellReturnValue.pluginSetupFailure; break outerloop; } catch (Exception e) { enum pattern = "An unexpected error occurred while setting up the <l>%s</> plugin: " ~ "<t>%s</> (at <l>%s</>:<l>%d</>)%s"; logger.errorf( pattern, e.file.pluginNameOfFilename.doublyBackslashed, e.msg, e.file.doublyBackslashed, e.line, bell); version(PrintStacktraces) logger.trace(e); attempt.retval = ShellReturnValue.pluginSetupException; break outerloop; } // Do verbose exits if mainLoop causes a return attempt.silentExit = false; /+ If version Callgrind, do a callgrind dump before the main loop starts, and then once again on disconnect. That way the dump won't contain uninteresting profiling about resolving and connecting and such. +/ version(Callgrind) { void dumpCallgrind() { import lu.string : beginsWith; import std.conv : to; import std.process : execute, thisProcessID; import std.stdio : writeln; import std.string : chomp; immutable dumpCommand = [ "callgrind_control", "-d", thisProcessID.to!string, ]; logger.info("$ callgrind_control -d ", thisProcessID); immutable result = execute(dumpCommand); writeln(result.output.chomp); instance.callgrindRunning = !result.output.beginsWith("Error: Callgrind task with PID"); } if (instance.callgrindRunning) { // Dump now and on scope exit dumpCallgrind(); } scope(exit) if (instance.callgrindRunning) dumpCallgrind(); } // Start the main loop instance.flags.askedToReconnect = false; attempt.next = instance.mainLoop(); attempt.firstConnect = false; } while ( !*instance.abort && attempt.next.among!(Next.continue_, Next.retry)); } // printEventDebugDetails /++ Print what we know about an event, from an error perspective. Params: event = The [dialect.defs.IRCEvent|IRCEvent] in question. raw = The raw string that `event` was parsed from, as read from the IRC server. eventWasInitialised = Whether the [dialect.defs.IRCEvent|IRCEvent] was initialised or if it was only ever set to `void`. +/ void printEventDebugDetails( const ref IRCEvent event, const string raw, const Flag!"eventWasInitialised" eventWasInitialised = Yes.eventWasInitialised) { import kameloso.common : globalHeadless; if (*globalHeadless || !raw.length) return; version(IncludeHeavyStuff) { enum onlyPrintRaw = false; } else { enum onlyPrintRaw = true; } if (onlyPrintRaw || !eventWasInitialised || !event.raw.length) // == IRCEvent.init { if (event.tags.length) { enum pattern = `Offending line: "<t>%s</>"`; logger.warningf(pattern, raw); } else { enum pattern = `Offending line: "<l>@%s %s</>"`; logger.warningf(pattern, event.tags, raw); } } else { version(IncludeHeavyStuff) { import kameloso.printing : printObject; import std.typecons : Flag, No, Yes; // Offending line included in event, in raw printObject!(Yes.all)(event); if (event.sender != IRCUser.init) { logger.trace("sender:"); printObject(event.sender); } if (event.target != IRCUser.init) { logger.trace("target:"); printObject(event.target); } } } } // printSummary /++ Prints a summary of the connection(s) made and events parsed this execution. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. +/ void printSummary(const ref Kameloso instance) @safe { import kameloso.time : timeSince; import core.time : Duration; Duration totalTime; ulong totalBytesReceived; uint i; logger.info("== Connection summary =="); foreach (const entry; instance.connectionHistory) { import std.datetime.systime : SysTime; import std.format : format; import std.stdio : writefln; import core.time : hnsecs; if (!entry.bytesReceived) continue; enum onlyTimePattern = "%02d:%02d:%02d"; enum fullDatePattern = "%d-%02d-%02d " ~ onlyTimePattern; auto start = SysTime.fromUnixTime(entry.startTime); immutable startString = fullDatePattern.format( start.year, start.month, start.day, start.hour, start.minute, start.second); auto stop = SysTime.fromUnixTime(entry.stopTime); immutable stopString = (start.dayOfGregorianCal == stop.dayOfGregorianCal) ? onlyTimePattern.format( stop.hour, stop.minute, stop.second) : fullDatePattern.format( stop.year, stop.month, stop.day, stop.hour, stop.minute, stop.second); start.fracSecs = 0.hnsecs; stop.fracSecs = 0.hnsecs; immutable duration = (stop - start); totalTime += duration; totalBytesReceived += entry.bytesReceived; enum pattern = "%2d: %s, %d events parsed in %,d bytes (%s to %s)"; writefln( pattern, ++i, duration.timeSince!(7, 0)(Yes.abbreviate), entry.numEvents, entry.bytesReceived, startString, stopString); } enum timeConnectedPattern = "Total time connected: <l>%s"; logger.infof(timeConnectedPattern, totalTime.timeSince!(7, 1)); enum receivedPattern = "Total received: <l>%,d</> bytes"; logger.infof(receivedPattern, totalBytesReceived); } // AttemptState /++ Aggregate of state values used in an execution of the program. +/ struct AttemptState { /++ Enum denoting what we should do next loop in an execution attempt. +/ Next next; /++ Bool whether this is the first connection attempt or if we have connected at least once already. +/ bool firstConnect = true; /++ Whether or not "Exiting..." should be printed at program exit. +/ bool silentExit; /++ Shell return value to exit with. +/ int retval; } // syncGuestChannels /++ Syncs currently joined channels with [IRCBot.guestChannels|guestChannels], adding entries in the latter where the former is missing. We can't just check the first plugin at `instance.plugins[0]` since there's no way to be certain it mixes in [kameloso.plugins.common.awareness.ChannelAwareness|ChannelAwareness]. Used when saving to configuration file, to ensure the current state is saved. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. +/ void syncGuestChannels(ref Kameloso instance) pure @safe nothrow { foreach (plugin; instance.plugins) { // Skip plugins that don't seem to mix in ChannelAwareness if (!plugin.state.channels.length) continue; foreach (immutable channelName; plugin.state.channels.byKey) { import std.algorithm.searching : canFind; if (!instance.bot.homeChannels.canFind(channelName) && !instance.bot.guestChannels.canFind(channelName)) { // We're in a channel that isn't tracked as home or guest // We're also saving, so save it as guest instance.bot.guestChannels ~= channelName; } } // We only need the channels from one plugin, as we can be reasonably sure // every plugin that have channels have the same channels break; } } // echoQuitMessage /++ Echos the quit message to the local terminal, to fake it being sent verbosely to the server. It is sent, but later, bypassing the message Fiber which would otherwise do the echoing. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. reason = Quit reason. +/ void echoQuitMessage(ref Kameloso instance, const string reason) @safe { bool printed; version(Colours) { if (!instance.settings.monochrome) { import kameloso.irccolours : mapEffects; logger.trace("--> QUIT :", reason.mapEffects); printed = true; } } if (!printed) { import kameloso.irccolours : stripEffects; logger.trace("--> QUIT :", reason.stripEffects); } } // propagateWhoisTimestamp /++ Propagates a single update to the the [kameloso.kameloso.Kameloso.previousWhoisTimestamps] associative array to all plugins. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. nickname = Nickname whose WHOIS timestamp to propagate. now = UNIX WHOIS timestamp. +/ void propagateWhoisTimestamp( ref Kameloso instance, const string nickname, const long now) pure @safe nothrow { foreach (plugin; instance.plugins) { plugin.state.previousWhoisTimestamps[nickname] = now; } } // propagateWhoisTimestamps /++ Propagates the [kameloso.kameloso.Kameloso.previousWhoisTimestamps] associative array to all plugins. Makes a copy of it before passing it onwards; this way, plugins cannot modify the original. Params: instance = Reference to the current [kameloso.kameloso.Kameloso|Kameloso]. +/ void propagateWhoisTimestamps(ref Kameloso instance) pure @safe { auto copy = instance.previousWhoisTimestamps.dup; // mutable foreach (plugin; instance.plugins) { plugin.state.previousWhoisTimestamps = copy; } } public: // run /++ Entry point of the program. This function is very long, but mostly because it's tricky to split up into free functions and have them convey "parent function should exit". Params: args = Command-line arguments passed to the program. Returns: `0` on success, non-`0` on failure. +/ auto run(string[] args) { import kameloso.plugins.common.misc : IRCPluginSettingsException; import kameloso.constants : ShellReturnValue; import kameloso.logger : KamelosoLogger; import kameloso.string : replaceTokens; import std.algorithm.comparison : among; import std.conv : ConvException; import std.exception : ErrnoException; static import kameloso.common; // Set up the Kameloso instance. auto instance = Kameloso(args); postInstanceSetup(instance); scope(exit) { import kameloso.terminal : isTerminal, resetTerminalTitle; if (isTerminal) resetTerminalTitle(); } // Set pointers. kameloso.common.settings = &instance.settings; instance.abort = &globalAbort; // Declare AttemptState instance. AttemptState attempt; // Set up default directories in the settings. setDefaultDirectories(instance.settings); // Initialise the logger immediately so it's always available. // handleGetopt re-inits later when we know the settings for monochrome and headless kameloso.common.logger = new KamelosoLogger(instance.settings); // Set up signal handling so that we can gracefully catch Ctrl+C. setupSignals(); scope(failure) { import kameloso.terminal : TerminalToken, isTerminal; if (!instance.settings.headless) { enum bellString = "" ~ cast(char)(TerminalToken.bell); immutable bell = isTerminal ? bellString : string.init; logger.error("We just crashed!", bell); } *instance.abort = Yes.abort; resetSignals(); } immutable actionAfterGetopt = tryGetopt(instance); kameloso.common.globalHeadless = &instance.settings.headless; with (Next) final switch (actionAfterGetopt) { case continue_: break; case returnSuccess: return ShellReturnValue.success; case returnFailure: return ShellReturnValue.getoptFailure; case retry: // should never happen case crash: // ditto import lu.conv : Enum; import std.conv : text; assert(0, text("`tryGetopt` returned `", Enum!Next.toString(actionAfterGetopt), "`")); } if (!instance.settings.headless || instance.settings.force) { try { import kameloso.terminal : ensureAppropriateBuffering; // Ensure stdout is buffered by line if we think it isn't being ensureAppropriateBuffering(); } catch (ErrnoException e) { import std.stdio : writeln; if (!instance.settings.headless) writeln("Failed to set stdout buffer mode/size! errno:", e.errno); if (!instance.settings.force) return ShellReturnValue.terminalSetupFailure; } catch (Exception e) { if (!instance.settings.headless) { import std.stdio : writeln; writeln("Failed to set stdout buffer mode/size!"); writeln(e); } if (!instance.settings.force) return ShellReturnValue.terminalSetupFailure; } finally { if (instance.settings.flush) stdout.flush(); } } // Apply some defaults to empty members, as stored in `kameloso.constants`. // It's done before in tryGetopt but do it again to ensure we don't have an empty nick etc // Skip if --force was passed. if (!instance.settings.force) { import kameloso.config : applyDefaults; applyDefaults(instance); } // Additionally if the port is an SSL-like port, assume SSL, // but only if the user isn't forcing settings if (!instance.connSettings.ssl && !instance.settings.force && instance.parser.server.port.among!(6697, 7000, 7001, 7029, 7070, 9999, 443)) { instance.connSettings.ssl = true; } // Copy ssl setting to the Connection after the above instance.conn.ssl = instance.connSettings.ssl; if (!instance.settings.headless) { import kameloso.common : printVersionInfo; import kameloso.printing : printObjects; import std.stdio : writeln; printVersionInfo(); writeln(); if (instance.settings.flush) stdout.flush(); // Print the current settings to show what's going on. IRCClient prettyClient = instance.parser.client; prettyClient.realName = replaceTokens(prettyClient.realName); printObjects(prettyClient, instance.bot, instance.parser.server); if (!instance.bot.homeChannels.length && !instance.bot.admins.length) { import kameloso.config : giveBrightTerminalHint, notifyAboutIncompleteConfiguration; giveBrightTerminalHint(); logger.trace(); notifyAboutIncompleteConfiguration(instance.settings.configFile, args[0]); } } // Verify that settings are as they should be (nickname exists and not too long, etc) immutable actionAfterVerification = verifySettings(instance); with (Next) final switch (actionAfterVerification) { case continue_: break; case returnFailure: return ShellReturnValue.settingsVerificationFailure; case retry: // should never happen case returnSuccess: // ditto case crash: // ditto import lu.conv : Enum; import std.conv : text; assert(0, text("`verifySettings` returned `", Enum!Next.toString(actionAfterVerification), "`")); } // Resolve resource and private key/certificate paths. resolvePaths(instance); instance.conn.certFile = instance.connSettings.certFile; instance.conn.privateKeyFile = instance.connSettings.privateKeyFile; // Save the original nickname *once*, outside the connection loop and before // initialising plugins (who will make a copy of it). Knowing this is useful // when authenticating. instance.parser.client.origNickname = instance.parser.client.nickname; scope(exit) { // Tear down plugins outside the loop too, to cover errors during initialisation // It does nothing if the plugins array is empty instance.teardownPlugins(); } // Initialise plugins outside the loop once, for the error messages try { import std.file : exists; instance.instantiatePlugins(); if (!instance.settings.headless && instance.missingConfigurationEntries.length && instance.settings.configFile.exists) { import kameloso.config : notifyAboutMissingSettings; notifyAboutMissingSettings( instance.missingConfigurationEntries, args[0], instance.settings.configFile); } } catch (ConvException e) { // Configuration file/--set argument syntax error logger.error(e.msg); version(PrintStacktraces) logger.trace(e.info); if (!instance.settings.force) return ShellReturnValue.customConfigSyntaxFailure; } catch (IRCPluginSettingsException e) { // --set plugin/setting name error logger.error(e.msg); version(PrintStacktraces) logger.trace(e.info); if (!instance.settings.force) return ShellReturnValue.customConfigFailure; } // Save the original nickname *once*, outside the connection loop. // It will change later and knowing this is useful when authenticating instance.parser.client.origNickname = instance.parser.client.nickname; // Plugins were instantiated but not initialised, so do that here // initialisePlugins internally handles exceptions so let any unhandled ones fall through immutable success = instance.initialisePlugins(); if (*instance.abort) return ShellReturnValue.failure; if (!success) return ShellReturnValue.pluginInitialisationFailure; // Check for concurrency messages in case any were sent during plugin initialisation while (true) { import kameloso.thread : ThreadMessage; import std.concurrency : receiveTimeout; import std.variant : Variant; import core.time : Duration; bool halt; void onThreadMessage(ThreadMessage message) scope { with (ThreadMessage.Type) switch (message.type) { case popCustomSetting: size_t[] toRemove; foreach (immutable i, immutable line; instance.customSettings) { import lu.string : nom; string slice = line; // mutable immutable setting = slice.nom!(Yes.inherit)('='); if (setting == message.content) toRemove ~= i; } foreach_reverse (immutable i; toRemove) { import std.algorithm.mutation : SwapStrategy, remove; instance.customSettings = instance.customSettings .remove!(SwapStrategy.unstable)(i); } toRemove = null; break; case save: import kameloso.config : writeConfigurationFile; writeConfigurationFile(instance, instance.settings.configFile); break; default: enum pattern = "onThreadMessage received unexpected message type: <t>%s"; logger.errorf(pattern, message.type); if (instance.settings.flush) stdout.flush(); halt = true; break; } } if (halt) return ShellReturnValue.pluginInitialisationFailure; immutable receivedSomething = receiveTimeout(Duration.zero, &onThreadMessage, (Variant v) scope { // Caught an unhandled message enum pattern = "run received unknown Variant: <l>%s"; logger.warningf(pattern, v.type); } ); if (!receivedSomething) break; } // Go! startBot(instance, attempt); // If we're here, we should exit. The only question is in what way. if (instance.conn.connected && !instance.flags.quitMessageSent) { // If not already sent, send a proper QUIT, optionally verbosely string reason; // mutable if (!*instance.abort && !instance.settings.headless && !instance.settings.hideOutgoing) { import kameloso.thread : exhaustMessages; immutable quitMessage = exhaustMessages(); reason = quitMessage.length ? quitMessage : instance.bot.quitReason; reason = reason.replaceTokens(instance.parser.client); echoQuitMessage(instance, reason); } if (!reason.length) { reason = instance.bot.quitReason.replaceTokens(instance.parser.client); } instance.conn.sendline("QUIT :" ~ reason); } // Save if we're exiting and configuration says we should. if (instance.settings.saveOnExit) { try { import kameloso.config : writeConfigurationFile; syncGuestChannels(instance); writeConfigurationFile(instance, instance.settings.configFile); } catch (Exception e) { import kameloso.string : doublyBackslashed; enum pattern = "Caught Exception when saving settings: " ~ "<t>%s</> (at <l>%s</>:<l>%d</>)"; logger.warningf(pattern, e.msg, e.file.doublyBackslashed, e.line); version(PrintStacktraces) logger.trace(e); } } // Print connection summary if (!instance.settings.headless) { if (instance.settings.exitSummary && instance.connectionHistory.length) { printSummary(instance); } version(GCStatsOnExit) { import kameloso.common : printGCStats; printGCStats(); } if (*instance.abort) { logger.error("Aborting..."); } else if (!attempt.silentExit) { logger.info("Exiting..."); } } if (*instance.abort) { // Ctrl+C version(Posix) { if (signalRaised > 0) attempt.retval = (128 + signalRaised); } if (attempt.retval == 0) { // Pass through any specific values, set to failure if unset attempt.retval = ShellReturnValue.failure; } } return attempt.retval; }
D
#!/usr/bin/env dub /+ dub.sdl: name "snippet111" dependency "dwt" path="../../../../../../" libs \ "atk-1.0" \ "cairo" \ "dl" \ "fontconfig" \ "gdk-x11-2.0" \ "gdk_pixbuf-2.0" \ "glib-2.0" \ "gmodule-2.0" \ "gnomeui-2" \ "gnomevfs-2" \ "gobject-2.0" \ "gthread-2.0" \ "gtk-x11-2.0" \ "pango-1.0" \ "pangocairo-1.0" \ "X11" \ "Xcomposite" \ "Xcursor" \ "Xdamage" \ "Xext" \ "Xfixes" \ "Xi" \ "Xinerama" \ "Xrandr" \ "Xrender" \ "Xtst" \ platform="linux" +/ /******************************************************************************* * Copyright (c) 2000, 2004 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 * D Port: * Bill Baxter <wbaxter@gmail.com> *******************************************************************************/ module org.eclipse.swt.snippets.Snippet111; /* * TreeEditor example snippet: edit the text of a tree item (in place, fancy) * * For a list of all SWT example snippets see * http://www.eclipse.org/swt/snippets/ */ import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.graphics.GC; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Widget; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeItem; import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.custom.TreeEditor; import java.lang.all; version(JIVE){ import jive.stacktrace; } void main () { Tree tree; Color black; void handleResize (Event e, Composite composite, Text text, int inset ) { Rectangle rect = composite.getClientArea (); text.setBounds (rect.x + inset, rect.y + inset, rect.width - inset * 2, rect.height - inset * 2); } void handleTextEvent (Event e, Composite composite, TreeItem item, TreeEditor editor,Text text, int inset ) { switch (e.type) { case SWT.FocusOut: { item.setText (text.getText ()); composite.dispose (); } break; case SWT.Verify: { String newText = text.getText (); String leftText = newText.substring (0, e.start); String rightText = newText.substring (e.end, cast(int)newText.length); GC gc = new GC (text); Point size = gc.textExtent (leftText ~ e.text ~ rightText); gc.dispose (); size = text.computeSize (size.x, SWT.DEFAULT); editor.horizontalAlignment = SWT.LEFT; Rectangle itemRect = item.getBounds (), rect = tree.getClientArea (); editor.minimumWidth = Math.max (size.x, itemRect.width) + inset* 2; int left = itemRect.x, right = rect.x + rect.width; editor.minimumWidth = Math.min (editor.minimumWidth, right - left); editor.minimumHeight = size.y + inset* 2; editor.layout (); } break; case SWT.Traverse: { switch (e.detail) { case SWT.TRAVERSE_RETURN: item.setText (text.getText ()); goto case SWT.TRAVERSE_ESCAPE; case SWT.TRAVERSE_ESCAPE: composite.dispose (); e.doit = false; break; default: //no-op break; } break; } default: // no-op } } void handleSelection (Event event, TreeItem[] lastItem, TreeEditor editor ) { TreeItem item = cast(TreeItem) event.item; if (item !is null && item is lastItem [0]) { bool showBorder = true; Composite composite = new Composite (tree, SWT.NONE); if (showBorder) composite.setBackground (black); Text text = new Text (composite, SWT.NONE); int inset = showBorder ? 1 : 0; composite.addListener (SWT.Resize, dgListener( &handleResize, composite, text, inset )); Listener textListener = dgListener( &handleTextEvent, composite, item, editor, text, inset); text.addListener (SWT.FocusOut, textListener); text.addListener (SWT.Traverse, textListener); text.addListener (SWT.Verify, textListener); editor.setEditor (composite, item); text.setText (item.getText ()); text.selectAll (); text.setFocus (); } lastItem [0] = item; } Display display = new Display (); black = display.getSystemColor (SWT.COLOR_BLACK); Shell shell = new Shell (display); shell.setLayout (new FillLayout ()); tree = new Tree (shell, SWT.BORDER); for (int i=0; i<16; i++) { TreeItem itemI = new TreeItem (tree, SWT.NONE); itemI.setText (Format("Item {}", i)); for (int j=0; j<16; j++) { TreeItem itemJ = new TreeItem (itemI, SWT.NONE); itemJ.setText ( Format("Item {}", j) ); } } TreeItem [] lastItem = new TreeItem [1]; TreeEditor editor = new TreeEditor (tree); tree.addListener (SWT.Selection, dgListener( &handleSelection, lastItem, editor )); shell.pack (); shell.open (); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }
D
module dlangide.ui.newproject; import dlangui.core.types; import dlangui.core.i18n; import dlangui.platforms.common.platform; import dlangui.dialogs.dialog; import dlangui.dialogs.filedlg; import dlangui.widgets.widget; import dlangui.widgets.layouts; import dlangui.widgets.editors; import dlangui.widgets.controls; import dlangui.widgets.lists; import dlangui.dml.parser; import dlangui.core.stdaction; import dlangui.core.files; import dlangide.workspace.project; import dlangide.workspace.workspace; import dlangide.ui.commands; import dlangide.ui.frame; import std.path; import std.file; import std.array : empty; class ProjectCreationResult { Workspace workspace; Project project; this(Workspace workspace, Project project) { this.workspace = workspace; this.project = project; } } class NewProjectDlg : Dialog { Workspace _currentWorkspace; IDEFrame _ide; this(IDEFrame parent, bool newWorkspace, Workspace currentWorkspace) { super(newWorkspace ? UIString("New Workspace"d) : UIString("New Project"d), parent.window, DialogFlag.Modal | DialogFlag.Resizable | DialogFlag.Popup, 500, 400); _ide = parent; _icon = "dlangui-logo1"; this._currentWorkspace = currentWorkspace; _newWorkspace = newWorkspace; _location = currentWorkspace !is null ? currentWorkspace.dir : currentDir; } /// override to implement creation of dialog controls override void initialize() { super.initialize(); initTemplates(); Widget content; try { content = parseML(q{ VerticalLayout { id: vlayout padding: Rect { 5, 5, 5, 5 } layoutWidth: fill; layoutHeight: fill HorizontalLayout { layoutWidth: fill; layoutHeight: fill VerticalLayout { margins: 5 layoutWidth: 25%; layoutHeight: fill TextWidget { text: "Project template" } StringListWidget { id: projectTemplateList layoutWidth: wrap; layoutHeight: fill } } VerticalLayout { margins: 5 layoutWidth: 40%; layoutHeight: fill TextWidget { text: "Template description" } EditBox { id: templateDescription; readOnly: true layoutWidth: fill; layoutHeight: fill } } VerticalLayout { layoutWidth: 35%; layoutHeight: fill margins: 5 TextWidget { text: "Directory layout" } EditBox { id: directoryLayout; readOnly: true layoutWidth: fill; layoutHeight: fill } } } TableLayout { margins: 5 colCount: 2 layoutWidth: fill; layoutHeight: wrap TextWidget { text: "" } CheckBox { id: cbCreateWorkspace; text: "Create new solution"; checked: true } TextWidget { text: "Workspace name" } EditLine { id: edWorkspaceName; text: "newworkspace"; layoutWidth: fill } TextWidget { text: "" } CheckBox { id: cbCreateWorkspaceSubdir; text: "Create subdirectory for workspace"; checked: true } TextWidget { text: "Project name" } EditLine { id: edProjectName; text: "newproject"; layoutWidth: fill } TextWidget { text: "" } CheckBox { id: cbCreateSubdir; text: "Create subdirectory for project"; checked: true } TextWidget { text: "Location" } DirEditLine { id: edLocation; layoutWidth: fill } } TextWidget { id: statusText; text: ""; layoutWidth: fill } } }); } catch (Exception e) { Log.e("Exceptin while parsing DML", e); throw e; } _projectTemplateList = content.childById!StringListWidget("projectTemplateList"); _templateDescription = content.childById!EditBox("templateDescription"); _directoryLayout = content.childById!EditBox("directoryLayout"); _edProjectName = content.childById!EditLine("edProjectName"); _edWorkspaceName = content.childById!EditLine("edWorkspaceName"); _cbCreateSubdir = content.childById!CheckBox("cbCreateSubdir"); _cbCreateWorkspace = content.childById!CheckBox("cbCreateWorkspace"); _cbCreateWorkspaceSubdir = content.childById!CheckBox("cbCreateWorkspaceSubdir"); _edLocation = content.childById!DirEditLine("edLocation"); _edLocation.text = toUTF32(_location); _statusText = content.childById!TextWidget("statusText"); _edLocation.filetypeIcons[".d"] = "text-d"; _edLocation.filetypeIcons["dub.json"] = "project-d"; _edLocation.filetypeIcons["package.json"] = "project-d"; _edLocation.filetypeIcons[".dlangidews"] = "project-development"; _edLocation.addFilter(FileFilterEntry(UIString("DlangIDE files"d), "*.dlangidews;*.d;*.dd;*.di;*.ddoc;*.dh;*.json;*.xml;*.ini")); _edLocation.caption = "Select directory"d; if (_currentWorkspace) { _workspaceName = toUTF8(_currentWorkspace.name); _edWorkspaceName.text = toUTF32(_workspaceName); _cbCreateWorkspaceSubdir.enabled = false; _cbCreateWorkspaceSubdir.checked = false; } else { _cbCreateWorkspace.checked = true; _cbCreateWorkspace.enabled = false; } if (!_newWorkspace) { _cbCreateWorkspace.checked = false; _cbCreateWorkspace.enabled = _currentWorkspace !is null; _edWorkspaceName.readOnly = true; } // fill templates dstring[] names; foreach(t; _templates) names ~= t.name; _projectTemplateList.items = names; _projectTemplateList.selectedItemIndex = 0; templateSelected(0); updateDirLayout(); // listeners _edProjectName.contentChange = delegate (EditableContent source) { _projectName = toUTF8(source.text); updateDirLayout(); }; _edWorkspaceName.contentChange = delegate (EditableContent source) { _workspaceName = toUTF8(source.text); updateDirLayout(); }; _edLocation.contentChange = delegate (EditableContent source) { _location = toUTF8(source.text); updateDirLayout(); }; _cbCreateWorkspace.checkChange = delegate (Widget source, bool checked) { _edWorkspaceName.readOnly = !checked; _cbCreateWorkspaceSubdir.enabled = checked; updateDirLayout(); return true; }; _cbCreateSubdir.checkChange = delegate (Widget source, bool checked) { updateDirLayout(); return true; }; _cbCreateWorkspaceSubdir.checkChange = delegate (Widget source, bool checked) { _edWorkspaceName.readOnly = !checked; updateDirLayout(); return true; }; _projectTemplateList.itemSelected = delegate (Widget source, int itemIndex) { templateSelected(itemIndex); return true; }; _projectTemplateList.itemClick = delegate (Widget source, int itemIndex) { templateSelected(itemIndex); return true; }; addChild(content); addChild(createButtonsPanel([_newWorkspace ? ACTION_FILE_NEW_WORKSPACE : ACTION_FILE_NEW_PROJECT, ACTION_CANCEL], 0, 0)); } bool _newWorkspace; StringListWidget _projectTypeList; StringListWidget _projectTemplateList; EditBox _templateDescription; EditBox _directoryLayout; DirEditLine _edLocation; EditLine _edWorkspaceName; EditLine _edProjectName; CheckBox _cbCreateSubdir; CheckBox _cbCreateWorkspace; CheckBox _cbCreateWorkspaceSubdir; TextWidget _statusText; string _projectName = "newproject"; string _workspaceName = "newworkspace"; string _location; int _currentTemplateIndex = -1; ProjectTemplate _currentTemplate; ProjectTemplate[] _templates; protected void templateSelected(int index) { if (_currentTemplateIndex == index) return; _currentTemplateIndex = index; _currentTemplate = _templates[index]; _templateDescription.text = _currentTemplate.description; updateDirLayout(); } protected void updateDirLayout() { dchar[] buf; dstring level = ""; if (_cbCreateWorkspaceSubdir.checked) { buf ~= toUTF32(_workspaceName) ~ "/\n"; level ~= " "; } if (_cbCreateWorkspace.checked) { buf ~= level ~ toUTF32(_workspaceName) ~ toUTF32(WORKSPACE_EXTENSION) ~ "\n"; } if (_cbCreateSubdir.checked) { buf ~= level ~ toUTF32(_projectName) ~ "/\n"; level ~= " "; } buf ~= level ~ "dub.json" ~ "\n"; buf ~= level ~ "source/" ~ "\n"; if (!_currentTemplate.srcfile.empty) { buf ~= level ~ " " ~ toUTF32(_currentTemplate.srcfile) ~ "\n"; } _directoryLayout.text = buf.dup; validate(); } bool setError(dstring msg) { _statusText.text = msg; return msg.empty; } dstring getError() { return _statusText.text; } ProjectCreationResult _result; override void close(const Action action) { Action newaction = action.clone(); if (action.id == IDEActions.FileNewWorkspace || action.id == IDEActions.FileNewProject) { if (!exists(_location)) { // show message box with OK and CANCEL buttons, cancel by default, and handle its result window.showMessageBox(UIString("Cannot create project"d), UIString("The target location does not exist.\nDo you want to create the target directory?"), [ACTION_YES, ACTION_CANCEL], 1, delegate(const Action a) { if (a.id == StandardAction.Yes) { try { mkdirRecurse(_location); close(action); } catch (Exception e) { setError("Cannot create target location"); window.showMessageBox(UIString("Cannot create project"d), UIString(getError())); } } return true; }); return; } if (!validate()) { window.showMessageBox(UIString("Cannot create project"d), UIString(getError())); return; } if (!createProject()) { window.showMessageBox(UIString("Cannot create project"d), UIString("Failed to create project")); return; } newaction.objectParam = _result; } super.close(newaction); } bool validate() { if (!exists(_location)) { return setError("The location directory does not exist"); } if(!isDir(_location)) { return setError("The location is not a directory"); } if (!isValidProjectName(_projectName)) return setError("Invalid project name"); if (!isValidProjectName(_workspaceName)) return setError("Invalid workspace name"); return setError(""); } bool createProject() { if (!validate()) return false; Workspace ws = _currentWorkspace; string wsdir = _location; if (_newWorkspace) { if (_cbCreateWorkspaceSubdir.checked) { wsdir = buildNormalizedPath(wsdir, _workspaceName); if (wsdir.exists) { if (!wsdir.isDir) return setError("Cannot create workspace directory"); } else { try { mkdir(wsdir); } catch (Exception e) { return setError("Cannot create workspace directory"); } } } string wsfilename = buildNormalizedPath(wsdir, _workspaceName ~ WORKSPACE_EXTENSION); ws = new Workspace(_ide, wsfilename); ws.name = toUTF32(_workspaceName); if (!ws.save()) return setError("Cannot create workspace file"); } string pdir = wsdir; if (_cbCreateSubdir.checked) { pdir = buildNormalizedPath(pdir, _projectName); if (pdir.exists) { if (!pdir.isDir) return setError("Cannot create project directory"); } else { try { mkdir(pdir); } catch (Exception e) { return setError("Cannot create project directory"); } } } string pfile = buildNormalizedPath(pdir, "dub.json"); Project project = new Project(ws, pfile); project.name = toUTF32(_projectName); if (!project.save()) return setError("Cannot save project"); project.content.setString("targetName", _projectName); if (_currentTemplate.isLibrary) { project.content.setString("targetType", "staticLibrary"); project.content.setString("targetPath", "lib"); } else { project.content.setString("targetType", "executable"); project.content.setString("targetPath", "bin"); } if (_currentTemplate.json) project.content.merge(_currentTemplate.json); project.save(); ws.addProject(project); if (ws.startupProject is null) ws.startupProject = project; string srcdir = buildNormalizedPath(pdir, "source"); if (!exists(srcdir)) mkdir(srcdir); if (!_currentTemplate.srcfile.empty && !_currentTemplate.srccode.empty) { string srcfile = buildNormalizedPath(srcdir, _currentTemplate.srcfile); write(srcfile, _currentTemplate.srccode); } if (!project.save()) return setError("Cannot save project file"); if (!ws.save()) return setError("Cannot save workspace file"); project.load(); _result = new ProjectCreationResult(ws, project); return true; } void initTemplates() { _templates ~= new ProjectTemplate("Hello world app"d, "Hello world application."d, "app.d", SOURCE_CODE_HELLOWORLD, false); _templates ~= new ProjectTemplate("DlangUI: hello world app"d, "Hello world application\nbased on DlangUI library"d, "app.d", SOURCE_CODE_DLANGUI_HELLOWORLD, false, DUB_JSON_DLANGUI_HELLOWORLD); _templates ~= new ProjectTemplate("vibe.d: Hello world app"d, "Hello world application\nbased on vibe.d framework"d, "app.d", SOURCE_CODE_VIBED_HELLOWORLD, false, DUB_JSON_VIBED_HELLOWORLD); _templates ~= new ProjectTemplate("Empty app project"d, "Empty application project.\nNo source files."d, null, null, false); _templates ~= new ProjectTemplate("Empty library project"d, "Empty library project.\nNo Source files."d, null, null, true); } } immutable string SOURCE_CODE_HELLOWORLD = q{ import std.stdio; void main(string[] args) { writeln("Hello World!"); writeln("Press enter..."); readln(); } }; immutable string SOURCE_CODE_VIBED_HELLOWORLD = q{ import vibe.d; shared static this() { auto settings = new HTTPServerSettings; settings.port = 8080; listenHTTP(settings, &handleRequest); } void handleRequest(HTTPServerRequest req, HTTPServerResponse res) { if (req.path == "/") res.writeBody("Hello, World!", "text/plain"); } }; immutable string DUB_JSON_VIBED_HELLOWORLD = q{ { "dependencies": { "vibe-d": "~>0.7.26" }, "versions": ["VibeDefaultMain"] } }; immutable string SOURCE_CODE_DLANGUI_HELLOWORLD = q{ import dlangui; mixin APP_ENTRY_POINT; /// entry point for dlangui based application extern (C) int UIAppMain(string[] args) { // create window Window window = Platform.instance.createWindow("DlangUI HelloWorld", null); // create some widget to show in window //window.mainWidget = (new Button()).text("Hello, world!"d).margins(Rect(20,20,20,20)); window.mainWidget = parseML(q{ VerticalLayout { margins: 10 padding: 10 backgroundColor: "#C0E0E070" // semitransparent yellow background // red bold text with size = 150% of base style size and font face Arial TextWidget { text: "Hello World example for DlangUI"; textColor: "red"; fontSize: 150%; fontWeight: 800; fontFace: "Arial" } // arrange controls as form - table with two columns TableLayout { colCount: 2 TextWidget { text: "param 1" } EditLine { id: edit1; text: "some text" } TextWidget { text: "param 2" } EditLine { id: edit2; text: "some text for param2" } TextWidget { text: "some radio buttons" } // arrange some radio buttons vertically VerticalLayout { RadioButton { id: rb1; text: "Item 1" } RadioButton { id: rb2; text: "Item 2" } RadioButton { id: rb3; text: "Item 3" } } TextWidget { text: "and checkboxes" } // arrange some checkboxes horizontally HorizontalLayout { CheckBox { id: cb1; text: "checkbox 1" } CheckBox { id: cb2; text: "checkbox 2" } } } HorizontalLayout { Button { id: btnOk; text: "Ok" } Button { id: btnCancel; text: "Cancel" } } } }); // you can access loaded items by id - e.g. to assign signal listeners auto edit1 = window.mainWidget.childById!EditLine("edit1"); auto edit2 = window.mainWidget.childById!EditLine("edit2"); // close window on Cancel button click window.mainWidget.childById!Button("btnCancel").click = delegate(Widget w) { window.close(); return true; }; // show message box with content of editors window.mainWidget.childById!Button("btnOk").click = delegate(Widget w) { window.showMessageBox(UIString("Ok button pressed"d), UIString("Editors content\nEdit1: "d ~ edit1.text ~ "\nEdit2: "d ~ edit2.text)); return true; }; // show window window.show(); // run message loop return Platform.instance.enterMessageLoop(); } }; immutable string DUB_JSON_DLANGUI_HELLOWORLD = q{ { "dependencies": { "dlangui": "~master" } } }; class ProjectTemplate { dstring name; dstring description; string srcfile; string srccode; bool isLibrary; string json; this(dstring name, dstring description, string srcfile, string srccode, bool isLibrary, string json = null) { this.name = name; this.description = description; this.srcfile = srcfile; this.srccode = srccode; this.isLibrary = isLibrary; this.json = json; } }
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.events.PaintEvent; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.graphics.GC; import org.eclipse.swt.events.TypedEvent; import java.lang.all; /** * Instances of this class are sent as a result of * visible areas of controls requiring re-painting. * * @see PaintListener * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public final class PaintEvent : TypedEvent { /** * the graphics context to use when painting * that is configured to use the colors, font and * damaged region of the control. It is valid * only during the paint and must not be disposed */ public GC gc; /** * the x offset of the bounding rectangle of the * region that requires painting */ public int x; /** * the y offset of the bounding rectangle of the * region that requires painting */ public int y; /** * the width of the bounding rectangle of the * region that requires painting */ public int width; /** * the height of the bounding rectangle of the * region that requires painting */ public int height; /** * the number of following paint events which * are pending which may always be zero on * some platforms */ public int count; //static const long serialVersionUID = 3256446919205992497L; /** * Constructs a new instance of this class based on the * information in the given untyped event. * * @param e the untyped event containing the information */ public this(Event e) { super(e); this.gc = e.gc; this.x = e.x; this.y = e.y; this.width = e.width; this.height = e.height; this.count = e.count; } /** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ public override String toString() { return Format( "{} gc={} x={} y={} width={} height={} count={}}", super.toString[ 0 .. $-1 ], gc is null ? "null" : gc.toString, x, y, width, height, count ); } }
D
module android.java.java.time.LocalDateTime_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import19 = android.java.java.time.OffsetDateTime_d_interface; import import5 = android.java.java.time.LocalTime_d_interface; import import1 = android.java.java.time.ZoneId_d_interface; import import24 = android.java.java.lang.Class_d_interface; import import0 = android.java.java.time.LocalDateTime_d_interface; import import17 = android.java.java.time.temporal.TemporalQuery_d_interface; import import18 = android.java.java.time.temporal.Temporal_d_interface; import import23 = android.java.java.time.chrono.ChronoLocalDate_d_interface; import import6 = android.java.java.time.Instant_d_interface; import import15 = android.java.java.time.temporal.TemporalAdjuster_d_interface; import import11 = android.java.java.time.temporal.TemporalField_d_interface; import import10 = android.java.java.time.format.DateTimeFormatter_d_interface; import import3 = android.java.java.time.Month_d_interface; import import4 = android.java.java.time.LocalDate_d_interface; import import7 = android.java.java.time.ZoneOffset_d_interface; import import8 = android.java.java.time.temporal.TemporalAccessor_d_interface; import import13 = android.java.java.time.temporal.ValueRange_d_interface; import import12 = android.java.java.time.temporal.TemporalUnit_d_interface; import import16 = android.java.java.time.temporal.TemporalAmount_d_interface; import import14 = android.java.java.time.DayOfWeek_d_interface; import import22 = android.java.java.time.chrono.ChronoZonedDateTime_d_interface; import import25 = android.java.java.util.Comparator_d_interface; import import21 = android.java.java.time.chrono.ChronoLocalDateTime_d_interface; import import9 = android.java.java.lang.CharSequence_d_interface; import import2 = android.java.java.time.Clock_d_interface; import import20 = android.java.java.time.ZonedDateTime_d_interface; import import26 = android.java.java.time.chrono.Chronology_d_interface; final class LocalDateTime : IJavaObject { static immutable string[] _d_canCastTo = [ "java/time/temporal/Temporal", "java/time/temporal/TemporalAdjuster", "java/time/chrono/ChronoLocalDateTime", "java/io/Serializable", ]; @Import static import0.LocalDateTime now(); @Import static import0.LocalDateTime now(import1.ZoneId); @Import static import0.LocalDateTime now(import2.Clock); @Import static import0.LocalDateTime of(int, import3.Month, int, int, int); @Import static import0.LocalDateTime of(int, import3.Month, int, int, int, int); @Import static import0.LocalDateTime of(int, import3.Month, int, int, int, int, int); @Import static import0.LocalDateTime of(int, int, int, int, int); @Import static import0.LocalDateTime of(int, int, int, int, int, int); @Import static import0.LocalDateTime of(int, int, int, int, int, int, int); @Import static import0.LocalDateTime of(import4.LocalDate, import5.LocalTime); @Import static import0.LocalDateTime ofInstant(import6.Instant, import1.ZoneId); @Import static import0.LocalDateTime ofEpochSecond(long, int, import7.ZoneOffset); @Import static import0.LocalDateTime from(import8.TemporalAccessor); @Import static import0.LocalDateTime parse(import9.CharSequence); @Import static import0.LocalDateTime parse(import9.CharSequence, import10.DateTimeFormatter); @Import bool isSupported(import11.TemporalField); @Import bool isSupported(import12.TemporalUnit); @Import import13.ValueRange range(import11.TemporalField); @Import int get(import11.TemporalField); @Import long getLong(import11.TemporalField); @Import import4.LocalDate toLocalDate(); @Import int getYear(); @Import int getMonthValue(); @Import import3.Month getMonth(); @Import int getDayOfMonth(); @Import int getDayOfYear(); @Import import14.DayOfWeek getDayOfWeek(); @Import import5.LocalTime toLocalTime(); @Import int getHour(); @Import int getMinute(); @Import int getSecond(); @Import int getNano(); @Import @JavaName("with") import0.LocalDateTime with_(import15.TemporalAdjuster); @Import @JavaName("with") import0.LocalDateTime with_(import11.TemporalField, long); @Import import0.LocalDateTime withYear(int); @Import import0.LocalDateTime withMonth(int); @Import import0.LocalDateTime withDayOfMonth(int); @Import import0.LocalDateTime withDayOfYear(int); @Import import0.LocalDateTime withHour(int); @Import import0.LocalDateTime withMinute(int); @Import import0.LocalDateTime withSecond(int); @Import import0.LocalDateTime withNano(int); @Import import0.LocalDateTime truncatedTo(import12.TemporalUnit); @Import import0.LocalDateTime plus(import16.TemporalAmount); @Import import0.LocalDateTime plus(long, import12.TemporalUnit); @Import import0.LocalDateTime plusYears(long); @Import import0.LocalDateTime plusMonths(long); @Import import0.LocalDateTime plusWeeks(long); @Import import0.LocalDateTime plusDays(long); @Import import0.LocalDateTime plusHours(long); @Import import0.LocalDateTime plusMinutes(long); @Import import0.LocalDateTime plusSeconds(long); @Import import0.LocalDateTime plusNanos(long); @Import import0.LocalDateTime minus(import16.TemporalAmount); @Import import0.LocalDateTime minus(long, import12.TemporalUnit); @Import import0.LocalDateTime minusYears(long); @Import import0.LocalDateTime minusMonths(long); @Import import0.LocalDateTime minusWeeks(long); @Import import0.LocalDateTime minusDays(long); @Import import0.LocalDateTime minusHours(long); @Import import0.LocalDateTime minusMinutes(long); @Import import0.LocalDateTime minusSeconds(long); @Import import0.LocalDateTime minusNanos(long); @Import IJavaObject query(import17.TemporalQuery); @Import import18.Temporal adjustInto(import18.Temporal); @Import long until(import18.Temporal, import12.TemporalUnit); @Import string format(import10.DateTimeFormatter); @Import import19.OffsetDateTime atOffset(import7.ZoneOffset); @Import import20.ZonedDateTime atZone(import1.ZoneId); @Import int compareTo(import21.ChronoLocalDateTime); @Import bool isAfter(import21.ChronoLocalDateTime); @Import bool isBefore(import21.ChronoLocalDateTime); @Import bool isEqual(import21.ChronoLocalDateTime); @Import bool equals(IJavaObject); @Import int hashCode(); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import int compareTo(IJavaObject); @Import import24.Class getClass(); @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); @Import static import25.Comparator timeLineOrder(); @Import import26.Chronology getChronology(); @Import import6.Instant toInstant(import7.ZoneOffset); @Import long toEpochSecond(import7.ZoneOffset); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Ljava/time/LocalDateTime;"; }
D
/** Copyright: © 2014 rejectedsoftware e.K. License: Subject to the terms of the GNU GPLv3 license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module dubregistry.scheduler; import std.datetime; import vibe.core.core; import vibe.core.file; import vibe.core.path; import vibe.data.json; /** Persistent event scheduler for low-frequency events. Any outstanding events that should have fired during a down-time will be triggered once the corresponding handler has been registered. Repeated events will only be fired once, though. So after a down-time of three days, a daily event will only be triggered a single time instead of three times. */ class PersistentScheduler { @safe: enum EventKind { singular, periodic, daily, weekly, monthly, yearly } struct Event { EventKind kind; SysTime next; Duration period; Timer timer; void delegate() @safe nothrow handler; } private { NativePath m_persistentFilePath; Event[string] m_events; bool m_deferUpdates; } this(NativePath persistent_file) { import std.conv : to; m_persistentFilePath = persistent_file; if (existsFile(persistent_file)) { m_deferUpdates = true; auto data = readJsonFile(persistent_file); foreach (string name, desc; data.byKeyValue) { auto tp = desc["kind"].get!string.to!EventKind; auto next = SysTime.fromISOExtString(desc["next"].get!string); final switch (tp) with (EventKind) { case singular: scheduleEvent(name, next); break; case periodic: scheduleEvent(name, next, desc["period"].get!long.usecs); break; case daily: scheduleDailyEvent(name, next); break; case weekly: scheduleWeeklyEvent(name, next); break; case monthly: scheduleMonthlyEvent(name, next); break; case yearly: scheduleYearlyEvent(name, next); break; } } m_deferUpdates = false; } } void scheduleEvent(string name, SysTime time) { scheduleEvent(name, EventKind.singular, time); } void scheduleEvent(string name, SysTime first_time, Duration repeat_period) { scheduleEvent(name, EventKind.periodic, first_time, repeat_period); } void scheduleDailyEvent(string name, SysTime first_time) { scheduleEvent(name, EventKind.daily, first_time); } void scheduleWeeklyEvent(string name, SysTime first_time) { scheduleEvent(name, EventKind.weekly, first_time); } void scheduleMonthlyEvent(string name, SysTime first_time) { scheduleEvent(name, EventKind.monthly, first_time); } void scheduleYearlyEvent(string name, SysTime first_time) { scheduleEvent(name, EventKind.yearly, first_time); } void scheduleEvent(string name, EventKind kind, SysTime first_time, Duration repeat_period = 0.seconds) { auto now = Clock.currTime(UTC()); if (name !in m_events) { auto timer = createTimer({ onTimerFired(name); }); auto evt = Event(kind, first_time, repeat_period, timer, null); m_events[name] = evt; // direct assignment yields "Internal error: backend\cgcs.c 351" } auto pevt = name in m_events; pevt.kind = kind; pevt.next = first_time; pevt.period = repeat_period; writePersistentFile(); if (pevt.handler) { if (pevt.next <= now) fireEvent(name, now); else pevt.timer.rearm(pevt.next - now); } } void deleteEvent(string name) { if (auto pevt = name in m_events) { m_events.remove(name); writePersistentFile(); } } bool existsEvent(string name) const { return (name in m_events) !is null; } void setEventHandler(string name, void delegate() @safe nothrow handler) { auto pevt = name in m_events; assert(pevt !is null, "Non-existent event: "~name); pevt.handler = handler; auto now = Clock.currTime(UTC()); if (handler !is null) { if (pevt.next <= now) fireEvent(name, now); else pevt.timer.rearm(pevt.next - now); } } private void onTimerFired(string name) nothrow { auto pevt = name in m_events; if (!pevt || !pevt.handler) return; SysTime now; try now = Clock.currTime(UTC()); catch (Exception e) assert(false, "Failed to get current time: "~e.msg); if (pevt.next <= now) fireEvent(name, now); else { scope (failure) assert(false); pevt.timer.rearm(pevt.next - now); } } private void fireEvent(string name, SysTime now) nothrow { auto pevt = name in m_events; assert(pevt.next <= now); assert(pevt.handler !is null); auto handler = pevt.handler; final switch (pevt.kind) with (EventKind) { case singular: break; case periodic: do pevt.next += pevt.period; while (pevt.next <= now); break; case daily: do pevt.next.dayOfGregorianCal = pevt.next.dayOfGregorianCal + 1; while (pevt.next <= now); break; case weekly: do pevt.next.dayOfGregorianCal = pevt.next.dayOfGregorianCal + 7; while (pevt.next <= now); break; case monthly: // FIXME: retain the original day of month after an overflow happened! do pevt.next.add!"months"(1, AllowDayOverflow.no); while (pevt.next <= now); break; case yearly: // FIXME: retain the original day of month after an overflow happened! do pevt.next.add!"years"(1, AllowDayOverflow.no); while (pevt.next <= now); break; } if (pevt.kind == EventKind.singular) m_events.remove(name); else { scope (failure) assert(false); pevt.timer.rearm(pevt.next - now); } try writePersistentFile(); catch (Exception e) { import vibe.core.log : logError; logError("Failed to write persistent scheduling file: %s", e.msg); } handler(); } private void writePersistentFile() { import std.conv : to; if (m_deferUpdates) return; Json jevents = Json.emptyObject; foreach (name, desc; m_events) { auto jdesc = Json.emptyObject; jdesc["kind"] = desc.kind.to!string; jdesc["next"] = desc.next.toISOExtString(); if (desc.kind == EventKind.periodic) jdesc["period"] = desc.period.total!"usecs"; jevents[name] = jdesc; } m_persistentFilePath.writeJsonFile(jevents); } } private Json readJsonFile(NativePath path) @safe { import vibe.stream.operations; auto fil = openFile(path); scope (exit) fil.close(); return parseJsonString(fil.readAllUTF8()); } private void writeJsonFile(NativePath path, Json data) @safe { import vibe.stream.wrapper; auto fil = openFile(path, FileMode.createTrunc); scope (exit) fil.close(); auto rng = streamOutputRange(fil); auto prng = () @trusted { return &rng; } (); writePrettyJsonString(prng, data); }
D
//*********************************************************************** // Info EXIT //*********************************************************************** 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); }; //************************************************************************ // Hello //************************************************************************ 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"); //(opovržlivę) Co chceš? }; // ************************************************************************* // Wurst verteilen // ************************************************************************* 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 = "Tumáš, mám tu pro tebe skopovou klobásu."; }; 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() { AI_Output (other, self, "DIA_Agon_Wurst_15_00"); //Tumáš, mám tu pro tebe skopovou klobásu. AI_Output (self, other, "DIA_Agon_Wurst_07_01"); //Ovčí klobása, ovčí sýr... ovčí mléko... už mi to všechno leze krkem. AI_Output (other, self, "DIA_Agon_Wurst_15_02"); //Tak chceš tu klobásu, nebo ne? AI_Output (self, other, "DIA_Agon_Wurst_07_03"); //Ale no tak ho sem dej! B_GiveInvItems (other, self, ItFo_SchafsWurst, 1); Wurst_Gegeben = (Wurst_Gegeben +1); CreateInvItems (self, ITFO_Sausage,1); B_UseItem (self, ITFO_Sausage); var string NovizeText; var string NovizeLeft; NovizeLeft = IntToString (13 - Wurst_Gegeben); NovizeText = ConcatStrings(NovizeLeft, PRINT_NovizenLeft); AI_PrintScreen (NovizeText, -1, YPOS_GOLDGIVEN, FONT_ScreenSmall, 2); }; //*********************************************************************** // Ich bin Neu hier. //*********************************************************************** 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 = "Jsem tady nový."; }; 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"); //Jsem tady nový. AI_Output (self ,other,"DIA_Agon_New_07_01"); //To vidím. AI_Output (self ,other,"DIA_Agon_New_07_02"); //Jestli zatím nemáš co na práci, promluv si s Parlanem. On už ti nęjakou dá. }; //*********************************************************************** // Was ist zwischen dir und Babo passiert? //*********************************************************************** 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 = "Co se stalo mezi tebou a Babem?"; }; 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"); //Co se stalo mezi tebou a Babem? AI_Output (self ,other,"DIA_Agon_YouAndBabo_07_01"); //Nemęl bys vęâit všemu, co uslyšíš. AI_Output (self ,other,"DIA_Agon_YouAndBabo_07_02"); //(neústupnę) Âeknęme si jedno: půjdu svou vlastní cestou. Tou, kterou mi pâedurčil Innos. AI_Output (self ,other,"DIA_Agon_YouAndBabo_07_03"); //Nedovolím nikomu stát mi v cestę, a určitę ne tomu jelimánkovi Babovi. Info_ClearChoices (DIA_Agon_YouAndBabo); Info_AddChoice (DIA_Agon_YouAndBabo,"Nemęli bychom my novicové držet pohromadę?",DIA_Agon_YouAndBabo_AllTogether); Info_AddChoice (DIA_Agon_YouAndBabo,"Innos sám ví, jakou cestou bychom se męli vydat.",DIA_Agon_YouAndBabo_InnosWay); Info_AddChoice (DIA_Agon_YouAndBabo,"Vycházíme spolu docela dobâe.",DIA_Agon_YouAndBabo_Understand); }; FUNC VOID DIA_Agon_YouAndBabo_AllTogether () { AI_Output (other,self ,"DIA_Agon_YouAndBabo_AllTogether_15_00"); //Nemęli bychom my novicové držet pohromadę? AI_Output (self ,other,"DIA_Agon_YouAndBabo_AllTogether_07_01"); //Vy ostatní si držte pohromadę, jak chcete. AI_Output (self ,other,"DIA_Agon_YouAndBabo_AllTogether_07_02"); //Ale prosím, neplýtvej mým časem. (chladnę) A nestav se mi do cesty. Info_ClearChoices (DIA_Agon_YouAndBabo); }; FUNC VOID DIA_Agon_YouAndBabo_InnosWay () { AI_Output (other,self ,"DIA_Agon_YouAndBabo_InnosWay_15_00"); //Innos sám ví, jakou cestou bychom se męli vydat. AI_Output (self ,other,"DIA_Agon_YouAndBabo_InnosWay_07_01"); //Moje rodina vždycky stála vysoko v Innosovę pâízni a na tom se nic nezmęní. Info_ClearChoices (DIA_Agon_YouAndBabo); }; FUNC VOID DIA_Agon_YouAndBabo_Understand () { AI_Output (other,self ,"DIA_Agon_YouAndBabo_Understand_15_00"); //Vycházíme spolu docela dobâe. AI_Output (self ,other,"DIA_Agon_YouAndBabo_Understand_07_01"); //To doufám. Až budu mágem, můžu za tebe ztratit slůvko. Info_ClearChoices (DIA_Agon_YouAndBabo); }; //************************************************************************ // Kann ich bei dir Kräuter bekommen? //************************************************************************ 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 = "Co tady pęstujete?"; }; 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"); //Co tady pęstujete? AI_Output (self ,other,"DIA_Agon_GetHerb_07_01"); //Snažíme se vypęstovat léčivé byliny, aby mohl mistr Neoras vaâit lektvary. }; //************************************************************************ // Agon ist in der Höhle //************************************************************************ 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"); //(vítęznę) Jdeš pozdę! AI_Output (self ,other,"DIA_Agon_GolemDead_07_01"); //Byl jsem tady první! Vyhrál jsem! Info_ClearChoices (DIA_Agon_GolemDead); Info_AddChoice (DIA_Agon_GolemDead,"(výhrůžnę) Jenom pokud se odsud dostaneš živý.",DIA_Agon_GolemDead_NoWay); Info_AddChoice (DIA_Agon_GolemDead,"Drž hubu!",DIA_Agon_GolemDead_ShutUp); Info_AddChoice (DIA_Agon_GolemDead,"Gratuluji, vážnę sis to zasloužil.",DIA_Agon_GolemDead_Congrat); }; FUNC VOID DIA_Agon_GolemDead_NoWay () { AI_Output (other,self ,"DIA_Agon_GolemDead_NoWay_15_00"); //(výhrůžnę) Jenom pokud se odsud dostaneš živý. AI_Output (self ,other,"DIA_Agon_GolemDead_NoWay_07_01"); //Chceš mę zabít? To se ti nikdy nepovede. 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"); //Drž hubu! AI_Output (self ,other,"DIA_Agon_GolemDead_ShutUp_07_01"); //(výsmęšnę) Nemáš nárok, prohrál jsi! Pâiznej si to. AI_Output (self ,other,"DIA_Agon_GolemDead_ShutUp_07_02"); //Jenom mnę bylo osudem určeno stát se mágem. Info_ClearChoices (DIA_Agon_GolemDead); Info_AddChoice (DIA_Agon_GolemDead,"Osud ti určil leda políbit mi zadek. Truhla je moje.",DIA_Agon_GolemDead_ShutUp_MyChest); Info_AddChoice (DIA_Agon_GolemDead,"Vyhrál jsi.",DIA_Agon_GolemDead_ShutUp_YouWin); }; FUNC VOID DIA_Agon_GolemDead_ShutUp_MyChest () { AI_Output (other,self ,"DIA_Agon_GolemDead_ShutUp_MyChest_15_00"); //Osud ti určil leda políbit mi zadek. Truhla je moje. AI_Output (self ,other,"DIA_Agon_GolemDead_ShutUp_MyChest_07_01"); //(rozzlobenę) Ne, to teda ne, to tę spíš zabiju. 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"); //Vyhrál jsi. AI_Output (self ,other,"DIA_Agon_GolemDead_ShutUp_YouWin_07_01"); //(zbęsile) Ne, mę neošálíš. Snažíš se mę zbavit. AI_Output (self ,other,"DIA_Agon_GolemDead_ShutUp_YouWin_07_02"); //To nedopustím! 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"); //Gratuluji, vážnę sis to zasloužil. AI_Output (self ,other,"DIA_Agon_GolemDead_Congrat_07_01"); //(nedůvęâivę) Co to má znamenat? Co máš za lubem? AI_Output (other,self ,"DIA_Agon_GolemDead_Congrat_15_02"); //O čem to mluvíš? AI_Output (self ,other,"DIA_Agon_GolemDead_Congrat_07_03"); //(nervóznę) Chceš mę zabít a nechat si všechnu slávu pro sebe! AI_Output (self ,other,"DIA_Agon_GolemDead_Congrat_07_04"); //To se ti nikdy nepodaâí! AI_StopProcessInfos (self); B_Attack (self,other,AR_NONE, 1); }; //**************************************** // Der Sc war vor Agon in der Höhle //**************************************** 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"); //(pâekvapenę) Našel jsi ten úkryt pâede mnou. To nejde... AI_Output (self ,other,"DIA_Agon_GolemLives_07_01"); //(odhodlanę) Tak to nemůže zůstat! To nedovolím. AI_Output (self ,other,"DIA_Agon_GolemLives_07_02"); //Dokonce nikdy nenajdou tvou mrtvolu. AI_StopProcessInfos (self); B_Attack (self,other,AR_NONE, 0); }; //**************************************** // Sc hat Agon am Leben gelassen //**************************************** /* INSTANCE DIA_Agon_StillAlive (C_INFO) { npc = NOV_603_Agon; nr = 1; condition = DIA_Agon_StillAlive_Condition; information = DIA_Agon_StillAlive_Info; permanent = TRUE; description = "Co tady dęláš?"; }; FUNC INT DIA_Agon_StillAlive_Condition() { if ((Kapitel >= 2) && (hero.guild == GIL_KDF)) { return TRUE; }; }; FUNC VOID DIA_Agon_StillAlive_Info() { AI_Output (other,self ,"DIA_Agon_StillAlive_15_00"); //Co tady dęláš? AI_Output (self ,other,"DIA_Agon_StillAlive_07_01"); //Hättest Du mich nicht töten können? Dann müsste ich das ganze hier wenigstens nicht mehr ertragen. AI_Output (self ,other,"DIA_Agon_StillAlive_07_02"); //Jetzt lass mich in Ruhe! Geh zurück ins Kloster! AI_StopProcessInfos (self); }; */ //*********************************************************************** // Perm //*********************************************************************** 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 = "Tak jak to jde?"; }; 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"); //Tak jak to jde? if (other.guild == GIL_PAL) { AI_Output (self ,other,"DIA_Agon_Perm_07_01"); //Ach - díky za tvůj zájem, sire paladine. Práce se mi líbí a jsem si jist, že brzy budu vybrán mezi mágy. } else { AI_Output (self ,other,"DIA_Agon_Perm_07_02"); //(arogantnę) Tady v Innosovę klášteâe jsi jenom hostem. Męl by ses tedy podle toho chovat a nerušit mę v mé práci. Pâeji hezký den. }; }; // ************************************************************ // PICK POCKET // ************************************************************ 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() { C_Beklauen (23, 12); }; FUNC VOID DIA_Agon_PICKPOCKET_Info() { Info_ClearChoices (DIA_Agon_PICKPOCKET); Info_AddChoice (DIA_Agon_PICKPOCKET, DIALOG_BACK ,DIA_Agon_PICKPOCKET_BACK); Info_AddChoice (DIA_Agon_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Agon_PICKPOCKET_DoIt); }; func void DIA_Agon_PICKPOCKET_DoIt() { B_Beklauen (); Info_ClearChoices (DIA_Agon_PICKPOCKET); }; func void DIA_Agon_PICKPOCKET_BACK() { Info_ClearChoices (DIA_Agon_PICKPOCKET); };
D
/Users/shay_li/Downloads/bn128-jni-master/native/target/release/deps/jni_sys-b96d8b2a3f4b74ee.rmeta: /Users/shay_li/.cargo/registry/src/github.com-1ecc6299db9ec823/jni-sys-0.3.0/src/lib.rs /Users/shay_li/Downloads/bn128-jni-master/native/target/release/deps/libjni_sys-b96d8b2a3f4b74ee.rlib: /Users/shay_li/.cargo/registry/src/github.com-1ecc6299db9ec823/jni-sys-0.3.0/src/lib.rs /Users/shay_li/Downloads/bn128-jni-master/native/target/release/deps/jni_sys-b96d8b2a3f4b74ee.d: /Users/shay_li/.cargo/registry/src/github.com-1ecc6299db9ec823/jni-sys-0.3.0/src/lib.rs /Users/shay_li/.cargo/registry/src/github.com-1ecc6299db9ec823/jni-sys-0.3.0/src/lib.rs:
D
module darepl.core.lexer; import std.ascii, std.conv, std.string, std.variant, darepl.core.console; public enum LiteralType : ubyte { int8, int16, int32, int64, float32, float64, } public union LiteralValue { public byte value8s; public ubyte value8u; public short value16s; public ushort value16u; public int value32s; public uint value32u; public long value64s; public ulong value64u; public float value32f; public double value64f; } public final class Literal { private LiteralType _type; private LiteralValue _value; public this(LiteralType type, LiteralValue value) pure nothrow { _type = type; _value = value; } @property public LiteralType type() pure nothrow { return _type; } @property public LiteralValue value() pure nothrow { return _value; } } public abstract class Token { } public final class IdentifierToken : Token { private string _value; pure nothrow invariant() { assert(_value); } public this(string value) pure nothrow in { assert(value); } body { _value = value; } @property public string value() pure nothrow out (result) { assert(result); } body { return _value; } } public final class LiteralToken : Token { private Literal _value; public this(Literal value) pure nothrow { _value = value; } @property public Literal value() pure nothrow { return _value; } } public enum DelimiterType : ubyte { comma, dot, plus, minus, star, slash, percent, pipe, ampersand, tilde, caret, exclamation, leftArrow, rightArrow, openBracket, closeBracket, openParen, closeParen, } public final class DelimiterToken : Token { private DelimiterType _type; private string _value; pure nothrow invariant() { assert(_value); } public this(DelimiterType type, string value) pure nothrow in { assert(value); } body { _type = type; _value = value; } @property public DelimiterType type() pure nothrow { return _type; } @property public string value() pure nothrow out (result) { assert(result); } body { return _value; } } public class Lexer { private string _string; private size_t _position; private char _current; pure nothrow invariant() { assert(_string); } public this(string value) pure nothrow in { assert(value); } body { _string = value; } protected final char current() pure nothrow { return _current; } protected final char next() pure nothrow { if (_position == _string.length) return char.init; return _string[_position]; } protected final char moveNext() pure nothrow { if (_position == _string.length) return _current = char.init; return _current = _string[_position++]; } protected final char peek(size_t offset) pure nothrow { if (!offset) return _current; auto idx = _position; for (size_t i = 0; i < offset; i++) { if (idx == _string.length) return char.init; auto chr = _string[idx++]; if (i == offset - 1) return chr; } assert(false); } public final Token[] lex() out (result) { if (result) foreach (tok; result) assert(tok); } body { Token[] tokens; while (true) { if (auto token = lexNext()) tokens ~= token; else { if (_position == _string.length) break; write("Could not lex input completely."); return null; } } return tokens; } protected final Token lexNext() { char chr; while ((chr = moveNext()) != char.init) { if (isWhite(chr)) continue; if (isAlpha(chr) || chr == '_') return lexIdentifier(chr); switch (chr) { case ',': return new DelimiterToken(DelimiterType.comma, [chr]); case '.': return new DelimiterToken(DelimiterType.dot, [chr]); case '+': return new DelimiterToken(DelimiterType.plus, [chr]); case '-': return new DelimiterToken(DelimiterType.minus, [chr]); case '*': return new DelimiterToken(DelimiterType.star, [chr]); case '/': return new DelimiterToken(DelimiterType.slash, [chr]); case '%': return new DelimiterToken(DelimiterType.percent, [chr]); case '|': return new DelimiterToken(DelimiterType.pipe, [chr]); case '&': return new DelimiterToken(DelimiterType.ampersand, [chr]); case '~': return new DelimiterToken(DelimiterType.tilde, [chr]); case '^': return new DelimiterToken(DelimiterType.caret, [chr]); case '!': return new DelimiterToken(DelimiterType.exclamation, [chr]); case '[': return new DelimiterToken(DelimiterType.openBracket, [chr]); case ']': return new DelimiterToken(DelimiterType.closeBracket, [chr]); case '(': return new DelimiterToken(DelimiterType.openParen, [chr]); case ')': return new DelimiterToken(DelimiterType.closeParen, [chr]); default: break; } if (chr == '<' || chr == '>') { string arrow = [chr, next()]; if (arrow == "<<") { moveNext(); return new DelimiterToken(DelimiterType.leftArrow, arrow); } else if (arrow == ">>") { moveNext(); return new DelimiterToken(DelimiterType.rightArrow, arrow); } } if (isDigit(chr)) return lexLiteral(chr); auto tok = virtualLexNext(chr); if (tok) return tok; write("Expected any valid character."); return null; } return null; } protected final Token lexIdentifier(char chr) pure { string id = [chr]; while (true) { auto idChr = next(); if (!isAlpha(idChr) && !isDigit(idChr) && idChr != '_') break; id ~= moveNext(); } return new IdentifierToken(toLower(id)); } protected final Token lexLiteral(char chr) { enum LiteralRadix : ubyte { binary, octal, decimal, hexadecimal, } string literal; auto radix = LiteralRadix.decimal; if (chr == '0') { switch (next()) { case 'b', 'B': radix = LiteralRadix.binary; break; case 'o', 'O': radix = LiteralRadix.octal; break; case 'x', 'X': radix = LiteralRadix.hexadecimal; break; default: break; } if (radix != LiteralRadix.decimal) moveNext(); } if (radix == LiteralRadix.decimal) literal = [chr]; while (true) { auto litChr = next(); if (!isHexDigit(litChr)) break; literal ~= moveNext(); } bool isFloat; if (next() == '.' && isDigit(peek(2))) { if (radix != LiteralRadix.decimal) { write("Floating point literal must be base 10."); return null; } isFloat = true; literal ~= moveNext(); while (true) { auto decChr = next(); if (!isDigit(decChr)) break; literal ~= moveNext(); } auto eChr = next(); if (eChr == 'e' || eChr == 'E') { literal ~= moveNext(); auto sign = next(); if (sign == '+' || sign == '-') literal ~= moveNext(); while (true) { auto expChr = next(); if (!isDigit(expChr)) break; literal ~= moveNext(); } } } auto typeStr = [moveNext(), moveNext()]; LiteralType type; if (typeStr == "i8") type = LiteralType.int8; else { switch (typeStr ~ moveNext()) { case "i16": type = LiteralType.int16; break; case "i32": type = LiteralType.int32; break; case "i64": type = LiteralType.int64; break; case "f32": type = LiteralType.float32; break; case "f64": type = LiteralType.float64; break; default: write("Expected i8, i16, i32, i64, f32, or f64."); return null; } } uint radixNo; final switch (radix) { case LiteralRadix.binary: radixNo = 2; break; case LiteralRadix.octal: radixNo = 8; break; case LiteralRadix.decimal: radixNo = 10; break; case LiteralRadix.hexadecimal: radixNo = 16; break; } LiteralValue value; auto copy = literal; try { final switch (type) { case LiteralType.int8: value.value8u = parse!ubyte(literal, radixNo); break; case LiteralType.int16: value.value16u = parse!ushort(literal, radixNo); break; case LiteralType.int32: value.value32u = parse!uint(literal, radixNo); break; case LiteralType.int64: value.value64u = parse!ulong(literal, radixNo); break; case LiteralType.float32: uint raw; if (!isFloat) { raw = parse!uint(literal, radixNo); value.value32f = *cast(float*)&raw; } else value.value32f = parse!float(literal); break; case LiteralType.float64: ulong raw; if (!isFloat) { raw = parse!ulong(literal, radixNo); value.value64f = *cast(double*)&raw; } else value.value64f = parse!double(literal); break; } } catch (ConvException) { writef("Could not lex value %s as type %s.", copy, type); return null; } if (literal.length) { writef("Could not lex entire literal value."); return null; } return new LiteralToken(new Literal(type, value)); } protected Token virtualLexNext(char chr) pure nothrow { return null; } }
D
/home/brad/Development/rusty_snek_gaem/target/debug/deps/libtexture-93a4b3be423b7267.rlib: /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/lib.rs /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/ops.rs /home/brad/Development/rusty_snek_gaem/target/debug/deps/texture-93a4b3be423b7267.d: /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/lib.rs /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/ops.rs /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/lib.rs: /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/ops.rs:
D
instance Mod_1466_BUD_Buddler_MT (Npc_Default) { //-------- primary data -------- name = Name_Buddler; npctype = npctype_mt_buddler; guild = GIL_out; level = 3; voice = 2; id = 1466; //-------- abilities -------- B_SetAttributesToChapter (self, 1); //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Tired.mds"); // body mesh, head mesh, hairmesh, face-tex, hair-tex, skin Mdl_SetVisualBody (self,"hum_body_Naked0",4,1,"Hum_Head_Psionic", 67, 1, VLK_ARMOR_L); Mdl_SetModelFatness (self, 0); fight_tactic = FAI_HUMAN_COWARD; //-------- Talents -------- B_SetFightSkills (self, 10); //-------- inventory -------- B_CreateAmbientInv (self); //-------------Daily Routine------------- daily_routine = Rtn_start_1466; }; FUNC VOID Rtn_start_1466 () { TA_Sleep (23,00,06,30,"OCR_HUT_16"); TA_Pick_FP (06,30,11,00,"OCC_CENTER_4_TRAIN2"); TA_Wash_FP (11,00,11,20,"OCR_TO_HUT_17"); TA_Sit_Campfire (11,20,23,00,"OCR_OUTSIDE_HUT_16"); };
D
tea5767.d tea5767.p1: C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/tea5767.c C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/i2c.h C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/tea5767.h C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/serial.h
D
module dsl.semantic.InfoType; import dsl.ast._; import dsl.syntax.Word; class InfoType { InfoType binaryOp (string, InfoType) { return null; } InfoType unaryOp (string) { return null; } InfoType dotOp (string) { return null; } InfoType affOp (string, InfoType) { return null; } InfoType accessOp (InfoType type) { return null; } InfoType affOp () { return null; } InfoType parOp (ParamList) { return null; } abstract InfoType clone (); override abstract string toString (); }
D
/Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Leaf.build/Tag/Models/Uppercased.swift.o : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Argument.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Byte+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Constants.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Context.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/HTMLEscape.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/LeafComponent.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/LeafError.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Link.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/List.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Node+Rendered.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/NSData+File.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Parameter.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem+Render.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem+Spawn.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/Buffer.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/BufferProtocol.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/BasicTag.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Tag.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/TagTemplate.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Else.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Embed.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Equal.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Export.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Extend.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/If.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Import.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Index.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Loop.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Raw.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Uppercased.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/libc.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Node.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/PathIndexable.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Polymorphic.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Leaf.build/Uppercased~partial.swiftmodule : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Argument.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Byte+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Constants.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Context.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/HTMLEscape.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/LeafComponent.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/LeafError.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Link.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/List.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Node+Rendered.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/NSData+File.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Parameter.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem+Render.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem+Spawn.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/Buffer.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/BufferProtocol.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/BasicTag.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Tag.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/TagTemplate.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Else.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Embed.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Equal.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Export.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Extend.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/If.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Import.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Index.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Loop.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Raw.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Uppercased.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/libc.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Node.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/PathIndexable.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Polymorphic.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Leaf.build/Uppercased~partial.swiftdoc : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Argument.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Byte+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Constants.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Context.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/HTMLEscape.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/LeafComponent.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/LeafError.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Link.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/List.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Node+Rendered.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/NSData+File.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Parameter.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem+Render.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem+Spawn.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Stem.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/Buffer.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Buffer/BufferProtocol.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/BasicTag.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Tag.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/TagTemplate.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Else.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Embed.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Equal.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Export.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Extend.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/If.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Import.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Index.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Loop.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Raw.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Uppercased.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/libc.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Node.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/PathIndexable.swiftmodule /Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Polymorphic.swiftmodule
D
# FIXED main(3).obj: ../main(3).c main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdint.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/stdint.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/cdefs.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_types.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_types.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_stdint.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_stdint.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdbool.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdio.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/_ti_config.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/linkage.h main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdarg.h main(3).obj: C:/Users/arago/OneDrive/Documents/GitHub/LabGroupC2/Util/launchpad.h main(3).obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/gpio.h ../main(3).c: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/cdefs.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_types.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_stdint.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdbool.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdio.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/_ti_config.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/linkage.h: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdarg.h: C:/Users/arago/OneDrive/Documents/GitHub/LabGroupC2/Util/launchpad.h: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/gpio.h:
D
/******************************************************************************* * Copyright (c) 2000, 2009 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: * Jacob Carlborg <doob@me.com> *******************************************************************************/ module dwt.internal.cocoa.NSString; import dwt.dwthelper.utils; import cocoa = dwt.internal.cocoa.id; import dwt.internal.cocoa.NSObject; import dwt.internal.cocoa.NSRange; import dwt.internal.cocoa.OS; import dwt.internal.objc.cocoa.Cocoa; import objc = dwt.internal.objc.runtime; public class NSString : NSObject { public this() { super(); } public this(objc.id id) { super(id); } public this(cocoa.id id) { super(id); } public String getString() { wchar[] buffer = new wchar[length()]; getCharacters(buffer.ptr); return dwt.dwthelper.utils.toString(buffer); } public static NSString stringWith(String str) { return stringWithUTF8String((str ~ '\0').ptr); } public /*const*/char* UTF8String() { return cast(/*const*/char*) OS.objc_msgSend(this.id, OS.sel_UTF8String); } public wchar characterAtIndex(NSUInteger index) { return cast(wchar) OS.objc_msgSend(this.id, OS.sel_characterAtIndex_, index); } public NSComparisonResult compare(NSString string) { return cast(NSComparisonResult) OS.objc_msgSend(this.id, OS.sel_compare_, string !is null ? string.id : null); } public /*const*/ char* fileSystemRepresentation() { return cast(/*const*/ char*) OS.objc_msgSend(this.id, OS.sel_fileSystemRepresentation); } public void getCharacters(wchar* buffer) { OS.objc_msgSend(this.id, OS.sel_getCharacters_, buffer); } public void getCharacters(wchar* buffer, NSRange aRange) { OS.objc_msgSend(this.id, OS.sel_getCharacters_range_, buffer, aRange); } public NSString initWithCharacters(/*const*/wchar* characters, NSUInteger length) { objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithCharacters_length_, characters, length); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString initWithBytes (/*const*/ void* bytes, NSUInteger length, NSStringEncoding encoding) { objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithBytes_length_encoding_, bytes, length, encoding); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString initWithString (String str) { return initWithBytes(str.ptr, str.length, OS.NSUTF8StringEncoding); } public bool isEqualToString(NSString aString) { return OS.objc_msgSend_bool(this.id, OS.sel_isEqualToString_, aString !is null ? aString.id : null); } public NSString lastPathComponent() { objc.id result = OS.objc_msgSend(this.id, OS.sel_lastPathComponent); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSUInteger length() { return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_length); } public NSString lowercaseString() { objc.id result = OS.objc_msgSend(this.id, OS.sel_lowercaseString); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString pathExtension() { objc.id result = OS.objc_msgSend(this.id, OS.sel_pathExtension); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString stringByAddingPercentEscapesUsingEncoding(NSStringEncoding enc) { objc.id result = OS.objc_msgSend(this.id, OS.sel_stringByAddingPercentEscapesUsingEncoding_, enc); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString stringByAppendingPathComponent(NSString str) { objc.id result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingPathComponent_, str !is null ? str.id : null); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString stringByAppendingString(NSString aString) { objc.id result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingString_, aString !is null ? aString.id : null); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString stringByDeletingLastPathComponent() { objc.id result = OS.objc_msgSend(this.id, OS.sel_stringByDeletingLastPathComponent); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString stringByDeletingPathExtension() { objc.id result = OS.objc_msgSend(this.id, OS.sel_stringByDeletingPathExtension); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public NSString stringByReplacingOccurrencesOfString(NSString target, NSString replacement) { objc.id result = OS.objc_msgSend(this.id, OS.sel_stringByReplacingOccurrencesOfString_withString_, target !is null ? target.id : null, replacement !is null ? replacement.id : null); return result is this.id ? this : (result !is null ? new NSString(result) : null); } public static NSString stringWithCharacters(/*const*/wchar* characters, NSUInteger length) { objc.id result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithCharacters_length_, characters, length); return result !is null ? new NSString(result) : null; } public static NSString stringWithFormat(NSString stringWithFormat) { objc.id result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithFormat_, stringWithFormat !is null ? stringWithFormat.id : null); return result !is null ? new NSString(result) : null; } public static NSString stringWithUTF8String(/*const*/char* nullTerminatedCString) { objc.id result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithUTF8String_, nullTerminatedCString); return result !is null ? new NSString(result) : null; } public wchar[] getString16() { wchar[] buffer = new wchar[length()]; getCharacters(buffer.ptr); return buffer; } public static NSString stringWith16(wchar[] buffer) { return stringWithCharacters(buffer.ptr, buffer.length); } }
D
// SemiTwist Library // Written in the D programming language. // // Helper tools for the arsd DOM module at: // https://github.com/adamdruppe/arsd/blob/master/dom.d module semitwist.arsddom; import std.string; import arsd.dom; void deactivateLink(Element link) { link.removeAttribute("href"); link.className = "inactive-link"; link.tagName = "span"; } void removeAll(Element elem, string selector) { foreach(ref elemToRemove; elem.getElementsBySelector(selector)) elemToRemove.outerHTML = ""; } void setAttributes(Element elem, string[string] attributes) { if(attributes != null) { foreach(key, value; attributes) { if(key.toLower() == "class") elem.addClass(value); else if(key.toLower() == "style") elem.style ~= value; else elem.setAttribute(key, value); } } } /++ Sample usage: struct Foo { int i; string s; } auto doc = new Document(" <body> <h1>Foo:</h1> <div class="foo"> <h2 class=".foo-int">(placeholder)</h2> <p class=".foo-str">(placeholder)</p> <hr /> </div> </body> ", true, true); fill!(Foo[])( doc.requireSelector(".foo"), [Foo(10,"abc"), Foo(20,"def")], (stamp, index, foo) { stamp.requireSelector(".foo-int").innerHTML = text("#", index, " ", foo.i); stamp.requireSelector(".foo-str").innerHTML = foo.s; return stamp; } ) /+ Result: <body> <h1>Foo:</h1> <div class="foo"> <h2 class=".foo-int">#0: 10</h2> <p class=".foo-str">abc</p> <hr /> </div> <div class="foo"> <h2 class=".foo-int">#1: 20</h2> <p class=".foo-str">def</p> <hr /> </div> </body> +/ writeln(doc); +/ //TODO: fill() needs a way to do a plain old 0..x with no data void fill(T)( Element elem, T collection, Element delegate(Element, size_t, ElementType!T) dg ) if(isInputRange!T) { auto elemTemplate = elem.cloned; string finalHtml; for(size_t i=0; !collection.empty; i++) { auto stamp = elemTemplate.cloned; auto newElem = dg(stamp, i, collection.front); finalHtml ~= newElem.toString(); collection.popFront(); } elem.outerHTML = finalHtml; } class MissingHtmlAttributeException : Exception { Element elem; string attrName; string htmlFileName; this(string file=__FILE__, size_t line=__LINE__)(Element elem, string attrName, string htmlFileName=null) { super("", file, line); setTo(elem, attrName, htmlFileName); } void setTo(Element elem, string attrName, string htmlFileName) { this.elem = elem; this.attrName = attrName; this.htmlFileName = htmlFileName; auto msg = "Missing attribute '"~attrName~"' on <"~elem.tagName~"> element"; if(htmlFileName != "") msg ~= " (in file '"~htmlFileName~"')"; this.msg = msg; } } string requireAttribute(Element elem, string name) { auto value = elem.getAttribute(name); if(value == "") throw new MissingHtmlAttributeException(elem, name); return value; }
D
class C{ C[1] c; this(){ c ~= this; } }
D
instance STRF_1137_Addon_Sklave (Npc_Default) { // ------ NSC ------ name = NAME_Addon_Sklave; guild = GIL_STRF; id = 1137; voice = 3; flags = 0; npctype = NPCTYPE_BL_AMBIENT; //aivars aivar[AIV_NoFightParker] = TRUE; aivar[AIV_IgnoresArmor] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self, 2); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_L_NormalBart01, BodyTex_L, ITAR_Prisoner); Mdl_SetModelFatness (self, -1); Mdl_ApplyOverlayMds (self, "Humans_Tired.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 10); // ------ TA anmelden ------ daily_routine = Rtn_Start_1137; }; FUNC VOID Rtn_Start_1137 () { TA_Pick_Ore (08,00,23,00,"ADW_MINE_PICK_04"); TA_Pick_Ore (23,00,08,00,"ADW_MINE_PICK_04"); };
D
/Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AnonymousObserver.o : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Errors.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/AtomicInt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Event.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Leex/TableView_Test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AnonymousObserver~partial.swiftmodule : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Errors.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/AtomicInt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Event.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Leex/TableView_Test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AnonymousObserver~partial.swiftdoc : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Errors.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/AtomicInt.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Event.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Rx.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Leex/TableView_Test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Leex/TableView_Test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/* * This file contains all configurations for collectable projectiles. * * Requires the feature GFA_REUSE_PROJECTILES (see config\settings.d). * * List of included functions: * func int GFA_GetUsedProjectileInstance(int projectileInst, C_Npc shooter, C_Npc inventoryNpc) */ /* * When collecting projectiles is enabled (GFA_REUSE_PROJECTILES), this function is called whenever a projectile (arrows * and bolts) hits an NPC or stops in the world. It is useful to replace the projectile or to remove it. * Return value is an item instance. When returning zero, the projectile is destroyed. * The parameter 'inventoryNpc' holds the NPC in whose inventory it will be put, or is empty if it landed in the world. * * Ideas: exchange projectile for a 'used' or 'broken' one, retrieval talent or tool, ... * There are a lot of examples given below, they are all commented out and serve as inspiration of what is possible. */ func int GFA_GetUsedProjectileInstance(var int projectileInst, var C_Npc shooter, var C_Npc inventoryNpc) { /* // Exchange the projectile with a 'used' one (e.g. arrow, that needs to be repaired) if (projectileInst == ItRw_Arrow) { // ItAmArrow in Gothic 1 projectileInst = ItRw_UsedArrow; }; */ // Remove magical arrows/bolts from Gothic 2 Addon (if re-usable, they would be overpowered) var string instanceName; instanceName = MEM_ReadString(MEM_GetSymbolByIndex(projectileInst)); if (Hlp_StrCmp(instanceName, "ITRW_ADDON_MAGICARROW")) // Strings for Gothic 1 compatibility || (Hlp_StrCmp(instanceName, "ITRW_ADDON_FIREARROW")) || (Hlp_StrCmp(instanceName, "ITRW_ADDON_MAGICBOLT")) { return 0; }; if (Hlp_IsValidNpc(inventoryNpc)) { // Projectile hit an NPC and will be put into their inventory // Do not put projectiles into the inventory of the player if (Npc_IsPlayer(inventoryNpc)) { return 0; }; // Do not accumulate too many projectiles from NPC shooters to prevent exploit of getting projectiles for free if (!Npc_IsPlayer(shooter) && (Npc_HasItems(inventoryNpc, projectileInst) >= 2)) { return 0; }; /* // Remove projectile when it hits humans if (inventoryNpc.guild < GIL_SEPERATOR_HUM) { return 0; }; */ /* // Player needs to learn a talent to remove the projectile if (PLAYER_TALENT_TAKEANIMALTROPHY[REUSE_Arrow] == FALSE) { return 0; }; */ /* // Player needs tool to retrieve the projectile if (!Npc_HasItems(hero, ItMi_ArrowTool)) { return 0; }; */ /* // 50% chance of retrieval if (Hlp_Random(100) < 50) { return 0; }; */ // For now it is just preserved (is put in the inventory as is) return projectileInst; } else { // Projectile did not hit NPC, but landed in world /* // Player needs to learn a talent to collect the projectile if (PLAYER_TALENT_REUSE_ARROW == FALSE) { return 0; }; */ // Do not accumulate too many projectiles from NPC shooters to prevent exploit of getting projectiles for free if (!Npc_IsPlayer(shooter)) && (Hlp_Random(100) < 80) { // Remove projectile 80% of the time return 0; }; // For now it is just preserved (leave it in the world as is) return projectileInst; }; };
D
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.build/Container/BasicContainer.swift.o : /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceID.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/Service.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceCache.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Extendable.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceType.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Config/Config.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Provider/Provider.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/Container.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/SubContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/BasicSubContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/BasicContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/ServiceError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/ContainerAlias.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/Services.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Environment/Environment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceFactory.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/BasicServiceFactory.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/TypeServiceFactory.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/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/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.build/BasicContainer~partial.swiftmodule : /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceID.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/Service.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceCache.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Extendable.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceType.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Config/Config.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Provider/Provider.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/Container.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/SubContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/BasicSubContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/BasicContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/ServiceError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/ContainerAlias.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/Services.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Environment/Environment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceFactory.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/BasicServiceFactory.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/TypeServiceFactory.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/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/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.build/BasicContainer~partial.swiftdoc : /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceID.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/Service.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceCache.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Extendable.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceType.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Config/Config.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Provider/Provider.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/Container.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/SubContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/BasicSubContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/BasicContainer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/ServiceError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Container/ContainerAlias.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/Services.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Environment/Environment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceFactory.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/BasicServiceFactory.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/TypeServiceFactory.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/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/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /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
instance Mod_1184_MIL_Miliz_NW (Npc_Default) { // ------ NSC ------ name = Name_Miliz; guild = GIL_pal; id = 1184; voice = 6; flags = 0; npctype = NPCTYPE_nw_miliz; // ------ Attribute ------ B_SetAttributesToChapter (self, 3); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_STRONG; // ------ Equippte Waffen ------ EquipItem (self, ItMw_Milizschwert); // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_NormalBart16, BodyTex_N, ITAR_MIL_L); Mdl_SetModelFatness (self,0); Mdl_ApplyOverlayMds (self, "Humans_Militia.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 30); // ------ TA anmelden ------ daily_routine = Rtn_Start_1184; }; FUNC VOID Rtn_Start_1184() { TA_Stand_Guarding (06,45,21,05,"NW_CITY_HABOUR_KASERN_OFFICE"); TA_Smalltalk (21,05,23,59,"NW_CITY_HABOUR_KASERN_BARRACK02_IN"); TA_Sleep (23,59,06,45,"NW_CITY_BARRACK02_BED_WULFGAR"); };
D
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module hunt.shiro.authc.AuthenticationToken; enum DEFAULT_AUTH_TOKEN_NAME = "default"; /** * <p>An <tt>AuthenticationToken</tt> is a consolidation of an account's principals and supporting * credentials submitted by a user during an authentication attempt. * <p/> * <p>The token is submitted to an {@link Authenticator Authenticator} via the * {@link Authenticator#authenticate(AuthenticationToken) authenticate(token)} method. The * Authenticator then executes the authentication/log-in process. * <p/> * <p>Common implementations of an <tt>AuthenticationToken</tt> would have username/password * pairs, X.509 Certificate, PGP key, or anything else you can think of. The token can be * anything needed by an {@link Authenticator} to authenticate properly. * <p/> * <p>Because applications represent user data and credentials in different ways, implementations * of this interface are application-specific. You are free to acquire a user's principals and * credentials however you wish (e.g. web form, Swing form, fingerprint identification, etc) and * then submit them to the Shiro framework in the form of an implementation of this * interface. * <p/> * <p>If your application's authentication process is username/password based * (like most), instead of implementing this interface yourself, take a look at the * {@link UsernamePasswordToken UsernamePasswordToken} class, as it is probably sufficient for your needs. * <p/> * <p>RememberMe services are enabled for a token if they implement a sub-interface of this one, called * {@link RememberMeAuthenticationToken RememberMeAuthenticationToken}. Implement that interface if you need * RememberMe services (the <tt>UsernamePasswordToken</tt> already implements this interface). * <p/> * <p>If you are familiar with JAAS, an <tt>AuthenticationToken</tt> replaces the concept of a * {@link javax.security.auth.callback.Callback}, and defines meaningful behavior * (<tt>Callback</tt> is just a marker interface, and of little use). We * also think the name <em>AuthenticationToken</em> more accurately reflects its true purpose * in a login framework, whereas <em>Callback</em> is less obvious. * * @see RememberMeAuthenticationToken * @see HostAuthenticationToken * @see UsernamePasswordToken */ interface AuthenticationToken { /** * Returns the account identity submitted during the authentication process. * <p/> * <p>Most application authentications are username/password based and have this * object represent a username. If this is the case for your application, * take a look at the {@link UsernamePasswordToken UsernamePasswordToken}, as it is probably * sufficient for your use. * <p/> * <p>Ultimately, the object returned is application specific and can represent * any account identity (user id, X.509 certificate, etc). * * @return the account identity submitted during the authentication process. * @see UsernamePasswordToken */ string getPrincipal(); /** * Returns the credentials submitted by the user during the authentication process that verifies * the submitted {@link #getPrincipal() account identity}. * <p/> * <p>Most application authentications are username/password based and have this object * represent a submitted password. If this is the case for your application, * take a look at the {@link UsernamePasswordToken UsernamePasswordToken}, as it is probably * sufficient for your use. * <p/> * <p>Ultimately, the credentials Object returned is application specific and can represent * any credential mechanism. * * @return the credential submitted by the user during the authentication process. */ char[] getCredentials(); }
D
// Copyright Ferdinand Majerech 2012. // 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) /// Root widget of a widget tree loadable from YAML. module gui2.rootwidget; import std.exception; import std.typecons; import math.rect; import math.vector2; import gui2.exceptions; import gui2.guisystem; import gui2.widget; import gui2.widgetutils; import util.yaml; /// Uses opDispatch to build widget name strings to access widgets in a RootWidget. struct WidgetAccess { private: /// RootWidget that constructed this WidgetAccess. RootWidget root_; //TODO recycle strings to avoid excessive per-frame allocation. /// Name of the widget to access. string name_; public: /// Access a subwidget. /// /// If a type is specified by the user, this is the last subwidget /// and we return that subwidget. In this case a Flag!"optional" can be /// use to specify that the subwidget is not required, and null might /// be returned instead of throwing an exception. If not optional, /// and the subwidget does not exist, WidgetNotFoundException is thrown. /// If the widget is of a different type than specified, /// WidgetTypeException is thrown. /// /// If a type is not specified we return a WidgetAccess /// for the subwidget, allowing to access its subwidgets. template opDispatch(string childName) if(validWidgetName(childName)) { T opDispatch(T = WidgetAccess, Flag!"optional" optional = No.optional)() if(is(T:Widget) || is(T == WidgetAccess)) { static if(is(T == WidgetAccess)) { return WidgetAccess(this, _fullName(childName)); } else { return root_.get!(T, optional)(this, _fullName(childName)); } } } private: // No independent construction or copying. @disable this(); @disable this(this); @disable void opAssign(ref WidgetAccess); /// Construct a WidgetAccess (done by the RootWidget). this(RootWidget root) { root_ = root; name_ = null; } /// Construct a WidgetAccess accessing a subwidget in a parent WidgetAccess. this(ref WidgetAccess parent, const string name) { name_ = name; root_ = parent.root_; } /// Get the full name of a child widget with specified name. string _fullName(const string childName) pure const { return name_ is null ? childName : name_ ~ "." ~ childName; } } /// Root widget of a widget tree loadable from YAML. /// /// Root widget is not the top of a widget hierarchy; /// it is the root of a group of widget loaded from YAML, and can be /// connected to a SlotWidget (such as the rootSlot widget in GUISystem). /// Widget tree under a RootWidget can also contain more SlotWidgets /// where other RootWidgets can be connected. /// /// A RootWidget is used to access all widgets in its tree; /// other widgets can't do this. opDispatch is used to do this /// so widget names used in YAML can be used directly in code. /// /// For example, if a widget tree contains a button widget called "bar" /// that has no named parent widget, it can be accessed /// as rootWidget.bar!ButtonWidget (where rootWidget is the RootWidget). /// If "bar" has a named parent "foo", change that to /// rootWidget.foo.bar!ButtonWidget . class RootWidget: Widget { private: /// Builtin WidgetAccess to access direct subwidgets. WidgetAccess widgetAccess_ = WidgetAccess(cast(RootWidget)null); /// Maps widget addresses to widgets in the tree of this RootWidget. /// /// Doesn't include widgets in any RootWidget below this widget. Widget[string] addressToWidget_; public: /// Load a RootWidget from YAML. /// /// Never call this directly; use GUISystem.loadWidgetTree instead. this(ref YAMLNode yaml) { widgetAccess_.root_ = this; super(yaml); } /// Access a subwidget. /// /// This is copied from WidgetAccess as alias this doesn't work. /// /// The "optional" flag can be used as a template parameter to return /// null instead of throwing if the widget is not found. /// /// Throws: WidgetNotFoundException if the widget could not be found /// and optional is false (default). /// WidgetTypeException if the widget is not of type T. // /// SeeAlso: WidgetAccess.opDispatch, RootWidget.get template opDispatch(string childName) if(validWidgetName(childName)) { T opDispatch(T = WidgetAccess, Flag!"optional" optional = No.optional)() if(is(T: Widget) || is(T == WidgetAccess)) { static if(is(T == WidgetAccess)) { return WidgetAccess(widgetAccess_, widgetAccess_._fullName(childName)); } else { return widgetAccess_.root_.get!(T, optional) (widgetAccess_._fullName(childName)); } } } /// Get a subwidget with specified name. /// /// The "optional" flag can be used as a template parameter to return /// null instead of throwing if the widget is not found. /// /// Throws: WidgetNotFoundException if the widget could not be found /// and optional is false (default). /// WidgetTypeException if the widget is not of type T. T get(T, Flag!"optional" optional = No.optional)(const string fullName) { assert(validComposedWidgetName(name), "Trying to get a widget with invalid name: " ~ name); Widget* result = fullName in addressToWidget_; static if(optional) { if(result is null){return cast(T)null;} } else { enforce(result !is null, new WidgetNotFoundException ("Widget \"" ~ fullName ~ "\" could not be found")); } T typedResult = cast(T)(*result); enforce(typedResult !is null, new WidgetTypeException ("Widget \"" ~ fullName ~ "\" has an unexpected type. Expected " ~ T.stringof)); return typedResult; } protected: override void postInit() { // Recursively generate addressToWidget_ void widgetAddresses(Widget widget, string parentAddress) { foreach(child; widget.children_) { // Ignore unnamed widgets. // (widget.UNNAMED.subwidget is widget.subwidget) if(child.name is null) { widgetAddresses(child, parentAddress); } else { // Using slicing to limit allocation. auto childName = parentAddress ~ child.name ~ "."; addressToWidget_[childName[0 .. $ - 1]] = child; widgetAddresses(child, childName); } } } widgetAddresses(this, ""); } package: /// Force the widgets in the tree to react as if the mouse disappeared. /// /// Called when disconnected from a SlotWidget. void mouseLeftTree() { void checkMouseOver(Widget widget) { if(widget.layout.bounds.intersect(guiSystem_.mousePosition.to!int)) { widget.mouseLeft(); } foreach(child; widget.children_) { checkMouseOver(child); } } checkMouseOver(this); } /// Force the widgets in the tree to react as if the mouse just appeared. /// /// Called when connected to a SlotWidget. void checkMouseEnteredTree() { void checkMouseEntered(Widget widget) { if(widget.layout.bounds.intersect(guiSystem_.mousePosition.to!int)) { widget.mouseEntered(); } foreach(child; widget.children_) { checkMouseEntered(child); } } checkMouseEntered(this); } }
D
// Copyright Ferdinand Majerech 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /// A minimal library providing functionality for changing the endianness of data. module dub.internal.tinyendian; import std.system : Endian, endian; /// Unicode UTF encodings. enum UTFEncoding : ubyte { UTF_8, UTF_16, UTF_32 } /// @safe unittest { const ints = [314, -101]; int[2] intsSwapBuffer = ints; swapByteOrder(intsSwapBuffer[]); swapByteOrder(intsSwapBuffer[]); assert(ints == intsSwapBuffer, "Lost information when swapping byte order"); const floats = [3.14f, 10.1f]; float[2] floatsSwapBuffer = floats; swapByteOrder(floatsSwapBuffer[]); swapByteOrder(floatsSwapBuffer[]); assert(floats == floatsSwapBuffer, "Lost information when swapping byte order"); } /** Swap byte order of items in an array in place. * * Params: * * T = Item type. Must be either 2 or 4 bytes long. * array = Buffer with values to fix byte order of. */ void swapByteOrder(T)(T[] array) @trusted @nogc pure nothrow if (T.sizeof == 2 || T.sizeof == 4) { // Swap the byte order of all read characters. foreach (ref item; array) { static if (T.sizeof == 2) { import std.algorithm.mutation : swap; swap(*cast(ubyte*)&item, *(cast(ubyte*)&item + 1)); } else static if (T.sizeof == 4) { import core.bitop : bswap; const swapped = bswap(*cast(uint*)&item); item = *cast(const(T)*)&swapped; } else static assert(false, "Unsupported T: " ~ T.stringof); } } /// See fixUTFByteOrder. struct FixUTFByteOrderResult { ubyte[] array; UTFEncoding encoding; Endian endian; uint bytesStripped = 0; } /** Convert byte order of an array encoded in UTF(8/16/32) to system endianness in place. * * Uses the UTF byte-order-mark (BOM) to determine UTF encoding. If there is no BOM * at the beginning of array, UTF-8 is assumed (this is compatible with ASCII). The * BOM, if any, will be removed from the buffer. * * If the encoding is determined to be UTF-16 or UTF-32 and there aren't enough bytes * for the last code unit (i.e. if array.length is odd for UTF-16 or not divisible by * 4 for UTF-32), the extra bytes (1 for UTF-16, 1-3 for UTF-32) are stripped. * * Note that this function does $(B not) check if the array is a valid UTF string. It * only works with the BOM and 1,2 or 4-byte items. * * Params: * * array = The array with UTF-data. * * Returns: * * A struct with the following members: * * $(D ubyte[] array) A slice of the input array containing data in correct * byte order, without BOM and in case of UTF-16/UTF-32, * without stripped bytes, if any. * $(D UTFEncoding encoding) Encoding of the result (UTF-8, UTF-16 or UTF-32) * $(D std.system.Endian endian) Endianness of the original array. * $(D uint bytesStripped) Number of bytes stripped from a UTF-16/UTF-32 array, if * any. This is non-zero only if array.length was not * divisible by 2 or 4 for UTF-16 and UTF-32, respectively. * * Complexity: (BIGOH array.length) */ auto fixUTFByteOrder(ubyte[] array) @safe @nogc pure nothrow { // Enumerates UTF BOMs, matching indices to byteOrderMarks/bomEndian. enum BOM: ubyte { UTF_8 = 0, UTF_16_LE = 1, UTF_16_BE = 2, UTF_32_LE = 3, UTF_32_BE = 4, None = ubyte.max } // These 2 are from std.stream static immutable ubyte[][5] byteOrderMarks = [ [0xEF, 0xBB, 0xBF], [0xFF, 0xFE], [0xFE, 0xFF], [0xFF, 0xFE, 0x00, 0x00], [0x00, 0x00, 0xFE, 0xFF] ]; static immutable Endian[5] bomEndian = [ endian, Endian.littleEndian, Endian.bigEndian, Endian.littleEndian, Endian.bigEndian ]; // Documented in function ddoc. FixUTFByteOrderResult result; // Detect BOM, if any, in the bytes we've read. -1 means no BOM. // Need the last match: First 2 bytes of UTF-32LE BOM match the UTF-16LE BOM. If we // used the first match, UTF-16LE would be detected when we have a UTF-32LE BOM. import std.algorithm.searching : startsWith; BOM bomId = BOM.None; foreach (i, bom; byteOrderMarks) if (array.startsWith(bom)) bomId = cast(BOM)i; result.endian = (bomId != BOM.None) ? bomEndian[bomId] : Endian.init; // Start of UTF data (after BOM, if any) size_t start = 0; // If we've read more than just the BOM, put the rest into the array. with(BOM) final switch(bomId) { case None: result.encoding = UTFEncoding.UTF_8; break; case UTF_8: start = 3; result.encoding = UTFEncoding.UTF_8; break; case UTF_16_LE, UTF_16_BE: result.bytesStripped = array.length % 2; start = 2; result.encoding = UTFEncoding.UTF_16; break; case UTF_32_LE, UTF_32_BE: result.bytesStripped = array.length % 4; start = 4; result.encoding = UTFEncoding.UTF_32; break; } // If there's a BOM, we need to move data back to ensure it starts at array[0] if (start != 0) { array = array[start .. $ - result.bytesStripped]; } // We enforce above that array.length is divisible by 2/4 for UTF-16/32 if (endian != result.endian) { if (result.encoding == UTFEncoding.UTF_16) swapByteOrder(cast(wchar[])array); else if (result.encoding == UTFEncoding.UTF_32) swapByteOrder(cast(dchar[])array); } result.array = array; return result; } /// @safe unittest { { ubyte[] s = [0xEF, 0xBB, 0xBF, 'a']; FixUTFByteOrderResult r = fixUTFByteOrder(s); assert(r.encoding == UTFEncoding.UTF_8); assert(r.array.length == 1); assert(r.array == ['a']); assert(r.endian == Endian.littleEndian); } { ubyte[] s = ['a']; FixUTFByteOrderResult r = fixUTFByteOrder(s); assert(r.encoding == UTFEncoding.UTF_8); assert(r.array.length == 1); assert(r.array == ['a']); assert(r.endian == Endian.bigEndian); } { // strip 'a' b/c not complete unit ubyte[] s = [0xFE, 0xFF, 'a']; FixUTFByteOrderResult r = fixUTFByteOrder(s); assert(r.encoding == UTFEncoding.UTF_16); assert(r.array.length == 0); assert(r.endian == Endian.bigEndian); } }
D
enum BIT_MASK = 0x00000F0F; extern (C) int hex_int(uint idx) { int i0 = 0x0; int i1 = 0X00fa; int i2; i2 = 0x7FFFFFFF; if (0 == idx) { return i0; } else if (1 == idx) { return i1; } else if (2 == idx) { return i2; } else if (3 == idx) { return 0x00004000; } else if (4 == idx) { return i1 - 0x000000f0; } else if (5 == idx) { return BIT_MASK; } return -0x01;; } enum BIT_MASK_U = 0x00000FAFu; extern (C) uint hex_uint(uint idx) { uint u0 = 0xA3u; uint u1; u1 = 0X1FFU; uint u2 = 0x80000000; if (0 == idx) { return u0; } else if (1 == idx) { return u1; } else if (2 == idx) { return u2 + 0x1u; } else if (3 == idx) { return 0X80001230; } else if (4 == idx) { return BIT_MASK_U; } return 0x0U; }
D
/* D-System 'SDL UTILITY' 'util_sdl.d' 2003/11/28 jumpei isshiki */ private import std.stdio; private import std.string; private import SDL; private import opengl; private import util_pad; private import define; enum{ SURFACE_MAX = 100, SCREEN_X = 640, SCREEN_Y = 480, SCREEN_Z = 640, SCREEN_SX = 384, SCREEN_SY = SCREEN_Y, SCREEN_SZ = SCREEN_Z, SCREEN_MX = (SCREEN_X - SCREEN_SX) / 2, X = 0, Y, Z, W, XY = 2, XYZ = 3, XYZW = 4, SX = 0, SY, EX, EY, } struct VEC_POS { float px; float py; float pz; } SDL_Surface* primary; SDL_Surface*[] offscreen; const float BASE_Z = 2.0f; float cam_scr = -0.75f; float cam_pos; private int width = SCREEN_X; private int height = SCREEN_Y; public int startx = 0; public int starty = 0; private float nearPlane = 0.0f; private float farPlane = 1000.0f; private GLuint TEXTURE_NONE = 0xffffffff; private GLuint[] tex_bank; int initSDL() { if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_JOYSTICK) < 0){ return 0; } return 1; } void closeSDL() { SDL_ShowCursor(SDL_ENABLE); SDL_Quit(); } int initVIDEO() { Uint32 videoFlags; videoFlags = SDL_OPENGL; version (PANDORA) { videoFlags |= SDL_FULLSCREEN; } else { debug{ if((pads & PAD_BUTTON1)){ videoFlags = SDL_OPENGL | SDL_FULLSCREEN; }else{ videoFlags = SDL_OPENGL | SDL_RESIZABLE; } } } int physical_width = width; int physical_height = height; version (PANDORA) { physical_width = 800; physical_height = 480; startx = (800 - width) / 2; starty = (480 - height) / 2; } primary = SDL_SetVideoMode(physical_width, physical_height, 0, videoFlags); if(primary == null){ return 0; } offscreen.length = SURFACE_MAX; tex_bank.length = SURFACE_MAX; for(int i = 0; i < SURFACE_MAX; i++){ offscreen[i] = null; tex_bank[i] = TEXTURE_NONE; } glClearColor(0.0f, 0.0f, 0.0f, 0.0f); resizedSDL(width, height); SDL_ShowCursor(SDL_DISABLE); SDL_WM_SetCaption(std.string.toStringz(PROJECT_NAME), null); return 1; } void closeVIDEO() { for(int i = 0; i < SURFACE_MAX; i++){ if(tex_bank[i] != TEXTURE_NONE){ glDeleteTextures(1, &tex_bank[i]); writefln("free texture bank %d.",i); } if(offscreen[i]){ SDL_FreeSurface(offscreen[i]); writefln("free off-screen surface %d.",i); } } } void readSDLtexture(const char[] fname, int bank) { offscreen[bank] = SDL_LoadBMP(toStringz(fname)); if(offscreen[bank]){ glGenTextures(1, &tex_bank[bank]); glBindTexture(GL_TEXTURE_2D, tex_bank[bank]); glTexImage2D(GL_TEXTURE_2D, 0, 3, offscreen[bank].w, offscreen[bank].h, 0, GL_RGB, GL_UNSIGNED_BYTE, offscreen[bank].pixels); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); } } void bindSDLtexture(int bank) { if(tex_bank[bank] != TEXTURE_NONE) glBindTexture(GL_TEXTURE_2D, tex_bank[bank]); } void clearSDL() { glClear(GL_COLOR_BUFFER_BIT); } void flipSDL() { glFlush(); SDL_GL_SwapBuffers(); } void resizedSDL(int w, int h) { glViewport(startx, starty, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (nearPlane != 0.0f) { w = (w ? w : 1); glFrustum(-nearPlane,nearPlane, -nearPlane * h / w, nearPlane * h / w, 0.1f, farPlane); } glMatrixMode(GL_MODELVIEW); } float getPointX(float p,float z) { return p / SCREEN_X * (z + cam_pos); } float getPointY(float p,float z) { return p / SCREEN_Y * (z + cam_pos); } float getPointZ(float p,float z) { return p / SCREEN_Z * (z + cam_pos); }
D
/** * Copyright: Copyright Digital Mars 2010. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Jacob Carlborg * Version: Initial created: Feb 20, 2010 */ /* Copyright Digital Mars 2010. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module core.sys.darwin.mach.dyld; version (OSX) version = Darwin; else version (iOS) version = Darwin; else version (TVOS) version = Darwin; else version (WatchOS) version = Darwin; version (Darwin): extern (C): nothrow: @nogc: public import core.stdc.stdint; // for intptr_t public import core.sys.darwin.mach.loader; uint _dyld_image_count(); const(char)* _dyld_get_image_name(uint image_index); mach_header* _dyld_get_image_header(uint image_index); intptr_t _dyld_get_image_vmaddr_slide(uint image_index); void _dyld_register_func_for_add_image(void function(const scope mach_header* mh, intptr_t vmaddr_slide)); void _dyld_register_func_for_remove_image(void function(const scope mach_header* mh, intptr_t vmaddr_slide));
D
module _25; import common; import std.stdio, std.algorithm, std.range, std.array, std.string, std.conv, std.functional, std.traits; auto process(string input) { return input.to!(char[]); } auto solveA(ReturnType!process input) { auto state = 'a'; auto pos = 0; bool[int] tape; foreach (i; 0..12386363) { auto value = tape.get(pos, false); final switch (state) { case 'a': if (!value) { tape[pos] = true; pos++; state = 'b'; } else { tape[pos] = false; pos--; state = 'e'; } break; case 'b': if (!value) { tape[pos] = true; pos--; state = 'c'; } else { tape[pos] = false; pos++; state = 'a'; } break; case 'c': if (!value) { tape[pos] = true; pos--; state = 'd'; } else { tape[pos] = false; pos++; state = 'c'; } break; case 'd': if (!value) { tape[pos] = true; pos--; state = 'e'; } else { tape[pos] = false; pos--; state = 'f'; } break; case 'e': if (!value) { tape[pos] = true; pos--; state = 'a'; } else { tape[pos] = true; pos--; state = 'c'; } break; case 'f': if (!value) { tape[pos] = true; pos--; state = 'e'; } else { tape[pos] = true; pos++; state = 'a'; } break; } } return tape.values.count(true); } auto solveB(ReturnType!process input) { return __FUNCTION__ ~ " " ~ "nothing to see here"; }
D
/** Copyright: Copyright (c) 2016 aermicioi. All rights reserved. This program and the accompanying materials are made available under the terms of the GPL v3.0 which is available at www.gnu.org/licenses/gpl.html License: Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Authors: aermicioi **/ module aermicioi.aedi.storage.wrapper; class Wrapper(T) { public { T value; this(ref T value) { this.value = value; } alias value this; } }
D
/******************************************************************************* Common base for all dlstest test cases, using neo protocol. Provides DLS client instance and defines standard name for tested channel. Automatically connects DLS client with the node before test starts. Copyright: Copyright (c) 2017 sociomantic labs GmbH. All rights reserved. License: Boost Software License Version 1.0. See LICENSE.txt for details. *******************************************************************************/ module dlstest.NeoDlsTestCase; /******************************************************************************* Imports *******************************************************************************/ import dlstest.DlsTestCase; import dlstest.DlsClient; /******************************************************************************* Test case base. Actual tests are located in `dlstest.cases`. *******************************************************************************/ abstract class NeoDlsTestCase : DlsTestCase { /*************************************************************************** Constructor. ***************************************************************************/ public this() { super (DlsClient.ProtocolType.Neo); } }
D
/* * DSFML - The Simple and Fast Multimedia Library for D * * Copyright (c) 2013 - 2020 Jeremy DeHaan (dehaan.jeremiah@gmail.com) * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from the * use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not claim * that you wrote the original software. If you use this software in a product, * an acknowledgment in the product documentation would be appreciated but is * not required. * * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * * 3. This notice may not be removed or altered from any source distribution */ module build; import std.stdio; import std.file; import std.process; import std.algorithm; import std.array; import std.getopt; static if (__VERSION__ < 2068L) { static assert(0, "Please upgrade your compiler to v2.068 or later"); } version (DigitalMars) { string compiler = "dmd "; } else version (GNU) { string compiler = "gdc "; } else version (LDC) { string compiler = "ldc2 "; } else { static assert(false, "Unknown or unsupported compiler."); } //build settings string prefix; string postfix; string extension; string linkerInclude; string libSwitches; string docSwitches; string interfaceSwitches; string unittestSwitches; //switch settings bool buildingLibs; bool buildingInterfaceFiles; bool buildingDoc; bool buildingWebsiteDocs; bool debugLibs; bool force32Build; bool force64Build; bool buildingUnittests; string unittestLibraryLocation; bool buildingAll; bool hasUnrecognizedSwitch; string unrecognizedSwitch; string makefileType; string makefileProgram; string objExt; string singleFileSwitches; string archSwitch; //Possibly use this to completely automate the process for dmd/ldc users on windows //environment.get("VCINSTALLDIR"); //will need to find an alternative for gdc users on windows in regards to mingw version (Windows) { } else version (linux) { } else version (OSX) { } //FreeBSD Support coming soon! else { static assert(false, "DSFML is only supported on OSX, Windows, and Linux."); } string[5] modules = ["system", "audio", "network", "window", "graphics"]; string selectedModule; //lists of d files and c++ object files string[][string] fileList; string[string] objectList; /** * Checks for any inconsistencies with the passed switchs. * * Returns: true if no errors were found, false otherwise. */ bool checkSwitchErrors() { //can't force both if (force32Build && force64Build) { writeln("Can't use -m32 and -m64 together"); return false; } //if other Switchs are used with -all if (buildingAll) { if (buildingLibs || buildingDoc || buildingInterfaceFiles || buildingUnittests) { writeln("Can't use -all with any other build switches ", "(-lib, -doc, -import, -unittest)"); return false; } } return true; } //initialize all build settings void initialize() { archSwitch = ""; postfix = ""; if (force32Build) { archSwitch = " -m32"; } if (force64Build) { archSwitch = " -m64"; } version (Windows) { write("Building for Windows "); prefix = ""; extension = ".lib"; objExt = ".obj"; //Default to 64 bit on windows because why wouldn't we? if (!force64Build || !force32Build) { archSwitch = " -m64"; } if (force32Build) { archSwitch = " -m32mscoff"; } makefileProgram = "nmake"; makefileType = `"NMake Makefiles"`; linkerInclude = ""; } else { version (linux) write("Building for Linux "); else write("Building for OSX "); prefix = "lib"; extension = ".a"; objExt = ".o"; makefileProgram = "make"; makefileType = `"Unix Makefiles"`; } version (DigitalMars) { writeln("with dmd"); initializeDMD(); } else version (GNU) { writeln("with gdc"); initializeGDC(); } else version (LDC) { writeln("with ldc"); initializeLDC(); } // add links to the SFML files for building the unit tests unittestSwitches ~= lib("sfml-graphics") ~ lib("sfml-window") ~ lib( "sfml-audio") ~ lib("sfml-network") ~ lib("sfml-system"); //need to link to c++ standard library on these systems version (Posix) { unittestSwitches ~= lib("stdc++"); } //Does OSX need to include rpath for unittests? //populate file lists fileList["system"] = [ "clock", "config", "err", "inputstream", "lock", "mutex", "package", "sleep", "string", "thread", "time", "vector2", "vector3" ]; fileList["audio"] = [ "listener", "music", "package", "sound", "soundbuffer", "soundbufferrecorder", "inputsoundfile", "outputsoundfile", "soundrecorder", "soundsource", "soundstream" ]; fileList["network"] = [ "ftp", "http", "ipaddress", "package", "packet", "socket", "socketselector", "tcplistener", "tcpsocket", "udpsocket" ]; fileList["window"] = [ "context", "contextsettings", "event", "joystick", "keyboard", "mouse", "sensor", "touch", "package", "videomode", "window", "windowhandle" ]; fileList["graphics"] = [ "blendmode", "circleshape", "color", "convexshape", "drawable", "font", "glsl", "glyph", "image", "package", "primitivetype", "rect", "rectangleshape", "renderstates", "rendertarget", "rendertexture", "renderwindow", "shader", "shape", "sprite", "text", "texture", "transform", "transformable", "vertex", "vertexarray", "view" ]; //populate C++ object list string dir = "src/DSFMLC/System/CMakeFiles/dsfmlc-system.dir/"; objectList["system"] = dir ~ "Err.cpp" ~ objExt ~ " " ~ dir ~ "ErrStream.cpp" ~ objExt ~ " " ~ dir ~ "String.cpp" ~ objExt ~ " "; dir = "src/DSFMLC/Audio/CMakeFiles/dsfmlc-audio.dir/"; objectList["audio"] = dir ~ "InputSoundFile.cpp" ~ objExt ~ " " ~ dir ~ "Listener.cpp" ~ objExt ~ " " ~ dir ~ "OutputSoundFile.cpp" ~ objExt ~ " " ~ dir ~ "Sound.cpp" ~ objExt ~ " " ~ dir ~ "SoundBuffer.cpp" ~ objExt ~ " " ~ dir ~ "SoundRecorder.cpp" ~ objExt ~ " " ~ dir ~ "SoundStream.cpp" ~ objExt ~ " "; dir = "src/DSFMLC/Network/CMakeFiles/dsfmlc-network.dir/"; objectList["network"] = dir ~ "Ftp.cpp" ~ objExt ~ " " ~ dir ~ "Http.cpp" ~ objExt ~ " " ~ dir ~ "IpAddress.cpp" ~ objExt ~ " " ~ dir ~ "Packet.cpp" ~ objExt ~ " " ~ dir ~ "SocketSelector.cpp" ~ objExt ~ " " ~ dir ~ "TcpListener.cpp" ~ objExt ~ " " ~ dir ~ "TcpSocket.cpp" ~ objExt ~ " " ~ dir ~ "UdpSocket.cpp" ~ objExt ~ " "; dir = "src/DSFMLC/Window/CMakeFiles/dsfmlc-window.dir/"; objectList["window"] = dir ~ "Context.cpp" ~ objExt ~ " " ~ dir ~ "Joystick.cpp" ~ objExt ~ " " ~ dir ~ "Keyboard.cpp" ~ objExt ~ " " ~ dir ~ "Mouse.cpp" ~ objExt ~ " " ~ dir ~ "Sensor.cpp" ~ objExt ~ " " ~ dir ~ "Touch.cpp" ~ objExt ~ " " ~ dir ~ "VideoMode.cpp" ~ objExt ~ " " ~ dir ~ "Window.cpp" ~ objExt ~ " "; dir = "src/DSFMLC/Graphics/CMakeFiles/dsfmlc-graphics.dir/"; objectList["graphics"] = dir ~ "Font.cpp" ~ objExt ~ " " ~ dir ~ "Image.cpp" ~ objExt ~ " " ~ dir ~ "RenderTexture.cpp" ~ objExt ~ " " ~ dir ~ "RenderWindow.cpp" ~ objExt ~ " " ~ dir ~ "Shader.cpp" ~ objExt ~ " " ~ dir ~ "Texture.cpp" ~ objExt ~ " " ~ dir ~ "Transform.cpp" ~ objExt ~ " "; if (debugLibs) { singleFileSwitches = " -g " ~ singleFileSwitches; postfix = "-d"; } writeln(); } /// Initialize the DMD compiler void initializeDMD() { singleFileSwitches = archSwitch ~ " -c -O -release -inline -Isrc -of"; libSwitches = archSwitch ~ " -lib -oflib/" ~ prefix ~ "dsfml-"; docSwitches = " -c -o- -op -D -Dd../../doc -I../../src"; interfaceSwitches = " -c -o- -op -H -Hd../import -I../src"; unittestSwitches = archSwitch ~ " -main -unittest -version=DSFML_Unittest_System " ~ "-version=DSFML_Unittest_Window -version=DSFML_Unittest_Graphics " ~ "-version=DSFML_Unittest_Audio -version=DSFML_Unittest_Network " ~ "-ofunittest/unittest"; version (Windows) { unittestSwitches ~= ".exe -L/LIBPATH:lib -L/LIBPATH:SFML\\lib "; } else { linkerInclude = "-L-l"; unittestSwitches ~= " -L-LSFML/lib "; } } /// Initialize the GDC compiler void initializeGDC() { //need to set up for windows and macOS later singleFileSwitches = archSwitch ~ " -c -O3 -frelease -Isrc -o"; libSwitches = "ar rcs ./lib/libdsfml-"; docSwitches = " -c -fdoc -I../../src"; interfaceSwitches = " -c -fintfc -I../src -o obj.o"; unittestSwitches = archSwitch ~ " -funittest -fversion=DSFML_Unittest_System " ~ "-fversion=DSFML_Unittest_Window -fversion=DSFML_Unittest_Graphics " ~ "-fversion=DSFML_Unittest_Audio -fversion=DSFML_Unittest_Network " ~ "-ounittest/unittest"; version (linux) { linkerInclude = "-l"; unittestSwitches ~= " -LSFML/lib "; } } /// Initialize the LDC compiler void initializeLDC() { string linkToSFMLLibs = ""; singleFileSwitches = archSwitch ~ " -c -O -release -oq -I=src -of="; libSwitches = archSwitch ~ " -lib -of=lib/" ~ prefix ~ "dsfml-"; docSwitches = " -c -o- -op -D -Dd=../../doc -I=../../src"; interfaceSwitches = " -c -o- -op -H -Hd=../import -I=../src"; unittestSwitches = archSwitch ~ " -main -unittest -d-version=DSFML_Unittest_System " ~ "-d-version=DSFML_Unittest_Window -d-version=DSFML_Unittest_Graphics " ~ "-d-version=DSFML_Unittest_Audio -d-version=DSFML_Unittest_Network " ~ "-of=unittest/unittest"; version (Windows) { unittestSwitches ~= ".exe -L=/LIBPATH:lib -L=/LIBPATH:SFML\\lib "; } else { linkerInclude = "-L=-l"; unittestSwitches ~= " -L=-LSFML/lib "; } } /** * Build the DSFMLC source files. * * Returns: true on successful build, false otherwise. */ bool buildDSFMLC() { chdir("src/DSFMLC/"); // generate the cmake files on the first run if (!exists("CMakeCache.txt")) { auto pid = spawnShell("cmake -G" ~ makefileType ~ " ."); if (wait(pid) != 0) { return false; } } //always try to rebuild c++ files. They will be skipped if nothing to do. auto pid = spawnProcess([makefileProgram]); if (wait(pid) != 0) { return false; } writeln(); chdir("../.."); return true; } /** * Build the static libraries. * * Returns: true on successful build, false otherwise. */ bool buildLibs() { import std.ascii : toUpper; if (!exists("lib/")) { mkdir("lib/"); } if (!buildDSFMLC()) return false; foreach (theModule; modules) { //+1 to include the library file in the count size_t numberOfFiles = fileList[theModule].length + 1; string files = ""; string objLocation = "obj/" ~ (debugLibs ? "debug" : "release") ~ "/dsfml/" ~ theModule ~ "/"; if (!exists(objLocation)) { mkdirRecurse(objLocation); } foreach (fileNumber, name; fileList[theModule]) { string objectFile = objLocation ~ name ~ objExt; string dFile = "src/dsfml/" ~ theModule ~ "/" ~ name ~ ".d"; string buildCommand = compiler ~ dFile ~ singleFileSwitches ~ objectFile; if (needToBuild(objectFile, dFile)) { progressOutput(fileNumber, numberOfFiles, dFile); auto status = executeShell(buildCommand); if (status.status != 0) { writeln(status.output); return false; } } files ~= objectFile ~ " "; } files ~= objectList[theModule]; string buildCommand = compiler ~ files; version (GNU) { //We're using ar here, so we'll completely reset the build command buildCommand = libSwitches ~ theModule ~ postfix ~ extension ~ " " ~ files; } else { buildCommand ~= libSwitches ~ theModule ~ postfix ~ extension; } //always rebuilds the lib in case the cpp files were re-built auto status = executeShell(buildCommand); if (status.status != 0) { writeln("Something happened!"); writeln(status.output); return false; } writeln("[100%] Built " ~ prefix ~ "dsfml-" ~ theModule ~ extension); } return true; } /** * Build DSFML unit tests. * * Returns: true if unit tests could be built, false if not. */ bool buildUnittests() { import std.ascii : toUpper; if (!findSFML()) return false; if (!buildDSFMLC()) return false; string files = ""; foreach (theModule; modules) { foreach (string name; fileList[theModule]) { files ~= "src/dsfml/" ~ theModule ~ "/" ~ name ~ ".d "; } files ~= objectList[theModule]; } string buildCommand = compiler; version (GNU) { std.file.write("main.d", "void main(){}"); buildCommand ~= "main.d "; } buildCommand ~= files ~ unittestSwitches; write("Building unittest/unitest"); version (Windows) writeln(".exe"); else writeln(); auto status = executeShell(buildCommand); version (GNU) { std.file.remove("main.d"); } if (status.status != 0) { writeln(status.output); return false; } return true; } /** * Build DSFML documentation. * * Returns: true if documentation could be built, false if not. */ bool buildDocumentation() { if (!exists("doc/")) { mkdir("doc/"); } chdir("src/dsfml/"); string docExtension; string ddoc; if (buildingWebsiteDocs) { docExtension = ".php"; version (GNU) ddoc = "../../doc/website_documentation.ddoc"; else ddoc = " ../../doc/website_documentation.ddoc"; } else { docExtension = ".html"; version (GNU) ddoc = "../../doc/default_ddoc_theme.ddoc"; else ddoc = " ../../doc/local_documentation.ddoc"; } foreach (theModule; modules) { if (selectedModule != "" && theModule != selectedModule) { continue; } // skipping package.d size_t numberOfFiles = fileList[theModule].length - 1; foreach (fileNumber, name; fileList[theModule]) { if (name == "package") continue; string docFile = "../../doc/" ~ theModule ~ "/" ~ name ~ docExtension; string outputFile = name ~ docExtension; string dFile = theModule ~ "/" ~ name ~ ".d"; string buildCommand; version (GNU) { buildCommand = compiler ~ dFile ~ " -fdoc-inc=" ~ ddoc ~ " -fdoc-dir=../../doc/dsfml/" ~ theModule ~ docSwitches ~ " -o obj.o"; } else buildCommand = compiler ~ dFile ~ ddoc ~ docSwitches; if (needToBuild(docFile, dFile)) { progressOutput(fileNumber, numberOfFiles, outputFile); auto status = executeShell(buildCommand); if (status.status != 0) { writeln(status.output); return false; } if (docExtension != ".html") rename("../../doc/" ~ theModule ~ "/" ~ name ~ ".html", "../../doc/" ~ theModule ~ "/" ~ name ~ docExtension); } } } version (GNU) core.stdc.stdio.remove("obj.o"); chdir("../.."); return true; } /** * Build DSFML interface files. * * Returns: true if documentation could be built, false if not. */ bool buildInterfaceFiles() { if (!exists("import/")) { mkdir("import/"); } chdir("src/"); foreach (theModule; modules) { size_t numberOfFiles = fileList[theModule].length; foreach (fileNumber, name; fileList[theModule]) { string dFile = "dsfml/" ~ theModule ~ "/" ~ name ~ ".d"; string outputFile = "../import/dsfml/" ~ theModule ~ "/" ~ name ~ ".di"; if (name == "package") outputFile.length = outputFile.length - 1; version (GNU) { interfaceSwitches ~= " -fintfc-dir=../import/dsfml/" ~ theModule; } string buildCommand = compiler ~ dFile ~ interfaceSwitches; if (needToBuild(outputFile, dFile)) { progressOutput(fileNumber, numberOfFiles, outputFile[3 .. $]); auto status = executeShell(buildCommand); if (status.status != 0) { writeln(status.output); return false; } } } if (exists("../import/dsfml/" ~ theModule ~ "/package.di")) { rename("../import/dsfml/" ~ theModule ~ "/package.di", "../import/dsfml/" ~ theModule ~ "/package.d"); } } version (GNU) core.stdc.stdio.remove("obj.o"); chdir("../.."); return true; } /** * Display the progress as a percentage given the current file is next. * * Display example: * [ 20%] Building dsfml/src/system/clock.d */ void progressOutput(size_t currentFile, size_t totalFiles, string fileName) { size_t percentage = ((currentFile + 1) * 100) / totalFiles; writefln("[%3u%%] Building %s", percentage, fileName); } /** * Checks the timestamps on the object file and its associated source file. * * If the source file has been more recently updated than the object file was * built, or if the object file doesn't yet exist, this will return true. */ bool needToBuild(string objLocation, string srcLocation) { import std.file : exists, timeStamp = timeLastModified; return exists(objLocation) ? timeStamp(objLocation) < timeStamp(srcLocation) : true; } /** * Search for SFML shared libraries in the submodule directory. * * Returns: true if SFML shared libraries can be found, false otherwise. */ bool findSFML() { version (Windows) { //technically, we also need .lib files because Windows is stupid, but //the build script will only look for the .dll's. string dynamicExtension = "-2.dll"; } else version (linux) { string dynamicExtension = ".so"; } else { string dynamicExtension = ".dylib"; } //check to make sure ALL SFML libs were built foreach (theModule; modules) { if (!exists("SFML/lib/" ~ prefix ~ "sfml-" ~ theModule ~ dynamicExtension)) { writeln("SFML/lib/" ~ prefix ~ "sfml-" ~ theModule ~ dynamicExtension, " not found."); writeln("Building unit tests requires SFML libs in ", "dsfml/SFML/lib/ directory."); return false; } } return true; } /** * Builds a string consisting of the linker flags, library name, and extention. * * This is to simplify building the list of libraries needed when building unit * tests. * */ string lib(string library) { version (Windows) return linkerInclude ~ library ~ extension ~ " "; else return linkerInclude ~ library ~ " "; } int main(string[] args) { GetoptResult optInfo; try { optInfo = getopt(args, "lib", "Build static libraries.", &buildingLibs, "m32", "Force 32 bit building.", &force32Build, "m64", "Force 64 bit building.", &force64Build, "unittest", "Build DSFML unit test executable.", &buildingUnittests, "doc", "Build DSFML documentation.", &buildingDoc, "webdoc", "Build the DSFML website documentation.", &buildingWebsiteDocs, "import", "Generate D interface files.", &buildingInterfaceFiles, "debug", "Build debug libraries (ignored when not building libraries).", &debugLibs); } catch (GetOptException e) { writeln(e.msg); return -1; } if (optInfo.helpWanted) { defaultGetoptPrinter("Switch Information\n" ~ "Default (no switches passed) will be to build static libraries with the compiler that built this.", optInfo.options); return 0; } //default to building libs if (!buildingLibs && !buildingDoc && !buildingInterfaceFiles && !buildingWebsiteDocs && !buildingUnittests && !buildingAll) { buildingLibs = true; } if (!checkSwitchErrors()) { return -1; } writeln(); initialize(); if (buildingLibs) { if (!buildLibs()) return -1; } if (buildingUnittests) { if (!buildUnittests()) return -1; } if (buildingDoc || buildingWebsiteDocs) { if (!buildDocumentation()) return -1; } if (buildingInterfaceFiles) { if (!buildInterfaceFiles()) return -1; } return 0; }
D
/Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AFError.o : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/MultipartFormData.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Timeline.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Alamofire.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Response.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/TaskDelegate.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/SessionDelegate.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ParameterEncoding.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Validation.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ResponseSerialization.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/SessionManager.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/AFError.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Notifications.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Result.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Request.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ServerTrustPolicy.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/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/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/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AFError~partial.swiftmodule : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/MultipartFormData.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Timeline.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Alamofire.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Response.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/TaskDelegate.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/SessionDelegate.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ParameterEncoding.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Validation.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ResponseSerialization.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/SessionManager.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/AFError.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Notifications.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Result.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Request.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ServerTrustPolicy.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/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/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/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AFError~partial.swiftdoc : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/MultipartFormData.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Timeline.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Alamofire.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Response.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/TaskDelegate.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/SessionDelegate.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ParameterEncoding.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Validation.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ResponseSerialization.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/SessionManager.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/AFError.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Notifications.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Result.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Request.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/ServerTrustPolicy.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/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/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
/Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BarChartView.o : /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/Legend.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/Description.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/LegendEntry.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/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Headers/Public/Charts/Charts.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BarChartView~partial.swiftmodule : /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/Legend.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/Description.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/LegendEntry.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/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Headers/Public/Charts/Charts.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BarChartView~partial.swiftdoc : /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/Legend.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/Description.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Components/LegendEntry.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/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Headers/Public/Charts/Charts.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
module ini_file;
D
# FIXED Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx/icall_startup.c Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_types.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h Startup/icall_startup.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdint.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/icall/src/inc/icall.h Startup/icall_startup.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdbool.h Startup/icall_startup.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdlib.h Startup/icall_startup.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/linkage.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/inc/hal_assert.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_types.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/inc/hal_defs.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc/rom_init.h Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc/common_rom_init.h C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx/icall_startup.c: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_types.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdint.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/icall/src/inc/icall.h: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdbool.h: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdlib.h: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/linkage.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/inc/hal_assert.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_types.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/inc/hal_defs.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc/rom_init.h: C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc/common_rom_init.h:
D
struct erlang_t { string pid; }; typedef struct erlang_t erlang_t; translator erlang_t < uint64_t pid > { pid = copyinstr(pid); }; inline erlang_t erlang = xlate<erlang_t> (arg0);
D
/***********************************************************************\ * winuser.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * * * Placed into public domain * \***********************************************************************/ module win32.winuser; pragma(lib, "user32.lib"); // Conversion Notes: // The following macros were for win16 only, and are not included in this file: //#define EnumTaskWindows(h, f, p) EnumThreadWindows((DWORD)h, f, p) //#define PostAppMessageA(t, m, w, l) PostThreadMessageA((DWORD)t, m, w, l) //#define PostAppMessageW(t, m, w, l) PostThreadMessageW((DWORD)t, m, w, l) //#define GetSysModalWindow() (NULL) //#define SetSysModalWindow(h) (NULL) //#define GetWindowTask(hWnd) ((HANDLE)GetWindowThreadProcessId(hWnd, NULL)) //#define DefHookProc(c, p, lp, h) CallNextHookEx((HHOOK)*h, c, p, lp) private import win32.w32api, win32.winbase, win32.wingdi; private import win32.windef; // for HMONITOR // FIXME: clean up Windows version support template MAKEINTATOM_T(int i) { const LPTSTR MAKEINTATOM_T = cast(LPTSTR) i; } const WC_DIALOG = MAKEINTATOM_T!(0x8002); const FVIRTKEY = 1; const FNOINVERT = 2; const FSHIFT = 4; const FCONTROL = 8; const FALT = 16; const ATF_TIMEOUTON = 1; const ATF_ONOFFFEEDBACK = 2; const ATF_AVAILABLE = 4; // May be obsolete. Not in recent MS docs. const WH_MIN = -1; const WH_MSGFILTER = -1; const WH_JOURNALRECORD = 0; const WH_JOURNALPLAYBACK = 1; const WH_KEYBOARD = 2; const WH_GETMESSAGE = 3; const WH_CALLWNDPROC = 4; const WH_CBT = 5; const WH_SYSMSGFILTER = 6; const WH_MOUSE = 7; const WH_HARDWARE = 8; const WH_DEBUG = 9; const WH_SHELL = 10; const WH_FOREGROUNDIDLE = 11; const WH_CALLWNDPROCRET = 12; const WH_KEYBOARD_LL = 13; const WH_MOUSE_LL = 14; const WH_MAX = 14; const WH_MINHOOK = WH_MIN; const WH_MAXHOOK = WH_MAX; enum { HC_ACTION = 0, HC_GETNEXT, HC_SKIP, HC_NOREMOVE, // = 3 HC_NOREM = HC_NOREMOVE, HC_SYSMODALON, HC_SYSMODALOFF } enum { HCBT_MOVESIZE = 0, HCBT_MINMAX, HCBT_QS, HCBT_CREATEWND, HCBT_DESTROYWND, HCBT_ACTIVATE, HCBT_CLICKSKIPPED, HCBT_KEYSKIPPED, HCBT_SYSCOMMAND, HCBT_SETFOCUS // = 9 } enum { CF_TEXT = 1, CF_BITMAP, CF_METAFILEPICT, CF_SYLK, CF_DIF, CF_TIFF, CF_OEMTEXT, CF_DIB, CF_PALETTE, CF_PENDATA, CF_RIFF, CF_WAVE, CF_UNICODETEXT, CF_ENHMETAFILE, CF_HDROP, CF_LOCALE, CF_MAX, // = 17 CF_OWNERDISPLAY = 128, CF_DSPTEXT, CF_DSPBITMAP, CF_DSPMETAFILEPICT, // = 131 CF_DSPENHMETAFILE = 142, CF_PRIVATEFIRST = 512, CF_PRIVATELAST = 767, CF_GDIOBJFIRST = 768, CF_GDIOBJLAST = 1023 } const HKL_PREV = 0; const HKL_NEXT = 1; const KLF_ACTIVATE = 1; const KLF_SUBSTITUTE_OK = 2; const KLF_UNLOADPREVIOUS = 4; const KLF_REORDER = 8; const KLF_REPLACELANG = 16; const KLF_NOTELLSHELL = 128; const KLF_SETFORPROCESS = 256; const KL_NAMELENGTH = 9; const MF_ENABLED = 0; const MF_GRAYED = 1; const MF_DISABLED = 2; const MF_BITMAP = 4; const MF_CHECKED = 8; const MF_MENUBARBREAK = 32; const MF_MENUBREAK = 64; const MF_OWNERDRAW = 256; const MF_POPUP = 16; const MF_SEPARATOR = 0x800; const MF_STRING = 0; const MF_UNCHECKED = 0; const MF_DEFAULT = 4096; const MF_SYSMENU = 0x2000; const MF_HELP = 0x4000; const MF_END = 128; const MF_RIGHTJUSTIFY = 0x4000; const MF_MOUSESELECT = 0x8000; const MF_INSERT = 0; const MF_CHANGE = 128; const MF_APPEND = 256; const MF_DELETE = 512; const MF_REMOVE = 4096; const MF_USECHECKBITMAPS = 512; const MF_UNHILITE = 0; const MF_HILITE = 128; // Also defined in dbt.h const BSM_ALLCOMPONENTS = 0; const BSM_VXDS = 1; const BSM_NETDRIVER = 2; const BSM_INSTALLABLEDRIVERS = 4; const BSM_APPLICATIONS = 8; const BSM_ALLDESKTOPS = 16; const BSF_QUERY = 0x00000001; const BSF_IGNORECURRENTTASK = 0x00000002; const BSF_FLUSHDISK = 0x00000004; const BSF_NOHANG = 0x00000008; const BSF_POSTMESSAGE = 0x00000010; const BSF_FORCEIFHUNG = 0x00000020; const BSF_NOTIMEOUTIFNOTHUNG = 0x00000040; static if (_WIN32_WINNT >= 0x500) { const BSF_ALLOWSFW = 0x00000080; const BSF_SENDNOTIFYMESSAGE = 0x00000100; } static if (_WIN32_WINNT >= 0x501) { const BSF_RETURNHDESK = 0x00000200; const BSF_LUID = 0x00000400; } const BROADCAST_QUERY_DENY = 1112363332; const DWORD ENUM_CURRENT_SETTINGS = -1; const DWORD ENUM_REGISTRY_SETTINGS = -2; const CDS_UPDATEREGISTRY = 1; const CDS_TEST = 2; const CDS_FULLSCREEN = 4; const CDS_GLOBAL = 8; const CDS_SET_PRIMARY = 16; const CDS_NORESET = 0x10000000; const CDS_SETRECT = 0x20000000; const CDS_RESET = 0x40000000; const DISP_CHANGE_RESTART = 1; const DISP_CHANGE_SUCCESSFUL = 0; const DISP_CHANGE_FAILED = -1; const DISP_CHANGE_BADMODE = -2; const DISP_CHANGE_NOTUPDATED = -3; const DISP_CHANGE_BADFLAGS = -4; const DISP_CHANGE_BADPARAM = -5; const BST_UNCHECKED = 0; const BST_CHECKED = 1; const BST_INDETERMINATE = 2; const BST_PUSHED = 4; const BST_FOCUS = 8; const MF_BYCOMMAND = 0; const MF_BYPOSITION = 1024; // [Redefined] MF_UNCHECKED=0 // [Redefined] MF_HILITE=128 // [Redefined] MF_UNHILITE=0 const CWP_ALL = 0; const CWP_SKIPINVISIBLE = 1; const CWP_SKIPDISABLED = 2; const CWP_SKIPTRANSPARENT = 4; const IMAGE_BITMAP=0; const IMAGE_ICON=1; const IMAGE_CURSOR=2; const IMAGE_ENHMETAFILE=3; const DF_ALLOWOTHERACCOUNTHOOK = 1; const DESKTOP_READOBJECTS = 1; const DESKTOP_CREATEWINDOW = 2; const DESKTOP_CREATEMENU = 4; const DESKTOP_HOOKCONTROL = 8; const DESKTOP_JOURNALRECORD = 16; const DESKTOP_JOURNALPLAYBACK = 32; const DESKTOP_ENUMERATE = 64; const DESKTOP_WRITEOBJECTS = 128; const DESKTOP_SWITCHDESKTOP = 256; const CW_USEDEFAULT = 0x80000000; const WS_OVERLAPPED = 0; const WS_TILED = 0; const WS_MAXIMIZEBOX = 0x00010000; const WS_MINIMIZEBOX = 0x00020000; const WS_SIZEBOX = 0x00040000; const WS_TABSTOP = 0x00010000; const WS_GROUP = 0x00020000; const WS_THICKFRAME = 0x00040000; const WS_SYSMENU = 0x00080000; const WS_HSCROLL = 0x00100000; const WS_VSCROLL = 0x00200000; const WS_DLGFRAME = 0x00400000; const WS_BORDER = 0x00800000; const WS_CAPTION = 0x00c00000; const WS_TILEDWINDOW = 0x00cf0000; const WS_OVERLAPPEDWINDOW = 0x00cf0000; const WS_MAXIMIZE = 0x01000000; const WS_CLIPCHILDREN = 0x02000000; const WS_CLIPSIBLINGS = 0x04000000; const WS_DISABLED = 0x08000000; const WS_VISIBLE = 0x10000000; const WS_MINIMIZE = 0x20000000; const WS_ICONIC = 0x20000000; const WS_CHILD = 0x40000000; const WS_CHILDWINDOW = 0x40000000; const WS_POPUP = 0x80000000; const WS_POPUPWINDOW = 0x80880000; const MDIS_ALLCHILDSTYLES = 1; const BS_3STATE = 5; const BS_AUTO3STATE = 6; const BS_AUTOCHECKBOX = 3; const BS_AUTORADIOBUTTON = 9; const BS_BITMAP = 128; const BS_BOTTOM = 0x800; const BS_CENTER = 0x300; const BS_CHECKBOX = 2; const BS_DEFPUSHBUTTON = 1; const BS_GROUPBOX = 7; const BS_ICON = 64; const BS_LEFT = 256; const BS_LEFTTEXT = 32; const BS_MULTILINE = 0x2000; const BS_NOTIFY = 0x4000; const BS_OWNERDRAW = 0xb; const BS_PUSHBUTTON = 0; const BS_PUSHLIKE = 4096; const BS_RADIOBUTTON = 4; const BS_RIGHT = 512; const BS_RIGHTBUTTON = 32; const BS_TEXT = 0; const BS_TOP = 0x400; const BS_USERBUTTON = 8; const BS_VCENTER = 0xc00; const BS_FLAT = 0x8000; const CBS_AUTOHSCROLL = 64; const CBS_DISABLENOSCROLL = 0x800; const CBS_DROPDOWN = 2; const CBS_DROPDOWNLIST = 3; const CBS_HASSTRINGS = 512; const CBS_LOWERCASE = 0x4000; const CBS_NOINTEGRALHEIGHT = 0x400; const CBS_OEMCONVERT = 128; const CBS_OWNERDRAWFIXED = 16; const CBS_OWNERDRAWVARIABLE = 32; const CBS_SIMPLE = 1; const CBS_SORT = 256; const CBS_UPPERCASE = 0x2000; const ES_AUTOHSCROLL = 128; const ES_AUTOVSCROLL = 64; const ES_CENTER = 1; const ES_LEFT = 0; const ES_LOWERCASE = 16; const ES_MULTILINE = 4; const ES_NOHIDESEL = 256; const ES_NUMBER = 0x2000; const ES_OEMCONVERT = 0x400; const ES_PASSWORD = 32; const ES_READONLY = 0x800; const ES_RIGHT = 2; const ES_UPPERCASE = 8; const ES_WANTRETURN = 4096; const LBS_DISABLENOSCROLL = 4096; const LBS_EXTENDEDSEL = 0x800; const LBS_HASSTRINGS = 64; const LBS_MULTICOLUMN = 512; const LBS_MULTIPLESEL = 8; const LBS_NODATA = 0x2000; const LBS_NOINTEGRALHEIGHT = 256; const LBS_NOREDRAW = 4; const LBS_NOSEL = 0x4000; const LBS_NOTIFY = 1; const LBS_OWNERDRAWFIXED = 16; const LBS_OWNERDRAWVARIABLE = 32; const LBS_SORT = 2; const LBS_STANDARD = 0xa00003; const LBS_USETABSTOPS = 128; const LBS_WANTKEYBOARDINPUT = 0x400; const SBS_BOTTOMALIGN = 4; const SBS_HORZ = 0; const SBS_LEFTALIGN = 2; const SBS_RIGHTALIGN = 4; const SBS_SIZEBOX = 8; const SBS_SIZEBOXBOTTOMRIGHTALIGN = 4; const SBS_SIZEBOXTOPLEFTALIGN = 2; const SBS_SIZEGRIP = 16; const SBS_TOPALIGN = 2; const SBS_VERT = 1; const SS_BITMAP = 14; const SS_BLACKFRAME = 7; const SS_BLACKRECT = 4; const SS_CENTER = 1; const SS_CENTERIMAGE = 512; const SS_ENHMETAFILE = 15; const SS_ETCHEDFRAME = 18; const SS_ETCHEDHORZ = 16; const SS_ETCHEDVERT = 17; const SS_GRAYFRAME = 8; const SS_GRAYRECT = 5; const SS_ICON = 3; const SS_LEFT = 0; const SS_LEFTNOWORDWRAP = 0xc; const SS_NOPREFIX = 128; const SS_NOTIFY = 256; const SS_OWNERDRAW = 0xd; const SS_REALSIZEIMAGE = 0x800; const SS_RIGHT = 2; const SS_RIGHTJUST = 0x400; const SS_SIMPLE = 11; const SS_SUNKEN = 4096; const SS_WHITEFRAME = 9; const SS_WHITERECT = 6; const SS_USERITEM = 10; const SS_TYPEMASK = 0x0000001FL; const SS_ENDELLIPSIS = 0x00004000L; const SS_PATHELLIPSIS = 0x00008000L; const SS_WORDELLIPSIS = 0x0000C000L; const SS_ELLIPSISMASK = 0x0000C000L; const DS_ABSALIGN = 0x0001; const DS_3DLOOK = 0x0004; const DS_SYSMODAL = 0x0002; const DS_FIXEDSYS = 0x0008; const DS_NOFAILCREATE = 0x0010; const DS_LOCALEDIT = 0x0020; const DS_SETFONT = 0x0040; const DS_MODALFRAME = 0x0080; const DS_NOIDLEMSG = 0x0100; const DS_SETFOREGROUND = 0x0200; const DS_CONTROL = 0x0400; const DS_CENTER = 0x0800; const DS_CENTERMOUSE = 0x1000; const DS_CONTEXTHELP = 0x2000; const DS_SHELLFONT = DS_SETFONT | DS_FIXEDSYS; const WS_EX_ACCEPTFILES = 16; const WS_EX_APPWINDOW = 0x40000; const WS_EX_CLIENTEDGE = 512; const WS_EX_COMPOSITED = 0x2000000; // XP const WS_EX_CONTEXTHELP = 0x400; const WS_EX_CONTROLPARENT = 0x10000; const WS_EX_DLGMODALFRAME = 1; const WS_EX_LAYERED = 0x80000; // w2k const WS_EX_LAYOUTRTL = 0x400000; // w98, w2k const WS_EX_LEFT = 0; const WS_EX_LEFTSCROLLBAR = 0x4000; const WS_EX_LTRREADING = 0; const WS_EX_MDICHILD = 64; const WS_EX_NOACTIVATE = 0x8000000; // w2k const WS_EX_NOINHERITLAYOUT = 0x100000; // w2k const WS_EX_NOPARENTNOTIFY = 4; const WS_EX_OVERLAPPEDWINDOW = 0x300; const WS_EX_PALETTEWINDOW = 0x188; const WS_EX_RIGHT = 0x1000; const WS_EX_RIGHTSCROLLBAR = 0; const WS_EX_RTLREADING = 0x2000; const WS_EX_STATICEDGE = 0x20000; const WS_EX_TOOLWINDOW = 128; const WS_EX_TOPMOST = 8; const WS_EX_TRANSPARENT = 32; const WS_EX_WINDOWEDGE = 256; const WINSTA_ENUMDESKTOPS = 1; const WINSTA_READATTRIBUTES = 2; const WINSTA_ACCESSCLIPBOARD = 4; const WINSTA_CREATEDESKTOP = 8; const WINSTA_WRITEATTRIBUTES = 16; const WINSTA_ACCESSGLOBALATOMS = 32; const WINSTA_EXITWINDOWS = 64; const WINSTA_ENUMERATE = 256; const WINSTA_READSCREEN = 512; const DDL_READWRITE = 0; const DDL_READONLY = 1; const DDL_HIDDEN = 2; const DDL_SYSTEM = 4; const DDL_DIRECTORY = 16; const DDL_ARCHIVE = 32; const DDL_POSTMSGS = 8192; const DDL_DRIVES = 16384; const DDL_EXCLUSIVE = 32768; const DC_ACTIVE = 0x00000001; const DC_SMALLCAP = 0x00000002; const DC_ICON = 0x00000004; const DC_TEXT = 0x00000008; const DC_INBUTTON = 0x00000010; static if (WINVER >= 0x500) { const DC_GRADIENT=0x00000020; } static if (_WIN32_WINNT >= 0x501) { const DC_BUTTONS=0x00001000; } // Where are these documented? //const DC_CAPTION = DC_ICON|DC_TEXT|DC_BUTTONS; //const DC_NC = DC_CAPTION|DC_FRAME; const BDR_RAISEDOUTER = 1; const BDR_SUNKENOUTER = 2; const BDR_RAISEDINNER = 4; const BDR_SUNKENINNER = 8; const BDR_OUTER = 3; const BDR_INNER = 0xc; const BDR_RAISED = 5; const BDR_SUNKEN = 10; const EDGE_RAISED = BDR_RAISEDOUTER|BDR_RAISEDINNER; const EDGE_SUNKEN = BDR_SUNKENOUTER|BDR_SUNKENINNER; const EDGE_ETCHED = BDR_SUNKENOUTER|BDR_RAISEDINNER; const EDGE_BUMP = BDR_RAISEDOUTER|BDR_SUNKENINNER; const BF_LEFT = 1; const BF_TOP = 2; const BF_RIGHT = 4; const BF_BOTTOM = 8; const BF_TOPLEFT = BF_TOP|BF_LEFT; const BF_TOPRIGHT = BF_TOP|BF_RIGHT; const BF_BOTTOMLEFT = BF_BOTTOM|BF_LEFT; const BF_BOTTOMRIGHT = BF_BOTTOM|BF_RIGHT; const BF_RECT = BF_LEFT|BF_TOP|BF_RIGHT|BF_BOTTOM ; const BF_DIAGONAL = 16; const BF_DIAGONAL_ENDTOPRIGHT = BF_DIAGONAL|BF_TOP|BF_RIGHT; const BF_DIAGONAL_ENDTOPLEFT = BF_DIAGONAL|BF_TOP|BF_LEFT; const BF_DIAGONAL_ENDBOTTOMLEFT = BF_DIAGONAL|BF_BOTTOM|BF_LEFT; const BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL|BF_BOTTOM|BF_RIGHT; const BF_MIDDLE = 0x800; const BF_SOFT = 0x1000; const BF_ADJUST = 0x2000; const BF_FLAT = 0x4000; const BF_MONO = 0x8000; const DFC_CAPTION=1; const DFC_MENU=2; const DFC_SCROLL=3; const DFC_BUTTON=4; static if (WINVER >= 0x500) { const DFC_POPUPMENU=5; }// WINVER >= 0x500 const DFCS_CAPTIONCLOSE = 0; const DFCS_CAPTIONMIN = 1; const DFCS_CAPTIONMAX = 2; const DFCS_CAPTIONRESTORE = 3; const DFCS_CAPTIONHELP = 4; const DFCS_MENUARROW = 0; const DFCS_MENUCHECK = 1; const DFCS_MENUBULLET = 2; const DFCS_MENUARROWRIGHT = 4; const DFCS_SCROLLUP = 0; const DFCS_SCROLLDOWN = 1; const DFCS_SCROLLLEFT = 2; const DFCS_SCROLLRIGHT = 3; const DFCS_SCROLLCOMBOBOX = 5; const DFCS_SCROLLSIZEGRIP = 8; const DFCS_SCROLLSIZEGRIPRIGHT = 16; const DFCS_BUTTONCHECK = 0; const DFCS_BUTTONRADIOIMAGE = 1; const DFCS_BUTTONRADIOMASK = 2; const DFCS_BUTTONRADIO = 4; const DFCS_BUTTON3STATE = 8; const DFCS_BUTTONPUSH = 16; const DFCS_INACTIVE = 256; const DFCS_PUSHED = 512; const DFCS_CHECKED = 1024; static if (WINVER >= 0x500) { const DFCS_TRANSPARENT = 0x800; const DFCS_HOT = 0x1000; } const DFCS_ADJUSTRECT = 0x2000; const DFCS_FLAT = 0x4000; const DFCS_MONO = 0x8000; enum { DST_COMPLEX = 0, DST_TEXT, DST_PREFIXTEXT, DST_ICON, DST_BITMAP // = 4 } const DSS_NORMAL = 0; const DSS_UNION = 16; const DSS_DISABLED = 32; const DSS_MONO = 128; const DSS_RIGHT = 0x8000; const DT_BOTTOM = 8; const DT_CALCRECT = 1024; const DT_CENTER = 1; const DT_EDITCONTROL = 8192; const DT_END_ELLIPSIS = 32768; const DT_PATH_ELLIPSIS = 16384; const DT_WORD_ELLIPSIS = 0x40000; const DT_EXPANDTABS = 64; const DT_EXTERNALLEADING = 512; const DT_LEFT = 0; const DT_MODIFYSTRING = 65536; const DT_NOCLIP = 256; const DT_NOPREFIX = 2048; const DT_RIGHT = 2; const DT_RTLREADING = 131072; const DT_SINGLELINE = 32; const DT_TABSTOP = 128; const DT_TOP = 0; const DT_VCENTER = 4; const DT_WORDBREAK = 16; const DT_INTERNAL = 4096; const WB_ISDELIMITER = 2; const WB_LEFT = 0; const WB_RIGHT = 1; const SB_HORZ = 0; const SB_VERT = 1; const SB_CTL = 2; const SB_BOTH = 3; const ESB_DISABLE_BOTH = 3; const ESB_DISABLE_DOWN = 2; const ESB_DISABLE_LEFT = 1; const ESB_DISABLE_LTUP = 1; const ESB_DISABLE_RIGHT = 2; const ESB_DISABLE_RTDN = 2; const ESB_DISABLE_UP = 1; const ESB_ENABLE_BOTH = 0; const SB_LINEUP = 0; const SB_LINEDOWN = 1; const SB_LINELEFT = 0; const SB_LINERIGHT = 1; const SB_PAGEUP = 2; const SB_PAGEDOWN = 3; const SB_PAGELEFT = 2; const SB_PAGERIGHT = 3; const SB_THUMBPOSITION = 4; const SB_THUMBTRACK = 5; const SB_ENDSCROLL = 8; const SB_LEFT = 6; const SB_RIGHT = 7; const SB_BOTTOM = 7; const SB_TOP = 6; //MACRO #define IS_INTRESOURCE(i) (((ULONG_PTR)(i) >> 16) == 0) template MAKEINTRESOURCE_T (WORD i) { const LPTSTR MAKEINTRESOURCE_T = cast(LPTSTR)(i); } LPSTR MAKEINTRESOURCEA(WORD i) { return cast(LPSTR)(i); } LPWSTR MAKEINTRESOURCEW(WORD i) { return cast(LPWSTR)(i); } const RT_CURSOR = MAKEINTRESOURCE_T!(1); const RT_BITMAP = MAKEINTRESOURCE_T!(2); const RT_ICON = MAKEINTRESOURCE_T!(3); const RT_MENU = MAKEINTRESOURCE_T!(4); const RT_DIALOG = MAKEINTRESOURCE_T!(5); const RT_STRING = MAKEINTRESOURCE_T!(6); const RT_FONTDIR = MAKEINTRESOURCE_T!(7); const RT_FONT = MAKEINTRESOURCE_T!(8); const RT_ACCELERATOR = MAKEINTRESOURCE_T!(9); const RT_RCDATA = MAKEINTRESOURCE_T!(10); const RT_MESSAGETABLE = MAKEINTRESOURCE_T!(11); const RT_GROUP_CURSOR = MAKEINTRESOURCE_T!(12); const RT_GROUP_ICON = MAKEINTRESOURCE_T!(14); const RT_VERSION = MAKEINTRESOURCE_T!(16); const RT_DLGINCLUDE = MAKEINTRESOURCE_T!(17); const RT_PLUGPLAY = MAKEINTRESOURCE_T!(19); const RT_VXD = MAKEINTRESOURCE_T!(20); const RT_ANICURSOR = MAKEINTRESOURCE_T!(21); const RT_ANIICON = MAKEINTRESOURCE_T!(22); const RT_HTML = MAKEINTRESOURCE_T!(23); const RT_MANIFEST = MAKEINTRESOURCE_T!(24); const CREATEPROCESS_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE_T!(1); const ISOLATIONAWARE_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE_T!(2); const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE_T!(3); const EWX_LOGOFF = 0; const EWX_SHUTDOWN = 1; const EWX_REBOOT = 2; const EWX_FORCE = 4; const EWX_POWEROFF = 8; static if (_WIN32_WINNT >= 0x500) { const EWX_FORCEIFHUNG = 16; } const CS_BYTEALIGNCLIENT = 4096; const CS_BYTEALIGNWINDOW = 8192; const CS_KEYCVTWINDOW = 4; const CS_NOKEYCVT = 256; const CS_CLASSDC = 64; const CS_DBLCLKS = 8; const CS_GLOBALCLASS = 16384; const CS_HREDRAW = 2; const CS_NOCLOSE = 512; const CS_OWNDC = 32; const CS_PARENTDC = 128; const CS_SAVEBITS = 2048; const CS_VREDRAW = 1; const CS_IME = 0x10000; const GCW_ATOM = -32; const GCL_CBCLSEXTRA = -20; const GCL_CBWNDEXTRA = -18; const GCL_HBRBACKGROUND = -10; const GCL_HCURSOR = -12; const GCL_HICON = -14; const GCL_HICONSM = -34; const GCL_HMODULE = -16; const GCL_MENUNAME = -8; const GCL_STYLE = -26; const GCL_WNDPROC = -24; const IDC_ARROW = MAKEINTRESOURCE_T!(32512); const IDC_IBEAM = MAKEINTRESOURCE_T!(32513); const IDC_WAIT = MAKEINTRESOURCE_T!(32514); const IDC_CROSS = MAKEINTRESOURCE_T!(32515); const IDC_UPARROW = MAKEINTRESOURCE_T!(32516); const IDC_SIZENWSE = MAKEINTRESOURCE_T!(32642); const IDC_SIZENESW = MAKEINTRESOURCE_T!(32643); const IDC_SIZEWE = MAKEINTRESOURCE_T!(32644); const IDC_SIZENS = MAKEINTRESOURCE_T!(32645); const IDC_SIZEALL = MAKEINTRESOURCE_T!(32646); const IDC_NO = MAKEINTRESOURCE_T!(32648); const IDC_HAND = MAKEINTRESOURCE_T!(32649); const IDC_APPSTARTING = MAKEINTRESOURCE_T!(32650); const IDC_HELP = MAKEINTRESOURCE_T!(32651); const IDC_ICON = MAKEINTRESOURCE_T!(32641); const IDC_SIZE = MAKEINTRESOURCE_T!(32640); const IDI_APPLICATION = MAKEINTRESOURCE_T!(32512); const IDI_HAND = MAKEINTRESOURCE_T!(32513); const IDI_QUESTION = MAKEINTRESOURCE_T!(32514); const IDI_EXCLAMATION = MAKEINTRESOURCE_T!(32515); const IDI_ASTERISK = MAKEINTRESOURCE_T!(32516); const IDI_WINLOGO = MAKEINTRESOURCE_T!(32517); const IDI_WARNING = IDI_EXCLAMATION; const IDI_ERROR = IDI_HAND; const IDI_INFORMATION = IDI_ASTERISK; const MIIM_STATE = 1; const MIIM_ID = 2; const MIIM_SUBMENU = 4; const MIIM_CHECKMARKS = 8; const MIIM_TYPE = 16; const MIIM_DATA = 32; const MIIM_STRING = 64; const MIIM_BITMAP = 128; const MIIM_FTYPE = 256; static if (WINVER >= 0x500) { const MIM_MAXHEIGHT = 1; const MIM_BACKGROUND = 2; const MIM_HELPID = 4; const MIM_MENUDATA = 8; const MIM_STYLE = 16; const MIM_APPLYTOSUBMENUS = 0x80000000L; const MNS_NOCHECK = 0x80000000; const MNS_MODELESS = 0x40000000; const MNS_DRAGDROP = 0x20000000; const MNS_AUTODISMISS = 0x10000000; const MNS_NOTIFYBYPOS = 0x08000000; const MNS_CHECKORBMP = 0x04000000; } const MFT_BITMAP = 4; const MFT_MENUBARBREAK = 32; const MFT_MENUBREAK = 64; const MFT_OWNERDRAW = 256; const MFT_RADIOCHECK = 512; const MFT_RIGHTJUSTIFY = 0x4000; const MFT_SEPARATOR = 0x800; const MFT_RIGHTORDER = 0x2000L; const MFT_STRING = 0; const MFS_CHECKED = 8; const MFS_DEFAULT = 4096; const MFS_DISABLED = 3; const MFS_ENABLED = 0; const MFS_GRAYED = 3; const MFS_HILITE = 128; const MFS_UNCHECKED = 0; const MFS_UNHILITE = 0; const GW_HWNDNEXT = 2; const GW_HWNDPREV = 3; const GW_CHILD = 5; const GW_HWNDFIRST = 0; const GW_HWNDLAST = 1; const GW_OWNER = 4; const SW_HIDE = 0; const SW_NORMAL = 1; const SW_SHOWNORMAL = 1; const SW_SHOWMINIMIZED = 2; const SW_MAXIMIZE = 3; const SW_SHOWMAXIMIZED = 3; const SW_SHOWNOACTIVATE = 4; const SW_SHOW = 5; const SW_MINIMIZE = 6; const SW_SHOWMINNOACTIVE = 7; const SW_SHOWNA = 8; const SW_RESTORE = 9; const SW_SHOWDEFAULT = 10; const SW_FORCEMINIMIZE = 11; const SW_MAX = 11; const MB_USERICON = 128; const MB_ICONASTERISK = 64; const MB_ICONEXCLAMATION = 0x30; const MB_ICONWARNING = 0x30; const MB_ICONERROR = 16; const MB_ICONHAND = 16; const MB_ICONQUESTION = 32; const MB_OK = 0; const MB_ABORTRETRYIGNORE = 2; const MB_APPLMODAL = 0; const MB_DEFAULT_DESKTOP_ONLY = 0x20000; const MB_HELP = 0x4000; const MB_RIGHT = 0x80000; const MB_RTLREADING = 0x100000; const MB_TOPMOST = 0x40000; const MB_DEFBUTTON1 = 0; const MB_DEFBUTTON2 = 256; const MB_DEFBUTTON3 = 512; const MB_DEFBUTTON4 = 0x300; const MB_ICONINFORMATION = 64; const MB_ICONSTOP = 16; const MB_OKCANCEL = 1; const MB_RETRYCANCEL = 5; static if (_WIN32_WINNT_ONLY) { static if (_WIN32_WINNT >= 0x400) { const MB_SERVICE_NOTIFICATION = 0x00200000; } else { const MB_SERVICE_NOTIFICATION = 0x00040000; } const MB_SERVICE_NOTIFICATION_NT3X = 0x00040000; } const MB_SETFOREGROUND = 0x10000; const MB_SYSTEMMODAL = 4096; const MB_TASKMODAL = 0x2000; const MB_YESNO = 4; const MB_YESNOCANCEL = 3; const MB_ICONMASK = 240; const MB_DEFMASK = 3840; const MB_MODEMASK = 0x00003000; const MB_MISCMASK = 0x0000C000; const MB_NOFOCUS = 0x00008000; const MB_TYPEMASK = 15; // [Redefined] MB_TOPMOST=0x40000 static if (WINVER >= 0x500) { const MB_CANCELTRYCONTINUE=6; } const IDOK = 1; const IDCANCEL = 2; const IDABORT = 3; const IDRETRY = 4; const IDIGNORE = 5; const IDYES = 6; const IDNO = 7; static if (WINVER >= 0x400) { const IDCLOSE = 8; const IDHELP = 9; } static if (WINVER >= 0x500) { const IDTRYAGAIN = 10; const IDCONTINUE = 11; } const GWL_EXSTYLE = -20; const GWL_STYLE = -16; const GWL_WNDPROC = -4; const GWLP_WNDPROC = -4; const GWL_HINSTANCE = -6; const GWLP_HINSTANCE = -6; const GWL_HWNDPARENT = -8; const GWLP_HWNDPARENT = -8; const GWL_ID = -12; const GWLP_ID = -12; const GWL_USERDATA = -21; const GWLP_USERDATA = -21; const DWL_DLGPROC = 4; const DWLP_DLGPROC = 4; const DWL_MSGRESULT = 0; const DWLP_MSGRESULT = 0; const DWL_USER = 8; const DWLP_USER = 8; const QS_KEY = 1; const QS_MOUSEMOVE = 2; const QS_MOUSEBUTTON = 4; const QS_MOUSE = 6; const QS_POSTMESSAGE = 8; const QS_TIMER = 16; const QS_PAINT = 32; const QS_SENDMESSAGE = 64; const QS_HOTKEY = 128; const QS_ALLPOSTMESSAGE = 256; static if (_WIN32_WINNT >= 0x501) { const QS_RAWINPUT = 1024; const QS_INPUT = 1031; const QS_ALLEVENTS = 1215; const QS_ALLINPUT = 1279; } else { const QS_INPUT = 7; const QS_ALLEVENTS = 191; const QS_ALLINPUT = 255; } const MWMO_WAITALL = 1; const MWMO_ALERTABLE = 2; const MWMO_INPUTAVAILABLE = 4; const COLOR_3DDKSHADOW=21; const COLOR_3DFACE=15; const COLOR_3DHILIGHT=20; const COLOR_3DHIGHLIGHT=20; const COLOR_3DLIGHT=22; const COLOR_BTNHILIGHT=20; const COLOR_3DSHADOW=16; const COLOR_ACTIVEBORDER=10; const COLOR_ACTIVECAPTION=2; const COLOR_APPWORKSPACE=12; const COLOR_BACKGROUND=1; const COLOR_DESKTOP=1; const COLOR_BTNFACE=15; const COLOR_BTNHIGHLIGHT=20; const COLOR_BTNSHADOW=16; const COLOR_BTNTEXT=18; const COLOR_CAPTIONTEXT=9; const COLOR_GRAYTEXT=17; const COLOR_HIGHLIGHT=13; const COLOR_HIGHLIGHTTEXT=14; const COLOR_INACTIVEBORDER=11; const COLOR_INACTIVECAPTION=3; const COLOR_INACTIVECAPTIONTEXT=19; const COLOR_INFOBK=24; const COLOR_INFOTEXT=23; const COLOR_MENU=4; const COLOR_MENUTEXT=7; const COLOR_SCROLLBAR=0; const COLOR_WINDOW=5; const COLOR_WINDOWFRAME=6; const COLOR_WINDOWTEXT=8; const COLOR_HOTLIGHT=26; const COLOR_GRADIENTACTIVECAPTION=27; const COLOR_GRADIENTINACTIVECAPTION=28; const CTLCOLOR_MSGBOX=0; const CTLCOLOR_EDIT=1; const CTLCOLOR_LISTBOX=2; const CTLCOLOR_BTN=3; const CTLCOLOR_DLG=4; const CTLCOLOR_SCROLLBAR=5; const CTLCOLOR_STATIC=6; const CTLCOLOR_MAX=7; // For GetSystemMetrics() enum : int { SM_CXSCREEN = 0, SM_CYSCREEN, SM_CXVSCROLL, SM_CYHSCROLL, SM_CYCAPTION, SM_CXBORDER, SM_CYBORDER, SM_CXDLGFRAME, // = 7, SM_CXFIXEDFRAME = SM_CXDLGFRAME, SM_CYDLGFRAME, // =8, SM_CYFIXEDFRAME = SM_CYDLGFRAME, SM_CYVTHUMB = 9, SM_CXHTHUMB, SM_CXICON, SM_CYICON, SM_CXCURSOR, SM_CYCURSOR, SM_CYMENU, SM_CXFULLSCREEN, SM_CYFULLSCREEN, SM_CYKANJIWINDOW, SM_MOUSEPRESENT, SM_CYVSCROLL, SM_CXHSCROLL, SM_DEBUG, SM_SWAPBUTTON, SM_RESERVED1, SM_RESERVED2, SM_RESERVED3, SM_RESERVED4, SM_CXMIN, SM_CYMIN, SM_CXSIZE, SM_CYSIZE, SM_CXSIZEFRAME, // = 32, SM_CXFRAME = SM_CXSIZEFRAME, SM_CYSIZEFRAME, // = 33 SM_CYFRAME = SM_CYSIZEFRAME, SM_CXMINTRACK, SM_CYMINTRACK, SM_CXDOUBLECLK, SM_CYDOUBLECLK, SM_CXICONSPACING, SM_CYICONSPACING, SM_MENUDROPALIGNMENT, SM_PENWINDOWS, SM_DBCSENABLED, SM_CMOUSEBUTTONS, SM_SECURE, SM_CXEDGE, SM_CYEDGE, SM_CXMINSPACING, SM_CYMINSPACING, SM_CXSMICON, SM_CYSMICON, SM_CYSMCAPTION, SM_CXSMSIZE, SM_CYSMSIZE, SM_CXMENUSIZE, SM_CYMENUSIZE, SM_ARRANGE, SM_CXMINIMIZED, SM_CYMINIMIZED, SM_CXMAXTRACK, SM_CYMAXTRACK, SM_CXMAXIMIZED, SM_CYMAXIMIZED, SM_NETWORK, // = 63 SM_CLEANBOOT = 67, SM_CXDRAG, SM_CYDRAG, SM_SHOWSOUNDS, SM_CXMENUCHECK, SM_CYMENUCHECK, SM_SLOWMACHINE, SM_MIDEASTENABLED, // The next values aren't supported in Win95. SM_MOUSEWHEELPRESENT, SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN, SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN, SM_CMONITORS, SM_SAMEDISPLAYFORMAT, SM_IMMENABLED, SM_CXFOCUSBORDER, SM_CYFOCUSBORDER, // = 84 SM_TABLETPC = 86, SM_MEDIACENTER = 87, SM_REMOTESESSION = 0x1000, // These are only for WinXP and later SM_SHUTTINGDOWN = 0x2000, SM_REMOTECONTROL = 0x2001 } const ARW_BOTTOMLEFT=0; const ARW_BOTTOMRIGHT=1; const ARW_HIDE=8; const ARW_TOPLEFT=2; const ARW_TOPRIGHT=3; const ARW_DOWN=4; const ARW_LEFT=0; const ARW_RIGHT=0; const ARW_UP=4; const UOI_FLAGS=1; const UOI_NAME=2; const UOI_TYPE=3; const UOI_USER_SID=4; // For the fuLoad parameter of LoadImage() enum : UINT { LR_DEFAULTCOLOR = 0, LR_MONOCHROME = 1, LR_COLOR = 2, LR_COPYRETURNORG = 4, LR_COPYDELETEORG = 8, LR_LOADFROMFILE = 16, LR_LOADTRANSPARENT = 32, LR_DEFAULTSIZE = 64, LR_LOADREALSIZE = 128, LR_LOADMAP3DCOLORS = 4096, LR_CREATEDIBSECTION = 8192, LR_COPYFROMRESOURCE = 16384, LR_SHARED = 32768 } const KEYEVENTF_EXTENDEDKEY = 0x00000001; const KEYEVENTF_KEYUP = 00000002; static if (_WIN32_WINNT >= 0x500) { const KEYEVENTF_UNICODE = 0x00000004; const KEYEVENTF_SCANCODE = 0x00000008; } const OBM_BTNCORNERS = 32758; const OBM_BTSIZE = 32761; const OBM_CHECK = 32760; const OBM_CHECKBOXES = 32759; const OBM_CLOSE = 32754; const OBM_COMBO = 32738; const OBM_DNARROW = 32752; const OBM_DNARROWD = 32742; const OBM_DNARROWI = 32736; const OBM_LFARROW = 32750; const OBM_LFARROWI = 32734; const OBM_LFARROWD = 32740; const OBM_MNARROW = 32739; const OBM_OLD_CLOSE = 32767; const OBM_OLD_DNARROW = 32764; const OBM_OLD_LFARROW = 32762; const OBM_OLD_REDUCE = 32757; const OBM_OLD_RESTORE = 32755; const OBM_OLD_RGARROW = 32763; const OBM_OLD_UPARROW = 32765; const OBM_OLD_ZOOM = 32756; const OBM_REDUCE = 32749; const OBM_REDUCED = 32746; const OBM_RESTORE = 32747; const OBM_RESTORED = 32744; const OBM_RGARROW = 32751; const OBM_RGARROWD = 32741; const OBM_RGARROWI = 32735; const OBM_SIZE = 32766; const OBM_UPARROW = 32753; const OBM_UPARROWD = 32743; const OBM_UPARROWI = 32737; const OBM_ZOOM = 32748; const OBM_ZOOMD = 32745; const OCR_NORMAL = 32512; const OCR_IBEAM = 32513; const OCR_WAIT = 32514; const OCR_CROSS = 32515; const OCR_UP = 32516; const OCR_SIZE = 32640; const OCR_ICON = 32641; const OCR_SIZENWSE = 32642; const OCR_SIZENESW = 32643; const OCR_SIZEWE = 32644; const OCR_SIZENS = 32645; const OCR_SIZEALL = 32646; const OCR_NO = 32648; const OCR_APPSTARTING = 32650; const OIC_SAMPLE = 32512; const OIC_HAND = 32513; const OIC_QUES = 32514; const OIC_BANG = 32515; const OIC_NOTE = 32516; const OIC_WINLOGO = 32517; const OIC_WARNING = OIC_BANG; const OIC_ERROR = OIC_HAND; const OIC_INFORMATION = OIC_NOTE; const HELPINFO_MENUITEM = 2; const HELPINFO_WINDOW = 1; const MSGF_DIALOGBOX = 0; const MSGF_MESSAGEBOX = 1; const MSGF_MENU = 2; const MSGF_MOVE = 3; const MSGF_SIZE = 4; const MSGF_SCROLLBAR = 5; const MSGF_NEXTWINDOW = 6; const MSGF_MAINLOOP = 8; const MSGF_USER = 4096; const MOUSEEVENTF_MOVE = 1; const MOUSEEVENTF_LEFTDOWN = 2; const MOUSEEVENTF_LEFTUP = 4; const MOUSEEVENTF_RIGHTDOWN = 8; const MOUSEEVENTF_RIGHTUP = 16; const MOUSEEVENTF_MIDDLEDOWN = 32; const MOUSEEVENTF_MIDDLEUP = 64; const MOUSEEVENTF_WHEEL = 0x0800; const MOUSEEVENTF_ABSOLUTE = 32768; const PM_NOREMOVE = 0; const PM_REMOVE = 1; const PM_NOYIELD = 2; static if (WINVER >= 0x500) { const PM_QS_INPUT = (QS_INPUT << 16); const PM_QS_POSTMESSAGE = ((QS_POSTMESSAGE|QS_HOTKEY|QS_TIMER) << 16); const PM_QS_PAINT = (QS_PAINT << 16); const PM_QS_SENDMESSAGE = (QS_SENDMESSAGE << 16); } const HWND HWND_BROADCAST = cast(HWND)0xffff, HWND_BOTTOM = cast(HWND)1, HWND_NOTOPMOST = cast(HWND)(-2), HWND_TOP = cast(HWND)0, HWND_TOPMOST = cast(HWND)(-1), HWND_DESKTOP = cast(HWND)0, HWND_MESSAGE = cast(HWND)(-3);// w2k const RDW_INVALIDATE = 1; const RDW_INTERNALPAINT = 2; const RDW_ERASE = 4; const RDW_VALIDATE = 8; const RDW_NOINTERNALPAINT = 16; const RDW_NOERASE = 32; const RDW_NOCHILDREN = 64; const RDW_ALLCHILDREN = 128; const RDW_UPDATENOW = 256; const RDW_ERASENOW = 512; const RDW_FRAME = 1024; const RDW_NOFRAME = 2048; const SMTO_NORMAL = 0; const SMTO_BLOCK = 1; const SMTO_ABORTIFHUNG = 2; const SIF_ALL = 23; const SIF_PAGE = 2; const SIF_POS = 4; const SIF_RANGE = 1; const SIF_DISABLENOSCROLL = 8; const SIF_TRACKPOS = 16; const SWP_DRAWFRAME = 32; const SWP_FRAMECHANGED = 32; const SWP_HIDEWINDOW = 128; const SWP_NOACTIVATE = 16; const SWP_NOCOPYBITS = 256; const SWP_NOMOVE = 2; const SWP_NOSIZE = 1; const SWP_NOREDRAW = 8; const SWP_NOZORDER = 4; const SWP_SHOWWINDOW = 64; const SWP_NOOWNERZORDER = 512; const SWP_NOREPOSITION = 512; const SWP_NOSENDCHANGING = 1024; const SWP_DEFERERASE = 8192; const SWP_ASYNCWINDOWPOS = 16384; const HSHELL_ACTIVATESHELLWINDOW = 3; const HSHELL_GETMINRECT = 5; const HSHELL_LANGUAGE = 8; const HSHELL_REDRAW = 6; const HSHELL_TASKMAN = 7; const HSHELL_WINDOWACTIVATED = 4; const HSHELL_WINDOWCREATED = 1; const HSHELL_WINDOWDESTROYED = 2; const HSHELL_FLASH = 32774; static if (WINVER >= 0x500) { const SPI_SETFOREGROUNDLOCKTIMEOUT=0x2001; const SPI_GETFOREGROUNDLOCKTIMEOUT=0x2000; } const SPI_GETACCESSTIMEOUT=60; const SPI_GETACTIVEWNDTRKTIMEOUT=8194; const SPI_GETANIMATION=72; const SPI_GETBEEP=1; const SPI_GETBORDER=5; const SPI_GETDEFAULTINPUTLANG=89; const SPI_GETDRAGFULLWINDOWS=38; const SPI_GETFASTTASKSWITCH=35; const SPI_GETFILTERKEYS=50; const SPI_GETFONTSMOOTHING=74; const SPI_GETGRIDGRANULARITY=18; const SPI_GETHIGHCONTRAST=66; const SPI_GETICONMETRICS=45; const SPI_GETICONTITLELOGFONT=31; const SPI_GETICONTITLEWRAP=25; const SPI_GETKEYBOARDDELAY=22; const SPI_GETKEYBOARDPREF=68; const SPI_GETKEYBOARDSPEED=10; const SPI_GETLOWPOWERACTIVE=83; const SPI_GETLOWPOWERTIMEOUT=79; const SPI_GETMENUDROPALIGNMENT=27; const SPI_GETMINIMIZEDMETRICS=43; const SPI_GETMOUSE=3; const SPI_GETMOUSEKEYS=54; const SPI_GETMOUSETRAILS=94; const SPI_GETNONCLIENTMETRICS=41; const SPI_GETPOWEROFFACTIVE=84; const SPI_GETPOWEROFFTIMEOUT=80; const SPI_GETSCREENREADER=70; const SPI_GETSCREENSAVEACTIVE=16; const SPI_GETSCREENSAVETIMEOUT=14; const SPI_GETSERIALKEYS=62; const SPI_GETSHOWSOUNDS=56; const SPI_GETSOUNDSENTRY=64; const SPI_GETSTICKYKEYS=58; const SPI_GETTOGGLEKEYS=52; const SPI_GETWHEELSCROLLLINES=104; const SPI_GETWINDOWSEXTENSION=92; const SPI_GETWORKAREA=48; const SPI_ICONHORIZONTALSPACING=13; const SPI_ICONVERTICALSPACING=24; const SPI_LANGDRIVER=12; const SPI_SCREENSAVERRUNNING=97; const SPI_SETACCESSTIMEOUT=61; const SPI_SETACTIVEWNDTRKTIMEOUT=8195; const SPI_SETANIMATION=73; const SPI_SETBEEP=2; const SPI_SETBORDER=6; const SPI_SETDEFAULTINPUTLANG=90; const SPI_SETDESKPATTERN=21; const SPI_SETDESKWALLPAPER=20; const SPI_SETDOUBLECLICKTIME=32; const SPI_SETDOUBLECLKHEIGHT=30; const SPI_SETDOUBLECLKWIDTH=29; const SPI_SETDRAGFULLWINDOWS=37; const SPI_SETDRAGHEIGHT=77; const SPI_SETDRAGWIDTH=76; const SPI_SETFASTTASKSWITCH=36; const SPI_SETFILTERKEYS=51; const SPI_SETFONTSMOOTHING=75; const SPI_SETGRIDGRANULARITY=19; const SPI_SETHANDHELD=78; const SPI_SETHIGHCONTRAST=67; const SPI_SETICONMETRICS=46; const SPI_SETICONTITLELOGFONT=34; const SPI_SETICONTITLEWRAP=26; const SPI_SETKEYBOARDDELAY=23; const SPI_SETKEYBOARDPREF=69; const SPI_SETKEYBOARDSPEED=11; const SPI_SETLANGTOGGLE=91; const SPI_SETLOWPOWERACTIVE=85; const SPI_SETLOWPOWERTIMEOUT=81; const SPI_SETMENUDROPALIGNMENT=28; const SPI_SETMINIMIZEDMETRICS=44; const SPI_SETMOUSE=4; const SPI_SETMOUSEBUTTONSWAP=33; const SPI_SETMOUSEKEYS=55; const SPI_SETMOUSETRAILS=93; const SPI_SETNONCLIENTMETRICS=42; const SPI_SETPENWINDOWS=49; const SPI_SETPOWEROFFACTIVE=86; const SPI_SETPOWEROFFTIMEOUT=82; const SPI_SETSCREENREADER=71; const SPI_SETSCREENSAVEACTIVE=17; const SPI_SETSCREENSAVERRUNNING=97; const SPI_SETSCREENSAVETIMEOUT=15; const SPI_SETSERIALKEYS=63; const SPI_SETSHOWSOUNDS=57; const SPI_SETSOUNDSENTRY=65; const SPI_SETSTICKYKEYS=59; const SPI_SETTOGGLEKEYS=53; const SPI_SETWHEELSCROLLLINES=105; const SPI_SETWORKAREA=47; static if (WINVER >= 0x500) { const SPI_GETDESKWALLPAPER=115; const SPI_GETMOUSESPEED=112; const SPI_GETSCREENSAVERRUNNING=114; const SPI_GETACTIVEWINDOWTRACKING=0x1000; const SPI_GETACTIVEWNDTRKZORDER=0x100C; const SPI_GETCOMBOBOXANIMATION=0x1004; const SPI_GETCURSORSHADOW=0x101A; const SPI_GETGRADIENTCAPTIONS=0x1008; const SPI_GETHOTTRACKING=0x100E; const SPI_GETKEYBOARDCUES=0x100A; const SPI_GETLISTBOXSMOOTHSCROLLING=0x1006; const SPI_GETMENUANIMATION=0x1002; const SPI_GETMENUFADE=0x1012; const SPI_GETMENUUNDERLINES=0x100A; const SPI_GETSELECTIONFADE=0x1014; const SPI_GETTOOLTIPANIMATION=0x1016; const SPI_GETTOOLTIPFADE=0x1018; const SPI_SETACTIVEWINDOWTRACKING=0x1001; const SPI_SETACTIVEWNDTRKZORDER=0x100D; const SPI_SETCOMBOBOXANIMATION=0x1005; const SPI_SETCURSORSHADOW=0x101B; const SPI_SETGRADIENTCAPTIONS=0x1009; const SPI_SETHOTTRACKING=0x100F; const SPI_SETKEYBOARDCUES=0x100B; const SPI_SETLISTBOXSMOOTHSCROLLING=0x1007; const SPI_SETMENUANIMATION=0x1003; const SPI_SETMENUFADE=0x1013; const SPI_SETMENUUNDERLINES=0x100B; const SPI_SETMOUSESPEED=113; const SPI_SETSELECTIONFADE=0x1015; const SPI_SETTOOLTIPANIMATION=0x1017; const SPI_SETTOOLTIPFADE=0x1019; } const SPIF_UPDATEINIFILE=1; const SPIF_SENDWININICHANGE=2; const SPIF_SENDCHANGE=2; // [Redefined] ATF_ONOFFFEEDBACK=2 // [Redefined] ATF_TIMEOUTON=1 const WM_APP=32768; const WM_ACTIVATE=6; const WM_ACTIVATEAPP=28; // FIXME/CHECK: Are WM_AFX {FIRST, LAST} valid for WINVER < 0x400? const WM_AFXFIRST=864; const WM_AFXLAST=895; const WM_ASKCBFORMATNAME=780; const WM_CANCELJOURNAL=75; const WM_CANCELMODE=31; const WM_CAPTURECHANGED=533; const WM_CHANGECBCHAIN=781; const WM_CHAR=258; const WM_CHARTOITEM=47; const WM_CHILDACTIVATE=34; const WM_CLEAR=771; const WM_CLOSE=16; const WM_COMMAND=273; const WM_COMMNOTIFY=68; // obsolete const WM_COMPACTING=65; const WM_COMPAREITEM=57; const WM_CONTEXTMENU=123; const WM_COPY=769; const WM_COPYDATA=74; const WM_CREATE=1; const WM_CTLCOLORBTN=309; const WM_CTLCOLORDLG=310; const WM_CTLCOLOREDIT=307; const WM_CTLCOLORLISTBOX=308; const WM_CTLCOLORMSGBOX=306; const WM_CTLCOLORSCROLLBAR=311; const WM_CTLCOLORSTATIC=312; const WM_CUT=768; const WM_DEADCHAR=259; const WM_DELETEITEM=45; const WM_DESTROY=2; const WM_DESTROYCLIPBOARD=775; const WM_DEVICECHANGE=537; const WM_DEVMODECHANGE=27; const WM_DISPLAYCHANGE=126; const WM_DRAWCLIPBOARD=776; const WM_DRAWITEM=43; const WM_DROPFILES=563; const WM_ENABLE=10; const WM_ENDSESSION=22; const WM_ENTERIDLE=289; const WM_ENTERMENULOOP=529; const WM_ENTERSIZEMOVE=561; const WM_ERASEBKGND=20; const WM_EXITMENULOOP=530; const WM_EXITSIZEMOVE=562; const WM_FONTCHANGE=29; const WM_GETDLGCODE=135; const WM_GETFONT=49; const WM_GETHOTKEY=51; const WM_GETICON=127; const WM_GETMINMAXINFO=36; const WM_GETTEXT=13; const WM_GETTEXTLENGTH=14; const WM_HANDHELDFIRST=856; const WM_HANDHELDLAST=863; const WM_HELP=83; const WM_HOTKEY=786; const WM_HSCROLL=276; const WM_HSCROLLCLIPBOARD=782; const WM_ICONERASEBKGND=39; const WM_INITDIALOG=272; const WM_INITMENU=278; const WM_INITMENUPOPUP=279; const WM_INPUTLANGCHANGE=81; const WM_INPUTLANGCHANGEREQUEST=80; const WM_KEYDOWN=256; const WM_KEYUP=257; const WM_KILLFOCUS=8; const WM_MDIACTIVATE=546; const WM_MDICASCADE=551; const WM_MDICREATE=544; const WM_MDIDESTROY=545; const WM_MDIGETACTIVE=553; const WM_MDIICONARRANGE=552; const WM_MDIMAXIMIZE=549; const WM_MDINEXT=548; const WM_MDIREFRESHMENU=564; const WM_MDIRESTORE=547; const WM_MDISETMENU=560; const WM_MDITILE=550; const WM_MEASUREITEM=44; static if (WINVER >= 0x500) { const WM_UNINITMENUPOPUP=0x0125; const WM_MENURBUTTONUP=290; const WM_MENUCOMMAND=0x0126; const WM_MENUGETOBJECT=0x0124; const WM_MENUDRAG=0x0123; } static if (_WIN32_WINNT >= 0x500) { enum { WM_CHANGEUISTATE = 0x0127, WM_UPDATEUISTATE = 0x0128, WM_QUERYUISTATE = 0x0129 } // LOWORD(wParam) values in WM_*UISTATE* enum { UIS_SET = 1, UIS_CLEAR = 2, UIS_INITIALIZE = 3 } // HIWORD(wParam) values in WM_*UISTATE* enum { UISF_HIDEFOCUS = 0x1, UISF_HIDEACCEL = 0x2 } } static if (_WIN32_WINNT >= 0x501) { // HIWORD(wParam) values in WM_*UISTATE* enum { UISF_ACTIVE = 0x4 } } const WM_MENUCHAR=288; const WM_MENUSELECT=287; const WM_MOVE=3; const WM_MOVING=534; const WM_NCACTIVATE=134; const WM_NCCALCSIZE=131; const WM_NCCREATE=129; const WM_NCDESTROY=130; const WM_NCHITTEST=132; const WM_NCLBUTTONDBLCLK=163; const WM_NCLBUTTONDOWN=161; const WM_NCLBUTTONUP=162; const WM_NCMBUTTONDBLCLK=169; const WM_NCMBUTTONDOWN=167; const WM_NCMBUTTONUP=168; static if (_WIN32_WINNT >= 0x500) { const WM_NCXBUTTONDOWN=171; const WM_NCXBUTTONUP=172; const WM_NCXBUTTONDBLCLK=173; const WM_NCMOUSEHOVER=0x02A0; const WM_NCMOUSELEAVE=0x02A2; } const WM_NCMOUSEMOVE=160; const WM_NCPAINT=133; const WM_NCRBUTTONDBLCLK=166; const WM_NCRBUTTONDOWN=164; const WM_NCRBUTTONUP=165; const WM_NEXTDLGCTL=40; const WM_NEXTMENU=531; const WM_NOTIFY=78; const WM_NOTIFYFORMAT=85; const WM_NULL=0; const WM_PAINT=15; const WM_PAINTCLIPBOARD=777; const WM_PAINTICON=38; const WM_PALETTECHANGED=785; const WM_PALETTEISCHANGING=784; const WM_PARENTNOTIFY=528; const WM_PASTE=770; const WM_PENWINFIRST=896; const WM_PENWINLAST=911; const WM_POWER=72; const WM_POWERBROADCAST=536; const WM_PRINT=791; const WM_PRINTCLIENT=792; const WM_QUERYDRAGICON=55; const WM_QUERYENDSESSION=17; const WM_QUERYNEWPALETTE=783; const WM_QUERYOPEN=19; const WM_QUEUESYNC=35; const WM_QUIT=18; const WM_RENDERALLFORMATS=774; const WM_RENDERFORMAT=773; const WM_SETCURSOR=32; const WM_SETFOCUS=7; const WM_SETFONT=48; const WM_SETHOTKEY=50; const WM_SETICON=128; const WM_SETREDRAW=11; const WM_SETTEXT=12; const WM_SETTINGCHANGE=26; const WM_SHOWWINDOW=24; const WM_SIZE=5; const WM_SIZECLIPBOARD=779; const WM_SIZING=532; const WM_SPOOLERSTATUS=42; const WM_STYLECHANGED=125; const WM_STYLECHANGING=124; const WM_SYSCHAR=262; const WM_SYSCOLORCHANGE=21; const WM_SYSCOMMAND=274; const WM_SYSDEADCHAR=263; const WM_SYSKEYDOWN=260; const WM_SYSKEYUP=261; const WM_TCARD=82; const WM_THEMECHANGED=794; const WM_TIMECHANGE=30; const WM_TIMER=275; const WM_UNDO=772; const WM_USER=1024; const WM_USERCHANGED=84; const WM_VKEYTOITEM=46; const WM_VSCROLL=277; const WM_VSCROLLCLIPBOARD=778; const WM_WINDOWPOSCHANGED=71; const WM_WINDOWPOSCHANGING=70; const WM_WININICHANGE=26; const WM_INPUT=255; const WM_KEYFIRST=256; const WM_KEYLAST=264; const WM_SYNCPAINT=136; const WM_MOUSEACTIVATE=33; const WM_MOUSEMOVE=512; const WM_LBUTTONDOWN=513; const WM_LBUTTONUP=514; const WM_LBUTTONDBLCLK=515; const WM_RBUTTONDOWN=516; const WM_RBUTTONUP=517; const WM_RBUTTONDBLCLK=518; const WM_MBUTTONDOWN=519; const WM_MBUTTONUP=520; const WM_MBUTTONDBLCLK=521; const WM_MOUSEWHEEL=522; const WM_MOUSEFIRST=512; static if (_WIN32_WINNT >= 0x500) { const WM_XBUTTONDOWN=523; const WM_XBUTTONUP=524; const WM_XBUTTONDBLCLK=525; const WM_MOUSELAST=525; } else { const WM_MOUSELAST=522; } const WM_MOUSEHOVER=0x2A1; const WM_MOUSELEAVE=0x2A3; static if (_WIN32_WINNT >= 0x400) { const WHEEL_DELTA=120; SHORT GET_WHEEL_DELTA_WPARAM(WPARAM wparam) { return cast(SHORT) HIWORD(wparam); } const WHEEL_PAGESCROLL = uint.max; } const BM_CLICK=245; const BM_GETCHECK=240; const BM_GETIMAGE=246; const BM_GETSTATE=242; const BM_SETCHECK=241; const BM_SETIMAGE=247; const BM_SETSTATE=243; const BM_SETSTYLE=244; const BN_CLICKED=0; const BN_DBLCLK=5; const BN_DISABLE=4; const BN_DOUBLECLICKED=5; const BN_HILITE=2; const BN_KILLFOCUS=7; const BN_PAINT=1; const BN_PUSHED=2; const BN_SETFOCUS=6; const BN_UNHILITE=3; const BN_UNPUSHED=3; const CB_ADDSTRING=323; const CB_DELETESTRING=324; const CB_DIR=325; const CB_FINDSTRING=332; const CB_FINDSTRINGEXACT=344; const CB_GETCOUNT=326; const CB_GETCURSEL=327; const CB_GETDROPPEDCONTROLRECT=338; const CB_GETDROPPEDSTATE=343; const CB_GETDROPPEDWIDTH=351; const CB_GETEDITSEL=320; const CB_GETEXTENDEDUI=342; const CB_GETHORIZONTALEXTENT=349; const CB_GETITEMDATA=336; const CB_GETITEMHEIGHT=340; const CB_GETLBTEXT=328; const CB_GETLBTEXTLEN=329; const CB_GETLOCALE=346; const CB_GETTOPINDEX=347; const CB_INITSTORAGE=353; const CB_INSERTSTRING=330; const CB_LIMITTEXT=321; const CB_RESETCONTENT=331; const CB_SELECTSTRING=333; const CB_SETCURSEL=334; const CB_SETDROPPEDWIDTH=352; const CB_SETEDITSEL=322; const CB_SETEXTENDEDUI=341; const CB_SETHORIZONTALEXTENT=350; const CB_SETITEMDATA=337; const CB_SETITEMHEIGHT=339; const CB_SETLOCALE=345; const CB_SETTOPINDEX=348; const CB_SHOWDROPDOWN=335; const CBN_CLOSEUP=8; const CBN_DBLCLK=2; const CBN_DROPDOWN=7; const CBN_EDITCHANGE=5; const CBN_EDITUPDATE=6; const CBN_ERRSPACE=(-1); const CBN_KILLFOCUS=4; const CBN_SELCHANGE=1; const CBN_SELENDCANCEL=10; const CBN_SELENDOK=9; const CBN_SETFOCUS=3; const EM_CANUNDO=198; const EM_CHARFROMPOS=215; const EM_EMPTYUNDOBUFFER=205; const EM_FMTLINES=200; const EM_GETFIRSTVISIBLELINE=206; const EM_GETHANDLE=189; const EM_GETLIMITTEXT=213; const EM_GETLINE=196; const EM_GETLINECOUNT=186; const EM_GETMARGINS=212; const EM_GETMODIFY=184; const EM_GETPASSWORDCHAR=210; const EM_GETRECT=178; const EM_GETSEL=176; const EM_GETTHUMB=190; const EM_GETWORDBREAKPROC=209; const EM_LIMITTEXT=197; const EM_LINEFROMCHAR=201; const EM_LINEINDEX=187; const EM_LINELENGTH=193; const EM_LINESCROLL=182; const EM_POSFROMCHAR=214; const EM_REPLACESEL=194; const EM_SCROLL=181; const EM_SCROLLCARET=183; const EM_SETHANDLE=188; const EM_SETLIMITTEXT=197; const EM_SETMARGINS=211; const EM_SETMODIFY=185; const EM_SETPASSWORDCHAR=204; const EM_SETREADONLY=207; const EM_SETRECT=179; const EM_SETRECTNP=180; const EM_SETSEL=177; const EM_SETTABSTOPS=203; const EM_SETWORDBREAKPROC=208; const EM_UNDO=199; const EN_CHANGE=768; const EN_ERRSPACE=1280; const EN_HSCROLL=1537; const EN_KILLFOCUS=512; const EN_MAXTEXT=1281; const EN_SETFOCUS=256; const EN_UPDATE=1024; const EN_VSCROLL=1538; const LB_ADDFILE=406; const LB_ADDSTRING=384; const LB_DELETESTRING=386; const LB_DIR=397; const LB_FINDSTRING=399; const LB_FINDSTRINGEXACT=418; const LB_GETANCHORINDEX=413; const LB_GETCARETINDEX=415; const LB_GETCOUNT=395; const LB_GETCURSEL=392; const LB_GETHORIZONTALEXTENT=403; const LB_GETITEMDATA=409; const LB_GETITEMHEIGHT=417; const LB_GETITEMRECT=408; const LB_GETLOCALE=422; const LB_GETSEL=391; const LB_GETSELCOUNT=400; const LB_GETSELITEMS=401; const LB_GETTEXT=393; const LB_GETTEXTLEN=394; const LB_GETTOPINDEX=398; const LB_INITSTORAGE=424; const LB_INSERTSTRING=385; const LB_ITEMFROMPOINT=425; const LB_RESETCONTENT=388; const LB_SELECTSTRING=396; const LB_SELITEMRANGE=411; const LB_SELITEMRANGEEX=387; const LB_SETANCHORINDEX=412; const LB_SETCARETINDEX=414; const LB_SETCOLUMNWIDTH=405; const LB_SETCOUNT=423; const LB_SETCURSEL=390; const LB_SETHORIZONTALEXTENT=404; const LB_SETITEMDATA=410; const LB_SETITEMHEIGHT=416; const LB_SETLOCALE=421; const LB_SETSEL=389; const LB_SETTABSTOPS=402; const LB_SETTOPINDEX=407; const LBN_DBLCLK=2; const LBN_ERRSPACE=-2; const LBN_KILLFOCUS=5; const LBN_SELCANCEL=3; const LBN_SELCHANGE=1; const LBN_SETFOCUS=4; const SBM_ENABLE_ARROWS=228; const SBM_GETPOS=225; const SBM_GETRANGE=227; const SBM_GETSCROLLINFO=234; const SBM_SETPOS=224; const SBM_SETRANGE=226; const SBM_SETRANGEREDRAW=230; const SBM_SETSCROLLINFO=233; const STM_GETICON=369; const STM_GETIMAGE=371; const STM_SETICON=368; const STM_SETIMAGE=370; const STN_CLICKED=0; const STN_DBLCLK=1; const STN_DISABLE=3; const STN_ENABLE=2; const DM_GETDEFID = WM_USER; const DM_SETDEFID = WM_USER+1; const DM_REPOSITION = WM_USER+2; const PSM_PAGEINFO = WM_USER+100; const PSM_SHEETINFO = WM_USER+101; const PSI_SETACTIVE=1; const PSI_KILLACTIVE=2; const PSI_APPLY=3; const PSI_RESET=4; const PSI_HASHELP=5; const PSI_HELP=6; const PSI_CHANGED=1; const PSI_GUISTART=2; const PSI_REBOOT=3; const PSI_GETSIBLINGS=4; const DCX_WINDOW=1; const DCX_CACHE=2; const DCX_PARENTCLIP=32; const DCX_CLIPSIBLINGS=16; const DCX_CLIPCHILDREN=8; const DCX_NORESETATTRS=4; const DCX_INTERSECTUPDATE=0x200; const DCX_LOCKWINDOWUPDATE=0x400; const DCX_EXCLUDERGN=64; const DCX_INTERSECTRGN=128; const DCX_VALIDATE=0x200000; const GMDI_GOINTOPOPUPS=2; const GMDI_USEDISABLED=1; const FKF_AVAILABLE=2; const FKF_CLICKON=64; const FKF_FILTERKEYSON=1; const FKF_HOTKEYACTIVE=4; const FKF_HOTKEYSOUND=16; const FKF_CONFIRMHOTKEY=8; const FKF_INDICATOR=32; const HCF_HIGHCONTRASTON=1; const HCF_AVAILABLE=2; const HCF_HOTKEYACTIVE=4; const HCF_CONFIRMHOTKEY=8; const HCF_HOTKEYSOUND=16; const HCF_INDICATOR=32; const HCF_HOTKEYAVAILABLE=64; const MKF_AVAILABLE=2; const MKF_CONFIRMHOTKEY=8; const MKF_HOTKEYACTIVE=4; const MKF_HOTKEYSOUND=16; const MKF_INDICATOR=32; const MKF_MOUSEKEYSON=1; const MKF_MODIFIERS=64; const MKF_REPLACENUMBERS=128; const SERKF_ACTIVE=8; // May be obsolete. Not in recent MS docs. const SERKF_AVAILABLE=2; const SERKF_INDICATOR=4; const SERKF_SERIALKEYSON=1; const SSF_AVAILABLE=2; const SSF_SOUNDSENTRYON=1; const SSTF_BORDER=2; const SSTF_CHARS=1; const SSTF_DISPLAY=3; const SSTF_NONE=0; const SSGF_DISPLAY=3; const SSGF_NONE=0; const SSWF_CUSTOM=4; const SSWF_DISPLAY=3; const SSWF_NONE=0; const SSWF_TITLE=1; const SSWF_WINDOW=2; const SKF_AUDIBLEFEEDBACK=64; const SKF_AVAILABLE=2; const SKF_CONFIRMHOTKEY=8; const SKF_HOTKEYACTIVE=4; const SKF_HOTKEYSOUND=16; const SKF_INDICATOR=32; const SKF_STICKYKEYSON=1; const SKF_TRISTATE=128; const SKF_TWOKEYSOFF=256; const TKF_AVAILABLE=2; const TKF_CONFIRMHOTKEY=8; const TKF_HOTKEYACTIVE=4; const TKF_HOTKEYSOUND=16; const TKF_TOGGLEKEYSON=1; const MDITILE_SKIPDISABLED=2; const MDITILE_HORIZONTAL=1; const MDITILE_VERTICAL=0; const VK_LBUTTON=1; const VK_RBUTTON=2; const VK_CANCEL=3; const VK_MBUTTON=4; static if (_WIN32_WINNT >= 0x500) { const VK_XBUTTON1=5; const VK_XBUTTON2=6; } const VK_BACK=8; const VK_TAB=9; const VK_CLEAR=12; const VK_RETURN=13; const VK_SHIFT=16; const VK_CONTROL=17; const VK_MENU=18; const VK_PAUSE=19; const VK_CAPITAL=20; const VK_KANA=0x15; const VK_HANGEUL=0x15; const VK_HANGUL=0x15; const VK_JUNJA=0x17; const VK_FINAL=0x18; const VK_HANJA=0x19; const VK_KANJI=0x19; const VK_ESCAPE=0x1B; const VK_CONVERT=0x1C; const VK_NONCONVERT=0x1D; const VK_ACCEPT=0x1E; const VK_MODECHANGE=0x1F; const VK_SPACE=32; const VK_PRIOR=33; const VK_NEXT=34; const VK_END=35; const VK_HOME=36; const VK_LEFT=37; const VK_UP=38; const VK_RIGHT=39; const VK_DOWN=40; const VK_SELECT=41; const VK_PRINT=42; const VK_EXECUTE=43; const VK_SNAPSHOT=44; const VK_INSERT=45; const VK_DELETE=46; const VK_HELP=47; const VK_LWIN=0x5B; const VK_RWIN=0x5C; const VK_APPS=0x5D; const VK_SLEEP=0x5F; const VK_NUMPAD0=0x60; const VK_NUMPAD1=0x61; const VK_NUMPAD2=0x62; const VK_NUMPAD3=0x63; const VK_NUMPAD4=0x64; const VK_NUMPAD5=0x65; const VK_NUMPAD6=0x66; const VK_NUMPAD7=0x67; const VK_NUMPAD8=0x68; const VK_NUMPAD9=0x69; const VK_MULTIPLY=0x6A; const VK_ADD=0x6B; const VK_SEPARATOR=0x6C; const VK_SUBTRACT=0x6D; const VK_DECIMAL=0x6E; const VK_DIVIDE=0x6F; const VK_F1=0x70; const VK_F2=0x71; const VK_F3=0x72; const VK_F4=0x73; const VK_F5=0x74; const VK_F6=0x75; const VK_F7=0x76; const VK_F8=0x77; const VK_F9=0x78; const VK_F10=0x79; const VK_F11=0x7A; const VK_F12=0x7B; const VK_F13=0x7C; const VK_F14=0x7D; const VK_F15=0x7E; const VK_F16=0x7F; const VK_F17=0x80; const VK_F18=0x81; const VK_F19=0x82; const VK_F20=0x83; const VK_F21=0x84; const VK_F22=0x85; const VK_F23=0x86; const VK_F24=0x87; const VK_NUMLOCK=0x90; const VK_SCROLL=0x91; const VK_LSHIFT=0xA0; const VK_RSHIFT=0xA1; const VK_LCONTROL=0xA2; const VK_RCONTROL=0xA3; const VK_LMENU=0xA4; const VK_RMENU=0xA5; static if (_WIN32_WINNT >= 0x500) { const VK_BROWSER_BACK=0xA6; const VK_BROWSER_FORWARD=0xA7; const VK_BROWSER_REFRESH=0xA8; const VK_BROWSER_STOP=0xA9; const VK_BROWSER_SEARCH=0xAA; const VK_BROWSER_FAVORITES=0xAB; const VK_BROWSER_HOME=0xAC; const VK_VOLUME_MUTE=0xAD; const VK_VOLUME_DOWN=0xAE; const VK_VOLUME_UP=0xAF; const VK_MEDIA_NEXT_TRACK=0xB0; const VK_MEDIA_PREV_TRACK=0xB1; const VK_MEDIA_STOP=0xB2; const VK_MEDIA_PLAY_PAUSE=0xB3; const VK_LAUNCH_MAIL=0xB4; const VK_LAUNCH_MEDIA_SELECT=0xB5; const VK_LAUNCH_APP1=0xB6; const VK_LAUNCH_APP2=0xB7; } const VK_OEM_1=0xBA; static if (_WIN32_WINNT >= 0x500) { const VK_OEM_PLUS=0xBB; const VK_OEM_COMMA=0xBC; const VK_OEM_MINUS=0xBD; const VK_OEM_PERIOD=0xBE; } const VK_OEM_2=0xBF; const VK_OEM_3=0xC0; const VK_OEM_4=0xDB; const VK_OEM_5=0xDC; const VK_OEM_6=0xDD; const VK_OEM_7=0xDE; const VK_OEM_8=0xDF; static if (_WIN32_WINNT >= 0x500) { const VK_OEM_102=0xE2; } const VK_PROCESSKEY=0xE5; static if (_WIN32_WINNT >= 0x500) { const VK_PACKET=0xE7; } const VK_ATTN=0xF6; const VK_CRSEL=0xF7; const VK_EXSEL=0xF8; const VK_EREOF=0xF9; const VK_PLAY=0xFA; const VK_ZOOM=0xFB; const VK_NONAME=0xFC; const VK_PA1=0xFD; const VK_OEM_CLEAR=0xFE; const TME_HOVER=1; const TME_LEAVE=2; const TME_QUERY=0x40000000; const TME_CANCEL=0x80000000; const HOVER_DEFAULT=0xFFFFFFFF; const MK_LBUTTON=1; const MK_RBUTTON=2; const MK_SHIFT=4; const MK_CONTROL=8; const MK_MBUTTON=16; static if (_WIN32_WINNT >= 0x500) { const MK_XBUTTON1=32; const MK_XBUTTON2=64; } const TPM_CENTERALIGN=4; const TPM_LEFTALIGN=0; const TPM_RIGHTALIGN=8; const TPM_LEFTBUTTON=0; const TPM_RIGHTBUTTON=2; const TPM_HORIZONTAL=0; const TPM_VERTICAL=64; const TPM_TOPALIGN=0; const TPM_VCENTERALIGN=16; const TPM_BOTTOMALIGN=32; const TPM_NONOTIFY=128; const TPM_RETURNCMD=256; static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { const TPM_RECURSE=1; } const HELP_COMMAND=0x102; const HELP_CONTENTS=3; const HELP_CONTEXT=1; const HELP_CONTEXTPOPUP=8; const HELP_FORCEFILE=9; const HELP_HELPONHELP=4; const HELP_INDEX=3; const HELP_KEY=0x101; const HELP_MULTIKEY=0x201; const HELP_PARTIALKEY=0x105; const HELP_QUIT=2; const HELP_SETCONTENTS=5; const HELP_SETINDEX=5; const HELP_SETWINPOS=0x203; const HELP_CONTEXTMENU=0xa; const HELP_FINDER=0xb; const HELP_WM_HELP=0xc; const HELP_TCARD=0x8000; const HELP_TCARD_DATA=16; const HELP_TCARD_OTHER_CALLER=0x11; const IDH_NO_HELP=28440; const IDH_MISSING_CONTEXT=28441; const IDH_GENERIC_HELP_BUTTON=28442; const IDH_OK=28443; const IDH_CANCEL=28444; const IDH_HELP=28445; const LB_CTLCODE=0; const LB_OKAY=0; const LB_ERR=-1; const LB_ERRSPACE=-2; const CB_OKAY=0; const CB_ERR=-1; const CB_ERRSPACE=-2; const HIDE_WINDOW=0; const SHOW_OPENWINDOW=1; const SHOW_ICONWINDOW=2; const SHOW_FULLSCREEN=3; const SHOW_OPENNOACTIVATE=4; const SW_PARENTCLOSING=1; const SW_OTHERZOOM=2; const SW_PARENTOPENING=3; const SW_OTHERUNZOOM=4; const KF_EXTENDED=256; const KF_DLGMODE=2048; const KF_MENUMODE=4096; const KF_ALTDOWN=8192; const KF_REPEAT=16384; const KF_UP=32768; const WSF_VISIBLE=1; const PWR_OK=1; const PWR_FAIL=-1; const PWR_SUSPENDREQUEST=1; const PWR_SUSPENDRESUME=2; const PWR_CRITICALRESUME=3; const NFR_ANSI=1; const NFR_UNICODE=2; const NF_QUERY=3; const NF_REQUERY=4; const MENULOOP_WINDOW=0; const MENULOOP_POPUP=1; const WMSZ_LEFT=1; const WMSZ_RIGHT=2; const WMSZ_TOP=3; const WMSZ_TOPLEFT=4; const WMSZ_TOPRIGHT=5; const WMSZ_BOTTOM=6; const WMSZ_BOTTOMLEFT=7; const WMSZ_BOTTOMRIGHT=8; const HTERROR=-2; const HTTRANSPARENT=-1; const HTNOWHERE=0; const HTCLIENT=1; const HTCAPTION=2; const HTSYSMENU=3; const HTGROWBOX=4; const HTSIZE=4; const HTMENU=5; const HTHSCROLL=6; const HTVSCROLL=7; const HTMINBUTTON=8; const HTMAXBUTTON=9; const HTREDUCE=8; const HTZOOM=9; const HTLEFT=10; const HTSIZEFIRST=10; const HTRIGHT=11; const HTTOP=12; const HTTOPLEFT=13; const HTTOPRIGHT=14; const HTBOTTOM=15; const HTBOTTOMLEFT=16; const HTBOTTOMRIGHT=17; const HTSIZELAST=17; const HTBORDER=18; const HTOBJECT=19; const HTCLOSE=20; const HTHELP=21; const MA_ACTIVATE=1; const MA_ACTIVATEANDEAT=2; const MA_NOACTIVATE=3; const MA_NOACTIVATEANDEAT=4; const SIZE_RESTORED=0; const SIZE_MINIMIZED=1; const SIZE_MAXIMIZED=2; const SIZE_MAXSHOW=3; const SIZE_MAXHIDE=4; const SIZENORMAL=0; const SIZEICONIC=1; const SIZEFULLSCREEN=2; const SIZEZOOMSHOW=3; const SIZEZOOMHIDE=4; const WVR_ALIGNTOP=16; const WVR_ALIGNLEFT=32; const WVR_ALIGNBOTTOM=64; const WVR_ALIGNRIGHT=128; const WVR_HREDRAW=256; const WVR_VREDRAW=512; const WVR_REDRAW=(WVR_HREDRAW|WVR_VREDRAW); const WVR_VALIDRECTS=1024; const PRF_CHECKVISIBLE=1; const PRF_NONCLIENT=2; const PRF_CLIENT=4; const PRF_ERASEBKGND=8; const PRF_CHILDREN=16; const PRF_OWNED=32; const IDANI_OPEN=1; const IDANI_CLOSE=2; const IDANI_CAPTION=3; const WPF_RESTORETOMAXIMIZED=2; const WPF_SETMINPOSITION=1; const ODT_MENU=1; const ODT_LISTBOX=2; const ODT_COMBOBOX=3; const ODT_BUTTON=4; const ODT_STATIC=5; const ODA_DRAWENTIRE=1; const ODA_SELECT=2; const ODA_FOCUS=4; const ODS_SELECTED=1; const ODS_GRAYED=2; const ODS_DISABLED=4; const ODS_CHECKED=8; const ODS_FOCUS=16; const ODS_DEFAULT=32; const ODS_COMBOBOXEDIT=4096; const IDHOT_SNAPWINDOW=-1; const IDHOT_SNAPDESKTOP=-2; const DBWF_LPARAMPOINTER=0x8000; const DLGWINDOWEXTRA=30; const MNC_IGNORE=0; const MNC_CLOSE=1; const MNC_EXECUTE=2; const MNC_SELECT=3; const DOF_EXECUTABLE=0x8001; const DOF_DOCUMENT=0x8002; const DOF_DIRECTORY=0x8003; const DOF_MULTIPLE=0x8004; const DOF_PROGMAN=1; const DOF_SHELLDATA=2; const DO_DROPFILE=0x454C4946; const DO_PRINTFILE=0x544E5250; const SW_SCROLLCHILDREN=1; const SW_INVALIDATE=2; const SW_ERASE=4; const SC_SIZE=0xF000; const SC_MOVE=0xF010; const SC_MINIMIZE=0xF020; const SC_ICON=0xf020; const SC_MAXIMIZE=0xF030; const SC_ZOOM=0xF030; const SC_NEXTWINDOW=0xF040; const SC_PREVWINDOW=0xF050; const SC_CLOSE=0xF060; const SC_VSCROLL=0xF070; const SC_HSCROLL=0xF080; const SC_MOUSEMENU=0xF090; const SC_KEYMENU=0xF100; const SC_ARRANGE=0xF110; const SC_RESTORE=0xF120; const SC_TASKLIST=0xF130; const SC_SCREENSAVE=0xF140; const SC_HOTKEY=0xF150; const SC_DEFAULT=0xF160; const SC_MONITORPOWER=0xF170; const SC_CONTEXTHELP=0xF180; const SC_SEPARATOR=0xF00F; const EC_LEFTMARGIN=1; const EC_RIGHTMARGIN=2; const EC_USEFONTINFO=0xffff; const DC_HASDEFID=0x534B; const DLGC_WANTARROWS=1; const DLGC_WANTTAB=2; const DLGC_WANTALLKEYS=4; const DLGC_WANTMESSAGE=4; const DLGC_HASSETSEL=8; const DLGC_DEFPUSHBUTTON=16; const DLGC_UNDEFPUSHBUTTON=32; const DLGC_RADIOBUTTON=64; const DLGC_WANTCHARS=128; const DLGC_STATIC=256; const DLGC_BUTTON=0x2000; const WA_INACTIVE=0; const WA_ACTIVE=1; const WA_CLICKACTIVE=2; const ICON_SMALL=0; const ICON_BIG=1; static if (_WIN32_WINNT >= 0x501) { const ICON_SMALL2=2; } const HBITMAP HBMMENU_CALLBACK = cast(HBITMAP)-1, HBMMENU_SYSTEM = cast(HBITMAP)1, HBMMENU_MBAR_RESTORE = cast(HBITMAP)2, HBMMENU_MBAR_MINIMIZE = cast(HBITMAP)3, HBMMENU_MBAR_CLOSE = cast(HBITMAP)5, HBMMENU_MBAR_CLOSE_D = cast(HBITMAP)6, HBMMENU_MBAR_MINIMIZE_D = cast(HBITMAP)7, HBMMENU_POPUP_CLOSE = cast(HBITMAP)8, HBMMENU_POPUP_RESTORE = cast(HBITMAP)9, HBMMENU_POPUP_MAXIMIZE = cast(HBITMAP)10, HBMMENU_POPUP_MINIMIZE = cast(HBITMAP)11; const MOD_ALT=1; const MOD_CONTROL=2; const MOD_SHIFT=4; const MOD_WIN=8; const MOD_IGNORE_ALL_MODIFIER=1024; const MOD_ON_KEYUP=2048; const MOD_RIGHT=16384; const MOD_LEFT=32768; const LLKHF_EXTENDED=(KF_EXTENDED >> 8); const LLKHF_INJECTED=0x00000010; const LLKHF_ALTDOWN=(KF_ALTDOWN >> 8); const LLKHF_UP=(KF_UP >> 8); static if (WINVER >= 0x500) { const FLASHW_STOP=0; const FLASHW_CAPTION=1; const FLASHW_TRAY=2; const FLASHW_ALL=(FLASHW_CAPTION|FLASHW_TRAY); const FLASHW_TIMER=4; const FLASHW_TIMERNOFG=12; } const CURSOR_SHOWING=0x00000001; const WS_ACTIVECAPTION=0x00000001; static if (_WIN32_WINNT >= 0x403) { const INPUT_MOUSE=0x00000000; const INPUT_KEYBOARD=0x00000001; const INPUT_HARDWARE=0x00000002; } static if (WINVER >= 0x400) { const ENDSESSION_LOGOFF = 0x80000000; } static if (WINVER >= 0x500) { const CHILDID_SELF = 0; const OBJID_WINDOW = 0x00000000; const OBJID_SYSMENU = 0xFFFFFFFF; const OBJID_TITLEBAR = 0xFFFFFFFE; const OBJID_MENU = 0xFFFFFFFD; const OBJID_CLIENT = 0xFFFFFFFC; const OBJID_VSCROLL = 0xFFFFFFFB; const OBJID_HSCROLL = 0xFFFFFFFA; const OBJID_SIZEGRIP = 0xFFFFFFF9; const OBJID_CARET = 0xFFFFFFF8; const OBJID_CURSOR = 0xFFFFFFF7; const OBJID_ALERT = 0xFFFFFFF6; const OBJID_SOUND = 0xFFFFFFF5; const GUI_CARETBLINKING = 0x00000001; const GUI_INMOVESIZE = 0x00000002; const GUI_INMENUMODE = 0x00000004; const GUI_SYSTEMMENUMODE = 0x00000008; const GUI_POPUPMENUMODE = 0x00000010; static if (_WIN32_WINNT >= 0x501) { const GUI_16BITTASK = 0x00000020; } const WINEVENT_OUTOFCONTEXT=0x0000; const WINEVENT_SKIPOWNTHREAD=0x0001; const WINEVENT_SKIPOWNPROCESS=0x0002; const WINEVENT_INCONTEXT=0x0004; const AW_HOR_POSITIVE=0x00000001; const AW_HOR_NEGATIVE=0x00000002; const AW_VER_POSITIVE=0x00000004; const AW_VER_NEGATIVE=0x00000008; const AW_CENTER=0x00000010; const AW_HIDE=0x00010000; const AW_ACTIVATE=0x00020000; const AW_SLIDE=0x00040000; const AW_BLEND=0x00080000; const DEVICE_NOTIFY_WINDOW_HANDLE=0x00000000; const DEVICE_NOTIFY_SERVICE_HANDLE=0x00000001; static if (_WIN32_WINNT >= 0x501) { const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES=0x00000004; } const EVENT_MIN = 0x00000001; const EVENT_SYSTEM_SOUND = 0x00000001; const EVENT_SYSTEM_ALERT = 0x00000002; const EVENT_SYSTEM_FOREGROUND = 0x00000003; const EVENT_SYSTEM_MENUSTART = 0x00000004; const EVENT_SYSTEM_MENUEND = 0x00000005; const EVENT_SYSTEM_MENUPOPUPSTART = 0x00000006; const EVENT_SYSTEM_MENUPOPUPEND = 0x00000007; const EVENT_SYSTEM_CAPTURESTART = 0x00000008; const EVENT_SYSTEM_CAPTUREEND = 0x00000009; const EVENT_SYSTEM_MOVESIZESTART = 0x0000000a; const EVENT_SYSTEM_MOVESIZEEND = 0x0000000b; const EVENT_SYSTEM_CONTEXTHELPSTART = 0x0000000c; const EVENT_SYSTEM_CONTEXTHELPEND = 0x0000000d; const EVENT_SYSTEM_DRAGDROPSTART = 0x0000000e; const EVENT_SYSTEM_DRAGDROPEND = 0x0000000f; const EVENT_SYSTEM_DIALOGSTART = 0x00000010; const EVENT_SYSTEM_DIALOGEND = 0x00000011; const EVENT_SYSTEM_SCROLLINGSTART = 0x00000012; const EVENT_SYSTEM_SCROLLINGEND = 0x00000013; const EVENT_SYSTEM_SWITCHSTART = 0x00000014; const EVENT_SYSTEM_SWITCHEND = 0x00000015; const EVENT_SYSTEM_MINIMIZESTART = 0x00000016; const EVENT_SYSTEM_MINIMIZEEND = 0x00000017; const EVENT_OBJECT_CREATE = 0x00008000; const EVENT_OBJECT_DESTROY = 0x00008001; const EVENT_OBJECT_SHOW = 0x00008002; const EVENT_OBJECT_HIDE = 0x00008003; const EVENT_OBJECT_REORDER = 0x00008004; const EVENT_OBJECT_FOCUS = 0x00008005; const EVENT_OBJECT_SELECTION = 0x00008006; const EVENT_OBJECT_SELECTIONADD = 0x00008007; const EVENT_OBJECT_SELECTIONREMOVE = 0x00008008; const EVENT_OBJECT_SELECTIONWITHIN = 0x00008009; const EVENT_OBJECT_STATECHANGE = 0x0000800a; const EVENT_OBJECT_LOCATIONCHANGE = 0x0000800b; const EVENT_OBJECT_NAMECHANGE = 0x0000800c; const EVENT_OBJECT_DESCRIPTIONCHANGE = 0x0000800d; const EVENT_OBJECT_VALUECHANGE = 0x0000800e; const EVENT_OBJECT_PARENTCHANGE = 0x0000800f; const EVENT_OBJECT_HELPCHANGE = 0x00008010; const EVENT_OBJECT_DEFACTIONCHANGE = 0x00008011; const EVENT_OBJECT_ACCELERATORCHANGE = 0x00008012; static if (_WIN32_WINNT >= 0x501) { const EVENT_CONSOLE_CARET = 0x00004001; const EVENT_CONSOLE_UPDATE_REGION = 0x00004002; const EVENT_CONSOLE_UPDATE_SIMPLE = 0x00004003; const EVENT_CONSOLE_UPDATE_SCROLL = 0x00004004; const EVENT_CONSOLE_LAYOUT = 0x00004005; const EVENT_CONSOLE_START_APPLICATION = 0x00004006; const EVENT_CONSOLE_END_APPLICATION = 0x00004007; const CONSOLE_CARET_SELECTION = 0x00000001; const CONSOLE_CARET_VISIBLE = 0x00000002; const CONSOLE_APPLICATION_16BIT = 0x00000001; } const EVENT_MAX=0x7fffffff; }//(WINVER >= 0x500) static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { const DWORD ASFW_ANY = -1; const LSFW_LOCK = 1; const LSFW_UNLOCK = 2; } static if (_WIN32_WINNT >= 0x500) { const LWA_COLORKEY=0x01; const LWA_ALPHA=0x02; const ULW_COLORKEY=0x01; const ULW_ALPHA=0x02; const ULW_OPAQUE=0x04; } const GA_PARENT = 1; const GA_ROOT = 2; const GA_ROOTOWNER = 3; static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { const MONITOR_DEFAULTTONULL = 0; const MONITOR_DEFAULTTOPRIMARY = 1; const MONITOR_DEFAULTTONEAREST = 2; const MONITORINFOF_PRIMARY = 1; const EDS_RAWMODE = 0x00000002; const ISMEX_NOSEND = 0x00000000; const ISMEX_SEND = 0x00000001; const ISMEX_NOTIFY = 0x00000002; const ISMEX_CALLBACK = 0x00000004; const ISMEX_REPLIED = 0x00000008; } static if (_WIN32_WINNT >= 0x500) { const GR_GDIOBJECTS = 0; const GR_USEROBJECTS = 1; } static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { const GMMP_USE_DISPLAY_POINTS = 1; const GMMP_USE_HIGH_RESOLUTION_POINTS = 2; } static if (_WIN32_WINNT >= 0x501) { const PW_CLIENTONLY = 0x00000001; const RIM_INPUT = 0x00000000; const RIM_INPUTSINK = 0x00000001; const RIM_TYPEMOUSE = 0x00000000; const RIM_TYPEKEYBOARD = 0x00000001; const RIM_TYPEHID = 0x00000002; const MOUSE_MOVE_RELATIVE = 0x00000000; const MOUSE_MOVE_ABSOLUTE = 0x00000001; const MOUSE_VIRTUAL_DESKTOP = 0x00000002; const MOUSE_ATTRIBUTES_CHANGED = 0x00000004; const RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001; const RI_MOUSE_LEFT_BUTTON_UP = 0x0002; const RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004; const RI_MOUSE_RIGHT_BUTTON_UP = 0x0008; const RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010; const RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020; const RI_MOUSE_BUTTON_1_DOWN = RI_MOUSE_LEFT_BUTTON_DOWN; const RI_MOUSE_BUTTON_1_UP = RI_MOUSE_LEFT_BUTTON_UP; const RI_MOUSE_BUTTON_2_DOWN = RI_MOUSE_RIGHT_BUTTON_DOWN; const RI_MOUSE_BUTTON_2_UP = RI_MOUSE_RIGHT_BUTTON_UP; const RI_MOUSE_BUTTON_3_DOWN = RI_MOUSE_MIDDLE_BUTTON_DOWN; const RI_MOUSE_BUTTON_3_UP = RI_MOUSE_MIDDLE_BUTTON_UP; const RI_MOUSE_BUTTON_4_DOWN = 0x0040; const RI_MOUSE_BUTTON_4_UP = 0x0080; const RI_MOUSE_BUTTON_5_DOWN = 0x0100; const RI_MOUSE_BUTTON_5_UP = 0x0200; const RI_MOUSE_WHEEL = 0x0400; const KEYBOARD_OVERRUN_MAKE_CODE = 0x00ff; const RI_KEY_MAKE = 0x0000; const RI_KEY_BREAK = 0x0001; const RI_KEY_E0 = 0x0002; const RI_KEY_E1 = 0x0004; const RI_KEY_TERMSRV_SET_LED = 0x0008; const RI_KEY_TERMSRV_SHADOW = 0x0010; const RID_INPUT = 0x10000003; const RID_HEADER = 0x10000005; const RIDI_PREPARSEDDATA = 0x20000005; const RIDI_DEVICENAME = 0x20000007; const RIDI_DEVICEINFO = 0x2000000b; const RIDEV_REMOVE = 0x00000001; const RIDEV_EXCLUDE = 0x00000010; const RIDEV_PAGEONLY = 0x00000020; const RIDEV_NOLEGACY = 0x00000030; const RIDEV_INPUTSINK = 0x00000100; const RIDEV_CAPTUREMOUSE = 0x00000200; const RIDEV_NOHOTKEYS = 0x00000200; const RIDEV_APPKEYS = 0x00000400; } // Callbacks // --------- extern (Windows) { alias BOOL function (HWND, UINT, WPARAM, LPARAM) DLGPROC; alias void function (HWND, UINT, UINT, DWORD) TIMERPROC; alias BOOL function (HDC, LPARAM, int) GRAYSTRINGPROC; alias LRESULT function (int, WPARAM, LPARAM) HOOKPROC; alias BOOL function (HWND, LPCSTR, HANDLE) PROPENUMPROCA; alias BOOL function (HWND, LPCWSTR, HANDLE) PROPENUMPROCW; alias BOOL function (HWND, LPSTR, HANDLE, DWORD) PROPENUMPROCEXA; alias BOOL function (HWND, LPWSTR, HANDLE, DWORD) PROPENUMPROCEXW; alias int function (LPSTR, int, int, int) EDITWORDBREAKPROCA; alias int function (LPWSTR, int, int, int) EDITWORDBREAKPROCW; alias LRESULT function (HWND, UINT, WPARAM, LPARAM) WNDPROC; alias BOOL function (HDC, LPARAM, WPARAM, int, int) DRAWSTATEPROC; alias BOOL function (HWND, LPARAM) WNDENUMPROC; alias BOOL function (HWND, LPARAM) ENUMWINDOWSPROC; alias void function (LPHELPINFO) MSGBOXCALLBACK; static if (WINVER >= 0x410) { alias BOOL function (HMONITOR, HDC, LPRECT, LPARAM) MONITORENUMPROC; } alias BOOL function (LPSTR, LPARAM) NAMEENUMPROCA; alias BOOL function (LPWSTR, LPARAM) NAMEENUMPROCW; alias void function (HWND, UINT, DWORD, LRESULT) SENDASYNCPROC; alias NAMEENUMPROCA DESKTOPENUMPROCA; alias NAMEENUMPROCW DESKTOPENUMPROCW; alias NAMEENUMPROCA WINSTAENUMPROCA; alias NAMEENUMPROCW WINSTAENUMPROCW; } typedef HANDLE HHOOK; typedef HANDLE HDWP; typedef HANDLE HDEVNOTIFY; struct ACCEL { BYTE fVirt; WORD key; WORD cmd; } alias ACCEL* LPACCEL; struct ACCESSTIMEOUT { UINT cbSize = ACCESSTIMEOUT.sizeof; DWORD dwFlags; DWORD iTimeOutMSec; } alias ACCESSTIMEOUT* LPACCESSTIMEOUT; struct ANIMATIONINFO { UINT cbSize = ANIMATIONINFO.sizeof; int iMinAnimate; } alias ANIMATIONINFO* LPANIMATIONINFO; struct CREATESTRUCTA { LPVOID lpCreateParams; HINSTANCE hInstance; HMENU hMenu; HWND hwndParent; int cy; int cx; int y; int x; LONG style; LPCSTR lpszName; LPCSTR lpszClass; DWORD dwExStyle; } alias CREATESTRUCTA* LPCREATESTRUCTA; struct CREATESTRUCTW { LPVOID lpCreateParams; HINSTANCE hInstance; HMENU hMenu; HWND hwndParent; int cy; int cx; int y; int x; LONG style; LPCWSTR lpszName; LPCWSTR lpszClass; DWORD dwExStyle; } alias CREATESTRUCTW* LPCREATESTRUCTW; struct CBT_CREATEWNDA { LPCREATESTRUCTA lpcs; HWND hwndInsertAfter; } alias CBT_CREATEWNDA* LPCBT_CREATEWNDA; struct CBT_CREATEWNDW { LPCREATESTRUCTW lpcs; HWND hwndInsertAfter; } alias CBT_CREATEWNDW* LPCBT_CREATEWNDW; struct CBTACTIVATESTRUCT { BOOL fMouse; HWND hWndActive; } alias CBTACTIVATESTRUCT* LPCBTACTIVATESTRUCT; struct CLIENTCREATESTRUCT { HANDLE hWindowMenu; UINT idFirstChild; } alias CLIENTCREATESTRUCT* LPCLIENTCREATESTRUCT; struct COMPAREITEMSTRUCT { UINT CtlType; UINT CtlID; HWND hwndItem; UINT itemID1; DWORD itemData1; UINT itemID2; DWORD itemData2; DWORD dwLocaleId; } alias COMPAREITEMSTRUCT* LPCOMPAREITEMSTRUCT; struct COPYDATASTRUCT { DWORD dwData; DWORD cbData; PVOID lpData; } alias COPYDATASTRUCT* PCOPYDATASTRUCT; struct CURSORSHAPE { int xHotSpot; int yHotSpot; int cx; int cy; int cbWidth; BYTE Planes; BYTE BitsPixel; } alias CURSORSHAPE* LPCURSORSHAPE; struct CWPRETSTRUCT { LRESULT lResult; LPARAM lParam; WPARAM wParam; DWORD message; HWND hwnd; } struct CWPSTRUCT { LPARAM lParam; WPARAM wParam; UINT message; HWND hwnd; } alias CWPSTRUCT* PCWPSTRUCT; struct DEBUGHOOKINFO { DWORD idThread; DWORD idThreadInstaller; LPARAM lParam; WPARAM wParam; int code; } alias DEBUGHOOKINFO* PDEBUGHOOKINFO, LPDEBUGHOOKINFO; struct DELETEITEMSTRUCT { UINT CtlType; UINT CtlID; UINT itemID; HWND hwndItem; UINT itemData; } alias DELETEITEMSTRUCT* PDELETEITEMSTRUCT, LPDELETEITEMSTRUCT; align(2): struct DLGITEMTEMPLATE { DWORD style; DWORD dwExtendedStyle; short x; short y; short cx; short cy; WORD id; } alias DLGITEMTEMPLATE* LPDLGITEMTEMPLATE; struct DLGTEMPLATE { DWORD style; DWORD dwExtendedStyle; WORD cdit; short x; short y; short cx; short cy; } alias DLGTEMPLATE* LPDLGTEMPLATE, LPDLGTEMPLATEA, LPDLGTEMPLATEW; alias DLGTEMPLATE* LPCDLGTEMPLATE; align: struct DRAWITEMSTRUCT { UINT CtlType; UINT CtlID; UINT itemID; UINT itemAction; UINT itemState; HWND hwndItem; HDC hDC; RECT rcItem; DWORD itemData; } alias DRAWITEMSTRUCT* LPDRAWITEMSTRUCT, PDRAWITEMSTRUCT; struct DRAWTEXTPARAMS { UINT cbSize = DRAWTEXTPARAMS.sizeof; int iTabLength; int iLeftMargin; int iRightMargin; UINT uiLengthDrawn; } alias DRAWTEXTPARAMS* LPDRAWTEXTPARAMS; struct PAINTSTRUCT { HDC hdc; BOOL fErase; RECT rcPaint; BOOL fRestore; BOOL fIncUpdate; BYTE[32] rgbReserved; } alias PAINTSTRUCT* LPPAINTSTRUCT; struct MSG { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt; } alias MSG* LPMSG, PMSG; struct ICONINFO { BOOL fIcon; DWORD xHotspot; DWORD yHotspot; HBITMAP hbmMask; HBITMAP hbmColor; } alias ICONINFO* PICONINFO; struct NMHDR { HWND hwndFrom; UINT idFrom; UINT code; } alias NMHDR* LPNMHDR; struct WNDCLASSA { UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCSTR lpszMenuName; LPCSTR lpszClassName; } alias WNDCLASSA* LPWNDCLASSA, PWNDCLASSA; struct WNDCLASSW { UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCWSTR lpszMenuName; LPCWSTR lpszClassName; } alias WNDCLASSW* LPWNDCLASSW, PWNDCLASSW; struct WNDCLASSEXA { UINT cbSize = WNDCLASSEXA.sizeof; UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCSTR lpszMenuName; LPCSTR lpszClassName; HICON hIconSm; } alias WNDCLASSEXA* LPWNDCLASSEXA, PWNDCLASSEXA; struct WNDCLASSEXW { UINT cbSize = WNDCLASSEXW.sizeof; UINT style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; HINSTANCE hInstance; HICON hIcon; HCURSOR hCursor; HBRUSH hbrBackground; LPCWSTR lpszMenuName; LPCWSTR lpszClassName; HICON hIconSm; } alias WNDCLASSEXW* LPWNDCLASSEXW, PWNDCLASSEXW; struct MENUITEMINFOA { UINT cbSize = MENUITEMINFOA.sizeof; UINT fMask; UINT fType; UINT fState; UINT wID; HMENU hSubMenu; HBITMAP hbmpChecked; HBITMAP hbmpUnchecked; DWORD dwItemData; LPSTR dwTypeData; UINT cch; static if (_WIN32_WINNT >= 0x500) { HBITMAP hbmpItem; } } alias MENUITEMINFOA* LPMENUITEMINFOA; alias MENUITEMINFOA* LPCMENUITEMINFOA; struct MENUITEMINFOW { UINT cbSize = MENUITEMINFOW.sizeof; UINT fMask; UINT fType; UINT fState; UINT wID; HMENU hSubMenu; HBITMAP hbmpChecked; HBITMAP hbmpUnchecked; DWORD dwItemData; LPWSTR dwTypeData; UINT cch; static if (_WIN32_WINNT >= 0x500) { HBITMAP hbmpItem; } } alias MENUITEMINFOW* LPMENUITEMINFOW; alias MENUITEMINFOW* LPCMENUITEMINFOW; struct SCROLLINFO { UINT cbSize; UINT fMask; int nMin; int nMax; UINT nPage; int nPos; int nTrackPos; } alias SCROLLINFO* LPSCROLLINFO; alias SCROLLINFO* LPCSCROLLINFO; struct WINDOWPLACEMENT { UINT length; UINT flags; UINT showCmd; POINT ptMinPosition; POINT ptMaxPosition; RECT rcNormalPosition; } alias WINDOWPLACEMENT* LPWINDOWPLACEMENT, PWINDOWPLACEMENT; struct MENUITEMTEMPLATEHEADER { WORD versionNumber; WORD offset; } struct MENUITEMTEMPLATE { WORD mtOption; WORD mtID; WCHAR mtString[1]; } alias void MENUTEMPLATE, MENUTEMPLATEA, MENUTEMPLATEW; alias MENUTEMPLATE* LPMENUTEMPLATEA, LPMENUTEMPLATEW, LPMENUTEMPLATE; struct HELPINFO { UINT cbSize; int iContextType; int iCtrlId; HANDLE hItemHandle; DWORD dwContextId; POINT MousePos; } alias HELPINFO* LPHELPINFO; struct MSGBOXPARAMSA { UINT cbSize; HWND hwndOwner; HINSTANCE hInstance; LPCSTR lpszText; LPCSTR lpszCaption; DWORD dwStyle; LPCSTR lpszIcon; DWORD dwContextHelpId; MSGBOXCALLBACK lpfnMsgBoxCallback; DWORD dwLanguageId; } alias MSGBOXPARAMSA* PMSGBOXPARAMSA, LPMSGBOXPARAMSA; struct MSGBOXPARAMSW { UINT cbSize; HWND hwndOwner; HINSTANCE hInstance; LPCWSTR lpszText; LPCWSTR lpszCaption; DWORD dwStyle; LPCWSTR lpszIcon; DWORD dwContextHelpId; MSGBOXCALLBACK lpfnMsgBoxCallback; DWORD dwLanguageId; } alias MSGBOXPARAMSW* PMSGBOXPARAMSW, LPMSGBOXPARAMSW; struct USEROBJECTFLAGS { BOOL fInherit; BOOL fReserved; DWORD dwFlags; } struct FILTERKEYS { UINT cbSize; DWORD dwFlags; DWORD iWaitMSec; DWORD iDelayMSec; DWORD iRepeatMSec; DWORD iBounceMSec; } struct HIGHCONTRASTA { UINT cbSize; DWORD dwFlags; LPSTR lpszDefaultScheme; } alias HIGHCONTRASTA* LPHIGHCONTRASTA; struct HIGHCONTRASTW { UINT cbSize; DWORD dwFlags; LPWSTR lpszDefaultScheme; } alias HIGHCONTRASTW* LPHIGHCONTRASTW; struct ICONMETRICSA { UINT cbSize; int iHorzSpacing; int iVertSpacing; int iTitleWrap; LOGFONTA lfFont; } alias ICONMETRICSA* LPICONMETRICSA; struct ICONMETRICSW { UINT cbSize; int iHorzSpacing; int iVertSpacing; int iTitleWrap; LOGFONTW lfFont; } alias ICONMETRICSW* LPICONMETRICSW; struct MINIMIZEDMETRICS { UINT cbSize; int iWidth; int iHorzGap; int iVertGap; int iArrange; } alias MINIMIZEDMETRICS* LPMINIMIZEDMETRICS; struct MOUSEKEYS { UINT cbSize; DWORD dwFlags; DWORD iMaxSpeed; DWORD iTimeToMaxSpeed; DWORD iCtrlSpeed; DWORD dwReserved1; DWORD dwReserved2; } alias MOUSEKEYS* LPMOUSEKEYS; struct NONCLIENTMETRICSA { UINT cbSize; int iBorderWidth; int iScrollWidth; int iScrollHeight; int iCaptionWidth; int iCaptionHeight; LOGFONTA lfCaptionFont; int iSmCaptionWidth; int iSmCaptionHeight; LOGFONTA lfSmCaptionFont; int iMenuWidth; int iMenuHeight; LOGFONTA lfMenuFont; LOGFONTA lfStatusFont; LOGFONTA lfMessageFont; } alias NONCLIENTMETRICSA* LPNONCLIENTMETRICSA; struct NONCLIENTMETRICSW { UINT cbSize; int iBorderWidth; int iScrollWidth; int iScrollHeight; int iCaptionWidth; int iCaptionHeight; LOGFONTW lfCaptionFont; int iSmCaptionWidth; int iSmCaptionHeight; LOGFONTW lfSmCaptionFont; int iMenuWidth; int iMenuHeight; LOGFONTW lfMenuFont; LOGFONTW lfStatusFont; LOGFONTW lfMessageFont; } alias NONCLIENTMETRICSW* LPNONCLIENTMETRICSW; struct SERIALKEYSA { UINT cbSize; DWORD dwFlags; LPSTR lpszActivePort; LPSTR lpszPort; UINT iBaudRate; UINT iPortState; UINT iActive; } alias SERIALKEYSA* LPSERIALKEYSA; struct SERIALKEYSW { UINT cbSize; DWORD dwFlags; LPWSTR lpszActivePort; LPWSTR lpszPort; UINT iBaudRate; UINT iPortState; UINT iActive; } alias SERIALKEYSW* LPSERIALKEYSW; struct SOUNDSENTRYA { UINT cbSize; DWORD dwFlags; DWORD iFSTextEffect; DWORD iFSTextEffectMSec; DWORD iFSTextEffectColorBits; DWORD iFSGrafEffect; DWORD iFSGrafEffectMSec; DWORD iFSGrafEffectColor; DWORD iWindowsEffect; DWORD iWindowsEffectMSec; LPSTR lpszWindowsEffectDLL; DWORD iWindowsEffectOrdinal; } alias SOUNDSENTRYA* LPSOUNDSENTRYA; struct SOUNDSENTRYW { UINT cbSize; DWORD dwFlags; DWORD iFSTextEffect; DWORD iFSTextEffectMSec; DWORD iFSTextEffectColorBits; DWORD iFSGrafEffect; DWORD iFSGrafEffectMSec; DWORD iFSGrafEffectColor; DWORD iWindowsEffect; DWORD iWindowsEffectMSec; LPWSTR lpszWindowsEffectDLL; DWORD iWindowsEffectOrdinal; } alias SOUNDSENTRYW* LPSOUNDSENTRYW; struct STICKYKEYS { DWORD cbSize; DWORD dwFlags; } alias STICKYKEYS* LPSTICKYKEYS; struct TOGGLEKEYS { DWORD cbSize; DWORD dwFlags; } struct MOUSEHOOKSTRUCT { POINT pt; HWND hwnd; UINT wHitTestCode; DWORD dwExtraInfo; } alias MOUSEHOOKSTRUCT* LPMOUSEHOOKSTRUCT, PMOUSEHOOKSTRUCT; struct TRACKMOUSEEVENT { DWORD cbSize; DWORD dwFlags; HWND hwndTrack; DWORD dwHoverTime; } alias TRACKMOUSEEVENT* LPTRACKMOUSEEVENT; struct TPMPARAMS { UINT cbSize; RECT rcExclude; } alias TPMPARAMS* LPTPMPARAMS; struct EVENTMSG { UINT message; UINT paramL; UINT paramH; DWORD time; HWND hwnd; } alias EVENTMSG* PEVENTMSGMSG, LPEVENTMSGMSG, PEVENTMSG, LPEVENTMSG; struct WINDOWPOS { HWND hwnd; HWND hwndInsertAfter; int x; int y; int cx; int cy; UINT flags; } alias WINDOWPOS* PWINDOWPOS, LPWINDOWPOS; struct NCCALCSIZE_PARAMS { RECT rgrc[3]; PWINDOWPOS lppos; } alias NCCALCSIZE_PARAMS* LPNCCALCSIZE_PARAMS; struct MDICREATESTRUCTA { LPCSTR szClass; LPCSTR szTitle; HANDLE hOwner; int x; int y; int cx; int cy; DWORD style; LPARAM lParam; } alias MDICREATESTRUCTA* LPMDICREATESTRUCTA; struct MDICREATESTRUCTW { LPCWSTR szClass; LPCWSTR szTitle; HANDLE hOwner; int x; int y; int cx; int cy; DWORD style; LPARAM lParam; } alias MDICREATESTRUCTW* LPMDICREATESTRUCTW; struct MINMAXINFO { POINT ptReserved; POINT ptMaxSize; POINT ptMaxPosition; POINT ptMinTrackSize; POINT ptMaxTrackSize; } alias MINMAXINFO* PMINMAXINFO, LPMINMAXINFO; struct MDINEXTMENU { HMENU hmenuIn; HMENU hmenuNext; HWND hwndNext; } alias MDINEXTMENU* PMDINEXTMENU, LPMDINEXTMENU; struct MEASUREITEMSTRUCT { UINT CtlType; UINT CtlID; UINT itemID; UINT itemWidth; UINT itemHeight; DWORD itemData; } alias MEASUREITEMSTRUCT* PMEASUREITEMSTRUCT, LPMEASUREITEMSTRUCT; struct DROPSTRUCT { HWND hwndSource; HWND hwndSink; DWORD wFmt; DWORD dwData; POINT ptDrop; DWORD dwControlData; } alias DROPSTRUCT* PDROPSTRUCT, LPDROPSTRUCT; alias DWORD HELPPOLY; struct MULTIKEYHELPA { DWORD mkSize; CHAR mkKeylist; CHAR szKeyphrase[1]; } alias MULTIKEYHELPA* PMULTIKEYHELPA, LPMULTIKEYHELPA; struct MULTIKEYHELPW { DWORD mkSize; WCHAR mkKeylist; WCHAR szKeyphrase[1]; } alias MULTIKEYHELPW* PMULTIKEYHELPW, LPMULTIKEYHELPW; struct HELPWININFOA { int wStructSize; int x; int y; int dx; int dy; int wMax; CHAR rgchMember[2]; } alias HELPWININFOA* PHELPWININFOA, LPHELPWININFOA; struct HELPWININFOW { int wStructSize; int x; int y; int dx; int dy; int wMax; WCHAR rgchMember[2]; } alias HELPWININFOW* PHELPWININFOW, LPHELPWININFOW; struct STYLESTRUCT { DWORD styleOld; DWORD styleNew; } alias STYLESTRUCT* LPSTYLESTRUCT; struct ALTTABINFO { DWORD cbSize; int cItems; int cColumns; int cRows; int iColFocus; int iRowFocus; int cxItem; int cyItem; POINT ptStart; } alias ALTTABINFO* PALTTABINFO, LPALTTABINFO; struct COMBOBOXINFO { DWORD cbSize; RECT rcItem; RECT rcButton; DWORD stateButton; HWND hwndCombo; HWND hwndItem; HWND hwndList; } alias COMBOBOXINFO* PCOMBOBOXINFO, LPCOMBOBOXINFO; struct CURSORINFO { DWORD cbSize; DWORD flags; HCURSOR hCursor; POINT ptScreenPos; } alias CURSORINFO* PCURSORINFO, LPCURSORINFO; struct MENUBARINFO { DWORD cbSize; RECT rcBar; HMENU hMenu; HWND hwndMenu; byte bf_; // Simulated bitfield // BOOL fBarFocused:1; // BOOL fFocused:1; bool fBarFocused() { return (bf_ & 1) == 1; } bool fFocused() { return (bf_ & 2) == 2; } void fBarFocused(bool b) { bf_ = cast(byte)((bf_ & 0xFE) | b); } void fFocused(bool b) { bf_ = cast(byte)(b ? (bf_ | 2) : bf_ & 0xFD); } } alias MENUBARINFO* PMENUBARINFO; struct MENUINFO { DWORD cbSize; DWORD fMask; DWORD dwStyle; UINT cyMax; HBRUSH hbrBack; DWORD dwContextHelpID; ULONG_PTR dwMenuData; } alias MENUINFO* LPMENUINFO, LPCMENUINFO; const CCHILDREN_SCROLLBAR=5; struct SCROLLBARINFO { DWORD cbSize; RECT rcScrollBar; int dxyLineButton; int xyThumbTop; int xyThumbBottom; int reserved; DWORD rgstate[CCHILDREN_SCROLLBAR+1]; } alias SCROLLBARINFO* PSCROLLBARINFO, LPSCROLLBARINFO; const CCHILDREN_TITLEBAR=5; struct TITLEBARINFO { DWORD cbSize = TITLEBARINFO.sizeof; RECT rcTitleBar; DWORD[CCHILDREN_TITLEBAR+1] rgstate; } alias TITLEBARINFO* PTITLEBARINFO, LPTITLEBARINFO; struct WINDOWINFO { DWORD cbSize = WINDOWINFO.sizeof; RECT rcWindow; RECT rcClient; DWORD dwStyle; DWORD dwExStyle; DWORD dwWindowStatus; UINT cxWindowBorders; UINT cyWindowBorders; ATOM atomWindowType; WORD wCreatorVersion; } alias WINDOWINFO* PWINDOWINFO, LPWINDOWINFO; struct LASTINPUTINFO { UINT cbSize; DWORD dwTime; } alias LASTINPUTINFO* PLASTINPUTINFO; struct MONITORINFO { DWORD cbSize; RECT rcMonitor; RECT rcWork; DWORD dwFlags; } alias MONITORINFO* LPMONITORINFO; const CCHDEVICENAME=32; struct MONITORINFOEXA { DWORD cbSize = MONITORINFOEXA.sizeof; RECT rcMonitor; RECT rcWork; DWORD dwFlags; CHAR[CCHDEVICENAME] szDevice; } alias MONITORINFOEXA* LPMONITORINFOEXA; struct MONITORINFOEXW { DWORD cbSize = MONITORINFOEXW.sizeof; RECT rcMonitor; RECT rcWork; DWORD dwFlags; WCHAR[CCHDEVICENAME] szDevice; } alias MONITORINFOEXW* LPMONITORINFOEXW; struct KBDLLHOOKSTRUCT { DWORD vkCode; DWORD scanCode; DWORD flags; DWORD time; DWORD dwExtraInfo; } alias KBDLLHOOKSTRUCT* LPKBDLLHOOKSTRUCT, PKBDLLHOOKSTRUCT; static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { struct FLASHWINFO { UINT cbSize; HWND hwnd; DWORD dwFlags; UINT uCount; DWORD dwTimeout; } alias FLASHWINFO* PFLASHWINFO; } static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { struct MOUSEMOVEPOINT { int x; int y; DWORD time; ULONG_PTR dwExtraInfo; } alias MOUSEMOVEPOINT* PMOUSEMOVEPOINT, LPMOUSEMOVEPOINT; } static if (_WIN32_WINNT >= 0x403) { struct MOUSEINPUT { LONG dx; LONG dy; DWORD mouseData; DWORD dwFlags; DWORD time; ULONG_PTR dwExtraInfo; } alias MOUSEINPUT* PMOUSEINPUT; struct KEYBDINPUT { WORD wVk; WORD wScan; DWORD dwFlags; DWORD time; ULONG_PTR dwExtraInfo; } alias KEYBDINPUT* PKEYBDINPUT; struct HARDWAREINPUT { DWORD uMsg; WORD wParamL; WORD wParamH; } alias HARDWAREINPUT* PHARDWAREINPUT; struct INPUT { DWORD type; union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; } } alias INPUT* PINPUT, LPINPUT; }// (_WIN32_WINNT >= 0x403) static if (WINVER >= 0x500) { struct GUITHREADINFO { DWORD cbSize; DWORD flags; HWND hwndActive; HWND hwndFocus; HWND hwndCapture; HWND hwndMenuOwner; HWND hwndMoveSize; HWND hwndCaret; RECT rcCaret; } alias GUITHREADINFO* PGUITHREADINFO, LPGUITHREADINFO; extern (Windows) { alias void function (HWINEVENTHOOK, DWORD, HWND, LONG, LONG, DWORD, DWORD) WINEVENTPROC; } }// (WINVER >= 0x500) static if (_WIN32_WINNT >= 0x501) { struct BSMINFO { UINT cbSize; HDESK hdesk; HWND hwnd; LUID luid; } alias BSMINFO* PBSMINFO; typedef HANDLE HRAWINPUT; struct RAWINPUTHEADER { DWORD dwType; DWORD dwSize; HANDLE hDevice; WPARAM wParam; } alias RAWINPUTHEADER* PRAWINPUTHEADER; struct RAWMOUSE { USHORT usFlags; union { ULONG ulButtons; struct { USHORT usButtonFlags; USHORT usButtonData; } } ULONG ulRawButtons; LONG lLastX; LONG lLastY; ULONG ulExtraInformation; } alias RAWMOUSE* PRAWMOUSE, LPRAWMOUSE; struct RAWKEYBOARD { USHORT MakeCode; USHORT Flags; USHORT Reserved; USHORT VKey; UINT Message; ULONG ExtraInformation; } alias RAWKEYBOARD* PRAWKEYBOARD, LPRAWKEYBOARD; struct RAWHID { DWORD dwSizeHid; DWORD dwCount; BYTE bRawData; } alias RAWHID* PRAWHID, LPRAWHID; struct RAWINPUT { RAWINPUTHEADER header; union _data { RAWMOUSE mouse; RAWKEYBOARD keyboard; RAWHID hid; } _data data; } alias RAWINPUT* PRAWINPUT, LPRAWINPUT; struct RAWINPUTDEVICE { USHORT usUsagePage; USHORT usUsage; DWORD dwFlags; HWND hwndTarget; } alias RAWINPUTDEVICE* PRAWINPUTDEVICE, LPRAWINPUTDEVICE; alias RAWINPUTDEVICE* PCRAWINPUTDEVICE; struct RAWINPUTDEVICELIST { HANDLE hDevice; DWORD dwType; } alias RAWINPUTDEVICELIST* PRAWINPUTDEVICELIST; struct RID_DEVICE_INFO_MOUSE { DWORD dwId; DWORD dwNumberOfButtons; DWORD dwSampleRate; BOOL fHasHorizontalWheel; } struct RID_DEVICE_INFO_KEYBOARD { DWORD dwType; DWORD dwSubType; DWORD dwKeyboardMode; DWORD dwNumberOfFunctionKeys; DWORD dwNumberOfIndicators; DWORD dwNumberOfKeysTotal; } struct RID_DEVICE_INFO_HID { DWORD dwVendorId; DWORD dwProductId; DWORD dwVersionNumber; USHORT usUsagePage; USHORT usUsage; } struct RID_DEVICE_INFO { DWORD cbSize; DWORD dwType; union { RID_DEVICE_INFO_MOUSE mouse; RID_DEVICE_INFO_KEYBOARD keyboard; RID_DEVICE_INFO_HID hid; } } }// (_WIN32_WINNT >= 0x501) struct MSLLHOOKSTRUCT { POINT pt; DWORD mouseData; DWORD flags; DWORD time; ULONG_PTR dwExtraInfo; } alias MSLLHOOKSTRUCT* PMSLLHOOKSTRUCT; alias CharToOemA AnsiToOem; alias OemToCharA OemToAnsi; alias CharToOemBuffA AnsiToOemBuff; alias OemToCharBuffA OemToAnsiBuff; alias CharUpperA AnsiUpper; alias CharUpperBuffA AnsiUpperBuff; alias CharLowerA AnsiLower; alias CharLowerBuffA AnsiLowerBuff; alias CharNextA AnsiNext; alias CharPrevA AnsiPrev; alias MAKELONG MAKEWPARAM; alias MAKELONG MAKELPARAM; alias MAKELONG MAKELRESULT; //MACRO #define POINTSTOPOINT(p, ps) { (p).x=LOWORD(*(DWORD* )&ps); (p).y=HIWORD(*(DWORD* )&ps); } //MACRO #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x, (p).y)) extern (Windows) { HKL ActivateKeyboardLayout(HKL, UINT); BOOL AdjustWindowRect(LPRECT, DWORD, BOOL); BOOL AdjustWindowRectEx(LPRECT, DWORD, BOOL, DWORD); BOOL AnyPopup(); BOOL AppendMenuA(HMENU, UINT, UINT_PTR, LPCSTR); BOOL AppendMenuW(HMENU, UINT, UINT_PTR, LPCWSTR); UINT ArrangeIconicWindows(HWND); BOOL AttachThreadInput(DWORD, DWORD, BOOL); HDWP BeginDeferWindowPos(int); HDC BeginPaint(HWND, LPPAINTSTRUCT); BOOL BringWindowToTop(HWND); BOOL CallMsgFilterA(LPMSG, INT); BOOL CallMsgFilterW(LPMSG, INT); LRESULT CallNextHookEx(HHOOK, int, WPARAM, LPARAM); LRESULT CallWindowProcA(WNDPROC, HWND, UINT, WPARAM, LPARAM); LRESULT CallWindowProcW(WNDPROC, HWND, UINT, WPARAM, LPARAM); WORD CascadeWindows(HWND, UINT, LPCRECT, UINT, HWND*); BOOL ChangeClipboardChain(HWND, HWND); LONG ChangeDisplaySettingsA(PDEVMODEA, DWORD); LONG ChangeDisplaySettingsW(PDEVMODEW, DWORD); LONG ChangeDisplaySettingsExA(LPCSTR, LPDEVMODEA, HWND, DWORD, LPVOID); LONG ChangeDisplaySettingsExW(LPCWSTR, LPDEVMODEW, HWND, DWORD, LPVOID); BOOL ChangeMenuA(HMENU, UINT, LPCSTR, UINT, UINT); BOOL ChangeMenuW(HMENU, UINT, LPCWSTR, UINT, UINT); LPSTR CharLowerA(LPSTR); LPWSTR CharLowerW(LPWSTR); DWORD CharLowerBuffA(LPSTR, DWORD); DWORD CharLowerBuffW(LPWSTR, DWORD); LPSTR CharNextA(LPCSTR); LPWSTR CharNextW(LPCWSTR); LPSTR CharNextExA(WORD, LPCSTR, DWORD); LPWSTR CharNextExW(WORD, LPCWSTR, DWORD); LPSTR CharPrevA(LPCSTR, LPCSTR); LPWSTR CharPrevW(LPCWSTR, LPCWSTR); LPSTR CharPrevExA(WORD, LPCSTR, LPCSTR, DWORD); LPWSTR CharPrevExW(WORD, LPCWSTR, LPCWSTR, DWORD); BOOL CharToOemA(LPCSTR, LPSTR); BOOL CharToOemW(LPCWSTR, LPSTR); BOOL CharToOemBuffA(LPCSTR, LPSTR, DWORD); BOOL CharToOemBuffW(LPCWSTR, LPSTR, DWORD); LPSTR CharUpperA(LPSTR); LPWSTR CharUpperW(LPWSTR); DWORD CharUpperBuffA(LPSTR, DWORD); DWORD CharUpperBuffW(LPWSTR, DWORD); BOOL CheckDlgButton(HWND, int, UINT); DWORD CheckMenuItem(HMENU, UINT, UINT); BOOL CheckMenuRadioItem(HMENU, UINT, UINT, UINT, UINT); BOOL CheckRadioButton(HWND, int, int, int); HWND ChildWindowFromPoint(HWND, POINT); HWND ChildWindowFromPointEx(HWND, POINT, UINT); BOOL ClientToScreen(HWND, LPPOINT); BOOL ClipCursor(LPCRECT); BOOL CloseClipboard(); BOOL CloseDesktop(HDESK); BOOL CloseWindow(HWND); BOOL CloseWindowStation(HWINSTA); int CopyAcceleratorTableA(HACCEL, LPACCEL, int); int CopyAcceleratorTableW(HACCEL, LPACCEL, int); HICON CopyIcon(HICON); HANDLE CopyImage(HANDLE, UINT, int, int, UINT); BOOL CopyRect(LPRECT, LPCRECT); int CountClipboardFormats(); HACCEL CreateAcceleratorTableA(LPACCEL, int); HACCEL CreateAcceleratorTableW(LPACCEL, int); BOOL CreateCaret(HWND, HBITMAP, int, int); HCURSOR CreateCursor(HINSTANCE, int, int, int, int, PCVOID, PCVOID); HDESK CreateDesktopA(LPCSTR, LPCSTR, LPDEVMODEA, DWORD, ACCESS_MASK, LPSECURITY_ATTRIBUTES); HDESK CreateDesktopW(LPCWSTR, LPCWSTR, LPDEVMODEW, DWORD, ACCESS_MASK, LPSECURITY_ATTRIBUTES); HWND CreateDialogParamA(HINSTANCE, LPCSTR, HWND, DLGPROC, LPARAM); HWND CreateDialogParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM); HWND CreateDialogIndirectParamA(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM); HWND CreateDialogIndirectParamW(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM); HICON CreateIcon(HINSTANCE, int, int, BYTE, BYTE, BYTE*, BYTE*); HICON CreateIconFromResource(PBYTE, DWORD, BOOL, DWORD); HICON CreateIconFromResourceEx(PBYTE, DWORD, BOOL, DWORD, int, int, UINT); HICON CreateIconIndirect(PICONINFO); HWND CreateMDIWindowA(LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HINSTANCE, LPARAM); HWND CreateMDIWindowW(LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HINSTANCE, LPARAM); HMENU CreateMenu(); HMENU CreatePopupMenu(); HWND CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID); HWND CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID); HWINSTA CreateWindowStationA(LPSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES); HWINSTA CreateWindowStationW(LPWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES); LRESULT DefDlgProcA(HWND, UINT, WPARAM, LPARAM); LRESULT DefDlgProcW(HWND, UINT, WPARAM, LPARAM); HDWP DeferWindowPos(HDWP, HWND, HWND, int, int, int, int, UINT); LRESULT DefFrameProcA(HWND, HWND, UINT, WPARAM, LPARAM); LRESULT DefFrameProcW(HWND, HWND, UINT, WPARAM, LPARAM); LRESULT DefMDIChildProcA(HWND, UINT, WPARAM, LPARAM); LRESULT DefMDIChildProcW(HWND, UINT, WPARAM, LPARAM); LRESULT DefWindowProcA(HWND, UINT, WPARAM, LPARAM); LRESULT DefWindowProcW(HWND, UINT, WPARAM, LPARAM); BOOL DeleteMenu(HMENU, UINT, UINT); BOOL DeregisterShellHookWindow(HWND); BOOL DestroyAcceleratorTable(HACCEL); BOOL DestroyCaret(); BOOL DestroyCursor(HCURSOR); BOOL DestroyIcon(HICON); BOOL DestroyMenu(HMENU); BOOL DestroyWindow(HWND); int DialogBoxParamA(HINSTANCE, LPCSTR, HWND, DLGPROC, LPARAM); int DialogBoxParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM); int DialogBoxIndirectParamA(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM); int DialogBoxIndirectParamW(HINSTANCE, LPCDLGTEMPLATE, HWND, DLGPROC, LPARAM); } // extern (Windows) HCURSOR CopyCursor(HCURSOR c) { return cast(HCURSOR)CopyIcon(cast(HICON)c); } HWND CreateDialogA(HINSTANCE h, LPCSTR n, HWND w, DLGPROC f) { return CreateDialogParamA(h, n, w, f, 0); } HWND CreateDialogW(HINSTANCE h, LPCWSTR n, HWND w, DLGPROC f) { return CreateDialogParamW(h, n, w, f, 0); } HWND CreateDialogIndirectA(HINSTANCE h, LPCDLGTEMPLATE t, HWND w , DLGPROC f) { return CreateDialogIndirectParamA(h, t, w, f, 0); } HWND CreateDialogIndirectW(HINSTANCE h, LPCDLGTEMPLATE t, HWND w , DLGPROC f) { return CreateDialogIndirectParamW(h, t, w, f, 0); } HWND CreateWindowA(LPCSTR a, LPCSTR b, DWORD c, int d, int e, int f, int g, HWND h, HMENU i, HINSTANCE j, LPVOID k) { return CreateWindowExA(0, a, b, c, d, e, f, g, h, i, j, k); } HWND CreateWindowW(LPCWSTR a, LPCWSTR b, DWORD c, int d, int e, int f, int g, HWND h, HMENU i, HINSTANCE j, LPVOID k) { return CreateWindowExW(0, a, b, c, d, e, f, g, h, i, j, k); } int DialogBoxA(HINSTANCE i, LPCSTR t, HWND p, DLGPROC f) { return DialogBoxParamA(i, t, p, f, 0); } int DialogBoxW(HINSTANCE i, LPCWSTR t, HWND p, DLGPROC f) { return DialogBoxParamW(i, t, p, f, 0); } int DialogBoxIndirectA(HINSTANCE i, LPCDLGTEMPLATE t, HWND p, DLGPROC f) { return DialogBoxIndirectParamA(i, t, p, f, 0); } int DialogBoxIndirectW(HINSTANCE i, LPCDLGTEMPLATE t, HWND p, DLGPROC f) { return DialogBoxIndirectParamW(i, t, p, f, 0); } BOOL ExitWindows(UINT r, DWORD c) { return ExitWindowsEx(EWX_LOGOFF, 0); } alias GetWindow GetNextWindow; extern (Windows): LONG DispatchMessageA( MSG*); LONG DispatchMessageW( MSG*); int DlgDirListA(HWND, LPSTR, int, int, UINT); int DlgDirListW(HWND, LPWSTR, int, int, UINT); int DlgDirListComboBoxA(HWND, LPSTR, int, int, UINT); int DlgDirListComboBoxW(HWND, LPWSTR, int, int, UINT); BOOL DlgDirSelectComboBoxExA(HWND, LPSTR, int, int); BOOL DlgDirSelectComboBoxExW(HWND, LPWSTR, int, int); BOOL DlgDirSelectExA(HWND, LPSTR, int, int); BOOL DlgDirSelectExW(HWND, LPWSTR, int, int); BOOL DragDetect(HWND, POINT); DWORD DragObject(HWND, HWND, UINT, DWORD, HCURSOR); BOOL DrawAnimatedRects(HWND, int, LPCRECT, LPCRECT); BOOL DrawCaption(HWND, HDC, LPCRECT, UINT); BOOL DrawEdge(HDC, LPRECT, UINT, UINT); BOOL DrawFocusRect(HDC, LPCRECT); BOOL DrawFrameControl(HDC, LPRECT, UINT, UINT); BOOL DrawIcon(HDC, int, int, HICON); BOOL DrawIconEx(HDC, int, int, HICON, int, int, UINT, HBRUSH, UINT); BOOL DrawMenuBar(HWND); BOOL DrawStateA(HDC, HBRUSH, DRAWSTATEPROC, LPARAM, WPARAM, int, int, int, int, UINT); BOOL DrawStateW(HDC, HBRUSH, DRAWSTATEPROC, LPARAM, WPARAM, int, int, int, int, UINT); int DrawTextA(HDC, LPCSTR, int, LPRECT, UINT); int DrawTextW(HDC, LPCWSTR, int, LPRECT, UINT); int DrawTextExA(HDC, LPSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); int DrawTextExW(HDC, LPWSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS); BOOL EmptyClipboard(); BOOL EnableMenuItem(HMENU, UINT, UINT); BOOL EnableScrollBar(HWND, UINT, UINT); BOOL EnableWindow(HWND, BOOL); BOOL EndDeferWindowPos(HDWP); BOOL EndDialog(HWND, int); BOOL EndMenu(); BOOL EndPaint(HWND, PAINTSTRUCT*); BOOL EnumChildWindows(HWND, ENUMWINDOWSPROC, LPARAM); UINT EnumClipboardFormats(UINT); BOOL EnumDesktopsA(HWINSTA, DESKTOPENUMPROCA, LPARAM); BOOL EnumDesktopsW(HWINSTA, DESKTOPENUMPROCW, LPARAM); BOOL EnumDesktopWindows(HDESK, ENUMWINDOWSPROC, LPARAM); BOOL EnumDisplaySettingsA(LPCSTR, DWORD, PDEVMODEA); BOOL EnumDisplaySettingsW(LPCWSTR, DWORD, PDEVMODEW); BOOL EnumDisplayDevicesA(LPCSTR, DWORD, PDISPLAY_DEVICEA, DWORD); BOOL EnumDisplayDevicesW(LPCWSTR, DWORD, PDISPLAY_DEVICEW, DWORD); int EnumPropsA(HWND, PROPENUMPROCA); int EnumPropsW(HWND, PROPENUMPROCW); int EnumPropsExA(HWND, PROPENUMPROCEXA, LPARAM); int EnumPropsExW(HWND, PROPENUMPROCEXW, LPARAM); BOOL EnumThreadWindows(DWORD, WNDENUMPROC, LPARAM); BOOL EnumWindows(WNDENUMPROC, LPARAM); BOOL EnumWindowStationsA(WINSTAENUMPROCA, LPARAM); BOOL EnumWindowStationsW(WINSTAENUMPROCW, LPARAM); BOOL EqualRect(LPCRECT, LPCRECT); BOOL ExitWindowsEx(UINT, DWORD); HWND FindWindowA(LPCSTR, LPCSTR); HWND FindWindowExA(HWND, HWND, LPCSTR, LPCSTR); HWND FindWindowExW(HWND, HWND, LPCWSTR, LPCWSTR); HWND FindWindowW(LPCWSTR, LPCWSTR); BOOL FlashWindow(HWND, BOOL); int FrameRect(HDC, LPCRECT, HBRUSH); BOOL FrameRgn(HDC, HRGN, HBRUSH, int, int); HWND GetActiveWindow(); HWND GetAncestor(HWND, UINT); SHORT GetAsyncKeyState(int); HWND GetCapture(); UINT GetCaretBlinkTime(); BOOL GetCaretPos(LPPOINT); BOOL GetClassInfoA(HINSTANCE, LPCSTR, LPWNDCLASSA); BOOL GetClassInfoExA(HINSTANCE, LPCSTR, LPWNDCLASSEXA); BOOL GetClassInfoW(HINSTANCE, LPCWSTR, LPWNDCLASSW); BOOL GetClassInfoExW(HINSTANCE, LPCWSTR, LPWNDCLASSEXW); DWORD GetClassLongA(HWND, int); DWORD GetClassLongW(HWND, int); int GetClassNameA(HWND, LPSTR, int); int GetClassNameW(HWND, LPWSTR, int); WORD GetClassWord(HWND, int); BOOL GetClientRect(HWND, LPRECT); HANDLE GetClipboardData(UINT); int GetClipboardFormatNameA(UINT, LPSTR, int); int GetClipboardFormatNameW(UINT, LPWSTR, int); HWND GetClipboardOwner(); HWND GetClipboardViewer(); BOOL GetClipCursor(LPRECT); BOOL GetCursorPos(LPPOINT); HDC GetDC(HWND); HDC GetDCEx(HWND, HRGN, DWORD); HWND GetDesktopWindow(); int GetDialogBaseUnits(); int GetDlgCtrlID(HWND); HWND GetDlgItem(HWND, int); UINT GetDlgItemInt(HWND, int, PBOOL, BOOL); UINT GetDlgItemTextA(HWND, int, LPSTR, int); UINT GetDlgItemTextW(HWND, int, LPWSTR, int); UINT GetDoubleClickTime(); HWND GetFocus(); HWND GetForegroundWindow(); BOOL GetIconInfo(HICON, PICONINFO); BOOL GetInputState(); UINT GetKBCodePage(); HKL GetKeyboardLayout(DWORD); UINT GetKeyboardLayoutList(int, HKL*); BOOL GetKeyboardLayoutNameA(LPSTR); BOOL GetKeyboardLayoutNameW(LPWSTR); BOOL GetKeyboardState(PBYTE); int GetKeyboardType(int); int GetKeyNameTextA(LONG, LPSTR, int); int GetKeyNameTextW(LONG, LPWSTR, int); SHORT GetKeyState(int); HWND GetLastActivePopup(HWND); HMENU GetMenu(HWND); LONG GetMenuCheckMarkDimensions(); DWORD GetMenuContextHelpId(HMENU); UINT GetMenuDefaultItem(HMENU, UINT, UINT); int GetMenuItemCount(HMENU); UINT GetMenuItemID(HMENU, int); BOOL GetMenuItemInfoA(HMENU, UINT, BOOL, LPMENUITEMINFOA); BOOL GetMenuItemInfoW(HMENU, UINT, BOOL, LPMENUITEMINFOW); BOOL GetMenuItemRect(HWND, HMENU, UINT, LPRECT); UINT GetMenuState(HMENU, UINT, UINT); int GetMenuStringA(HMENU, UINT, LPSTR, int, UINT); int GetMenuStringW(HMENU, UINT, LPWSTR, int, UINT); BOOL GetMessageA(LPMSG, HWND, UINT, UINT); BOOL GetMessageW(LPMSG, HWND, UINT, UINT); LONG GetMessageExtraInfo(); DWORD GetMessagePos(); LONG GetMessageTime(); HWND GetNextDlgGroupItem(HWND, HWND, BOOL); HWND GetNextDlgTabItem(HWND, HWND, BOOL); HWND GetOpenClipboardWindow(); HWND GetParent(HWND); int GetPriorityClipboardFormat(UINT*, int); HANDLE GetPropA(HWND, LPCSTR); HANDLE GetPropW(HWND, LPCWSTR); DWORD GetQueueStatus(UINT); BOOL GetScrollInfo(HWND, int, LPSCROLLINFO); int GetScrollPos(HWND, int); BOOL GetScrollRange(HWND, int, LPINT, LPINT); HMENU GetSubMenu(HMENU, int); DWORD GetSysColor(int); HBRUSH GetSysColorBrush(int); HMENU GetSystemMenu(HWND, BOOL); int GetSystemMetrics(int); DWORD GetTabbedTextExtentA(HDC, LPCSTR, int, int, LPINT); DWORD GetTabbedTextExtentW(HDC, LPCWSTR, int, int, LPINT); LONG GetWindowLongA(HWND, int); LONG GetWindowLongW(HWND, int); HDESK GetThreadDesktop(DWORD); HWND GetTopWindow(HWND); BOOL GetUpdateRect(HWND, LPRECT, BOOL); int GetUpdateRgn(HWND, HRGN, BOOL); BOOL GetUserObjectInformationA(HANDLE, int, PVOID, DWORD, PDWORD); BOOL GetUserObjectInformationW(HANDLE, int, PVOID, DWORD, PDWORD); BOOL GetUserObjectSecurity(HANDLE, PSECURITY_INFORMATION, PSECURITY_DESCRIPTOR, DWORD, PDWORD); HWND GetWindow(HWND, UINT); DWORD GetWindowContextHelpId(HWND); HDC GetWindowDC(HWND); BOOL GetWindowPlacement(HWND, WINDOWPLACEMENT*); BOOL GetWindowRect(HWND, LPRECT); int GetWindowRgn(HWND, HRGN); int GetWindowTextA(HWND, LPSTR, int); int GetWindowTextLengthA(HWND); int GetWindowTextLengthW(HWND); int GetWindowTextW(HWND, LPWSTR, int); WORD GetWindowWord(HWND, int); BOOL GetAltTabInfoA(HWND, int, PALTTABINFO, LPSTR, UINT); BOOL GetAltTabInfoW(HWND, int, PALTTABINFO, LPWSTR, UINT); BOOL GetComboBoxInfo(HWND, PCOMBOBOXINFO); BOOL GetCursorInfo(PCURSORINFO); BOOL GetLastInputInfo(PLASTINPUTINFO); DWORD GetListBoxInfo(HWND); BOOL GetMenuBarInfo(HWND, LONG, LONG, PMENUBARINFO); BOOL GetMenuInfo(HMENU, LPMENUINFO); BOOL GetScrollBarInfo(HWND, LONG, PSCROLLBARINFO); BOOL GetTitleBarInfo(HWND, PTITLEBARINFO); BOOL GetWindowInfo(HWND, PWINDOWINFO); UINT GetWindowModuleFileNameA(HWND, LPSTR, UINT); UINT GetWindowModuleFileNameW(HWND, LPWSTR, UINT); BOOL GrayStringA(HDC, HBRUSH, GRAYSTRINGPROC, LPARAM, int, int, int, int, int); BOOL GrayStringW(HDC, HBRUSH, GRAYSTRINGPROC, LPARAM, int, int, int, int, int); BOOL HideCaret(HWND); BOOL HiliteMenuItem(HWND, HMENU, UINT, UINT); BOOL InflateRect(LPRECT, int, int); BOOL InSendMessage(); BOOL InsertMenuA(HMENU, UINT, UINT, UINT, LPCSTR); BOOL InsertMenuW(HMENU, UINT, UINT, UINT, LPCWSTR); BOOL InsertMenuItemA(HMENU, UINT, BOOL, LPCMENUITEMINFOA); BOOL InsertMenuItemW(HMENU, UINT, BOOL, LPCMENUITEMINFOW); INT InternalGetWindowText(HWND, LPWSTR, INT); BOOL IntersectRect(LPRECT, LPCRECT, LPCRECT); BOOL InvalidateRect(HWND, LPCRECT, BOOL); BOOL InvalidateRgn(HWND, HRGN, BOOL); BOOL InvertRect(HDC, LPCRECT); BOOL IsCharAlphaA(CHAR ch); BOOL IsCharAlphaNumericA(CHAR); BOOL IsCharAlphaNumericW(WCHAR); BOOL IsCharAlphaW(WCHAR); BOOL IsCharLowerA(CHAR); BOOL IsCharLowerW(WCHAR); BOOL IsCharUpperA(CHAR); BOOL IsCharUpperW(WCHAR); BOOL IsChild(HWND, HWND); BOOL IsClipboardFormatAvailable(UINT); BOOL IsDialogMessageA(HWND, LPMSG); BOOL IsDialogMessageW(HWND, LPMSG); UINT IsDlgButtonChecked(HWND, int); BOOL IsIconic(HWND); BOOL IsMenu(HMENU); BOOL IsRectEmpty(LPCRECT); BOOL IsWindow(HWND); BOOL IsWindowEnabled(HWND); BOOL IsWindowUnicode(HWND); BOOL IsWindowVisible(HWND); BOOL IsZoomed(HWND); void keybd_event(BYTE, BYTE, DWORD, DWORD); BOOL KillTimer(HWND, UINT); HACCEL LoadAcceleratorsA(HINSTANCE, LPCSTR); HACCEL LoadAcceleratorsW(HINSTANCE, LPCWSTR); HBITMAP LoadBitmapA(HINSTANCE, LPCSTR); HBITMAP LoadBitmapW(HINSTANCE, LPCWSTR); HCURSOR LoadCursorA(HINSTANCE, LPCSTR); HCURSOR LoadCursorFromFileA(LPCSTR); HCURSOR LoadCursorFromFileW(LPCWSTR); HCURSOR LoadCursorW(HINSTANCE, LPCWSTR); HICON LoadIconA(HINSTANCE, LPCSTR); HICON LoadIconW(HINSTANCE, LPCWSTR); HANDLE LoadImageA(HINSTANCE, LPCSTR, UINT, int, int, UINT); HANDLE LoadImageW(HINSTANCE, LPCWSTR, UINT, int, int, UINT); HKL LoadKeyboardLayoutA(LPCSTR, UINT); HKL LoadKeyboardLayoutW(LPCWSTR, UINT); HMENU LoadMenuA(HINSTANCE, LPCSTR); HMENU LoadMenuIndirectA( MENUTEMPLATE*); HMENU LoadMenuIndirectW( MENUTEMPLATE*); HMENU LoadMenuW(HINSTANCE, LPCWSTR); int LoadStringA(HINSTANCE, UINT, LPSTR, int); int LoadStringW(HINSTANCE, UINT, LPWSTR, int); BOOL LockWindowUpdate(HWND); int LookupIconIdFromDirectory(PBYTE, BOOL); int LookupIconIdFromDirectoryEx(PBYTE, BOOL, int, int, UINT); BOOL MapDialogRect(HWND, LPRECT); UINT MapVirtualKeyA(UINT, UINT); UINT MapVirtualKeyExA(UINT, UINT, HKL); UINT MapVirtualKeyExW(UINT, UINT, HKL); UINT MapVirtualKeyW(UINT, UINT); int MapWindowPoints(HWND, HWND, LPPOINT, UINT); int MenuItemFromPoint(HWND, HMENU, POINT); BOOL MessageBeep(UINT); int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT); int MessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT); int MessageBoxExA(HWND, LPCSTR, LPCSTR, UINT, WORD); int MessageBoxExW(HWND, LPCWSTR, LPCWSTR, UINT, WORD); int MessageBoxIndirectA(MSGBOXPARAMSA*); int MessageBoxIndirectW(MSGBOXPARAMSW*); BOOL ModifyMenuA(HMENU, UINT, UINT, UINT, LPCSTR); BOOL ModifyMenuW(HMENU, UINT, UINT, UINT, LPCWSTR); void mouse_event(DWORD, DWORD, DWORD, DWORD, ULONG_PTR); BOOL MoveWindow(HWND, int, int, int, int, BOOL); DWORD MsgWaitForMultipleObjects(DWORD, HANDLE*, BOOL, DWORD, DWORD); DWORD MsgWaitForMultipleObjectsEx(DWORD, HANDLE*, DWORD, DWORD, DWORD); DWORD OemKeyScan(WORD); BOOL OemToCharA(LPCSTR, LPSTR); BOOL OemToCharBuffA(LPCSTR, LPSTR, DWORD); BOOL OemToCharBuffW(LPCSTR, LPWSTR, DWORD); BOOL OemToCharW(LPCSTR, LPWSTR); BOOL OffsetRect(LPRECT, int, int); BOOL OpenClipboard(HWND); HDESK OpenDesktopA(LPSTR, DWORD, BOOL, DWORD); HDESK OpenDesktopW(LPWSTR, DWORD, BOOL, DWORD); BOOL OpenIcon(HWND); HDESK OpenInputDesktop(DWORD, BOOL, DWORD); HWINSTA OpenWindowStationA(LPSTR, BOOL, DWORD); HWINSTA OpenWindowStationW(LPWSTR, BOOL, DWORD); BOOL PaintDesktop(HDC); BOOL PeekMessageA(LPMSG, HWND, UINT, UINT, UINT); BOOL PeekMessageW(LPMSG, HWND, UINT, UINT, UINT); BOOL PostMessageA(HWND, UINT, WPARAM, LPARAM); BOOL PostMessageW(HWND, UINT, WPARAM, LPARAM); void PostQuitMessage(int); BOOL PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM); BOOL PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM); BOOL PtInRect(LPCRECT, POINT); HWND RealChildWindowFromPoint(HWND, POINT); UINT RealGetWindowClassA(HWND, LPSTR, UINT); UINT RealGetWindowClassW(HWND, LPWSTR, UINT); BOOL RedrawWindow(HWND, LPCRECT, HRGN, UINT); ATOM RegisterClassA(WNDCLASSA*); ATOM RegisterClassW(WNDCLASSW*); ATOM RegisterClassExA(WNDCLASSEXA*); ATOM RegisterClassExW(WNDCLASSEXW*); UINT RegisterClipboardFormatA(LPCSTR); UINT RegisterClipboardFormatW(LPCWSTR); BOOL RegisterHotKey(HWND, int, UINT, UINT); UINT RegisterWindowMessageA(LPCSTR); UINT RegisterWindowMessageW(LPCWSTR); BOOL ReleaseCapture(); int ReleaseDC(HWND, HDC); BOOL RemoveMenu(HMENU, UINT, UINT); HANDLE RemovePropA(HWND, LPCSTR); HANDLE RemovePropW(HWND, LPCWSTR); BOOL ReplyMessage(LRESULT); BOOL ScreenToClient(HWND, LPPOINT); BOOL ScrollDC(HDC, int, int, LPCRECT, LPCRECT, HRGN, LPRECT); BOOL ScrollWindow(HWND, int, int, LPCRECT, LPCRECT); int ScrollWindowEx(HWND, int, int, LPCRECT, LPCRECT, HRGN, LPRECT, UINT); LONG SendDlgItemMessageA(HWND, int, UINT, WPARAM, LPARAM); LONG SendDlgItemMessageW(HWND, int, UINT, WPARAM, LPARAM); LRESULT SendMessageA(HWND, UINT, WPARAM, LPARAM); BOOL SendMessageCallbackA(HWND, UINT, WPARAM, LPARAM, SENDASYNCPROC, DWORD); BOOL SendMessageCallbackW(HWND, UINT, WPARAM, LPARAM, SENDASYNCPROC, DWORD); LRESULT SendMessageTimeoutA(HWND, UINT, WPARAM, LPARAM, UINT, UINT, PDWORD); LRESULT SendMessageTimeoutW(HWND, UINT, WPARAM, LPARAM, UINT, UINT, PDWORD); LRESULT SendMessageW(HWND, UINT, WPARAM, LPARAM); BOOL SendNotifyMessageA(HWND, UINT, WPARAM, LPARAM); BOOL SendNotifyMessageW(HWND, UINT, WPARAM, LPARAM); HWND SetActiveWindow(HWND); HWND SetCapture(HWND hWnd); BOOL SetCaretBlinkTime(UINT); BOOL SetCaretPos(int, int); DWORD SetClassLongA(HWND, int, LONG); DWORD SetClassLongW(HWND, int, LONG); WORD SetClassWord(HWND, int, WORD); HANDLE SetClipboardData(UINT, HANDLE); HWND SetClipboardViewer(HWND); HCURSOR SetCursor(HCURSOR); BOOL SetCursorPos(int, int); void SetDebugErrorLevel(DWORD); BOOL SetDlgItemInt(HWND, int, UINT, BOOL); BOOL SetDlgItemTextA(HWND, int, LPCSTR); BOOL SetDlgItemTextW(HWND, int, LPCWSTR); BOOL SetDoubleClickTime(UINT); HWND SetFocus(HWND); BOOL SetForegroundWindow(HWND); BOOL SetKeyboardState(PBYTE); BOOL SetMenu(HWND, HMENU); BOOL SetMenuContextHelpId(HMENU, DWORD); BOOL SetMenuDefaultItem(HMENU, UINT, UINT); BOOL SetMenuInfo(HMENU, LPCMENUINFO); BOOL SetMenuItemBitmaps(HMENU, UINT, UINT, HBITMAP, HBITMAP); BOOL SetMenuItemInfoA(HMENU, UINT, BOOL, LPCMENUITEMINFOA); BOOL SetMenuItemInfoW( HMENU, UINT, BOOL, LPCMENUITEMINFOW); LPARAM SetMessageExtraInfo(LPARAM); BOOL SetMessageQueue(int); HWND SetParent(HWND, HWND); BOOL SetProcessWindowStation(HWINSTA); BOOL SetPropA(HWND, LPCSTR, HANDLE); BOOL SetPropW(HWND, LPCWSTR, HANDLE); BOOL SetRect(LPRECT, int, int, int, int); BOOL SetRectEmpty(LPRECT); int SetScrollInfo(HWND, int, LPCSCROLLINFO, BOOL); int SetScrollPos(HWND, int, int, BOOL); BOOL SetScrollRange(HWND, int, int, int, BOOL); BOOL SetSysColors(int, INT* , COLORREF* ); BOOL SetSystemCursor(HCURSOR, DWORD); BOOL SetThreadDesktop(HDESK); UINT SetTimer(HWND, UINT, UINT, TIMERPROC); BOOL SetUserObjectInformationA(HANDLE, int, PVOID, DWORD); BOOL SetUserObjectInformationW(HANDLE, int, PVOID, DWORD); BOOL SetUserObjectSecurity(HANDLE, PSECURITY_INFORMATION, PSECURITY_DESCRIPTOR); BOOL SetWindowContextHelpId(HWND, DWORD); LONG SetWindowLongA(HWND, int, LONG); LONG SetWindowLongW(HWND, int, LONG); BOOL SetWindowPlacement(HWND hWnd, WINDOWPLACEMENT*); BOOL SetWindowPos(HWND, HWND, int, int, int, int, UINT); int SetWindowRgn(HWND, HRGN, BOOL); HHOOK SetWindowsHookA(int, HOOKPROC); HHOOK SetWindowsHookW(int, HOOKPROC); HHOOK SetWindowsHookExA(int, HOOKPROC, HINSTANCE, DWORD); HHOOK SetWindowsHookExW(int, HOOKPROC, HINSTANCE, DWORD); BOOL SetWindowTextA(HWND, LPCSTR); BOOL SetWindowTextW(HWND, LPCWSTR); WORD SetWindowWord(HWND, int, WORD); BOOL ShowCaret(HWND); int ShowCursor(BOOL); BOOL ShowOwnedPopups(HWND, BOOL); BOOL ShowScrollBar(HWND, int, BOOL); BOOL ShowWindow(HWND, int); BOOL ShowWindowAsync(HWND, int); BOOL SubtractRect(LPRECT, LPCRECT, LPCRECT); BOOL SwapMouseButton(BOOL); BOOL SwitchDesktop(HDESK); BOOL SystemParametersInfoA(UINT, UINT, PVOID, UINT); BOOL SystemParametersInfoW(UINT, UINT, PVOID, UINT); LONG TabbedTextOutA(HDC, int, int, LPCSTR, int, int, LPINT, int); LONG TabbedTextOutW(HDC, int, int, LPCWSTR, int, int, LPINT, int); WORD TileWindows(HWND, UINT, LPCRECT, UINT, HWND* ); int ToAscii(UINT, UINT, PBYTE, LPWORD, UINT); int ToAsciiEx(UINT, UINT, PBYTE, LPWORD, UINT, HKL); int ToUnicode(UINT, UINT, PBYTE, LPWSTR, int, UINT); int ToUnicodeEx(UINT, UINT, PBYTE, LPWSTR, int, UINT, HKL); BOOL TrackMouseEvent(LPTRACKMOUSEEVENT); BOOL TrackPopupMenu(HMENU, UINT, int, int, int, HWND, LPCRECT); BOOL TrackPopupMenuEx(HMENU, UINT, int, int, HWND, LPTPMPARAMS); int TranslateAcceleratorA(HWND, HACCEL, LPMSG); int TranslateAcceleratorW(HWND, HACCEL, LPMSG); BOOL TranslateMDISysAccel(HWND, LPMSG); BOOL TranslateMessage( MSG*); BOOL UnhookWindowsHook(int, HOOKPROC); BOOL UnhookWindowsHookEx(HHOOK); BOOL UnionRect(LPRECT, LPCRECT, LPCRECT); BOOL UnloadKeyboardLayout(HKL); BOOL UnregisterClassA(LPCSTR, HINSTANCE); BOOL UnregisterClassW(LPCWSTR, HINSTANCE); BOOL UnregisterHotKey(HWND, int); BOOL UpdateWindow(HWND); BOOL ValidateRect(HWND, LPCRECT); BOOL ValidateRgn(HWND, HRGN); SHORT VkKeyScanA(CHAR); SHORT VkKeyScanExA(CHAR, HKL); SHORT VkKeyScanExW(WCHAR, HKL); SHORT VkKeyScanW(WCHAR); DWORD WaitForInputIdle(HANDLE, DWORD); BOOL WaitMessage(); HWND WindowFromDC(HDC hDC); HWND WindowFromPoint(POINT); UINT WinExec(LPCSTR, UINT); BOOL WinHelpA(HWND, LPCSTR, UINT, DWORD); BOOL WinHelpW(HWND, LPCWSTR, UINT, DWORD); extern (C) { int wsprintfA(LPSTR, LPCSTR, ...); int wsprintfW(LPWSTR, LPCWSTR, ...); } // These shouldn't be necessary for D. typedef char* va_list_; int wvsprintfA(LPSTR, LPCSTR, va_list_ arglist); int wvsprintfW(LPWSTR, LPCWSTR, va_list_ arglist); static if (_WIN32_WINDOWS == 0x400) { // On Win95, there's only one version. int BroadcastSystemMessage(DWORD, LPDWORD, UINT, WPARAM, LPARAM); } static if (_WIN32_WINNT >= 0x400) { int BroadcastSystemMessageA(DWORD, LPDWORD, UINT, WPARAM, LPARAM); int BroadcastSystemMessageW(DWORD, LPDWORD, UINT, WPARAM, LPARAM); } static if (_WIN32_WINNT >= 0x501) { int BroadcastSystemMessageExA(DWORD, LPDWORD, UINT, WPARAM, LPARAM, PBSMINFO); int BroadcastSystemMessageExW(DWORD, LPDWORD, UINT, WPARAM, LPARAM, PBSMINFO); } static if (_WIN32_WINNT >= 0x403) { UINT SendInput(UINT, LPINPUT, int); } static if (_WIN32_WINNT >= 0x500) { BOOL AnimateWindow(HWND, DWORD, DWORD); BOOL EndTask(HWND, BOOL, BOOL); DWORD GetGuiResources(HANDLE, DWORD); HWND GetShellWindow(); BOOL GetProcessDefaultLayout(DWORD*); BOOL IsHungAppWindow(HWND); BOOL LockWorkStation(); HDEVNOTIFY RegisterDeviceNotificationA(HANDLE, LPVOID, DWORD); HDEVNOTIFY RegisterDeviceNotificationW(HANDLE, LPVOID, DWORD); BOOL SetProcessDefaultLayout(DWORD); void SwitchToThisWindow(HWND, BOOL); BOOL SetLayeredWindowAttributes(HWND, COLORREF, BYTE, DWORD); BOOL UpdateLayeredWindow(HWND, HDC, POINT*, SIZE*, HDC, POINT*, COLORREF, BLENDFUNCTION*, DWORD); BOOL UserHandleGrantAccess(HANDLE, HANDLE, BOOL); } static if (_WIN32_WINNT >= 0x501) { UINT GetRawInputBuffer(PRAWINPUT, PUINT, UINT); UINT GetRawInputData(HRAWINPUT, UINT, LPVOID, PUINT, UINT); UINT GetRawInputDeviceInfoA(HANDLE, UINT, LPVOID, PUINT); UINT GetRawInputDeviceInfoW(HANDLE, UINT, LPVOID, PUINT); UINT GetRawInputDeviceList(PRAWINPUTDEVICELIST, PUINT, UINT); UINT GetRegisteredRawInputDevices(PRAWINPUTDEVICE, PUINT, UINT); LRESULT DefRawInputProc(PRAWINPUT*, INT, UINT); BOOL RegisterRawInputDevices(PCRAWINPUTDEVICE, UINT, UINT); BOOL IsGUIThread(BOOL); BOOL IsWinEventHookInstalled(DWORD); BOOL PrintWindow(HWND, HDC, UINT); BOOL GetLayeredWindowAttributes(HWND, COLORREF*, BYTE*, DWORD*); } static if (WINVER >= 0x410) { BOOL EnumDisplayMonitors(HDC, LPCRECT, MONITORENUMPROC, LPARAM); BOOL GetMonitorInfoA(HMONITOR, LPMONITORINFO); BOOL GetMonitorInfoA(HMONITOR, LPMONITORINFOEXA); BOOL GetMonitorInfoW(HMONITOR, LPMONITORINFO); BOOL GetMonitorInfoW(HMONITOR, LPMONITORINFOEXW); HMONITOR MonitorFromPoint(POINT, DWORD); HMONITOR MonitorFromRect(LPCRECT, DWORD); HMONITOR MonitorFromWindow(HWND, DWORD); } static if (WINVER >= 0x500) { BOOL GetGUIThreadInfo(DWORD, LPGUITHREADINFO); void NotifyWinEvent(DWORD, HWND, LONG, LONG); HWINEVENTHOOK SetWinEventHook(UINT, UINT, HMODULE, WINEVENTPROC, DWORD, DWORD, UINT); BOOL UnhookWinEvent(HWINEVENTHOOK); BOOL UnregisterDeviceNotification(HANDLE); } static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { BOOL EnumDisplaySettingsExA(LPCSTR, DWORD, LPDEVMODEA, DWORD); BOOL EnumDisplaySettingsExW(LPCWSTR, DWORD, LPDEVMODEW, DWORD); BOOL FlashWindowEx(PFLASHWINFO); DWORD GetClipboardSequenceNumber(); DWORD InSendMessageEx(LPVOID); } static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x490)) { BOOL AllowSetForegroundWindow(DWORD); BOOL LockSetForegroundWindow(UINT); int GetMouseMovePointsEx(UINT, LPMOUSEMOVEPOINT, LPMOUSEMOVEPOINT, int, DWORD); } version (Win64) { LONG_PTR GetWindowLongPtrA(HWND, int); LONG_PTR GetWindowLongPtrW(HWND, int); LONG_PTR SetWindowLongPtrA(HWND, int, LONG_PTR); LONG_PTR SetWindowLongPtrW(HWND, int, LONG_PTR); } else { alias GetWindowLongA GetWindowLongPtrA; alias GetWindowLongW GetWindowLongPtrW; alias SetWindowLongA SetWindowLongPtrA; alias SetWindowLongW SetWindowLongPtrW; } // ----- // Aliases for Unicode or Ansi version(Unicode) { alias EDITWORDBREAKPROCW EDITWORDBREAKPROC; alias PROPENUMPROCW PROPENUMPROC; alias PROPENUMPROCEXW PROPENUMPROCEX; alias DESKTOPENUMPROCW DESKTOPENUMPROC; alias WINSTAENUMPROCW WINSTAENUMPROC; alias MAKEINTRESOURCEW MAKEINTRESOURCE; alias WNDCLASSW WNDCLASS; alias WNDCLASSEXW WNDCLASSEX; alias MENUITEMINFOW MENUITEMINFO; alias LPCMENUITEMINFOW LPCMENUITEMINFO; alias MSGBOXPARAMSW MSGBOXPARAMS; alias HIGHCONTRASTW HIGHCONTRAST; alias SERIALKEYSW SERIALKEYS; alias SOUNDSENTRYW SOUNDSENTRY; alias CREATESTRUCTW CREATESTRUCT; alias CBT_CREATEWNDW CBT_CREATEWND; alias MDICREATESTRUCTW MDICREATESTRUCT; alias MULTIKEYHELPW MULTIKEYHELP; alias MONITORINFOEXW MONITORINFOEX; alias ICONMETRICSW ICONMETRICS; alias NONCLIENTMETRICSW NONCLIENTMETRICS; alias AppendMenuW AppendMenu; alias BroadcastSystemMessageW BroadcastSystemMessage; static if (_WIN32_WINNT >= 0x501) { alias BroadcastSystemMessageExW BroadcastSystemMessageEx; } alias CallMsgFilterW CallMsgFilter; alias CallWindowProcW CallWindowProc; alias ChangeMenuW ChangeMenu; alias CharLowerW CharLower; alias CharLowerBuffW CharLowerBuff; alias CharNextW CharNext; alias CharNextExW CharNextEx; alias CharPrevW CharPrev; alias CharPrevExW CharPrevEx; alias CharToOemW CharToOem; alias CharToOemBuffW CharToOemBuff; alias CharUpperW CharUpper; alias CharUpperBuffW CharUpperBuff; alias CopyAcceleratorTableW CopyAcceleratorTable; alias CreateAcceleratorTableW CreateAcceleratorTable; alias CreateDialogW CreateDialog; alias CreateDialogIndirectW CreateDialogIndirect; alias CreateDialogIndirectParamW CreateDialogIndirectParam; alias CreateDialogParamW CreateDialogParam; alias CreateMDIWindowW CreateMDIWindow; alias CreateWindowW CreateWindow; alias CreateWindowExW CreateWindowEx; alias CreateWindowStationW CreateWindowStation; alias DefDlgProcW DefDlgProc; alias DefFrameProcW DefFrameProc; alias DefMDIChildProcW DefMDIChildProc; alias DefWindowProcW DefWindowProc; alias DialogBoxW DialogBox; alias DialogBoxIndirectW DialogBoxIndirect; alias DialogBoxIndirectParamW DialogBoxIndirectParam; alias DialogBoxParamW DialogBoxParam; alias DispatchMessageW DispatchMessage; alias DlgDirListW DlgDirList; alias DlgDirListComboBoxW DlgDirListComboBox; alias DlgDirSelectComboBoxExW DlgDirSelectComboBoxEx; alias DlgDirSelectExW DlgDirSelectEx; alias DrawStateW DrawState; alias DrawTextW DrawText; alias DrawTextExW DrawTextEx; alias EnumDesktopsW EnumDesktops; alias EnumPropsW EnumProps; alias EnumPropsExW EnumPropsEx; alias EnumWindowStationsW EnumWindowStations; alias FindWindowW FindWindow; alias FindWindowExW FindWindowEx; alias GetClassInfoW GetClassInfo; alias GetClassInfoExW GetClassInfoEx; alias GetClassLongW GetClassLong; alias GetClassNameW GetClassName; alias GetClipboardFormatNameW GetClipboardFormatName; alias GetDlgItemTextW GetDlgItemText; alias GetKeyboardLayoutNameW GetKeyboardLayoutName; alias GetKeyNameTextW GetKeyNameText; alias GetMenuItemInfoW GetMenuItemInfo; alias GetMenuStringW GetMenuString; alias GetMessageW GetMessage; static if (WINVER >=0x410) { alias GetMonitorInfoW GetMonitorInfo; } alias GetPropW GetProp; static if (_WIN32_WINNT >= 0x501) { alias GetRawInputDeviceInfoW GetRawInputDeviceInfo; } alias GetTabbedTextExtentW GetTabbedTextExtent; alias GetUserObjectInformationW GetUserObjectInformation; alias GetWindowLongW GetWindowLong; alias GetWindowLongPtrW GetWindowLongPtr; alias GetWindowTextW GetWindowText; alias GetWindowTextLengthW GetWindowTextLength; alias GetAltTabInfoW GetAltTabInfo; alias GetWindowModuleFileNameW GetWindowModuleFileName; alias GrayStringW GrayString; alias InsertMenuW InsertMenu; alias InsertMenuItemW InsertMenuItem; alias IsCharAlphaW IsCharAlpha; alias IsCharAlphaNumericW IsCharAlphaNumeric; alias IsCharLowerW IsCharLower; alias IsCharUpperW IsCharUpper; alias IsDialogMessageW IsDialogMessage; alias LoadAcceleratorsW LoadAccelerators; alias LoadBitmapW LoadBitmap; alias LoadCursorW LoadCursor; alias LoadCursorFromFileW LoadCursorFromFile; alias LoadIconW LoadIcon; alias LoadImageW LoadImage; alias LoadKeyboardLayoutW LoadKeyboardLayout; alias LoadMenuW LoadMenu; alias LoadMenuIndirectW LoadMenuIndirect; alias LoadStringW LoadString; alias MapVirtualKeyW MapVirtualKey; alias MapVirtualKeyExW MapVirtualKeyEx; alias MessageBoxW MessageBox; alias MessageBoxExW MessageBoxEx; alias MessageBoxIndirectW MessageBoxIndirect; alias ModifyMenuW ModifyMenu; alias OemToCharW OemToChar; alias OemToCharBuffW OemToCharBuff; alias OpenDesktopW OpenDesktop; alias OpenWindowStationW OpenWindowStation; alias PeekMessageW PeekMessage; alias PostMessageW PostMessage; alias PostThreadMessageW PostThreadMessage; alias RealGetWindowClassW RealGetWindowClass; alias RegisterClassW RegisterClass; alias RegisterClassExW RegisterClassEx; alias RegisterClipboardFormatW RegisterClipboardFormat; static if (WINVER >= 0x500) { alias RegisterDeviceNotificationW RegisterDeviceNotification; } alias RegisterWindowMessageW RegisterWindowMessage; alias RemovePropW RemoveProp; alias SendDlgItemMessageW SendDlgItemMessage; alias SendMessageW SendMessage; alias SendMessageCallbackW SendMessageCallback; alias SendMessageTimeoutW SendMessageTimeout; alias SendNotifyMessageW SendNotifyMessage; alias SetClassLongW SetClassLong; alias SetDlgItemTextW SetDlgItemText; alias SetMenuItemInfoW SetMenuItemInfo; alias SetPropW SetProp; alias SetUserObjectInformationW SetUserObjectInformation; alias SetWindowLongW SetWindowLong; alias SetWindowLongPtrW SetWindowLongPtr; alias SetWindowsHookW SetWindowsHook; alias SetWindowsHookExW SetWindowsHookEx; alias SetWindowTextW SetWindowText; alias SystemParametersInfoW SystemParametersInfo; alias TabbedTextOutW TabbedTextOut; alias TranslateAcceleratorW TranslateAccelerator; alias UnregisterClassW UnregisterClass; alias VkKeyScanW VkKeyScan; alias VkKeyScanExW VkKeyScanEx; alias WinHelpW WinHelp; alias wsprintfW wsprintf; alias wvsprintfW wvsprintf; alias ChangeDisplaySettingsW ChangeDisplaySettings; alias ChangeDisplaySettingsExW ChangeDisplaySettingsEx; alias CreateDesktopW CreateDesktop; alias EnumDisplaySettingsW EnumDisplaySettings; static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { alias EnumDisplaySettingsExW EnumDisplaySettingsEx; } alias EnumDisplayDevicesW EnumDisplayDevices; } else { // ANSI alias EDITWORDBREAKPROCA EDITWORDBREAKPROC; alias PROPENUMPROCA PROPENUMPROC; alias PROPENUMPROCEXA PROPENUMPROCEX; alias DESKTOPENUMPROCA DESKTOPENUMPROC; alias WINSTAENUMPROCA WINSTAENUMPROC; alias MAKEINTRESOURCEA MAKEINTRESOURCE; alias WNDCLASSA WNDCLASS; alias WNDCLASSEXA WNDCLASSEX; alias MENUITEMINFOA MENUITEMINFO; alias LPCMENUITEMINFOA LPCMENUITEMINFO; alias MSGBOXPARAMSA MSGBOXPARAMS; alias HIGHCONTRASTA HIGHCONTRAST; alias SERIALKEYSA SERIALKEYS; alias SOUNDSENTRYA SOUNDSENTRY; alias CREATESTRUCTA CREATESTRUCT; alias CBT_CREATEWNDA CBT_CREATEWND; alias MDICREATESTRUCTA MDICREATESTRUCT; alias MULTIKEYHELPA MULTIKEYHELP; alias MONITORINFOEXA MONITORINFOEX; alias ICONMETRICSA ICONMETRICS; alias NONCLIENTMETRICSA NONCLIENTMETRICS; alias AppendMenuA AppendMenu; alias BroadcastSystemMessageA BroadcastSystemMessage; static if (_WIN32_WINNT >= 0x501) { alias BroadcastSystemMessageExA BroadcastSystemMessageEx; } alias CallMsgFilterA CallMsgFilter; alias CallWindowProcA CallWindowProc; alias ChangeMenuA ChangeMenu; alias CharLowerA CharLower; alias CharLowerBuffA CharLowerBuff; alias CharNextA CharNext; alias CharNextExA CharNextEx; alias CharPrevA CharPrev; alias CharPrevExA CharPrevEx; alias CharToOemA CharToOem; alias CharToOemBuffA CharToOemBuff; alias CharUpperA CharUpper; alias CharUpperBuffA CharUpperBuff; alias CopyAcceleratorTableA CopyAcceleratorTable; alias CreateAcceleratorTableA CreateAcceleratorTable; alias CreateDialogA CreateDialog; alias CreateDialogIndirectA CreateDialogIndirect; alias CreateDialogIndirectParamA CreateDialogIndirectParam; alias CreateDialogParamA CreateDialogParam; alias CreateMDIWindowA CreateMDIWindow; alias CreateWindowA CreateWindow; alias CreateWindowExA CreateWindowEx; alias CreateWindowStationA CreateWindowStation; alias DefDlgProcA DefDlgProc; alias DefFrameProcA DefFrameProc; alias DefMDIChildProcA DefMDIChildProc; alias DefWindowProcA DefWindowProc; alias DialogBoxA DialogBox; alias DialogBoxIndirectA DialogBoxIndirect; alias DialogBoxIndirectParamA DialogBoxIndirectParam; alias DialogBoxParamA DialogBoxParam; alias DispatchMessageA DispatchMessage; alias DlgDirListA DlgDirList; alias DlgDirListComboBoxA DlgDirListComboBox; alias DlgDirSelectComboBoxExA DlgDirSelectComboBoxEx; alias DlgDirSelectExA DlgDirSelectEx; alias DrawStateA DrawState; alias DrawTextA DrawText; alias DrawTextExA DrawTextEx; alias EnumDesktopsA EnumDesktops; alias EnumPropsA EnumProps; alias EnumPropsExA EnumPropsEx; alias EnumWindowStationsA EnumWindowStations; alias FindWindowA FindWindow; alias FindWindowExA FindWindowEx; alias GetClassInfoA GetClassInfo; alias GetClassInfoExA GetClassInfoEx; alias GetClassLongA GetClassLong; alias GetClassNameA GetClassName; alias GetClipboardFormatNameA GetClipboardFormatName; alias GetDlgItemTextA GetDlgItemText; alias GetKeyboardLayoutNameA GetKeyboardLayoutName; alias GetKeyNameTextA GetKeyNameText; alias GetMenuItemInfoA GetMenuItemInfo; alias GetMenuStringA GetMenuString; alias GetMessageA GetMessage; static if (WINVER >=0x410) { alias GetMonitorInfoA GetMonitorInfo; } alias GetPropA GetProp; static if (_WIN32_WINNT >= 0x501) { alias GetRawInputDeviceInfoA GetRawInputDeviceInfo; } alias GetTabbedTextExtentA GetTabbedTextExtent; alias GetUserObjectInformationA GetUserObjectInformation; alias GetWindowLongA GetWindowLong; alias GetWindowLongPtrA GetWindowLongPtr; alias GetWindowTextA GetWindowText; alias GetWindowTextLengthA GetWindowTextLength; alias GetAltTabInfoA GetAltTabInfo; alias GetWindowModuleFileNameA GetWindowModuleFileName; alias GrayStringA GrayString; alias InsertMenuA InsertMenu; alias InsertMenuItemA InsertMenuItem; alias IsCharAlphaA IsCharAlpha; alias IsCharAlphaNumericA IsCharAlphaNumeric; alias IsCharLowerA IsCharLower; alias IsCharUpperA IsCharUpper; alias IsDialogMessageA IsDialogMessage; alias LoadAcceleratorsA LoadAccelerators; alias LoadBitmapA LoadBitmap; alias LoadCursorA LoadCursor; alias LoadIconA LoadIcon; alias LoadCursorFromFileA LoadCursorFromFile; alias LoadImageA LoadImage; alias LoadKeyboardLayoutA LoadKeyboardLayout; alias LoadMenuA LoadMenu; alias LoadMenuIndirectA LoadMenuIndirect; alias LoadStringA LoadString; alias MapVirtualKeyA MapVirtualKey; alias MapVirtualKeyExA MapVirtualKeyEx; alias MessageBoxA MessageBox; alias MessageBoxExA MessageBoxEx; alias MessageBoxIndirectA MessageBoxIndirect; alias ModifyMenuA ModifyMenu; alias OemToCharA OemToChar; alias OemToCharBuffA OemToCharBuff; alias OpenDesktopA OpenDesktop; alias OpenWindowStationA OpenWindowStation; alias PeekMessageA PeekMessage; alias PostMessageA PostMessage; alias PostThreadMessageA PostThreadMessage; alias RealGetWindowClassA RealGetWindowClass; alias RegisterClassA RegisterClass; alias RegisterClassExA RegisterClassEx; alias RegisterClipboardFormatA RegisterClipboardFormat; static if (WINVER >= 0x500) { alias RegisterDeviceNotificationA RegisterDeviceNotification; } alias RegisterWindowMessageA RegisterWindowMessage; alias RemovePropA RemoveProp; alias SendDlgItemMessageA SendDlgItemMessage; alias SendMessageA SendMessage; alias SendMessageCallbackA SendMessageCallback; alias SendMessageTimeoutA SendMessageTimeout; alias SendNotifyMessageA SendNotifyMessage; alias SetClassLongA SetClassLong; alias SetDlgItemTextA SetDlgItemText; alias SetMenuItemInfoA SetMenuItemInfo; alias SetPropA SetProp; alias SetUserObjectInformationA SetUserObjectInformation; alias SetWindowLongA SetWindowLong; alias SetWindowLongPtrA SetWindowLongPtr; alias SetWindowsHookA SetWindowsHook; alias SetWindowsHookExA SetWindowsHookEx; alias SetWindowTextA SetWindowText; alias SystemParametersInfoA SystemParametersInfo; alias TabbedTextOutA TabbedTextOut; alias TranslateAcceleratorA TranslateAccelerator; alias UnregisterClassA UnregisterClass; alias VkKeyScanA VkKeyScan; alias VkKeyScanExA VkKeyScanEx; alias WinHelpA WinHelp; alias wsprintfA wsprintf; alias wvsprintfA wvsprintf; alias ChangeDisplaySettingsA ChangeDisplaySettings; alias ChangeDisplaySettingsExA ChangeDisplaySettingsEx; alias CreateDesktopA CreateDesktop; alias EnumDisplaySettingsA EnumDisplaySettings; static if ((_WIN32_WINNT >= 0x500) || (_WIN32_WINDOWS >= 0x410)) { alias EnumDisplaySettingsExA EnumDisplaySettingsEx; } alias EnumDisplayDevicesA EnumDisplayDevices; } alias WNDCLASS* LPWNDCLASS, PWNDCLASS; alias WNDCLASSEX* LPWNDCLASSEX, PWNDCLASSEX; alias MENUITEMINFO* LPMENUITEMINFO; alias MSGBOXPARAMS* PMSGBOXPARAMS, LPMSGBOXPARAMS; alias HIGHCONTRAST* LPHIGHCONTRAST; alias SERIALKEYS* LPSERIALKEYS; alias SOUNDSENTRY* LPSOUNDSENTRY; alias CREATESTRUCT* LPCREATESTRUCT; alias CBT_CREATEWND* LPCBT_CREATEWND; alias MDICREATESTRUCT* LPMDICREATESTRUCT; alias MULTIKEYHELP* PMULTIKEYHELP, LPMULTIKEYHELP; alias MONITORINFOEX* LPMONITORINFOEX; alias ICONMETRICS* LPICONMETRICS; alias NONCLIENTMETRICS* LPNONCLIENTMETRICS;
D
instance SLV_824_Slave (Npc_Default) { //-------- primary data -------- name = Name_Slave; Npctype = Npctype_Ambient; guild = GIL_SLV; level = 5; voice = 13; id = 824; //-------- abilities -------- attribute[ATR_STRENGTH] = 70; attribute[ATR_DEXTERITY] = 30; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 146; attribute[ATR_HITPOINTS] = 146; //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Tired.mds"); // body mesh,head mesh,hairmesh,face-tex,hair-tex,skin Mdl_SetVisualBody (self,"hum_body_Naked0",2,1,"Hum_Head_Bald",16,2,-1); B_Scale (self); Mdl_SetModelFatness (self,0); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente ---------- Npc_SetTalentSkill (self,NPC_TALENT_BOW,1); Npc_SetTalentSkill (self,NPC_TALENT_1H,1); //-------- inventory -------- CreateInvItems (self,ItFoRice,5); CreateInvItems(self,ItMi_Broom,1); //-------------Daily Routine------------- /*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_824; }; FUNC VOID Rtn_start_824 () { TA_SitCampfire (00,16,09,10,"NC_SLVCAMPFIRE"); TA_Brooming (09,10,0,16,"NC_KDW06_IN"); };
D
/* Converted to D from gsl_vector_double.h by htod * and edited by daniel truemper <truemped.dsource <with> hence22.org> */ module auxc.gsl.gsl_vector_double; /* vector/gsl_vector_double.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * 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; either version 2 of the License, or (at * your option) any later version. * * 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import tango.stdc.stdlib; import tango.stdc.stdio; public import auxc.gsl.gsl_types; public import auxc.gsl.gsl_errno; public import auxc.gsl.gsl_check_range; public import auxc.gsl.gsl_block_double; extern (C): struct gsl_vector { size_t size; size_t stride; double *data; gsl_block *block; int owner; }; struct _gsl_vector_view { gsl_vector vector; }; alias _gsl_vector_view gsl_vector_view; struct _gsl_vector_const_view { gsl_vector vector; }; alias _gsl_vector_const_view gsl_vector_const_view; /* Allocation */ gsl_vector * gsl_vector_alloc(size_t n); gsl_vector * gsl_vector_calloc(size_t n); gsl_vector * gsl_vector_alloc_from_block(gsl_block *b, size_t offset, size_t n, size_t stride); gsl_vector * gsl_vector_alloc_from_vector(gsl_vector *v, size_t offset, size_t n, size_t stride); void gsl_vector_free(gsl_vector *v); /* Views */ _gsl_vector_view gsl_vector_view_array(double *v, size_t n); _gsl_vector_view gsl_vector_view_array_with_stride(double *base, size_t stride, size_t n); _gsl_vector_const_view gsl_vector_const_view_array(double *v, size_t n); _gsl_vector_const_view gsl_vector_const_view_array_with_stride(double *base, size_t stride, size_t n); _gsl_vector_view gsl_vector_subvector(gsl_vector *v, size_t i, size_t n); _gsl_vector_view gsl_vector_subvector_with_stride(gsl_vector *v, size_t i, size_t stride, size_t n); _gsl_vector_const_view gsl_vector_const_subvector(gsl_vector *v, size_t i, size_t n); _gsl_vector_const_view gsl_vector_const_subvector_with_stride(gsl_vector *v, size_t i, size_t stride, size_t n); /* Operations */ double gsl_vector_get(gsl_vector *v, size_t i); void gsl_vector_set(gsl_vector *v, size_t i, double x); double * gsl_vector_ptr(gsl_vector *v, size_t i); double * gsl_vector_const_ptr(gsl_vector *v, size_t i); void gsl_vector_set_zero(gsl_vector *v); void gsl_vector_set_all(gsl_vector *v, double x); int gsl_vector_set_basis(gsl_vector *v, size_t i); int gsl_vector_fread(FILE *stream, gsl_vector *v); int gsl_vector_fwrite(FILE *stream, gsl_vector *v); int gsl_vector_fscanf(FILE *stream, gsl_vector *v); int gsl_vector_fprintf(FILE *stream, gsl_vector *v, char *format); int gsl_vector_memcpy(gsl_vector *dest, gsl_vector *src); int gsl_vector_reverse(gsl_vector *v); int gsl_vector_swap(gsl_vector *v, gsl_vector *w); int gsl_vector_swap_elements(gsl_vector *v, size_t i, size_t j); double gsl_vector_max(gsl_vector *v); double gsl_vector_min(gsl_vector *v); void gsl_vector_minmax(gsl_vector *v, double *min_out, double *max_out); size_t gsl_vector_max_index(gsl_vector *v); size_t gsl_vector_min_index(gsl_vector *v); void gsl_vector_minmax_index(gsl_vector *v, size_t *imin, size_t *imax); int gsl_vector_add(gsl_vector *a, gsl_vector *b); int gsl_vector_sub(gsl_vector *a, gsl_vector *b); int gsl_vector_mul(gsl_vector *a, gsl_vector *b); int gsl_vector_div(gsl_vector *a, gsl_vector *b); int gsl_vector_scale(gsl_vector *a, double x); int gsl_vector_add_constant(gsl_vector *a, double x); int gsl_vector_isnull(gsl_vector *v);
D
var int Harad_ItemsGiven_Chapter_1; var int Harad_ItemsGiven_Chapter_2; var int Harad_ItemsGiven_Chapter_3; var int Harad_ItemsGiven_Chapter_4; var int Harad_ItemsGiven_Chapter_5; FUNC VOID B_GiveTradeInv_Harad (var C_NPC slf) { if ((Kapitel >= 1) && (Harad_ItemsGiven_Chapter_1 == FALSE)) { CreateInvItems (slf, ItMi_Gold, 100); Harad_ItemsGiven_Chapter_1 = TRUE; }; if ((Kapitel >= 2) && (Harad_ItemsGiven_Chapter_2 == FALSE)) { CreateInvItems (slf, ItMi_Gold, 200); Harad_ItemsGiven_Chapter_2 = TRUE; }; if ((Kapitel >= 3) && (Harad_ItemsGiven_Chapter_3 == FALSE)) { CreateInvItems (slf, ItMi_Gold, 400); Harad_ItemsGiven_Chapter_3 = TRUE; }; if ((Kapitel >= 4) && (Harad_ItemsGiven_Chapter_4 == FALSE)) { CreateInvItems (slf, ItMi_Gold, 600); //Joly: ERZROHLING!! NICHT ZU VIELE !!! //*********************************** CreateInvItems (slf, ItMi_Nugget, 1); //*********************************** Harad_ItemsGiven_Chapter_4 = TRUE; }; if ((Kapitel >= 5) && (Harad_ItemsGiven_Chapter_5 == FALSE)) { CreateInvItems (slf, ItMi_Gold, 1000); //Joly: ERZROHLING!! NICHT ZU VIELE !!! //*********************************** CreateInvItems (slf, ItMi_Nugget, 2); //*********************************** Harad_ItemsGiven_Chapter_5 = TRUE; }; };
D
/* * $Id: gamemanager.d,v 1.5 2005/09/11 00:47:40 kenta Exp $ * * Copyright 2005 Kenta Cho. Some rights reserved. */ module abagames.gr.gamemanager; private import std.math; private import derelict.sdl2.sdl; private import gl3n.linalg; private import abagames.util.rand; private import abagames.util.support.gl; private import abagames.util.sdl.gamemanager; private import abagames.util.sdl.texture; private import abagames.util.sdl.input; private import abagames.util.sdl.pad; private import abagames.util.sdl.touch; private import abagames.util.sdl.accelerometer; private import abagames.util.sdl.twinstick; private import abagames.util.sdl.mouse; private import abagames.util.sdl.shape; private import abagames.gr.prefmanager; private import abagames.gr.screen; private import abagames.gr.ship; private import abagames.gr.field; private import abagames.gr.bullet; private import abagames.gr.enemy; private import abagames.gr.turret; private import abagames.gr.stagemanager; private import abagames.gr.particle; private import abagames.gr.shot; private import abagames.gr.crystal; private import abagames.gr.letter; private import abagames.gr.title; private import abagames.gr.soundmanager; private import abagames.gr.replay; private import abagames.gr.shape; private import abagames.gr.reel; private import abagames.gr.accelerometerandtouch; private import abagames.gr.mouseandpad; /** * Manage the game state and actor pools. */ public class GameManager: abagames.util.sdl.gamemanager.GameManager { public: static float shipTurnSpeed = 1; static bool shipReverseFire = false; private: Pad pad; TwinStick twinStick; Touch touch; Accelerometer accelerometer; Mouse mouse; RecordableAccelerometerAndTouch accelerometerAndTouch; RecordableMouseAndPad mouseAndPad; PrefManager prefManager; Screen screen; Field field; Ship ship; ShotPool shots; BulletPool bullets; EnemyPool enemies; SparkPool sparks; SmokePool smokes; FragmentPool fragments; SparkFragmentPool sparkFragments; WakePool wakes; CrystalPool crystals; NumIndicatorPool numIndicators; StageManager stageManager; TitleManager titleManager; ScoreReel scoreReel; GameState state; TitleState titleState; InGameState inGameState; mat4 windowmat; bool escPressed; bool backgrounded; public override void init(mat4 windowmat) { Letter.init(); Shot.init(); BulletShape.init(); EnemyShape.init(); Turret.init(); TurretShape.init(); Fragment.init(); SparkFragment.init(); Crystal.initShape(); prefManager = cast(PrefManager) abstPrefManager; screen = cast(Screen) abstScreen; pad = cast(Pad) (cast(MultipleInputDevice) input).inputs[0]; twinStick = cast(TwinStick) (cast(MultipleInputDevice) input).inputs[1]; twinStick.openJoystick(pad.openJoystick()); mouse = cast(Mouse) (cast(MultipleInputDevice) input).inputs[2]; touch = cast(Touch) (cast(MultipleInputDevice) input).inputs[3]; accelerometer = cast(Accelerometer) (cast(MultipleInputDevice) input).inputs[4]; mouse.init(screen); accelerometerAndTouch = new RecordableAccelerometerAndTouch(accelerometer, touch); mouseAndPad = new RecordableMouseAndPad(mouse, pad); field = new Field; Object[] pargs; sparks = new SparkPool(120, pargs); pargs ~= field; wakes = new WakePool(100, pargs); pargs ~= wakes; smokes = new SmokePool(200, pargs); Object[] fargs; fargs ~= field; fargs ~= smokes; fragments = new FragmentPool(60, fargs); sparkFragments = new SparkFragmentPool(40, fargs); ship = new Ship(pad, twinStick, touch, mouse, accelerometer, accelerometerAndTouch, mouseAndPad, field, screen, sparks, smokes, fragments, wakes); Object[] cargs; cargs ~= ship; crystals = new CrystalPool(80, cargs); scoreReel = new ScoreReel; Object[] nargs; nargs ~= scoreReel; numIndicators = new NumIndicatorPool(50, nargs); Object[] bargs; bargs ~= this; bargs ~= field; bargs ~= ship; bargs ~= smokes; bargs ~= wakes; bargs ~= crystals; bullets = new BulletPool(240, bargs); Object[] eargs; eargs ~= field; eargs ~= screen; eargs ~= bullets; eargs ~= ship; eargs ~= sparks; eargs ~= smokes; eargs ~= fragments; eargs ~= sparkFragments; eargs ~= numIndicators; eargs ~= scoreReel; enemies = new EnemyPool(40, eargs); Object[] sargs; sargs ~= field; sargs ~= enemies; sargs ~= sparks; sargs ~= smokes; sargs ~= bullets; shots = new ShotPool(50, sargs); ship.setShots(shots); ship.setEnemies(enemies); stageManager = new StageManager(field, enemies, ship, bullets, sparks, smokes, fragments, wakes); ship.setStageManager(stageManager); field.setStageManager(stageManager); field.setShip(ship); enemies.setStageManager(stageManager); SoundManager.loadSounds(); titleManager = new TitleManager(prefManager, pad, mouse, touch, field, this); inGameState = new InGameState(this, screen, pad, twinStick, touch, mouse, accelerometer, accelerometerAndTouch, mouseAndPad, field, ship, shots, bullets, enemies, sparks, smokes, fragments, sparkFragments, wakes, crystals, numIndicators, stageManager, scoreReel, prefManager); titleState = new TitleState(this, screen, pad, twinStick, touch, mouse, accelerometer, accelerometerAndTouch, mouseAndPad, field, ship, shots, bullets, enemies, sparks, smokes, fragments, sparkFragments, wakes, crystals, numIndicators, stageManager, scoreReel, titleManager, inGameState); ship.setGameState(inGameState); this.windowmat = windowmat; escPressed = false; backgrounded = false; } public override void close() { ship.close(); shots.close(); bullets.close(); enemies.close(); field.close(); sparks.close(); smokes.close(); fragments.close(); sparkFragments.close(); wakes.close(); crystals.close(); numIndicators.close(); BulletShape.close(); EnemyShape.close(); Turret.close(); TurretShape.close(); Crystal.closeShape(); titleState.close(); Letter.close(); } public override void start() { loadLastReplay(); startTitle(); } public void startTitle(bool fromGameover = false) { if (fromGameover) saveLastReplay(); titleState.replayData = inGameState.replayData; state = titleState; startState(); } public void startInGame(int gameMode) { state = inGameState; inGameState.gameMode = gameMode; startState(); } private void startState() { state.start(); } public void saveErrorReplay() { if (state == inGameState) inGameState.saveReplay("error.rpl"); } private void saveLastReplay() { try { inGameState.saveReplay("last.rpl"); } catch (Throwable o) {} } private void loadLastReplay() { try { inGameState.loadReplay("last.rpl"); } catch (Throwable o) { inGameState.resetReplay(); } } private void loadErrorReplay() { try { inGameState.loadReplay("error.rpl"); } catch (Throwable o) { inGameState.resetReplay(); } } public void initInterval() { mainLoop.initInterval(); } public void addSlowdownRatio(float sr) { mainLoop.addSlowdownRatio(sr); } public override void move() { if (pad.keys[SDL_SCANCODE_ESCAPE] == SDL_PRESSED) { if (!escPressed) { escPressed = true; if (state == inGameState) { startTitle(); } else { mainLoop.breakLoop(); } return; } } else { escPressed = false; } state.move(); } public override void draw() { // Do nothing in the background. if (backgrounded) { return; } SDL_Event e = mainLoop.event; if (handleAppEvents(e)) { return; } if (e.type == SDL_WINDOWEVENT_RESIZED) { SDL_WindowEvent we = e.window; Sint32 w = we.data1; Sint32 h = we.data2; if (w > 150 && h > 100) windowmat = screen.resized(w, h); } mat4 view = windowmat * screen.projectiveView(); if (screen.startRenderToLuminousScreen()) { state.drawLuminous(view); screen.endRenderToLuminousScreen(); } screen.clear(); state.draw(view); screen.drawLuminous(windowmat); field.drawSideWalls(view); state.drawFront(view); mat4 orthoView = screen.fixedOrthoView(); state.drawOrtho(orthoView); } private bool handleAppEvents(ref SDL_Event e) { switch (e.type) { case SDL_APP_TERMINATING: mainLoop.breakLoop(); return true; case SDL_APP_WILLENTERBACKGROUND: case SDL_APP_DIDENTERBACKGROUND: // Pause the game. if (inGameState.pauseCnt <= 0 && !inGameState.isGameOver) { inGameState.pauseCnt = 1; } // We're in the background. backgrounded = true; return true; case SDL_APP_DIDENTERFOREGROUND: backgrounded = false; return true; // Nothing to be done; we'll just start looping. case SDL_APP_WILLENTERFOREGROUND: return true; // Not much we're going to do here. case SDL_APP_LOWMEMORY: return false; default: break; } return false; } } /** * Manage the game state. * (e.g. title, in game, gameover, pause, ...) */ public class GameState { protected: GameManager gameManager; Screen screen; Pad pad; TwinStick twinStick; Touch touch; Mouse mouse; Accelerometer accelerometer; RecordableAccelerometerAndTouch accelerometerAndTouch; RecordableMouseAndPad mouseAndPad; Field field; Ship ship; ShotPool shots; BulletPool bullets; EnemyPool enemies; SparkPool sparks; SmokePool smokes; FragmentPool fragments; SparkFragmentPool sparkFragments; WakePool wakes; CrystalPool crystals; NumIndicatorPool numIndicators; StageManager stageManager; ScoreReel scoreReel; ReplayData _replayData; public this(GameManager gameManager, Screen screen, Pad pad, TwinStick twinStick, Touch touch, Mouse mouse, Accelerometer accelerometer, RecordableAccelerometerAndTouch accelerometerAndTouch, RecordableMouseAndPad mouseAndPad, Field field, Ship ship, ShotPool shots, BulletPool bullets, EnemyPool enemies, SparkPool sparks, SmokePool smokes, FragmentPool fragments, SparkFragmentPool sparkFragments, WakePool wakes, CrystalPool crystals, NumIndicatorPool numIndicators, StageManager stageManager, ScoreReel scoreReel) { this.gameManager = gameManager; this.screen = screen; this.pad = pad; this.twinStick = twinStick; this.touch = touch; this.mouse = mouse; this.accelerometer = accelerometer; this.accelerometerAndTouch = accelerometerAndTouch; this.mouseAndPad = mouseAndPad; this.field = field; this.ship = ship; this.shots = shots; this.bullets = bullets; this.enemies = enemies; this.sparks = sparks; this.smokes = smokes; this.fragments = fragments; this.sparkFragments = sparkFragments; this.wakes = wakes; this.crystals = crystals; this.numIndicators = numIndicators; this.stageManager = stageManager; this.scoreReel = scoreReel; } public abstract void start(); public abstract void move(); public abstract void draw(mat4 view); public abstract void drawLuminous(mat4 view); public abstract void drawFront(mat4 view); public abstract void drawOrtho(mat4 view); protected void clearAll() { shots.clear(); bullets.clear(); enemies.clear(); sparks.clear(); smokes.clear(); fragments.clear(); sparkFragments.clear(); wakes.clear(); crystals.clear(); numIndicators.clear(); } public ReplayData replayData(ReplayData v) { return _replayData = v; } public ReplayData replayData() { return _replayData; } } public class InGameState: GameState { public: static enum GameMode { NORMAL, TWIN_STICK, TOUCH, TILT, DOUBLE_PLAY, DOUBLE_PLAY_TOUCH, MOUSE, }; static immutable int GAME_MODE_NUM = 7; static string[] gameModeText = ["NORMAL", "TWIN STICK", "TOUCH", "TILT", "DOUBLE PLAY", "DOUBLE PLAY TOUCH", "MOUSE"]; bool isGameOver; private: static const float SCORE_REEL_SIZE_DEFAULT = 0.5f; static const float SCORE_REEL_SIZE_SMALL = 0.01f; Rand rand; PrefManager prefManager; int left; int time; int gameOverCnt; bool btnPressed; int pauseCnt; bool pausePressed; float scoreReelSize; int _gameMode; // For touch-input modes. float _touchRadius; // For the TOUCH mode. TouchRegion _movementRegion; TouchRegion _fireRegion; invariant() { assert(left >= -1 && left < 10); assert(gameOverCnt >= 0); assert(pauseCnt >= 0); assert(scoreReelSize >= SCORE_REEL_SIZE_SMALL && scoreReelSize <= SCORE_REEL_SIZE_DEFAULT); } public this(GameManager gameManager, Screen screen, Pad pad, TwinStick twinStick, Touch touch, Mouse mouse, Accelerometer accelerometer, RecordableAccelerometerAndTouch accelerometerAndTouch, RecordableMouseAndPad mouseAndPad, Field field, Ship ship, ShotPool shots, BulletPool bullets, EnemyPool enemies, SparkPool sparks, SmokePool smokes, FragmentPool fragments, SparkFragmentPool sparkFragments, WakePool wakes, CrystalPool crystals, NumIndicatorPool numIndicators, StageManager stageManager, ScoreReel scoreReel, PrefManager prefManager) { super(gameManager, screen, pad, twinStick, touch, mouse, accelerometer, accelerometerAndTouch, mouseAndPad, field, ship, shots, bullets, enemies, sparks, smokes, fragments, sparkFragments, wakes, crystals, numIndicators, stageManager, scoreReel); this.prefManager = prefManager; rand = new Rand; _replayData = null; left = 0; gameOverCnt = pauseCnt = 0; scoreReelSize = SCORE_REEL_SIZE_DEFAULT; _touchRadius = Touch.touchRadius(); // TODO: Are these sensible values? float touchPos = 1.5 * _touchRadius; _movementRegion = new CircularTouchRegion(vec2(touchPos, 1.0 - touchPos), _touchRadius); _fireRegion = new CircularTouchRegion(vec2(1.0 - touchPos, 1.0 - touchPos), _touchRadius); } public override void start() { ship.unsetReplayMode(); _replayData = new ReplayData; prefManager.prefData.recordGameMode(_gameMode); switch (_gameMode) { case GameMode.NORMAL: RecordablePad rp = cast(RecordablePad) pad; rp.startRecord(); _replayData.padInputRecord = rp.inputRecord; break; case GameMode.TWIN_STICK: case GameMode.DOUBLE_PLAY: RecordableTwinStick rts = cast(RecordableTwinStick) twinStick; rts.startRecord(); _replayData.twinStickInputRecord = rts.inputRecord; break; case GameMode.DOUBLE_PLAY_TOUCH: case GameMode.TOUCH: RecordableTouch rt = cast(RecordableTouch) touch; rt.startRecord(); _replayData.touchInputRecord = rt.inputRecord; break; case GameMode.TILT: accelerometerAndTouch.startRecord(); _replayData.accelerometerAndTouchInputRecord = accelerometerAndTouch.inputRecord; break; case GameMode.MOUSE: mouseAndPad.startRecord(); _replayData.mouseAndPadInputRecord = mouseAndPad.inputRecord; break; default: assert(0); } _replayData.seed = rand.nextInt32(); _replayData.shipTurnSpeed = GameManager.shipTurnSpeed; _replayData.shipReverseFire = GameManager.shipReverseFire; _replayData.gameMode = _gameMode; SoundManager.enableBgm(); SoundManager.enableSe(); startInGame(); } public void startInGame() { clearAll(); long seed = _replayData.seed; field.setRandSeed(seed); EnemyState.setRandSeed(seed); EnemySpec.setRandSeed(seed); Turret.setRandSeed(seed); Spark.setRandSeed(seed); Smoke.setRandSeed(seed); Fragment.setRandSeed(seed); SparkFragment.setRandSeed(seed); Screen.setRandSeed(seed); BaseShape.setRandSeed(seed); ship.setRandSeed(seed); Shot.setRandSeed(seed); stageManager.setRandSeed(seed); NumReel.setRandSeed(seed); NumIndicator.setRandSeed(seed); SoundManager.setRandSeed(seed); stageManager.start(1); field.start(); ship.start(_gameMode); initGameState(); screen.setScreenShake(0, 0); gameOverCnt = 0; pauseCnt = 0; scoreReelSize = SCORE_REEL_SIZE_DEFAULT; isGameOver = false; SoundManager.playBgm(); } private void initGameState() { time = 0; left = 2; scoreReel.clear(9); NumIndicator.initTargetY(); } public override void move() { if (pad.keys[SDL_SCANCODE_P] == SDL_PRESSED) { if (!pausePressed) { if (pauseCnt <= 0 && !isGameOver) pauseCnt = 1; else pauseCnt = 0; } pausePressed = true; } else { pausePressed = false; } if (pauseCnt > 0) { pauseCnt++; return; } moveInGame(); if (isGameOver) { gameOverCnt++; PadState input = (cast(RecordablePad) pad).getState(false); MouseState mouseInput = (cast(RecordableMouse) mouse).getState(false); if ((input.button & PadState.Button.A) || (gameMode == InGameState.GameMode.MOUSE && (mouseInput.button & MouseState.Button.LEFT))) { if (gameOverCnt > 60 && !btnPressed) gameManager.startTitle(true); btnPressed = true; } else { btnPressed = false; } if (gameOverCnt == 120) { SoundManager.fadeBgm(); SoundManager.disableBgm(); } if (gameOverCnt > 1200) gameManager.startTitle(true); } } public void moveInGame() { field.move(); ship.move(); stageManager.move(); enemies.move(); shots.move(); bullets.move(); crystals.move(); numIndicators.move(); sparks.move(); smokes.move(); fragments.move(); sparkFragments.move(); wakes.move(); screen.move(); scoreReelSize += (SCORE_REEL_SIZE_DEFAULT - scoreReelSize) * 0.05f; scoreReel.move(); if (!isGameOver) time += 17; SoundManager.playMarkedSe(); } public override void draw(mat4 view) { field.draw(view); wakes.draw(view); sparks.draw(view); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); smokes.draw(view); fragments.draw(view); sparkFragments.draw(view); crystals.draw(view); glBlendFunc(GL_SRC_ALPHA, GL_ONE); enemies.draw(view); shots.draw(view); ship.draw(view); bullets.draw(view); } public override void drawFront(mat4 view) { ship.drawFront(view); scoreReel.draw(view, 11.5f + (SCORE_REEL_SIZE_DEFAULT - scoreReelSize) * 3, -8.2f - (SCORE_REEL_SIZE_DEFAULT - scoreReelSize) * 3, scoreReelSize); float x = -12; for (int i = 0; i < left; i++) { mat4 model = mat4.identity; model.scale(0.7f, 0.7f, 0.7f); model.translate(x, -9, 0); ship.drawShape(view, model); x += 0.7f; } numIndicators.draw(view); } public void drawGameParams(mat4 view) { stageManager.draw(view); } public override void drawOrtho(mat4 view) { drawGameParams(view); if (isGameOver) Letter.drawString(view, "GAME OVER", 190, 180, 15); else if (pauseCnt > 0 && (pauseCnt % 64) < 32) Letter.drawString(view, "PAUSE", 265, 210, 12); else if (_gameMode == GameMode.TOUCH) { // TODO: Draw the touch regions. } } public override void drawLuminous(mat4 view) { sparks.drawLuminous(view); sparkFragments.drawLuminous(view); smokes.drawLuminous(view); } public void shipDestroyed() { clearBullets(); stageManager.shipDestroyed(); gameManager.initInterval(); left--; if (left < 0) { isGameOver = true; btnPressed = true; SoundManager.fadeBgm(); scoreReel.accelerate(); if (!ship.replayMode) { SoundManager.disableSe(); prefManager.prefData.recordResult(scoreReel.actualScore, _gameMode); _replayData.score = scoreReel.actualScore; } } } public void clearBullets() { bullets.clear(); } public void shrinkScoreReel() { scoreReelSize += (SCORE_REEL_SIZE_SMALL - scoreReelSize) * 0.08f; } public void saveReplay(string fileName) { _replayData.save(fileName); } public void loadReplay(string fileName) { _replayData = new ReplayData; _replayData.load(fileName); } public void resetReplay() { _replayData = null; } public int gameMode() { return _gameMode; } public int gameMode(int v) { return _gameMode = v; } public float touchRadius() { return _touchRadius; } public TouchRegion movementRegion() { return _movementRegion; } public TouchRegion fireRegion() { return _fireRegion; } } public class TitleState: GameState { private: TitleManager titleManager; InGameState inGameState; int gameOverCnt; invariant() { assert(gameOverCnt >= 0); } public this(GameManager gameManager, Screen screen, Pad pad, TwinStick twinStick, Touch touch, Mouse mouse, Accelerometer accelerometer, RecordableAccelerometerAndTouch accelerometerAndTouch, RecordableMouseAndPad mouseAndPad, Field field, Ship ship, ShotPool shots, BulletPool bullets, EnemyPool enemies, SparkPool sparks, SmokePool smokes, FragmentPool fragments, SparkFragmentPool sparkFragments, WakePool wakes, CrystalPool crystals, NumIndicatorPool numIndicators, StageManager stageManager, ScoreReel scoreReel, TitleManager titleManager, InGameState inGameState) { super(gameManager, screen, pad, twinStick, touch, mouse, accelerometer, accelerometerAndTouch, mouseAndPad, field, ship, shots, bullets, enemies, sparks, smokes, fragments, sparkFragments, wakes, crystals, numIndicators, stageManager, scoreReel); this.titleManager = titleManager; this.inGameState = inGameState; gameOverCnt = 0; } public void close() { titleManager.close(); } public override void start() { SoundManager.haltBgm(); SoundManager.disableBgm(); SoundManager.disableSe(); titleManager.start(); if (replayData) startReplay(); else titleManager.replayData = null; } private void startReplay() { ship.setReplayMode(_replayData.shipTurnSpeed, _replayData.shipReverseFire); switch (_replayData.gameMode) { case InGameState.GameMode.NORMAL: RecordablePad rp = cast(RecordablePad) pad; rp.startReplay(_replayData.padInputRecord); break; case InGameState.GameMode.TWIN_STICK: case InGameState.GameMode.DOUBLE_PLAY: RecordableTwinStick rts = cast(RecordableTwinStick) twinStick; rts.startReplay(_replayData.twinStickInputRecord); break; case InGameState.GameMode.DOUBLE_PLAY_TOUCH: case InGameState.GameMode.TOUCH: RecordableTouch rts = cast(RecordableTouch) touch; rts.startReplay(_replayData.touchInputRecord); break; case InGameState.GameMode.TILT: accelerometerAndTouch.startReplay(_replayData.accelerometerAndTouchInputRecord); break; case InGameState.GameMode.MOUSE: mouseAndPad.startReplay(_replayData.mouseAndPadInputRecord); break; default: assert(0); } titleManager.replayData = _replayData; inGameState.gameMode = _replayData.gameMode; inGameState.startInGame(); } public override void move() { if (_replayData) { if (inGameState.isGameOver) { gameOverCnt++; if (gameOverCnt > 120) startReplay(); } inGameState.moveInGame(); } titleManager.move(); } public override void draw(mat4 view) { if (_replayData) { inGameState.draw(view); } else { field.draw(view); } } public override void drawFront(mat4 view) { if (_replayData) inGameState.drawFront(view); } public override void drawOrtho(mat4 view) { if (_replayData) inGameState.drawGameParams(view); titleManager.draw(view); } public override void drawLuminous(mat4 view) { inGameState.drawLuminous(view); } }
D
import core.stdcpp.allocator; extern(C++) struct MyStruct { int* a; double* b; MyStruct* c; } extern(C++) MyStruct cpp_alloc(int sz); extern(C++) void cpp_free(ref MyStruct s, int sz); unittest { // alloc in C++, delete in D (small) MyStruct s = cpp_alloc(42); allocator!int().deallocate(s.a, 42); allocator!double().deallocate(s.b, 42); allocator!MyStruct().deallocate(s.c, 42); // alloc in C++, delete in D (big) s = cpp_alloc(8193); allocator!int().deallocate(s.a, 8193); allocator!double().deallocate(s.b, 8193); allocator!MyStruct().deallocate(s.c, 8193); // alloc in D, delete in C++ (small) s.a = allocator!int().allocate(43); s.b = allocator!double().allocate(43); s.c = allocator!MyStruct().allocate(43); cpp_free(s, 43); // alloc in D, delete in C++ (big) s.a = allocator!int().allocate(8194); s.b = allocator!double().allocate(8194); s.c = allocator!MyStruct().allocate(8194); cpp_free(s, 8194); }
D
/Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/Objects-normal/x86_64/SpringLabel.o : /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AutoTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/BlurView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableLabel.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTabBarController.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTextField.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/ImageLoader.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/KeyboardLayoutConstraint.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/LoadingView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Misc.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SoundPlayer.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Spring.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringAnimation.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringLabel.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringTextField.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/TransitionManager.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/TransitionZoom.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/UnwindSegue.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/parkingsq1/Documents/project/PushPill/Pods/Target\ Support\ Files/Spring/Spring-umbrella.h /Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/Objects-normal/x86_64/SpringLabel~partial.swiftmodule : /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AutoTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/BlurView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableLabel.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTabBarController.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTextField.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/ImageLoader.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/KeyboardLayoutConstraint.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/LoadingView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Misc.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SoundPlayer.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Spring.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringAnimation.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringLabel.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringTextField.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/TransitionManager.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/TransitionZoom.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/UnwindSegue.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/parkingsq1/Documents/project/PushPill/Pods/Target\ Support\ Files/Spring/Spring-umbrella.h /Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/Objects-normal/x86_64/SpringLabel~partial.swiftdoc : /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AutoTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/BlurView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableLabel.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTabBarController.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTextField.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/DesignableView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/ImageLoader.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/KeyboardLayoutConstraint.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/LoadingView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Misc.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SoundPlayer.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Spring.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringAnimation.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringImageView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringLabel.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringTextField.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringTextView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/SpringView.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/TransitionManager.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/TransitionZoom.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/UnwindSegue.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/parkingsq1/Documents/project/PushPill/Pods/Target\ Support\ Files/Spring/Spring-umbrella.h /Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_All_MobileMedia-9145988392.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_All_MobileMedia-9145988392.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
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 dwt.accessibility.AccessibleTextEvent; import dwt.internal.DWTEventObject; import tango.text.convert.Format; import dwt.dwthelper.utils; /** * Instances of this class are sent as a result of * accessibility clients sending messages to controls * asking for detailed information about the implementation * of the control instance. Typically, only implementors * of custom controls need to listen for this event. * <p> * Note: The meaning of each field depends on the * message that was sent. * </p> * * @see AccessibleTextListener * @see AccessibleTextAdapter * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> * * @since 3.0 */ public class AccessibleTextEvent : DWTEventObject { public int childID; // IN public int offset, length; // OUT //static final long serialVersionUID = 3977019530868308275L; /** * Constructs a new instance of this class. * * @param source the object that fired the event */ public this (Object source) { super (source); } /** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ override public String toString () { return Format( "AccessibleTextEvent {{childID={} offset={} length={}}", childID, offset, length); } }
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/Connection/DatabaseStringFindable.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Database.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/LogSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Databases.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Exports.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /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/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/DatabaseStringFindable~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Database.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/LogSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Databases.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Exports.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /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/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/DatabaseStringFindable~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Database.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/LogSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Databases.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Exports.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /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/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /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
instance DIA_AngarDJG_EXIT(C_Info) { npc = DJG_705_Angar; nr = 999; condition = DIA_AngarDJG_EXIT_Condition; information = DIA_AngarDJG_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_AngarDJG_EXIT_Condition() { return TRUE; }; func void DIA_AngarDJG_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_AngarDJG_HALLO(C_Info) { npc = DJG_705_Angar; nr = 5; condition = DIA_AngarDJG_HALLO_Condition; information = DIA_AngarDJG_HALLO_Info; description = "Neznáme se?"; }; func int DIA_AngarDJG_HALLO_Condition() { return TRUE; }; func void DIA_AngarDJG_HALLO_Info() { AI_Output(other,self,"DIA_AngarDJG_HALLO_15_00"); //Neznáme se? Ty jsi Cor Angar. Býval jsi templářem v táboře v bažinách. AI_Output(self,other,"DIA_AngarDJG_HALLO_04_01"); //(rezignovaně) Říkej mi Angar. Ten titul už nepoužívám. Bratrstvo Spáče už neexistuje. AI_Output(self,other,"DIA_AngarDJG_HALLO_04_02"); //Zajímavé, ale vypadá to, jako bys mě už odněkud znal. Nějak si tě nemohu vybavit. AI_Output(other,self,"DIA_AngarDJG_HALLO_15_03"); //Co to s tebou je? AI_Output(self,other,"DIA_AngarDJG_HALLO_04_04"); //Ach, nebyl jsem jeden čas vůbec schopen usnout. Pořád jsem měl noční můry... if(MIS_Dragonhunter == LOG_Running) { B_LogEntry(TOPIC_Dragonhunter,"V Hornickém údolí jsem našel Angara."); }; }; func void B_SCTellsAngarAboutMadPsi() { if(Angar_KnowsMadPsi == FALSE) { AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi_15_00"); //Bratrstvo Spáče si zotročilo zlo. AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi_15_01"); //Tví dřívější přátelé z tábora v bažinách procházejí zemí v černých róbách a vypadají, že je vše, co se hýbe, neskutečně štve. AI_Output(self,other,"DIA_Angar_B_SCTellsAngarAboutMadPsi_04_02"); //O čem to mluvíš? }; }; func void B_SCTellsAngarAboutMadPsi2() { if(Angar_KnowsMadPsi == FALSE) { AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi2_15_00"); //Slouží nepříteli a nejsou ničím jiným než bezduchými válečníky zla. AI_Output(self,other,"DIA_Angar_B_SCTellsAngarAboutMadPsi2_04_01"); //U všech bohů! Vědět to, nebyl bych tak zaslepeným. Už se to víckrát nestane, Přísahám. B_GivePlayerXP(XP_Angar_KnowsMadPsi); Angar_KnowsMadPsi = TRUE; }; }; func void b_sctellsangaraboutmadpsi3() { AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_00"); //No, ale ne všechny to postihlo! AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_01"); //Jsou tu také ti, do nevstoupili k temným silám. if(HEROKNOWFORESTBASE == TRUE) { AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_02"); //Tady v údolí jsem našel tábor vedený Baalem Netbekem, pamatuješ si na něj? AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_03"); //Také je tam hodně tvých bratří - například Gor Na Bar, tvůj žák. AI_Output(self,other,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_04_03"); //Gor Na Bar? Myslel jsem, že zemřel, když byl zaplaven starý důl! AI_Output(self,other,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_04_04"); //Jsem rád, že přežil, to jsou dobré zprávy! B_GivePlayerXP(50); }; if(MIS_KORANGAR == LOG_Running) { AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_04"); //Nedaleko průsmyku v Khorinisu je tábor Bratrstva - skupina přežívších, kteří si ještě zachovali zdravý rozum! AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_05"); //Vede je Baal Orun. Ten co byl dříve v bažinách. AI_Output(self,other,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_06"); //Bratrstvo Spáče stále existuje? AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_07"); //Ano, ale potřebují duchovního vůdce jako jsi ty! AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_08"); //Už více nevěří ve Spáče, ale potřebují někoho s kým budou mít stejnou sílu jako kdysi! AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_09"); //Baal Orun mě pověřil tvým nalezením - celé Bratrstvo tě potřebuje! AI_Output(self,other,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_10"); //Ach... Být po tom všem zase v čele Bratrstva... Musím si to promyslet. AI_Output(other,self,"DIA_Angar_B_SCTellsAngarAboutMadPsi3_15_11"); //Mysli rychle - tvý bratři zoufale potřebují svého vůdce. MIS_KORANGAR = LOG_SUCCESS; Log_SetTopicStatus(TOPIC_KORANGARMEET,LOG_SUCCESS); B_LogEntry(TOPIC_KORANGARMEET,"Řekl jsem Angarovi o táboře Bratrstva v Khorinisu u průsmyku. Angar byl silně překvapen! Řekl jsem mu, že Baal Orun ho potřebuje v táboře. Angar mi na to řekl, že si to promyslí."); B_GivePlayerXP(200); }; }; instance DIA_Angar_WIEKOMMSTDUHIERHER(C_Info) { npc = DJG_705_Angar; nr = 6; condition = DIA_Angar_WIEKOMMSTDUHIERHER_Condition; information = DIA_Angar_WIEKOMMSTDUHIERHER_Info; description = "Jak ses sem dostal?"; }; func int DIA_Angar_WIEKOMMSTDUHIERHER_Condition() { if(Npc_KnowsInfo(other,DIA_AngarDJG_HALLO)) { return TRUE; }; }; func void DIA_Angar_WIEKOMMSTDUHIERHER_Info() { AI_Output(other,self,"DIA_Angar_WIEKOMMSTDUHIERHER_15_00"); //Jak ses sem dostal? if(Kapitel < 4) { AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_04_01A"); //Po pádě bariéry jsem se schoval v horách. Pak jsem došel tady do lesa. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_04_01B"); //A kvůli nočním můrám a bolesti hlavy jsem se schoval na tomhle místě. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_04_01C"); //Nicméně tu není bezpečno, takže pravděpodobně brzy zase půjdu. } else { AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_04_01D"); //Poté, co zanikla bariéra, jsem se ukryl v horách. Pak bylo načase, abych začal něco dělat. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_04_01E"); //Bloudil jsem několik dní a pak jsem se náhle objevil na tomhle hradě. Neptej se mě, co se stalo. Já to nevím. }; AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_04_03"); //A jako by toho bylo málo, ještě jsem ztratil amulet, který jsem měl už dlouhá léta. Nejspíš se zblázním, když se mi ho nepodaří znovu nalézt. Log_CreateTopic(TOPIC_AngarsAmulett,LOG_MISSION); Log_SetTopicStatus(TOPIC_AngarsAmulett,LOG_Running); B_LogEntry(TOPIC_AngarsAmulett,"Angar ztratil svůj amulet a teď se ho zoufale snaží najít."); Info_AddChoice(DIA_Angar_WIEKOMMSTDUHIERHER,Dialog_Back,DIA_Angar_WIEKOMMSTDUHIERHER_gehen); Info_AddChoice(DIA_Angar_WIEKOMMSTDUHIERHER,"Kde přesně jsi ten amulet ztratil?",DIA_Angar_WIEKOMMSTDUHIERHER_amulett); if(SC_KnowsMadPsi == TRUE) { Info_AddChoice(DIA_Angar_WIEKOMMSTDUHIERHER,"Bratrstvo Spáče si zotročilo zlo.",DIA_Angar_WIEKOMMSTDUHIERHER_andere); } else { Info_AddChoice(DIA_Angar_WIEKOMMSTDUHIERHER,"Co se stalo s ostatníma z tábora v bažinách?",DIA_Angar_WIEKOMMSTDUHIERHER_andere); }; if(DJG_Angar_SentToStones == FALSE) { Info_AddChoice(DIA_Angar_WIEKOMMSTDUHIERHER,"Co budeš dělat dál?",DIA_Angar_WIEKOMMSTDUHIERHER_nun); }; }; func void DIA_Angar_WIEKOMMSTDUHIERHER_amulett() { AI_Output(other,self,"DIA_Angar_WIEKOMMSTDUHIERHER_amulett_15_00"); //Kde přesně jsi ten amulet ztratil? if(DJG_Angar_SentToStones == FALSE) { AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_amulett_04_01"); //Někde na jihu, krátce předtím, než jsem se objevil tady na hradě. B_LogEntry(TOPIC_AngarsAmulett,"Amulet by měl ležet kdesi na jihu. Angar se po něm jde podívat."); } else { AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_amulett_04_02"); //Někde musí být. B_LogEntry(TOPIC_AngarsAmulett,"Amulet se nachází u kamenné hrobky na jihu Hornického údolí."); }; AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_amulett_04_03"); //Bojím se, že ho někdo ukradl. Musím ho za každou cenu dostat zpátky. }; func void DIA_Angar_WIEKOMMSTDUHIERHER_andere() { if(SC_KnowsMadPsi == TRUE) { B_SCTellsAngarAboutMadPsi(); } else { AI_Output(other,self,"DIA_Angar_WIEKOMMSTDUHIERHER_andere_15_00"); //Co se stalo s ostatníma z tábora v bažinách? }; AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_andere_04_01"); //Poslední věc, na kterou si pamatuju, bylo zničení bariéry a nervy drásající jekot, který ho doprovázel. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_andere_04_02"); //V panické hrůze jsme se vrhli k zemi a svíjeli se bolestí. Ten zvuk... Pořád sílil. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_andere_04_03"); //A pak, když bylo po všem, se všichni zbláznili a s hlasitým řevem zmizeli ve tmě. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_andere_04_04"); //Od té doby sem je neviděl. if(SC_KnowsMadPsi == TRUE) { B_SCTellsAngarAboutMadPsi2(); }; if((MIS_KORANGAR == LOG_Running) || (HEROKNOWFORESTBASE == TRUE)) { b_sctellsangaraboutmadpsi3(); }; }; func void DIA_Angar_WIEKOMMSTDUHIERHER_nun() { AI_Output(other,self,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_15_00"); //Co budeš dělat dál? AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_01"); //Nejdřív si budu muset trochu odpočinout, abych mohl začít hledat svůj ztracený amulet. if(Kapitel >= 4) { if(MIS_KORANGAR == LOG_SUCCESS) { AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_05"); //Pak... Možná bych se mohl vrátit do Bratrstva? AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_06"); //Průběhem let v kolonii to byl můj jediný domov domov - a já ho měl rád... AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_07"); //Nikdy bych ho za nic nevyměnil. } else { AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_02"); //Zaslechl jsem něco o dracích. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_03"); //Také se povídá, že se do Hornického údolí vydalo mnoho válečníků na jejich lov. AI_Output(self,other,"DIA_Angar_WIEKOMMSTDUHIERHER_nun_04_04"); //Uvažuju o tom, že bych se k nim přidal. }; }; Angar_willDJGwerden = TRUE; }; func void DIA_Angar_WIEKOMMSTDUHIERHER_gehen() { Info_ClearChoices(DIA_Angar_WIEKOMMSTDUHIERHER); }; instance DIA_Angar_SCTellsAngarAboutMadPsi2(C_Info) { npc = DJG_705_Angar; nr = 7; condition = DIA_Angar_SCTellsAngarAboutMadPsi2_Condition; information = DIA_Angar_SCTellsAngarAboutMadPsi2_Info; description = "Bratrstvo Spáče si zotročilo zlo."; }; func int DIA_Angar_SCTellsAngarAboutMadPsi2_Condition() { if((SC_KnowsMadPsi == TRUE) && (Angar_KnowsMadPsi == FALSE) && Npc_KnowsInfo(other,DIA_Angar_WIEKOMMSTDUHIERHER)) { return TRUE; }; }; func void DIA_Angar_SCTellsAngarAboutMadPsi2_Info() { B_SCTellsAngarAboutMadPsi(); B_SCTellsAngarAboutMadPsi2(); }; instance DIA_Angar_FOUNDAMULETT(C_Info) { npc = DJG_705_Angar; nr = 7; condition = DIA_Angar_FOUNDAMULETT_Condition; information = DIA_Angar_FOUNDAMULETT_Info; description = "Našel jsem tvůj amulet."; }; func int DIA_Angar_FOUNDAMULETT_Condition() { if(Npc_HasItems(other,ItAm_Mana_Angar_MIS) && Npc_KnowsInfo(other,DIA_Angar_WIEKOMMSTDUHIERHER)) { return TRUE; }; }; func void B_AngarsAmulettAbgeben() { AI_Output(other,self,"DIA_Angar_FOUNDAMULETT_15_00"); //Našel jsem tvůj amulet. AI_Output(self,other,"DIA_Angar_FOUNDAMULETT_04_01"); //Díky. Myslel jsem, že už ho nikdy neuvidím. B_GiveInvItems(other,self,ItAm_Mana_Angar_MIS,1); DJG_AngarGotAmulett = TRUE; B_GivePlayerXP(XP_AngarDJGUndeadMage); }; func void DIA_Angar_FOUNDAMULETT_Info() { B_AngarsAmulettAbgeben(); Info_AddChoice(DIA_Angar_FOUNDAMULETT,"Proč je pro tebe tak důležitý?",DIA_Angar_FOUNDAMULETT_besonders); Info_AddChoice(DIA_Angar_FOUNDAMULETT,"Co budeš dělat teď?",DIA_Angar_FOUNDAMULETT_nun); }; func void DIA_Angar_FOUNDAMULETT_besonders() { AI_Output(other,self,"DIA_Angar_FOUNDAMULETT_besonders_15_00"); //Proč je pro tebe tak důležitý? AI_Output(self,other,"DIA_Angar_FOUNDAMULETT_besonders_04_01"); //Byl to dárek. AI_Output(other,self,"DIA_Angar_FOUNDAMULETT_besonders_15_02"); //Aha. }; func void DIA_Angar_FOUNDAMULETT_nun() { AI_Output(other,self,"DIA_Angar_FOUNDAMULETT_nun_15_00"); //Co budeš dělat teď? if(MIS_KORANGAR == LOG_SUCCESS) { AI_Output(self,other,"DIA_Angar_FOUNDAMULETT_nun_04_03"); //Prostě jsem se rozhodl že se vrátím ke svým bratrům. Neopustím je v tak těžkých časech. AI_Output(self,other,"DIA_Angar_FOUNDAMULETT_nun_04_04"); //Možná se ještě někdy setkáme. Sbohem. ANGARISBACK = TRUE; AI_StopProcessInfos(self); if((Npc_GetDistToWP(self,"OC_TO_MAGE") < 1000) == FALSE) { Npc_ExchangeRoutine(self,"LeavingOW"); }; } else { ANGARISNOBACK = TRUE; AI_Output(self,other,"DIA_Angar_FOUNDAMULETT_nun_04_01"); //Vypadnu z tohodle zatracenýho údolí. AI_Output(self,other,"DIA_Angar_FOUNDAMULETT_nun_04_02"); //Možná se ještě někdy setkáme. Sbohem. AI_StopProcessInfos(self); if((Npc_GetDistToWP(self,"OC_TO_MAGE") < 1000) == FALSE) { Npc_ExchangeRoutine(self,"LeavingOW"); }; }; }; instance DIA_Angar_DJG_ANWERBEN(C_Info) { npc = DJG_705_Angar; nr = 8; condition = DIA_Angar_DJG_ANWERBEN_Condition; information = DIA_Angar_DJG_ANWERBEN_Info; description = "Možná bych ti mohl pomoct s nalezením toho amuletu."; }; func int DIA_Angar_DJG_ANWERBEN_Condition() { if(Npc_KnowsInfo(other,DIA_Angar_WIEKOMMSTDUHIERHER) && (DJG_AngarGotAmulett == FALSE)) { return TRUE; }; }; func void DIA_Angar_DJG_ANWERBEN_Info() { AI_Output(other,self,"DIA_Angar_DJG_ANWERBEN_15_00"); //Možná bych ti mohl pomoct s nalezením toho amuletu. AI_Output(self,other,"DIA_Angar_DJG_ANWERBEN_04_01"); //Proč ne. Trocha pomoci nemůže škodit. if(DJG_Angar_SentToStones == FALSE) { Info_AddChoice(DIA_Angar_DJG_ANWERBEN,"Už musím jít.",DIA_Angar_DJG_ANWERBEN_gehen); Info_AddChoice(DIA_Angar_DJG_ANWERBEN,"Kam chceš vyrazit?",DIA_Angar_DJG_ANWERBEN_wo); Info_AddChoice(DIA_Angar_DJG_ANWERBEN,"Kdy půjdeš?",DIA_Angar_DJG_ANWERBEN_wann); }; if((Angar_willDJGwerden == TRUE) && (Kapitel >= 4)) { Info_AddChoice(DIA_Angar_DJG_ANWERBEN,"Co ti drakobijci?",DIA_Angar_DJG_ANWERBEN_DJG); }; }; func void DIA_Angar_DJG_ANWERBEN_DJG() { AI_Output(other,self,"DIA_Angar_DJG_ANWERBEN_DJG_15_00"); //Co ti drakobijci? AI_Output(self,other,"DIA_Angar_DJG_ANWERBEN_DJG_04_01"); //Promluvím si s nimi později. Možná se jim moje silné paže budou hodit. }; func void DIA_Angar_DJG_ANWERBEN_wann() { AI_Output(other,self,"DIA_Angar_DJG_ANWERBEN_wann_15_00"); //Kdy půjdeš? AI_Output(self,other,"DIA_Angar_DJG_ANWERBEN_wann_04_01"); //Jakmile mi bude líp. }; func void DIA_Angar_DJG_ANWERBEN_wo() { AI_Output(other,self,"DIA_Angar_DJG_ANWERBEN_wo_15_00"); //Kam chceš vyrazit? AI_Output(self,other,"DIA_Angar_DJG_ANWERBEN_wo_04_01"); //Měl bych se vydat na jih, tam, co jsem byl naposled. AI_Output(self,other,"DIA_Angar_DJG_ANWERBEN_wo_04_02"); //Je tam jeskynní hrob obklopený balvany. }; func void DIA_Angar_DJG_ANWERBEN_gehen() { AI_Output(other,self,"DIA_Angar_DJG_ANWERBEN_gehen_15_00"); //Už musím jít. AI_Output(self,other,"DIA_Angar_DJG_ANWERBEN_gehen_04_01"); //Buď opatrný. AI_StopProcessInfos(self); }; instance DIA_AngarDJG_WASMACHSTDU(C_Info) { npc = DJG_705_Angar; nr = 9; condition = DIA_AngarDJG_WASMACHSTDU_Condition; information = DIA_AngarDJG_WASMACHSTDU_Info; description = "Něco je špatně?"; }; func int DIA_AngarDJG_WASMACHSTDU_Condition() { if((Npc_GetDistToWP(self,"OW_DJG_WATCH_STONEHENGE_01") < 8000) && Npc_KnowsInfo(other,DIA_Angar_DJG_ANWERBEN) && (DJG_AngarGotAmulett == FALSE)) { return TRUE; }; }; func void DIA_AngarDJG_WASMACHSTDU_Info() { AI_Output(other,self,"DIA_AngarDJG_WASMACHSTDU_15_00"); //Něco je špatně? AI_Output(self,other,"DIA_AngarDJG_WASMACHSTDU_04_01"); //Slyšels to? Ještě nikdy jsem v celém svém životě neslyšel tak příšerný zvuk! AI_Output(other,self,"DIA_AngarDJG_WASMACHSTDU_15_02"); //Co myslíš? Neslyšel jsem ani hlásku! AI_Output(self,other,"DIA_AngarDJG_WASMACHSTDU_04_03"); //Celá tahle oblast páchne smrtí a zkázou. Ta zahnívající stvoření hlídají skalní přístup do krypty, tam před námi. AI_Output(self,other,"DIA_AngarDJG_WASMACHSTDU_04_04"); //Skrývá se tam něco příšerného a vysílá to své nohsledy na povrch země. AI_Output(self,other,"DIA_AngarDJG_WASMACHSTDU_04_05"); //Jsem si téměř jistý, že jsem ten amulet ztratil někde tady. if((Angar_willDJGwerden == TRUE) && (MIS_KORANGAR != LOG_SUCCESS)) { Info_AddChoice(DIA_AngarDJG_WASMACHSTDU,"Mluvil jsi s drakobijci?",DIA_AngarDJG_WASMACHSTDU_DJG); }; }; func void DIA_AngarDJG_WASMACHSTDU_DJG() { AI_Output(other,self,"DIA_AngarDJG_WASMACHSTDU_DJG_15_00"); //Mluvil jsi s drakobijci? AI_Output(self,other,"DIA_AngarDJG_WASMACHSTDU_DJG_04_01"); //Ano. Ale očekával jsem společenstvo podobné tomu, co jsme měli v táboře v bažinách. AI_Output(self,other,"DIA_AngarDJG_WASMACHSTDU_DJG_04_02"); //Ti chlapi ale nejsou nic víc než jen divoká nesourodá sbírka naprostých pitomců. To není nic pro mě. }; instance DIA_AngarDJG_WHATSINTHERE(C_Info) { npc = DJG_705_Angar; nr = 10; condition = DIA_AngarDJG_WHATSINTHERE_Condition; information = DIA_AngarDJG_WHATSINTHERE_Info; description = "Co se skrývá v té jeskyni ve skalách?"; }; func int DIA_AngarDJG_WHATSINTHERE_Condition() { if(Npc_KnowsInfo(other,DIA_AngarDJG_WASMACHSTDU) && (DJG_AngarGotAmulett == FALSE)) { return TRUE; }; }; func void DIA_AngarDJG_WHATSINTHERE_Info() { AI_Output(other,self,"DIA_AngarDJG_WHATSINTHERE_15_00"); //Co se skrývá v té jeskyni ve skalách? AI_Output(self,other,"DIA_AngarDJG_WHATSINTHERE_04_01"); //Něco mi nechce dovolit se k té jeskyni přiblížit! AI_Output(self,other,"DIA_AngarDJG_WHATSINTHERE_04_02"); //Střeží ji magická stvoření. Viděl jsem je v noci, jak prohledávají okolí. Nechutnost sama. AI_Output(self,other,"DIA_AngarDJG_WHATSINTHERE_04_03"); //Obrátili se nazpět a zmizeli mezi stromy. A tys měl pocit, jako by vysáli všechen život z okolí jako houba vysává vodu. B_LogEntry(TOPIC_Dragonhunter,"Našel jsem Angara v Hornickém údolí."); }; instance DIA_AngarDJG_WANTTOGOINTHERE(C_Info) { npc = DJG_705_Angar; nr = 11; condition = DIA_AngarDJG_WANTTOGOINTHERE_Condition; information = DIA_AngarDJG_WANTTOGOINTHERE_Info; description = "Jdeme společně."; }; func int DIA_AngarDJG_WANTTOGOINTHERE_Condition() { if(Npc_KnowsInfo(other,DIA_AngarDJG_WHATSINTHERE) && (DJG_AngarGotAmulett == FALSE)) { return TRUE; }; }; func void DIA_AngarDJG_WANTTOGOINTHERE_Info() { AI_Output(other,self,"DIA_AngarDJG_WANTTOGOINTHERE_15_00"); //Jdeme společně. AI_Output(self,other,"DIA_AngarDJG_WANTTOGOINTHERE_04_01"); //Zkusím to. Ale buď opatrný. AI_StopProcessInfos(self); if(Npc_IsDead(SkeletonMage_Angar)) { Npc_ExchangeRoutine(self,"Zwischenstop"); } else { Npc_ExchangeRoutine(self,"Angriff"); DJG_AngarAngriff = TRUE; }; self.aivar[AIV_PARTYMEMBER] = TRUE; }; instance DIA_AngarDJG_UndeadMageDead(C_Info) { npc = DJG_705_Angar; nr = 13; condition = DIA_AngarDJG_UndeadMageDead_Condition; information = DIA_AngarDJG_UndeadMageDead_Info; important = TRUE; }; func int DIA_AngarDJG_UndeadMageDead_Condition() { if((Npc_GetDistToWP(self,"OW_UNDEAD_DUNGEON_02") < 1000) && (DJG_AngarAngriff == TRUE) && (DJG_AngarGotAmulett == FALSE) && Npc_IsDead(SkeletonMage_Angar)) { return TRUE; }; }; func void DIA_AngarDJG_UndeadMageDead_Info() { AI_Output(self,other,"DIA_AngarDJG_UndeadMageDead_04_00"); //(křičí) Jenom smrt a zkáza. Musím se odsud dostat. AI_StopProcessInfos(self); self.aivar[AIV_PARTYMEMBER] = FALSE; Npc_ExchangeRoutine(self,"RunToEntrance"); }; instance DIA_AngarDJG_UNDEADMAGECOMES(C_Info) { npc = DJG_705_Angar; nr = 13; condition = DIA_AngarDJG_UNDEADMAGECOMES_Condition; information = DIA_AngarDJG_UNDEADMAGECOMES_Info; important = TRUE; }; func int DIA_AngarDJG_UNDEADMAGECOMES_Condition() { if((Npc_GetDistToWP(self,"OW_PATH_3_13") < 500) && Npc_KnowsInfo(other,DIA_AngarDJG_WANTTOGOINTHERE) && (Npc_KnowsInfo(other,DIA_AngarDJG_UndeadMageDead) == FALSE) && (DJG_AngarGotAmulett == FALSE) && Npc_IsDead(SkeletonMage_Angar)) { return TRUE; }; }; func void DIA_AngarDJG_UNDEADMAGECOMES_Info() { AI_Output(self,other,"DIA_AngarDJG_UNDEADMAGECOMES_04_00"); //(šeptá) Tady to je! Slyšels to? AI_StopProcessInfos(self); Npc_ExchangeRoutine(self,"GotoStonehendgeEntrance"); }; instance DIA_Angar_WASISTLOS(C_Info) { npc = DJG_705_Angar; nr = 14; condition = DIA_Angar_WASISTLOS_Condition; information = DIA_Angar_WASISTLOS_Info; description = "Co se děje?"; }; func int DIA_Angar_WASISTLOS_Condition() { if((Npc_GetDistToWP(self,"OW_PATH_3_STONES") < 1000) && (DJG_AngarGotAmulett == FALSE) && Npc_IsDead(SkeletonMage_Angar)) { return TRUE; }; }; func void DIA_Angar_WASISTLOS_Info() { AI_Output(other,self,"DIA_Angar_WASISTLOS_15_00"); //Co se děje? AI_Output(self,other,"DIA_Angar_WASISTLOS_04_01"); //Dál už s tebou jít nemůžu. AI_Output(self,other,"DIA_Angar_WASISTLOS_04_02"); //Něco mi říká, že se odsud živý nedostanu. AI_Output(self,other,"DIA_Angar_WASISTLOS_04_03"); //Nedokážu to vysvětlit, ale... if(SC_KnowsMadPsi == TRUE) { AI_Output(self,other,"DIA_Angar_WASISTLOS_04_04"); //Měl bych se z týhle zpropadený země dostat co nejrychlejš. Jinak mě potká stejný osud jako mé bratry. } else { AI_Output(self,other,"DIA_Angar_WASISTLOS_04_05"); //Pokaždý, když narazím na tyhle... zplozence pekel, mám pocit, jako bych bojoval proti vlastním lidem. }; AI_StopProcessInfos(self); B_LogEntry(TOPIC_Dragonhunter,"Angar prostě odešel. Při boji se všemi těmi nemrtvými měl pocit, jako by bojoval s vlastními druhy."); self.aivar[AIV_PARTYMEMBER] = FALSE; Npc_ExchangeRoutine(self,"LeavingOW"); }; instance DIA_Angar_WHYAREYOUHERE(C_Info) { npc = DJG_705_Angar; nr = 15; condition = DIA_Angar_WHYAREYOUHERE_Condition; information = DIA_Angar_WHYAREYOUHERE_Info; description = "Angare! Co tady děláš?"; }; func int DIA_Angar_WHYAREYOUHERE_Condition() { if(Npc_GetDistToWP(self,"OW_CAVALORN_01") < 1000) { return TRUE; }; }; func void DIA_Angar_WHYAREYOUHERE_Info() { AI_Output(other,self,"DIA_Angar_WHYAREYOUHERE_15_00"); //Angare! Co tady děláš? AI_Output(self,other,"DIA_Angar_WHYAREYOUHERE_04_01"); //Byl jsem na cestě k průsmyku, když jsem narazil na skřety. Nedokázal jsem ty bezbožný barbary setřást. AI_Output(self,other,"DIA_Angar_WHYAREYOUHERE_04_02"); //Zatím tady počkám a pak projdu průsmykem. Uvidíme se na druhé straně! B_LogEntry(TOPIC_Dragonhunter,"Opět jsem se potkal s Angarem. Ještě pořád zůstává v Hornickém údolí."); B_GivePlayerXP(XP_AngarDJGAgain); AI_StopProcessInfos(self); }; instance DIA_Angar_PERMKAP4(C_Info) { npc = DJG_705_Angar; condition = DIA_Angar_PERMKAP4_Condition; information = DIA_Angar_PERMKAP4_Info; permanent = TRUE; description = "Vážně tě můžu nechat samotného?"; }; func int DIA_Angar_PERMKAP4_Condition() { if(Npc_KnowsInfo(other,DIA_Angar_WHYAREYOUHERE)) { return TRUE; }; }; func void DIA_Angar_PERMKAP4_Info() { AI_Output(other,self,"DIA_Angar_PERMKAP4_15_00"); //Vážně tě můžu nechat samotného? AI_Output(self,other,"DIA_Angar_PERMKAP4_04_01"); //Jasně. Jdi. Uvidíme se. AI_StopProcessInfos(self); }; instance DIA_Angar_PICKPOCKET(C_Info) { npc = DJG_705_Angar; nr = 900; condition = DIA_Angar_PICKPOCKET_Condition; information = DIA_Angar_PICKPOCKET_Info; permanent = TRUE; description = PICKPOCKET_COMM; }; func int DIA_Angar_PICKPOCKET_Condition() { return C_Beklauen(47,55); }; func void DIA_Angar_PICKPOCKET_Info() { Info_ClearChoices(DIA_Angar_PICKPOCKET); Info_AddChoice(DIA_Angar_PICKPOCKET,Dialog_Back,DIA_Angar_PICKPOCKET_BACK); Info_AddChoice(DIA_Angar_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Angar_PICKPOCKET_DoIt); }; func void DIA_Angar_PICKPOCKET_DoIt() { B_Beklauen(); Info_ClearChoices(DIA_Angar_PICKPOCKET); }; func void DIA_Angar_PICKPOCKET_BACK() { Info_ClearChoices(DIA_Angar_PICKPOCKET); };
D
module cmsed.user.operations; import cmsed.user; import cmsed.user.models; import cmsed.user.registration.auth; import cmsed.base.defs; /** * Get the currently logged in user. * * Returns: * Returns a UserModel or null if non existant. */ UserModel getLoggedInUser() { if (session.isKeySet("userId")) { return UserModel.findOne(session["userId"]); } return null; } /** * Try and log a user in. Given a username and password. * A username can be an email. * A password is not required to work. * * Params: * userName = The username of the user. Can be email. * password = The password given. Secret info to identifiy is the user. */ bool login(string userName, string password) { UserModel um = checker.validCredentials(userName, password); if (um is null) return false; session["userId"] = um.key.name; return true; } /** * Check if a user is in a group. */ bool isUserInGroup(string group) { UserGroupModel[] ugma = UserGroupModel.getByUser(getLoggedInUser()); foreach(ugm; ugma) { GroupModel gm = ugm.getGroup(); if (gm.key.name == group) return true; else if (gm.title == group) return true; } return false; } /** * Log the current user out. */ void logout() { session["userId"] = null; } private { class ModelAuthProvider : AuthProvider { bool hasIdentifier(string identifier) { size_t uam = UserAuthModel.query() .username_eq(identifier) .count(); return (uam > 0); } UserModel validCredentials(string identifier, string validator) { UserAuthModel[] uams = UserAuthModel.query() .username_eq(identifier).find(); foreach(uam; uams) { if (uam.password == validator) { if (uam.password.needsToBeUpgraded) { uam.password = validator; uam.save(); } return uam.user.getUser(); } } return null; } bool changeValidator(string identifier, string validator) { return false; } @property string identifier() { return BUILT_IN_DB_AUTH; } GroupModel[] identifierGroups(string identifier) { UserAuthModel[] uams = UserAuthModel.query() .username_eq(identifier).find(); if (uams.length > 0) { UserAuthModel uam = uams[0]; return uam.user.getUser().getGroups(); } return null; } void logLogin(string identifier) { // this may be a good idea to do something with. } } shared static this() { registerAuthProvider!ModelAuthProvider; } }
D
import std.stdio; void main() { char[] a = "Hello,"; char[] b = " World!"; char[] c = a ~ b; writeln(c); }
D
import nonsense; immutable(Morphism) symbolicElement(immutable CObject obj, string symbol, string latex = "") { auto cat = obj.isIn(Vec) ? Pol : Set; return lazyEvaluate(symbolicMorphism(cat, ZeroSet, obj, symbol, latex), Zero); } // element map immutable(Morphism) elementMap(immutable Morphism morph) { return new immutable ElementMap(morph); } // make element map immutable(Morphism) makeElementMap(immutable CObject obj) { return new immutable MakeElementMap(obj); } immutable(Morphism) makeElementMap(immutable Morphism morph) { return compose(makeElementMap(morph.target()), morph); } // ___ _ _ __ __ // | __| |___ _ __ ___ _ _| |_| \/ |__ _ _ __ // | _|| / -_) ' \/ -_) ' \ _| |\/| / _` | '_ \ // |___|_\___|_|_|_\___|_||_\__|_| |_\__,_| .__/ // |_| immutable class ElementMap : SymbolicMorphism, IHasGradient { Morphism elem; this(immutable Morphism _elem) { elem = _elem; //assert(elem.isElement, "" ~ format!"The input `%s` is not an element!"(elem.fsymbol)); auto cat = meet(Pol, elem.set().category()); auto sym = "Elem(" ~ elem.symbol() ~ ")"; auto tex = "\\text{Elem}_{" ~ elem.latex() ~ "}"; super(cat, ZeroSet, elem.set(), sym, tex); } override immutable(Morphism) opCall(immutable Morphism x) immutable { assert(x.isElementOf(source()), "" ~ format!"Input `%s` in not an element of the source `%s`!"(x.fsymbol, source().fsymbol)); return elem; } immutable(Morphism) gradient() immutable{ return initialMorphism(initialMorphism(elem.set()).set()); } override bool contains(immutable Morphism x) immutable { return this.isEqual(x) || elem.contains(x); } override immutable(Morphism) extract(immutable Morphism x) immutable { if (this.isEqual(x)) { return set().identity(); } else if (!elem.contains(x)) { return constantMap(x.set(), this); } else { return elem.extract(x).makeElementMap; } } override ulong toHash() immutable { return computeHash(elem, "ElementMap"); } } // __ __ _ ___ _ _ __ __ // | \/ |__ _| |_____ | __| |___ _ __ ___ _ _| |_ | \/ |__ _ _ __ // | |\/| / _` | / / -_) | _|| / -_) ' \/ -_) ' \ _| | |\/| / _` | '_ \ // |_| |_\__,_|_\_\___| |___|_\___|_|_|_\___|_||_\__| |_| |_\__,_| .__/ // |_| class MakeElementMap : SymbolicMorphism { CObject obj; this(immutable CObject _obj) { obj = _obj; auto resultCat = meet(Pol, obj.category()); auto cat = obj.category(); auto src = obj; auto trg = resultCat.homSet(ZeroSet, obj); string sym = "MakeElem"; string tex = "\\text{MakeElem}"; super(cat, src, trg, sym, tex); } override immutable(Morphism) opCall(immutable Morphism x) immutable { assert(x.isElementOf(source()), "" ~ format!"Input `%s` in not an element of the source `%s`!"(x.fsymbol, source().fsymbol)); return elementMap(x); } }
D
/Users/MacBook/Desktop/PerfectTemplate/.build/debug/PerfectLib.build/Dir.swift.o : /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Bytes.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Dir.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/File.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/JSONConvertible.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Log.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/PerfectError.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/PerfectServer.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/SwiftCompatibility.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/SysProcess.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Utilities.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/MacBook/Desktop/PerfectTemplate/.build/debug/CHTTPParser.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/MacBook/Desktop/PerfectTemplate/.build/debug/PerfectLib.build/Dir~partial.swiftmodule : /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Bytes.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Dir.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/File.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/JSONConvertible.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Log.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/PerfectError.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/PerfectServer.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/SwiftCompatibility.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/SysProcess.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Utilities.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/MacBook/Desktop/PerfectTemplate/.build/debug/CHTTPParser.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/MacBook/Desktop/PerfectTemplate/.build/debug/PerfectLib.build/Dir~partial.swiftdoc : /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Bytes.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Dir.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/File.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/JSONConvertible.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Log.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/PerfectError.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/PerfectServer.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/SwiftCompatibility.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/SysProcess.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Utilities.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/MacBook/Desktop/PerfectTemplate/.build/debug/CHTTPParser.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule
D
import std.stdio: writeln; import std.traits: isFloatingPoint, isNumeric; import std.conv: to; import fftw3; /** To compile: dmd callc_dstep.d fftw3.d -L-lfftw3 -L-lm && ./callc_dstep */ struct Complex(T) if(isFloatingPoint!T) { T[2] data; this(T[2] x) { data = x; } this(T[] x) { assert(x.length == 2, "Length of submitted array not equal to 2."); data = x; } this()(auto ref T _re, auto ref T _im) { data[0] = _re; data[1] = _im; } auto re() const { return data[0]; } auto im() const { return data[1]; } auto re(T x) { data[0] = x; } auto im(T x) { data[1] = x; } string toString() { return to!string(re) ~ " + " ~ to!string(im) ~ "im"; } string repr() { return "Complex!(" ~ T.stringof ~ ")(" ~ to!(string)(re) ~ ", " ~ to!(string)(im) ~ ")"; } /* In your article make sure you write a mini section clarifying casting in D using this as an example. */ T[] opCast(U: T[])() { return data; } typeof(this) opCast(U: Complex!(T))(T[] x) { return Complex!(T)(x); } Complex!T opBinary(string op, N)(N x) if(((op == "*") || (op == "/")) && isNumeric!N) { auto num = Complex!T(data.dup); mixin("num.data[0] " ~ op ~ "= cast(T)x;"); mixin("num.data[1] " ~ op ~ "= cast(T)x;"); return num; } Complex!T opBinary(string op, N)(N x) if(((op == "+") || (op == "-")) && isNumeric!N) { auto num = Complex!T(data.dup); // For addition and subtraction real part only mixin("num.data[0] " ~ op ~ "= cast(T)x;"); return num; } ref Complex!T opOpAssign(string op, N)(N x) if(((op == "+") || (op == "-")) && isNumeric!N) { // For addition and subtraction real part only mixin("data[0] " ~ op ~ "= cast(T)x;"); return this; } ref Complex!T opOpAssign(string op, N)(N x) if(((op == "*") || (op == "/")) && isNumeric!N) { mixin("data[0] " ~ op ~ "= cast(T)x;"); mixin("data[1] " ~ op ~ "= cast(T)x;"); return this; } bool opEquals(Complex!T rhs) const { return (data[0] == rhs.data[0]) && (data[1] == rhs.data[1]); } } auto complex(T)(auto ref T _re, auto ref T _im) { return Complex!(T)(_re, _im); } auto complex(T)(T[] x) { return Complex!(T)(x); } /** Creates a complex number array fftw_complex* */ fftw_complex* randomFFTWComplexArray(ulong n) { import std.random: Mt19937_64, uniform01, unpredictableSeed; auto rnd = Mt19937_64(unpredictableSeed); auto arr = new fftw_complex[n]; foreach(ref el; arr) { el = [rnd.uniform01!double, rnd.uniform01!double]; } return arr.ptr; } auto randomComplexArray(T = double)(long n) if(isFloatingPoint!T) { import std.random: Mt19937_64, uniform01, unpredictableSeed; auto rnd = Mt19937_64(unpredictableSeed); auto arr = new Complex!T[n]; foreach(ref el; arr) { el = complex(rnd.uniform01!T, rnd.uniform01!T); } return arr; } auto allocateFFTWArray(ulong n) { auto arr = new fftw_complex[n]; return arr.ptr; } auto toComplexArray(fftw_complex* arr, ulong n) { return (cast(Complex!double*)cast(void*)arr)[0..n]; } auto toFFTWArray(Complex!double[] arr) { return cast(fftw_complex*)cast(void*)arr; } auto fft(Complex!double[] x) { auto in_arr = x.toFFTWArray; auto out_arr = allocateFFTWArray(x.length); int n = cast(int)x.length; auto plan_forward = fftw_plan_dft_1d(n, in_arr, out_arr, FFTW_FORWARD, FFTW_ESTIMATE); fftw_execute(plan_forward); fftw_destroy_plan(plan_forward); return out_arr.toComplexArray(x.length); } auto ifft(Complex!double[] x) { auto in_arr = x.toFFTWArray; auto out_arr = allocateFFTWArray(x.length); int n = cast(int)x.length; auto plan_backward = fftw_plan_dft_1d(n, in_arr, out_arr, FFTW_BACKWARD, FFTW_ESTIMATE); fftw_execute(plan_backward); fftw_destroy_plan(plan_backward); auto inv_fft_arr = out_arr.toComplexArray(x.length); foreach(ref el; inv_fft_arr) { el /= cast(double)x.length; } return inv_fft_arr; } void main() { auto complex_sample = randomComplexArray(100); writeln("Input: \n\n", complex_sample, "\n"); auto test_fft = fft(complex_sample); writeln("\n\nFrom fft function: ", test_fft); auto test_iff = ifft(test_fft); writeln("\n\nFrom ifft function: ", test_iff); }
D
import dchat.dchat; void main(){ new Dchat; }
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_12_BeT-6721665915.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_12_BeT-6721665915.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/home/roldan/Documentos/repo/TFG/rust/rust_search_100KK_best_case/target/debug/build/rand-8d1b1cdf392551b4/build_script_build-8d1b1cdf392551b4: /home/roldan/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs /home/roldan/Documentos/repo/TFG/rust/rust_search_100KK_best_case/target/debug/build/rand-8d1b1cdf392551b4/build_script_build-8d1b1cdf392551b4.d: /home/roldan/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs /home/roldan/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs:
D
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationOrbit.o : /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallDoubleBounce.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorShape.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorAnimationDelegate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBlank.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationPacman.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCircleStrokeSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorView.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScaleParty.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationOrbit~partial.swiftmodule : /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallDoubleBounce.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorShape.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorAnimationDelegate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBlank.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationPacman.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCircleStrokeSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorView.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScaleParty.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationOrbit~partial.swiftdoc : /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallDoubleBounce.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorShape.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorAnimationDelegate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBlank.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationPacman.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCircleStrokeSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorView.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScaleParty.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationOrbit~partial.swiftsourceinfo : /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseSync.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOutRapid.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallDoubleBounce.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScale.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRippleMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotateMultiple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallScaleRipple.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorShape.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotateChase.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulseRise.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotatePulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallPulse.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorAnimationDelegate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallClipRotate.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZag.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBlank.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationPacman.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCircleStrokeSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSemiCircleSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationSquareSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationTriangleSkewSpin.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationCubeTransition.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallSpinFadeLoader.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationAudioEqualizer.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallGridBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallBeat.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationBallZigZagDeflect.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationOrbit.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScalePulseOut.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/NVActivityIndicatorView.swift /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/NVActivityIndicatorAnimationLineScaleParty.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/Pods/Target\ Support\ Files/NVActivityIndicatorView/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/unextended-module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/** * This module provides an `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: 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: $(HTTP erdani.com, Andrei Alexandrescu) * * $(SCRIPT inhibitQuickIndex = 1;) */ module std.container.array; import core.exception : RangeError; import std.range.primitives; import std.traits; public import std.container.util; /// pure @system 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); } /// pure @system 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 pure @system unittest { Array!bool arr; arr.insert([true, true, false, true, false]); assert(arr.length == 5); } private struct RangeT(A) { /* Workaround for 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 { assert(!empty, "Attempting to access the front of an empty Array"); return _outer[_a]; } @property ref inout(E) back() inout { assert(!empty, "Attempting to access the back of an empty Array"); return _outer[_b - 1]; } void popFront() @safe @nogc pure nothrow { assert(!empty, "Attempting to popFront an empty Array"); ++_a; } void popBack() @safe @nogc pure nothrow { assert(!empty, "Attempting to popBack an empty Array"); --_b; } static if (isMutable!A) { import std.algorithm.mutation : move; E moveFront() { assert(!empty, "Attempting to moveFront an empty Array"); assert(_a < _outer.length, "Attempting to moveFront using an out of bounds low index on an Array"); return move(_outer._data._payload[_a]); } E moveBack() { assert(!empty, "Attempting to moveBack an empty Array"); assert(_a <= _outer.length, "Attempting to moveBack using an out of bounds high index on an Array"); return move(_outer._data._payload[_b - 1]); } E moveAt(size_t i) { assert(_a + i < _b, "Attempting to moveAt using an out of bounds index on an Array"); assert(_a + i < _outer.length, "Cannot move past the end of the array"); return move(_outer._data._payload[_a + i]); } } ref inout(E) opIndex(size_t i) inout { assert(_a + i < _b, "Attempting to fetch using an out of bounds index on an Array"); return _outer[_a + i]; } RangeT opSlice() { return typeof(return)(_outer, _a, _b); } RangeT opSlice(size_t i, size_t j) { assert(i <= j && _a + j <= _b, "Attempting to slice using an out of bounds indices on an Array"); 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 { assert(i <= j && _a + j <= _b, "Attempting to slice using an out of bounds indices on an Array"); return typeof(return)(_outer, _a + i, _a + j); } static if (isMutable!A) { void opSliceAssign(E value) { assert(_b <= _outer.length, "Attempting to assign using an out of bounds indices on an Array"); _outer[_a .. _b] = value; } void opSliceAssign(E value, size_t i, size_t j) { assert(_a + j <= _b, "Attempting to slice assign using an out of bounds indices on an Array"); _outer[_a + i .. _a + j] = value; } void opSliceUnary(string op)() if (op == "++" || op == "--") { assert(_b <= _outer.length, "Attempting to slice using an out of bounds indices on an Array"); mixin(op~"_outer[_a .. _b];"); } void opSliceUnary(string op)(size_t i, size_t j) if (op == "++" || op == "--") { assert(_a + j <= _b, "Attempting to slice using an out of bounds indices on an Array"); mixin(op~"_outer[_a + i .. _a + j];"); } void opSliceOpAssign(string op)(E value) { assert(_b <= _outer.length, "Attempting to slice using an out of bounds indices on an Array"); mixin("_outer[_a .. _b] "~op~"= value;"); } void opSliceOpAssign(string op)(E value, size_t i, size_t j) { assert(_a + j <= _b, "Attempting to slice using an out of bounds indices on an Array"); 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. `Array` uses `malloc`, `realloc` and `free` * for managing its own memory. * * This means that pointers to elements of an `Array` will become * dangling as soon as the element is removed from the `Array`. On the other hand * the memory allocated by an `Array` will be scanned by the GC and * GC managed objects referenced from an `Array` will be kept alive. * * Note: * * When using `Array` with range-based functions like those in `std.algorithm`, * `Array` must be sliced to get a range (for example, use `array[].map!` * instead of `array.map!`). The container itself is not a range. */ struct Array(T) if (!is(immutable T == immutable bool)) { import core.memory : free = pureFree; import std.internal.memory : enforceMalloc, enforceRealloc; 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; this(T[] p) { _capacity = p.length; _payload = p; } // Destructor releases array memory ~this() { // Warning: destroy would destroy also 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) @disable; void opAssign(Payload rhs) @disable; @property size_t length() const { return _payload.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; } immutable startEmplace = length; if (_capacity < newLength) { // enlarge static if (T.sizeof == 1) { const nbytes = newLength; } else { import core.checkedint : mulu; bool overflow; const nbytes = mulu(newLength, T.sizeof, overflow); if (overflow) assert(false, "Overflow"); } static if (hasIndirections!T) { auto newPayloadPtr = cast(T*) enforceMalloc(nbytes); auto newPayload = newPayloadPtr[0 .. newLength]; memcpy(newPayload.ptr, _payload.ptr, startEmplace * T.sizeof); memset(newPayload.ptr + startEmplace, 0, (newLength - startEmplace) * T.sizeof); GC.addRange(newPayload.ptr, nbytes); GC.removeRange(_payload.ptr); free(_payload.ptr); _payload = newPayload; } else { _payload = (cast(T*) enforceRealloc(_payload.ptr, nbytes))[0 .. newLength]; } _capacity = newLength; } else { _payload = _payload.ptr[0 .. newLength]; } initializeAll(_payload.ptr[startEmplace .. newLength]); } @property size_t capacity() const { return _capacity; } void reserve(size_t elements) { if (elements <= capacity) return; static if (T.sizeof == 1) { const sz = elements; } else { import core.checkedint : mulu; bool overflow; const sz = mulu(elements, T.sizeof, overflow); if (overflow) assert(false, "Overflow"); } static if (hasIndirections!T) { /* 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 newPayloadPtr = cast(T*) enforceMalloc(sz); auto newPayload = newPayloadPtr[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 newPayloadPtr = cast(T*) enforceRealloc(_payload.ptr, sz); auto newPayload = newPayloadPtr[0 .. length]; _payload = newPayload; } _capacity = elements; } // Insert one item size_t insertBack(Elem)(Elem elem) if (isImplicitlyConvertible!(Elem, T)) { import std.conv : emplace; if (_capacity == length) { reserve(1 + capacity * 3 / 2); } assert(capacity > length && _payload.ptr, "Failed to reserve memory"); emplace(_payload.ptr + _payload.length, elem); _payload = _payload.ptr[0 .. _payload.length + 1]; return 1; } // Insert a range of items size_t insertBack(Range)(Range r) if (isInputRange!Range && isImplicitlyConvertible!(ElementType!Range, T)) { static if (hasLength!Range) { immutable oldLength = length; reserve(oldLength + r.length); } size_t result; foreach (item; r) { insertBack(item); ++result; } static if (hasLength!Range) { assert(length == oldLength + r.length, "Failed to insertBack range"); } 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; static if (T.sizeof == 1) { const nbytes = values.length; } else { import core.checkedint : mulu; bool overflow; const nbytes = mulu(values.length, T.sizeof, overflow); if (overflow) assert(false, "Overflow"); } auto p = cast(T*) enforceMalloc(nbytes); // Before it is added to the gc, initialize the newly allocated memory foreach (i, e; values) { emplace(p + i, e); } static if (hasIndirections!T) { if (p) GC.addRange(p, T.sizeof * values.length); } _data = Data(p[0 .. values.length]); } /** * Constructor taking an $(REF_ALTTEXT input range, isInputRange, std,range,primitives) */ this(Range)(Range r) if (isInputRange!Range && isImplicitlyConvertible!(ElementType!Range, T) && !is(Range == T[])) { insertBack(r); } /** * 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 array'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; /// ditto alias ConstRange = RangeT!(const Array); /// ditto alias ImmutableRange = RangeT!(immutable Array); /** * Duplicates the array. The elements themselves are not transitively * duplicated. * * Complexity: $(BIGOH length). */ @property Array dup() { if (!_data.refCountedStore.isInitialized) return this; return Array(_data._payload); } /** * Returns: `true` if and only if the array has no elements. * * Complexity: $(BIGOH 1) */ @property bool empty() const { return !_data.refCountedStore.isInitialized || _data._payload.empty; } /** * Returns: The number of elements in the array. * * 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 array can store without * reallocating memory and invalidating iterators upon insertion. * * Complexity: $(BIGOH 1) */ @property size_t capacity() { return _data.refCountedStore.isInitialized ? _data._capacity : 0; } /** * Ensures sufficient capacity to accommodate `e` _elements. * If `e < capacity`, this method does nothing. * * Postcondition: `capacity >= e` * * Note: If the capacity is increased, one should assume that all * iterators to the elements are invalidated. * * Complexity: at most $(BIGOH length) if `e > capacity`, otherwise $(BIGOH 1). */ void reserve(size_t elements) { if (!_data.refCountedStore.isInitialized) { if (!elements) return; static if (T.sizeof == 1) { const sz = elements; } else { import core.checkedint : mulu; bool overflow; const sz = mulu(elements, T.sizeof, overflow); if (overflow) assert(false, "Overflow"); } auto p = enforceMalloc(sz); static if (hasIndirections!T) { // Zero out unused capacity to prevent gc from seeing false pointers memset(p, 0, sz); 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 array 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 array from * index `i` up to (excluding) index `j`. * * Precondition: `i <= j && j <= length` * * Complexity: $(BIGOH 1) */ Range opSlice(size_t i, size_t j) { assert(i <= j && j <= length, "Invalid slice bounds"); return typeof(return)(this, i, j); } ConstRange opSlice(size_t i, size_t j) const { assert(i <= j && j <= length, "Invalid slice bounds"); return typeof(return)(this, i, j); } ImmutableRange opSlice(size_t i, size_t j) immutable { assert(i <= j && j <= length, "Invalid slice bounds"); return typeof(return)(this, i, j); } /** * Returns: The first element of the array. * * Precondition: `empty == false` * * Complexity: $(BIGOH 1) */ @property ref inout(T) front() inout { assert(_data.refCountedStore.isInitialized, "Cannot get front of empty range"); return _data._payload[0]; } /** * Returns: The last element of the array. * * Precondition: `empty == false` * * Complexity: $(BIGOH 1) */ @property ref inout(T) back() inout { assert(_data.refCountedStore.isInitialized, "Cannot get back of empty range"); return _data._payload[$ - 1]; } /** * Returns: The element or a reference to the element at the specified index. * * Precondition: `i < length` * * Complexity: $(BIGOH 1) */ ref inout(T) opIndex(size_t i) inout { assert(_data.refCountedStore.isInitialized, "Cannot index empty range"); return _data._payload[i]; } /** * Slicing operators executing the specified operation on the entire slice. * * Precondition: `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;"); } private enum hasSliceWithLength(T) = is(typeof({ T t = T.init; t[].length; })); /** * Returns: A new array which is a concatenation of `this` and its argument. * * Complexity: * $(BIGOH length + m), where `m` is the number of elements in `stuff`. */ Array opBinary(string op, Stuff)(Stuff stuff) if (op == "~") { Array result; static if (hasLength!Stuff || isNarrowString!Stuff) result.reserve(length + stuff.length); else static if (hasSliceWithLength!Stuff) result.reserve(length + stuff[].length); else static if (isImplicitlyConvertible!(Stuff, T)) result.reserve(length + 1); result.insertBack(this[]); result ~= stuff; return result; } /** * Forwards to `insertBack`. */ void opOpAssign(string op, Stuff)(auto ref Stuff stuff) if (op == "~") { static if (is(typeof(stuff[])) && isImplicitlyConvertible!(typeof(stuff[0]), T)) { insertBack(stuff[]); } else { insertBack(stuff); } } /** * Removes all the elements from the array and releases allocated memory. * * Postcondition: `empty == true && capacity == 0` * * Complexity: $(BIGOH length) */ void clear() { _data = Data.init; } /** * Sets the number of elements in the array to `newLength`. If `newLength` * is greater than `length`, the new elements are added to the end of the * array and initialized with `T.init`. * * Complexity: * Guaranteed $(BIGOH abs(length - newLength)) if `capacity >= newLength`. * If `capacity < newLength` the worst case is $(BIGOH newLength). * * Postcondition: `length == newLength` */ @property void length(size_t newLength) { _data.refCountedStore.ensureInitialized(); _data.length = newLength; } /** * Removes the last element from the array and returns it. * Both stable and non-stable versions behave the same and guarantee * that ranges iterating over the array are never invalidated. * * Precondition: `empty == false` * * Returns: The element removed. * * Complexity: $(BIGOH 1). * * Throws: `Exception` if the array is empty. */ T removeAny() { auto result = back; removeBack(); return result; } /// ditto alias stableRemoveAny = removeAny; /** * Inserts the specified elements at the back of the array. `stuff` can be * a value convertible to `T` or a range of objects convertible to `T`. * * Returns: The number of elements inserted. * * Complexity: * $(BIGOH length + m) if reallocation takes place, otherwise $(BIGOH m), * where `m` is the number of elements in `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 from the back of the array. Both stable and non-stable * versions behave the same and guarantee that ranges iterating over the * array are never invalidated. * * Precondition: `empty == false` * * Complexity: $(BIGOH 1). * * Throws: `Exception` if the array is empty. */ void removeBack() { enforce(!empty); static if (hasElaborateDestructor!T) .destroy(_data._payload[$ - 1]); _data._payload = _data._payload[0 .. $ - 1]; } /// ditto alias stableRemoveBack = removeBack; /** * Removes `howMany` values from the back of the array. * Unlike the unparameterized versions above, these functions * do not throw if they could not remove `howMany` elements. Instead, * if `howMany > n`, all elements are removed. The returned value is * the effective number of elements removed. Both stable and non-stable * versions behave the same and guarantee that ranges iterating over * the array 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 `stuff` before, after, or instead range `r`, which must * be a valid range previously extracted from this array. `stuff` * can be a value convertible to `T` or a range of objects convertible * to `T`. Both stable and non-stable version behave the same and * guarantee that ranges iterating over the array are never invalidated. * * Returns: The number of values inserted. * * Complexity: $(BIGOH length + m), where `m` is the length of `stuff`. * * Throws: `Exception` if `r` is not a range extracted from this array. */ 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, "Failed to allocate capacity to insertBefore"); // 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, "Failed to allocate capacity to insertBefore"); // 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 alias stableInsertBefore = insertBefore; /// ditto size_t insertAfter(Stuff)(Range r, Stuff stuff) if (isImplicitlyConvertible!(Stuff, T) || isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T)) { 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 `r`, which must be a range * obtained originally from this array. * * Returns: A range spanning the remaining elements in the array that * initially were right after `r`. * * Complexity: $(BIGOH length) * * Throws: `Exception` if `r` is not a valid range extracted from this array. */ 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]; } } @system unittest { Array!int a; assert(a.empty); } @system unittest { Array!int a; a.length = 10; assert(a.length == 10); assert(a.capacity >= a.length); } @system unittest { struct Dumb { int x = 5; } Array!Dumb a; a.length = 10; assert(a.length == 10); assert(a.capacity >= a.length); immutable cap = a.capacity; foreach (ref e; a) e.x = 10; a.length = 5; assert(a.length == 5); // do not realloc if length decreases assert(a.capacity == cap); foreach (ref e; a) assert(e.x == 10); a.length = 8; assert(a.length == 8); // do not realloc if capacity sufficient assert(a.capacity == cap); assert(Dumb.init.x == 5); foreach (i; 0 .. 5) assert(a[i].x == 10); foreach (i; 5 .. a.length) assert(a[i].x == Dumb.init.x); // realloc required, check if values properly copied a[] = Dumb(1); a.length = 20; assert(a.capacity >= 20); foreach (i; 0 .. 8) assert(a[i].x == 1); foreach (i; 8 .. a.length) assert(a[i].x == Dumb.init.x); // check if overlapping elements properly initialized a.length = 1; a.length = 20; assert(a[0].x == 1); foreach (e; a[1 .. $]) assert(e.x == Dumb.init.x); } @system 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)); } @system unittest { auto a = Array!int(1, 2, 3); assert(a.length == 3); } @system 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++; } } @safe unittest { // https://issues.dlang.org/show_bug.cgi?id=13621 import std.container : Array, BinaryHeap; alias Heap = BinaryHeap!(Array!int); } @system unittest { // https://issues.dlang.org/show_bug.cgi?id=18800 static struct S { void* p; } Array!S a; a.length = 10; } @system 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); } @system unittest { auto a = Array!int(1, 2, 3); a[1] *= 42; assert(a[1] == 84); } @system 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)); } @system 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)); } @system unittest { auto a = Array!int(1, 2, 3, 4); assert(a.removeAny() == 4); assert(a == Array!int(1, 2, 3)); } @system 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)); } @system 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. @system 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])); } // https://issues.dlang.org/show_bug.cgi?id=5920 @system 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 for https://issues.dlang.org/show_bug.cgi?id=5792 // (mainly just to check if this piece of code is compilable) @system 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 @system 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 @system unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.insertBefore(a[], 1); assert(equal(a[], [1])); } @system unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.insertBefore(a[], [1, 2]); assert(equal(a[], [1, 2])); } @system unittest { import std.algorithm.comparison : equal; auto a = Array!int(); a.replace(a[], [1, 2]); assert(equal(a[], [1, 2])); } @system 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 @system unittest { import std.exception : assertThrown; 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)); } @system 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); } @system 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 @system 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; } // https://issues.dlang.org/show_bug.cgi?id=11459 @safe unittest { static struct S { bool b; alias b this; } alias A = Array!S; alias B = Array!(shared bool); } // https://issues.dlang.org/show_bug.cgi?id=11884 @system unittest { import std.algorithm.iteration : filter; auto a = Array!int([1, 2, 2].filter!"true"()); } // https://issues.dlang.org/show_bug.cgi?id=8282 @safe unittest { auto arr = new Array!int; } // https://issues.dlang.org/show_bug.cgi?id=6998 @system unittest { 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); } //https://issues.dlang.org/show_bug.cgi?id=6998 (2) @system unittest { static class C {int i;} auto c = new C; c.i = 42; Array!C a; a ~= c; a.clear; assert(c.i == 42); //fails } @safe unittest { static assert(is(Array!int.Range)); static assert(is(Array!int.ConstRange)); } @system 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); } // ensure @nogc @nogc @system unittest { Array!int ai; ai ~= 1; assert(ai.front == 1); ai.reserve(10); assert(ai.capacity == 10); static immutable arr = [1, 2, 3]; ai.insertBack(arr); } /** * typeof may give wrong result in case of classes defining `opCall` operator * https://issues.dlang.org/show_bug.cgi?id=20589 * * destructor std.container.array.Array!(MyClass).Array.~this is @system * so the unittest is @system too */ @system unittest { class MyClass { T opCall(T)(T p) { return p; } } Array!MyClass arr; } @system unittest { import std.algorithm.comparison : equal; auto a = Array!int([1,2,3,4,5]); assert(a.length == 5); assert(a.insertAfter(a[0 .. 5], [7, 8]) == 2); assert(equal(a[], [1,2,3,4,5,7,8])); assert(a.insertAfter(a[0 .. 5], 6) == 1); assert(equal(a[], [1,2,3,4,5,6,7,8])); } //////////////////////////////////////////////////////////////////////////////// // Array!bool //////////////////////////////////////////////////////////////////////////////// /** * _Array specialized for `bool`. Packs together values efficiently by * allocating one bit per element. */ struct Array(T) if (is(immutable T == immutable 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, "Cannot get data of uninitialized Array"); return _store._backend._payload; } /** * Defines the array'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, "Attempting to access the front of an empty Array"); return _outer[_a]; } /// Ditto @property void front(bool value) { enforce(!empty, "Attempting to set the front of an empty Array"); _outer[_a] = value; } /// Ditto T moveFront() { enforce(!empty, "Attempting to move the front of an empty Array"); return _outer.moveAt(_a); } /// Ditto void popFront() { enforce(!empty, "Attempting to popFront an empty Array"); ++_a; } /// Ditto @property T back() { enforce(!empty, "Attempting to access the back of an empty Array"); return _outer[_b - 1]; } /// Ditto @property void back(bool value) { enforce(!empty, "Attempting to set the back of an empty Array"); _outer[_b - 1] = value; } /// Ditto T moveBack() { enforce(!empty, "Attempting to move the back of an empty Array"); return _outer.moveAt(_b - 1); } /// Ditto void popBack() { enforce(!empty, "Attempting to popBack an empty Array"); --_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, "Invalid bounds"); return _b - _a; } alias opDollar = length; /// ditto Range opSlice(size_t low, size_t high) { // Note: indexes start at 0, which is equivalent to _a assert( low <= high && high <= (_b - _a), "Using out of bounds indexes on an Array" ); return Range(_outer, _a + low, _a + high); } } /** * Constructor taking a number of items. */ this(U)(U[] values...) if (isImplicitlyConvertible!(U, T)) { reserve(values.length); foreach (i, v; values) { auto rem = i % bitsPerWord; if (rem) { // Fits within the current array if (v) { data[$ - 1] |= (cast(size_t) 1 << rem); } else { data[$ - 1] &= ~(cast(size_t) 1 << rem); } } else { // Need to add more data _store._backend.insertBack(v); } } _store._length = values.length; } /** * Constructor taking an $(REF_ALTTEXT input range, isInputRange, std,range,primitives) */ this(Range)(Range r) if (isInputRange!Range && isImplicitlyConvertible!(ElementType!Range, T) && !is(Range == T[])) { insertBack(r); } /** * Property returning `true` if and only if the array has * no elements. * * Complexity: $(BIGOH 1) */ @property bool empty() { return !length; } /** * Returns: A duplicate of the array. * * Complexity: $(BIGOH length). */ @property Array dup() { Array result; result.insertBack(this[]); return result; } /** * Returns the number of elements in the array. * * Complexity: $(BIGOH 1). */ @property size_t length() const { return _store.refCountedStore.isInitialized ? _store._length : 0; } alias opDollar = length; /** * Returns: The maximum number of elements the array can store without * reallocating memory and invalidating iterators upon insertion. * * Complexity: $(BIGOH 1). */ @property size_t capacity() { return _store.refCountedStore.isInitialized ? cast(size_t) bitsPerWord * _store._backend.capacity : 0; } /** * Ensures sufficient capacity to accommodate `e` _elements. * If `e < capacity`, this method does nothing. * * Postcondition: `capacity >= e` * * Note: If the capacity is increased, one should assume that all * iterators to the elements are invalidated. * * Complexity: at most $(BIGOH length) if `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)); } /** * Returns: A range that iterates over all elements of the array in forward order. * * Complexity: $(BIGOH 1) */ Range opSlice() { return Range(this, 0, length); } /** * Returns: A range that iterates the array between two specified positions. * * Complexity: $(BIGOH 1) */ Range opSlice(size_t a, size_t b) { enforce(a <= b && b <= length); return Range(this, a, b); } /** * Returns: The first element of the array. * * Precondition: `empty == false` * * Complexity: $(BIGOH 1) * * Throws: `Exception` if the array is empty. */ @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; } /** * Returns: The last element of the array. * * Precondition: `empty == false` * * Complexity: $(BIGOH 1) * * Throws: `Exception` if the array is empty. */ @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)); } } /** * Indexing operators yielding or modifyng the value at the specified index. * * Precondition: `i < length` * * Complexity: $(BIGOH 1) */ 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]; } /** * Returns: A new array which is a concatenation of `this` and its argument. * * Complexity: * $(BIGOH length + m), where `m` is the number of elements in `stuff`. */ Array!bool opBinary(string op, Stuff)(Stuff rhs) if (op == "~") { Array!bool result; static if (hasLength!Stuff) result.reserve(length + rhs.length); else static if (is(typeof(rhs[])) && hasLength!(typeof(rhs[]))) result.reserve(length + rhs[].length); else static if (isImplicitlyConvertible!(Stuff, bool)) result.reserve(length + 1); result.insertBack(this[]); result ~= rhs; return result; } /** * Forwards to `insertBack`. */ Array!bool opOpAssign(string op, Stuff)(Stuff stuff) if (op == "~") { static if (is(typeof(stuff[]))) insertBack(stuff[]); else insertBack(stuff); return this; } /** * Removes all the elements from the array and releases allocated memory. * * Postcondition: `empty == true && capacity == 0` * * Complexity: $(BIGOH length) */ void clear() { this = Array(); } /** * Sets the number of elements in the array to `newLength`. If `newLength` * is greater than `length`, the new elements are added to the end of the * array and initialized with `false`. * * Complexity: * Guaranteed $(BIGOH abs(length - newLength)) if `capacity >= newLength`. * If `capacity < newLength` the worst case is $(BIGOH newLength). * * Postcondition: `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; } /** * Removes the last element from the array and returns it. * Both stable and non-stable versions behave the same and guarantee * that ranges iterating over the array are never invalidated. * * Precondition: `empty == false` * * Returns: The element removed. * * Complexity: $(BIGOH 1). * * Throws: `Exception` if the array is empty. */ T removeAny() { auto result = back; removeBack(); return result; } /// ditto alias stableRemoveAny = removeAny; /** * Inserts the specified elements at the back of the array. `stuff` can be * a value convertible to `bool` or a range of objects convertible to `bool`. * * Returns: The number of elements inserted. * * Complexity: * $(BIGOH length + m) if reallocation takes place, otherwise $(BIGOH m), * where `m` is the number of elements in `stuff`. */ 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)) { size_t result; static if (hasLength!Stuff) result = stuff.length; for (; !stuff.empty; stuff.popFront()) { insertBack(stuff.front); static if (!hasLength!Stuff) ++result; } return result; } /// ditto alias stableInsertBack = insertBack; /// ditto alias insert = insertBack; /// ditto alias stableInsert = insertBack; /// ditto alias linearInsert = insertBack; /// ditto alias stableLinearInsert = insertBack; /** * Removes the value from the back of the array. Both stable and non-stable * versions behave the same and guarantee that ranges iterating over the * array are never invalidated. * * Precondition: `empty == false` * * Complexity: $(BIGOH 1). * * Throws: `Exception` if the array is empty. */ 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 `howMany` values from the back of the array. Unlike the * unparameterized versions above, these functions do not throw if * they could not remove `howMany` elements. Instead, if `howMany > n`, * all elements are removed. The returned value is the effective number * of elements removed. Both stable and non-stable versions behave the same * and guarantee that ranges iterating over the array are never invalidated. * * Returns: The number of elements removed. * * Complexity: $(BIGOH howMany). */ size_t removeBack(size_t howMany) { if (howMany >= length) { howMany = length; clear(); } else { length = length - howMany; } return howMany; } /// ditto alias stableRemoveBack = removeBack; /** * Inserts `stuff` before, after, or instead range `r`, which must * be a valid range previously extracted from this array. `stuff` * can be a value convertible to `bool` or a range of objects convertible * to `bool`. Both stable and non-stable version behave the same and * guarantee that ranges iterating over the array are never invalidated. * * Returns: The number of values inserted. * * Complexity: $(BIGOH length + m), where `m` is the length of `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; /// ditto size_t insertAfter(Stuff)(Range r, Stuff stuff) if (isImplicitlyConvertible!(Stuff, T) || isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T)) { 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; /// 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; /** * Removes all elements belonging to `r`, which must be a range * obtained originally from this array. * * Returns: A range spanning the remaining elements in the array that * initially were right after `r`. * * Complexity: $(BIGOH length) */ 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]; } } @system unittest { import std.algorithm.comparison : equal; auto a = Array!bool([true, true, false, false, true, false]); assert(equal(a[], [true, true, false, false, true, false])); } // using Ranges @system unittest { import std.algorithm.comparison : equal; import std.range : retro; bool[] arr = [true, true, false, false, true, false]; auto a = Array!bool(retro(arr)); assert(equal(a[], retro(arr))); } @system unittest { Array!bool a; assert(a.empty); } @system 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; slice = slice[0 .. $]; // https://issues.dlang.org/show_bug.cgi?id=19171 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); } // uncomparable values are valid values for an array // https://issues.dlang.org/show_bug.cgi?id=16331 @system unittest { double[] values = [double.nan, double.nan]; auto arr = Array!double(values); } @nogc @system unittest { auto a = Array!int(0, 1, 2); int[3] b = [3, 4, 5]; short[3] ci = [0, 1, 0]; auto c = Array!short(ci); assert(Array!int(0, 1, 2, 0, 1, 2) == a ~ a); assert(Array!int(0, 1, 2, 3, 4, 5) == a ~ b); assert(Array!int(0, 1, 2, 3) == a ~ 3); assert(Array!int(0, 1, 2, 0, 1, 0) == a ~ c); } @nogc @system unittest { auto a = Array!char('a', 'b'); assert(Array!char("abc") == a ~ 'c'); import std.utf : byCodeUnit; assert(Array!char("abcd") == a ~ "cd".byCodeUnit); } @nogc @system unittest { auto a = Array!dchar("ąćę"d); assert(Array!dchar("ąćęϢϖ"d) == a ~ "Ϣϖ"d); wchar x = 'Ϣ'; assert(Array!dchar("ąćęϢz"d) == a ~ x ~ 'z'); } @system unittest { Array!bool a; assert(a.empty); a.insertBack(false); assert(!a.empty); } @system unittest { Array!bool a; assert(a.empty); auto b = a.dup; assert(b.empty); a.insertBack(true); assert(b.empty); } @system unittest { import std.conv : to; Array!bool a; assert(a.length == 0); a.insert(true); assert(a.length == 1, to!string(a.length)); } @system 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)); } } @system unittest { Array!bool a; assert(a.capacity == 0); a.reserve(15657); assert(a.capacity >= 15657); a.reserve(100); assert(a.capacity >= 15657); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[0 .. 2].length == 2); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[].length == 4); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a.front); a.front = false; assert(!a.front); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[].length == 4); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a.back); a.back = false; assert(!a.back); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); assert(a[0] && !a[1]); a[0] &= a[1]; assert(!a[0]); } @system 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])); assert((a ~ [true, false])[].equal([true, false, true, true, true, false])); Array!bool c; c.insertBack(true); assert((c ~ false)[].equal([true, false])); } @system 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])); } @system unittest { Array!bool a; a.insertBack([true, false, true, true]); a.clear(); assert(a.capacity == 0); } @system unittest { Array!bool a; a.length = 1057; assert(a.length == 1057); assert(a.capacity >= a.length); foreach (e; a) { assert(!e); } immutable cap = a.capacity; a.length = 100; assert(a.length == 100); // do not realloc if length decreases assert(a.capacity == cap); } @system unittest { Array!bool a; a.length = 1057; assert(!a.removeAny()); assert(a.length == 1056); foreach (e; a) { assert(!e); } } @system unittest { Array!bool a; for (int i = 0; i < 100; ++i) a.insertBack(true); foreach (e; a) assert(e); } @system unittest { Array!bool a; a.length = 1057; assert(a.removeBack(1000) == 1000); assert(a.length == 57); foreach (e; a) { assert(!e); } } @system 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)); a.insertBefore(a[1 .. $], true); import std.algorithm.comparison : equal; assert(a[].equal([false, true, true])); } // https://issues.dlang.org/show_bug.cgi?id=21555 @system unittest { import std.algorithm.comparison : equal; Array!bool arr; size_t len = arr.insertBack([false, true]); assert(len == 2); } // https://issues.dlang.org/show_bug.cgi?id=21556 @system unittest { import std.algorithm.comparison : equal; Array!bool a; a.insertBack([true, true, false, false, true]); assert(a.length == 5); assert(a.insertAfter(a[0 .. 5], [false, false]) == 2); assert(equal(a[], [true, true, false, false, true, false, false])); assert(a.insertAfter(a[0 .. 5], true) == 1); assert(equal(a[], [true, true, false, false, true, true, false, false])); } @system 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]); } @system unittest { alias V3 = int[3]; V3 v = [1, 2, 3]; Array!V3 arr; arr ~= v; assert(arr[0] == [1, 2, 3]); } @system unittest { alias V3 = int[3]; V3[2] v = [[1, 2, 3], [4, 5, 6]]; Array!V3 arr; arr ~= v; assert(arr[0] == [1, 2, 3]); assert(arr[1] == [4, 5, 6]); } // Change of length reallocates without calling GC. // https://issues.dlang.org/show_bug.cgi?id=13642 @system unittest { import core.memory; class ABC { void func() { int x = 5; } } Array!ABC arr; // Length only allocates if capacity is too low. arr.reserve(4); assert(arr.capacity == 4); void func() @nogc { arr.length = 5; } func(); foreach (ref b; arr) b = new ABC; GC.collect(); arr[1].func(); }
D