code
stringlengths
3
10M
language
stringclasses
31 values
module webkit2webextension.DOMCSSRule; private import glib.ErrorG; private import glib.GException; private import glib.Str; private import gobject.ObjectG; private import webkit2webextension.DOMCSSStyleSheet; private import webkit2webextension.DOMObject; private import webkit2webextension.c.functions; public import webkit2webextension.c.types; /** */ public class DOMCSSRule : DOMObject { /** the main Gtk struct */ protected WebKitDOMCSSRule* webKitDOMCSSRule; /** Get the main Gtk struct */ public WebKitDOMCSSRule* getDOMCSSRuleStruct(bool transferOwnership = false) { if (transferOwnership) ownedRef = false; return webKitDOMCSSRule; } /** the main Gtk struct as a void* */ protected override void* getStruct() { return cast(void*)webKitDOMCSSRule; } /** * Sets our main struct and passes it to the parent class. */ public this (WebKitDOMCSSRule* webKitDOMCSSRule, bool ownedRef = false) { this.webKitDOMCSSRule = webKitDOMCSSRule; super(cast(WebKitDOMObject*)webKitDOMCSSRule, ownedRef); } /** */ public static GType getType() { return webkit_dom_css_rule_get_type(); } /** * * * Deprecated: Use JavaScriptCore API instead * * Returns: A #gchar */ public string getCssText() { auto retStr = webkit_dom_css_rule_get_css_text(webKitDOMCSSRule); scope(exit) Str.freeString(retStr); return Str.toString(retStr); } /** * * * Deprecated: Use JavaScriptCore API instead * * Returns: A #WebKitDOMCSSRule */ public DOMCSSRule getParentRule() { auto __p = webkit_dom_css_rule_get_parent_rule(webKitDOMCSSRule); if(__p is null) { return null; } return ObjectG.getDObject!(DOMCSSRule)(cast(WebKitDOMCSSRule*) __p, true); } /** * * * Deprecated: Use JavaScriptCore API instead * * Returns: A #WebKitDOMCSSStyleSheet */ public DOMCSSStyleSheet getParentStyleSheet() { auto __p = webkit_dom_css_rule_get_parent_style_sheet(webKitDOMCSSRule); if(__p is null) { return null; } return ObjectG.getDObject!(DOMCSSStyleSheet)(cast(WebKitDOMCSSStyleSheet*) __p, true); } /** * * * Deprecated: Use JavaScriptCore API instead * * Returns: A #gushort */ public ushort getRuleType() { return webkit_dom_css_rule_get_rule_type(webKitDOMCSSRule); } /** * * * Deprecated: Use JavaScriptCore API instead * * Params: * value = A #gchar * * Throws: GException on failure. */ public void setCssText(string value) { GError* err = null; webkit_dom_css_rule_set_css_text(webKitDOMCSSRule, Str.toStringz(value), &err); if (err !is null) { throw new GException( new ErrorG(err) ); } } }
D
// Copyright Brian Schott (Hackerpilot) 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) module dscanner.analysis.stats_collector; import dparse.ast; import dparse.lexer; import dscanner.analysis.base; final class StatsCollector : BaseAnalyzer { alias visit = ASTVisitor.visit; this(string fileName) { super(fileName, null); } override void visit(const Statement statement) { statementCount++; statement.accept(this); } override void visit(const ClassDeclaration classDeclaration) { classCount++; classDeclaration.accept(this); } override void visit(const InterfaceDeclaration interfaceDeclaration) { interfaceCount++; interfaceDeclaration.accept(this); } override void visit(const FunctionDeclaration functionDeclaration) { functionCount++; functionDeclaration.accept(this); } override void visit(const StructDeclaration structDeclaration) { structCount++; structDeclaration.accept(this); } override void visit(const TemplateDeclaration templateDeclaration) { templateCount++; templateDeclaration.accept(this); } uint interfaceCount; uint classCount; uint functionCount; uint templateCount; uint structCount; uint statementCount; uint lineOfCodeCount; uint undocumentedPublicSymbols; }
D
/Users/hyungsukkang/terra/terra-contracts/uniswapv1/target/rls/debug/deps/cfg_if-224cafc4b959bbef.rmeta: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs /Users/hyungsukkang/terra/terra-contracts/uniswapv1/target/rls/debug/deps/libcfg_if-224cafc4b959bbef.rlib: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs /Users/hyungsukkang/terra/terra-contracts/uniswapv1/target/rls/debug/deps/cfg_if-224cafc4b959bbef.d: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs:
D
module android.helper.log; import android.log; import std.functional:partial; alias LOGW = partial!(__android_log_print, android_LogPriority.ANDROID_LOG_WARN); alias LOGE = partial!(__android_log_print, android_LogPriority.ANDROID_LOG_ERROR); alias LOGI = partial!(__android_log_print, android_LogPriority.ANDROID_LOG_INFO); alias LOGD = partial!(__android_log_print, android_LogPriority.ANDROID_LOG_DEBUG);
D
int g = 0; static ~this() { assert(g == 100); } void main() out { g = 100; } do { return; // expected return code == 0 }
D
/Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/x86_64-apple-macosx10.10/debug/PerfectLib.build/SysProcess.swift.o : /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.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 /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/macmini2/Desktop/workSpace/Perfect-HTTP/.build/x86_64-apple-macosx10.10/debug/PerfectLib.build/SysProcess~partial.swiftmodule : /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.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 /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/macmini2/Desktop/workSpace/Perfect-HTTP/.build/x86_64-apple-macosx10.10/debug/PerfectLib.build/SysProcess~partial.swiftdoc : /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.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 /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
module android.java.android.graphics.drawable.TransitionDrawable_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import7 = android.java.android.graphics.Rect_d_interface; import import5 = android.java.android.content.res.Resources_Theme_d_interface; import import1 = android.java.android.graphics.Canvas_d_interface; import import11 = android.java.android.graphics.BlendMode_d_interface; import import18 = android.java.android.util.TypedValue_d_interface; import import3 = android.java.org.xmlpull.v1.XmlPullParser_d_interface; import import2 = android.java.android.content.res.Resources_d_interface; import import9 = android.java.android.graphics.ColorFilter_d_interface; import import12 = android.java.android.graphics.drawable.Drawable_ConstantState_d_interface; import import14 = android.java.android.graphics.PorterDuff_Mode_d_interface; import import10 = android.java.android.content.res.ColorStateList_d_interface; import import4 = android.java.android.util.AttributeSet_d_interface; import import0 = android.java.android.graphics.drawable.Drawable_d_interface; import import16 = android.java.android.graphics.Insets_d_interface; import import19 = android.java.android.graphics.BitmapFactory_Options_d_interface; import import8 = android.java.android.graphics.Outline_d_interface; import import20 = android.java.java.lang.Class_d_interface; import import17 = android.java.java.io.InputStream_d_interface; import import6 = android.java.java.lang.Runnable_d_interface; import import13 = android.java.android.graphics.drawable.Drawable_Callback_d_interface; import import15 = android.java.android.graphics.Region_d_interface; final class TransitionDrawable : IJavaObject { static immutable string[] _d_canCastTo = [ "android/graphics/drawable/Drawable$Callback", ]; @Import this(import0.Drawable[]); @Import void startTransition(int); @Import void resetTransition(); @Import void reverseTransition(int); @Import void draw(import1.Canvas); @Import void setCrossFadeEnabled(bool); @Import bool isCrossFadeEnabled(); @Import void inflate(import2.Resources, import3.XmlPullParser, import4.AttributeSet, import5.Resources_Theme); @Import void applyTheme(import5.Resources_Theme); @Import bool canApplyTheme(); @Import bool isProjected(); @Import int addLayer(import0.Drawable); @Import import0.Drawable findDrawableByLayerId(int); @Import void setId(int, int); @Import int getId(int); @Import int getNumberOfLayers(); @Import bool setDrawableByLayerId(int, import0.Drawable); @Import int findIndexByLayerId(int); @Import void setDrawable(int, import0.Drawable); @Import import0.Drawable getDrawable(int); @Import void setLayerSize(int, int, int); @Import void setLayerWidth(int, int); @Import int getLayerWidth(int); @Import void setLayerHeight(int, int); @Import int getLayerHeight(int); @Import void setLayerGravity(int, int); @Import int getLayerGravity(int); @Import void setLayerInset(int, int, int, int, int); @Import void setLayerInsetRelative(int, int, int, int, int); @Import void setLayerInsetLeft(int, int); @Import int getLayerInsetLeft(int); @Import void setLayerInsetRight(int, int); @Import int getLayerInsetRight(int); @Import void setLayerInsetTop(int, int); @Import int getLayerInsetTop(int); @Import void setLayerInsetBottom(int, int); @Import int getLayerInsetBottom(int); @Import void setLayerInsetStart(int, int); @Import int getLayerInsetStart(int); @Import void setLayerInsetEnd(int, int); @Import int getLayerInsetEnd(int); @Import void setPaddingMode(int); @Import int getPaddingMode(); @Import void invalidateDrawable(import0.Drawable); @Import void scheduleDrawable(import0.Drawable, import6.Runnable, long); @Import void unscheduleDrawable(import0.Drawable, import6.Runnable); @Import int getChangingConfigurations(); @Import bool getPadding(import7.Rect); @Import void setPadding(int, int, int, int); @Import void setPaddingRelative(int, int, int, int); @Import int getLeftPadding(); @Import int getRightPadding(); @Import int getStartPadding(); @Import int getEndPadding(); @Import int getTopPadding(); @Import int getBottomPadding(); @Import void getOutline(import8.Outline); @Import void setHotspot(float, float); @Import void setHotspotBounds(int, int, int, int); @Import void getHotspotBounds(import7.Rect); @Import bool setVisible(bool, bool); @Import void setDither(bool); @Import void setAlpha(int); @Import int getAlpha(); @Import void setColorFilter(import9.ColorFilter); @Import void setTintList(import10.ColorStateList); @Import void setTintBlendMode(import11.BlendMode); @Import void setOpacity(int); @Import int getOpacity(); @Import void setAutoMirrored(bool); @Import bool isAutoMirrored(); @Import void jumpToCurrentState(); @Import bool isStateful(); @Import int getIntrinsicWidth(); @Import int getIntrinsicHeight(); @Import import12.Drawable_ConstantState getConstantState(); @Import import0.Drawable mutate(); @Import bool onLayoutDirectionChanged(int); @Import void setBounds(int, int, int, int); @Import void setBounds(import7.Rect); @Import void copyBounds(import7.Rect); @Import import7.Rect copyBounds(); @Import import7.Rect getBounds(); @Import import7.Rect getDirtyBounds(); @Import void setChangingConfigurations(int); @Import void setFilterBitmap(bool); @Import bool isFilterBitmap(); @Import void setCallback(import13.Drawable_Callback); @Import import13.Drawable_Callback getCallback(); @Import void invalidateSelf(); @Import void scheduleSelf(import6.Runnable, long); @Import void unscheduleSelf(import6.Runnable); @Import int getLayoutDirection(); @Import bool setLayoutDirection(int); @Import void setColorFilter(int, import14.PorterDuff_Mode); @Import void setTint(int); @Import void setTintMode(import14.PorterDuff_Mode); @Import import9.ColorFilter getColorFilter(); @Import void clearColorFilter(); @Import bool setState(int[]); @Import int[] getState(); @Import import0.Drawable getCurrent(); @Import bool setLevel(int); @Import int getLevel(); @Import bool isVisible(); @Import static int resolveOpacity(int, int); @Import import15.Region getTransparentRegion(); @Import int getMinimumWidth(); @Import int getMinimumHeight(); @Import import16.Insets getOpticalInsets(); @Import static import0.Drawable createFromStream(import17.InputStream, string); @Import static import0.Drawable createFromResourceStream(import2.Resources, import18.TypedValue, import17.InputStream, string); @Import static import0.Drawable createFromResourceStream(import2.Resources, import18.TypedValue, import17.InputStream, string, import19.BitmapFactory_Options); @Import static import0.Drawable createFromXml(import2.Resources, import3.XmlPullParser); @Import static import0.Drawable createFromXml(import2.Resources, import3.XmlPullParser, import5.Resources_Theme); @Import static import0.Drawable createFromXmlInner(import2.Resources, import3.XmlPullParser, import4.AttributeSet); @Import static import0.Drawable createFromXmlInner(import2.Resources, import3.XmlPullParser, import4.AttributeSet, import5.Resources_Theme); @Import static import0.Drawable createFromPath(string); @Import void inflate(import2.Resources, import3.XmlPullParser, import4.AttributeSet); @Import import20.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/graphics/drawable/TransitionDrawable;"; }
D
/* REQUIRED_ARGS: -checkaction=context -dip25 -dip1000 */ void test8765() { string msg; try { int a = 0; assert(a); } catch (Throwable e) { // no-message -> assert expression msg = e.msg; } assert(msg && msg == "assert(a) failed"); } void test9255() { string file; try { int x = 0; assert(x); } catch (Throwable e) { file = e.file; } version(Windows) assert(file && file == r"runnable\testassert.d"); else assert(file && file == "runnable/testassert.d"); } // https://issues.dlang.org/show_bug.cgi?id=20114 void test20114() { // Function call returning simple type static int fun() { static int i = 0; assert(i++ == 0); return 3; } const a = getMessage(assert(fun() == 4)); assert(a == "3 != 4"); // Function call returning complex type with opEquals static struct S { bool opEquals(const int x) const { return false; } } static S bar() { static int i = 0; assert(i++ == 0); return S.init; } const b = getMessage(assert(bar() == 4)); assert(b == "S() != 4"); // Non-call expression with side effects int i = 0; const c = getMessage(assert(++i == 0)); assert(c == "1 != 0"); } version (DigitalMars) version (Win64) version = DMD_Win64; void test20375() @safe { static struct RefCounted { // Force temporary through "impure" generator function static RefCounted create() @trusted { __gshared int counter = 0; return RefCounted(++counter > 0); } static int instances; static int postblits; this(bool) @safe { instances++; } this(this) @safe { instances++; postblits++; } ~this() @safe { // make the dtor non-nothrow (we are tracking clean-ups during AssertError unwinding) if (postblits > 100) throw new Exception(""); assert(instances > 0); instances--; } bool opEquals(RefCounted) @safe { return true; } } { auto a = RefCounted.create(); RefCounted.instances++; // we're about to construct an instance below, increment manually assert(a == RefCounted()); // both operands are pure expressions => no temporaries } assert(RefCounted.instances == 0); assert(RefCounted.postblits == 0); { auto a = RefCounted.create(); assert(a == RefCounted.create()); // impure rhs is promoted to a temporary lvalue => copy for a.opEquals(rhs) } assert(RefCounted.instances == 0); assert(RefCounted.postblits == 1); RefCounted.postblits = 0; { const msg = getMessage(assert(RefCounted.create() != RefCounted.create())); // both operands promoted to temporary lvalues assert(msg == "RefCounted() == RefCounted()"); } version (DMD_Win64) // FIXME: temporaries apparently not destructed when unwinding via AssertError { assert(RefCounted.instances >= 0 && RefCounted.instances <= 2); RefCounted.instances = 0; } else assert(RefCounted.instances == 0); assert(RefCounted.postblits == 1); RefCounted.postblits = 0; static int numGetLvalImpureCalls = 0; ref RefCounted getLvalImpure() @trusted { numGetLvalImpureCalls++; __gshared lval = RefCounted(); // not incrementing RefCounted.instances return lval; } { const msg = getMessage(assert(getLvalImpure() != getLvalImpure())); // both operands promoted to ref temporaries assert(msg == "RefCounted() == RefCounted()"); } assert(numGetLvalImpureCalls == 2); assert(RefCounted.instances == 0); assert(RefCounted.postblits == 1); RefCounted.postblits = 0; } string getMessage(T)(lazy T expr) @trusted { try { expr(); return null; } catch (Throwable t) { return t.msg; } } void testMixinExpression() @safe { static struct S { bool opEquals(S) @safe { return true; } } const msg = getMessage(assert(mixin("S() != S()"))); assert(msg == "S() == S()"); } void main() { test8765(); test9255(); test20114(); test20375(); testMixinExpression(); }
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range; void main() { auto hw = readln.split.to!(int[]); auto H = hw[0]; auto W = hw[1]; int[][] MAP; foreach (_; 0..H) MAP ~= readln.split.to!(int[]); auto DP = new long[][][](W, W, 8); foreach (i; 0..H) foreach (j; 0..W-1) foreach (k; j+1..W) { ++DP[j][k][(1<<MAP[i][j]) | (1<<MAP[i][k])]; } long r; foreach (i; 0..W-1) foreach (j; i+1..W) { r += DP[i][j][0b001] * DP[i][j][0b110]; r += DP[i][j][0b010] * DP[i][j][0b101]; r += DP[i][j][0b100] * DP[i][j][0b011]; r += DP[i][j][0b110] * (DP[i][j][0b001] + DP[i][j][0b101] + DP[i][j][0b011]); r += DP[i][j][0b101] * (DP[i][j][0b010] + DP[i][j][0b110] + DP[i][j][0b011]); r += DP[i][j][0b011] * (DP[i][j][0b100] + DP[i][j][0b101] + DP[i][j][0b110]); } writeln(r / 2); }
D
int main() { int a; int b; for( a = 0 ; a < 10 ; a = a + 1 ){ Print( a ); } Print("----------------------------"); for( a = 0 ; a < 10 ; a = a + 1 ){ for( b = 0 ; b < 10 ; b = b + 1 ){ Print(a); Print(b); Print("----"); } } Print("---------------------"); a = 3; for( ; a < 10 ; ){ Print( a ); a = a + 1; } Print("******************"); a = 7; for( ; a < 10 ; a = a + 1 ){ Print( a ); } }
D
// Copyright Brian Schott (Hackerpilot) 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) module analysis.fish; import std.stdio; import dparse.ast; import dparse.lexer; import analysis.base; import analysis.helpers; import dsymbol.scope_ : Scope; /** * Checks for use of the deprecated floating point comparison operators. */ class FloatOperatorCheck : BaseAnalyzer { alias visit = BaseAnalyzer.visit; enum string KEY = "dscanner.deprecated.floating_point_operators"; this(string fileName, const(Scope)* sc) { super(fileName, sc); } override void visit(const RelExpression r) { if (r.operator == tok!"<>" || r.operator == tok!"<>=" || r.operator == tok!"!<>" || r.operator == tok!"!>" || r.operator == tok!"!<" || r.operator == tok!"!<>=" || r.operator == tok!"!>=" || r.operator == tok!"!<=") { addErrorMessage(r.line, r.column, KEY, "Avoid using the deprecated floating-point operators."); } r.accept(this); } } unittest { import analysis.config : StaticAnalysisConfig; StaticAnalysisConfig sac; sac.float_operator_check = true; assertAnalyzerWarnings(q{ void testFish() { float z = 1.5f; bool a; a = z !<>= z; // [warn]: Avoid using the deprecated floating-point operators. a = z !<> z; // [warn]: Avoid using the deprecated floating-point operators. a = z <> z; // [warn]: Avoid using the deprecated floating-point operators. a = z <>= z; // [warn]: Avoid using the deprecated floating-point operators. a = z !> z; // [warn]: Avoid using the deprecated floating-point operators. a = z !>= z; // [warn]: Avoid using the deprecated floating-point operators. a = z !< z; // [warn]: Avoid using the deprecated floating-point operators. a = z !<= z; // [warn]: Avoid using the deprecated floating-point operators. } }c, sac); stderr.writeln("Unittest for FloatOperatorCheck passed."); }
D
import std.stdio; import std.uuid; import std.conv; import core.time; import vibe.core.core; import sam.server.actor : Actor; import sam.server.actorsystem : ActorSystem, ActorSystemBuilder, UseInMemoryActorSystem; import sam.common.interfaces.actor : IActor; interface IHelloWorldActor : IActor { void sayHi(string name); } class HelloWorldActor : Actor, IHelloWorldActor { void sayHi(string name) { writeln("Hi " ~ name ~ ", from actor '" ~ id ~ "'"); } } void main() { auto actorSystem = new ActorSystemBuilder() // .register!(IHelloWorldActor, HelloWorldActor) // .UseInMemoryActorSystem // .build; auto client = actorSystem.clientOf; runTask({ while(true) { sleep(500.msecs); auto actorId = randomUUID.toString; auto actor = client.actorOf!IHelloWorldActor(actorId); actor.sayHi("example runner"); } }); runApplication; }
D
; Copyright (C) 2008 The Android Open Source Project ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. .source T_invoke_virtual_range_1.java .class public dot.junit.opcodes.invoke_virtual_range.d.T_invoke_virtual_range_1 .super java/lang/Object .method public <init>()V .limit regs 2 invoke-direct {v1}, java/lang/Object/<init>()V return-void .end method .method public run(Ljava/lang/Object;Ljava/lang/Object;)Z .limit regs 8 invoke-virtual/range {v6..v7}, java/lang/Object/equals(Ljava/lang/Object;)Z move-result v0 return v0 .end method
D
instance Mod_7790_SFB_Schuerfer_PAT (Npc_Default) { //-------- primary data -------- name = NAME_Schuerfer; npctype = Npctype_MAIN; guild = GIL_VLK; level = 6; voice = 0; id = 7790; //-------- abilities -------- attribute[ATR_STRENGTH] = 30; attribute[ATR_DEXTERITY] = 10; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 112; attribute[ATR_HITPOINTS] = 112; //-------- 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_Thief", 40, 1, SFB_ARMOR_L); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_COWARD; //-------- Talente -------- //-------- inventory -------- //-------------Daily Routine------------- daily_routine = Rtn_Start_7790; }; FUNC VOID Rtn_Start_7790 () { TA_Sit_Campfire (01,00,13,00,"WP_PAT_KLOSTER_002"); TA_Sit_Campfire (13,00,01,00,"WP_PAT_KLOSTER_002"); }; FUNC VOID Rtn_Mine_7790 () { TA_Pick_Ore (01,00,13,00,"WP_PAT_UG_RUNENSTEIN_09"); TA_Pick_Ore (13,00,01,00,"WP_PAT_UG_RUNENSTEIN_09"); }; FUNC VOID Rtn_Tot_7790 () { TA_Pick_Ore (01,00,13,00,"TOT"); TA_Pick_Ore (13,00,01,00,"TOT"); };
D
/Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate.o : /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/MultipartFormData.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Timeline.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Alamofire.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Response.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/TaskDelegate.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/SessionDelegate.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ParameterEncoding.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Validation.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ResponseSerialization.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/SessionManager.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/AFError.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Notifications.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Result.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Request.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-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/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate~partial.swiftmodule : /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/MultipartFormData.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Timeline.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Alamofire.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Response.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/TaskDelegate.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/SessionDelegate.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ParameterEncoding.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Validation.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ResponseSerialization.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/SessionManager.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/AFError.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Notifications.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Result.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Request.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-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/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate~partial.swiftdoc : /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/MultipartFormData.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Timeline.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Alamofire.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Response.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/TaskDelegate.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/SessionDelegate.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ParameterEncoding.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Validation.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ResponseSerialization.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/SessionManager.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/AFError.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Notifications.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Result.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/Request.swift /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/justinlew/Documents/SFU/CMPT276/justinlew.mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-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
/** * Copyright: Copyright (c) 2016 Wojciech Szęszoł. All rights reserved. * Authors: Wojciech Szęszoł * Version: Initial created: Feb 14, 2016 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module clang.Token; import std.conv : to; import std.typecons; public import std.range.primitives : empty, front, back; import clang.c.Index; import clang.SourceLocation; import clang.SourceRange; import clang.Type; import clang.Util; import clang.Visitor; import clang.Cursor; enum TokenKind { punctuation = CXTokenKind.punctuation, keyword = CXTokenKind.keyword, identifier = CXTokenKind.identifier, literal = CXTokenKind.literal, comment = CXTokenKind.comment, } TokenKind toD(CXTokenKind kind) { return cast(TokenKind) kind; } struct Token { TokenKind kind; string spelling; SourceRange extent; @property SourceLocation location() { return extent.start; } @property string toString() const { import std.format: format; return format("Token(kind = %s, spelling = %s)", kind, spelling); } } SourceRange extent(Token[] tokens) { if (!tokens.empty) return SourceRange( tokens.front.extent.start, tokens.back.extent.end); else return SourceRange.empty; }
D
module UnrealScript.UTGame.UTSeqEvent_FlagEvent; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.Controller; import UnrealScript.Engine.SequenceEvent; extern(C++) interface UTSeqEvent_FlagEvent : SequenceEvent { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class UTGame.UTSeqEvent_FlagEvent")); } private static __gshared UTSeqEvent_FlagEvent mDefaultProperties; @property final static UTSeqEvent_FlagEvent DefaultProperties() { mixin(MGDPC("UTSeqEvent_FlagEvent", "UTSeqEvent_FlagEvent UTGame.Default__UTSeqEvent_FlagEvent")); } static struct Functions { private static __gshared { ScriptFunction mTrigger; ScriptFunction mGetObjClassVersion; } public @property static final { ScriptFunction Trigger() { mixin(MGF("mTrigger", "Function UTGame.UTSeqEvent_FlagEvent.Trigger")); } ScriptFunction GetObjClassVersion() { mixin(MGF("mGetObjClassVersion", "Function UTGame.UTSeqEvent_FlagEvent.GetObjClassVersion")); } } } final: // WARNING: Function 'Trigger' has the same name as a defined type! static int GetObjClassVersion() { ubyte params[4]; params[] = 0; StaticClass.ProcessEvent(Functions.GetObjClassVersion, params.ptr, cast(void*)0); return *cast(int*)params.ptr; } }
D
/* * Copyright Andrej Mitrovic 2014. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module wkBindKeys.dialog; import std.algorithm; import std.string; import win32.winuser; /** Spawn a dialog box with a warning message. */ void warn(string msg) { MessageBox(null, msg.trimForDialog.toStringz, "wxBindKeys warning", MB_OK | MB_ICONWARNING); } /** Spawn a dialog box with an error message. */ void error(string msg) { MessageBox(null, msg.trimForDialog.toStringz, "wxBindKeys error", MB_OK | MB_ICONERROR); } /** MessageBox seems to be extremely slow with displaying text longer than 10K characters. */ private string trimForDialog(string input) { return input[0 .. min(10_000, input.length)]; }
D
module game.core.chatarea; /* This is typically never hidden. * Only label and texttype are hidden while not typing. * The chat console can be empty and we can be not typing, then we don't * draw anything. */ import std.algorithm; import std.format; import std.range; import file.option; import file.replay; import file.language; import graphic.color; import gui; import physics.score; class ChatArea : Element { private: Console _console; Label _label; Texttype _texttype; RichClient _network; // not owned. May be null. public: // netw may be null, then we don't register our console there. this(Geom g, RichClient netw) { g.yl = 20f; super(g); _network = netw; _label = new Label(new Geom(gui.thickg, 0, 50 - gui.thickg, 20, From.BOTTOM_LEFT)); _label.text = Lang.winLobbyChat.transl; _label.undrawColor = color.transp; _label.shown = false; _texttype = new Texttype(new Geom(0, 0, xlg-50, 20, From.BOT_RIG)); _texttype.allowScrolling = true; _texttype.undrawColor = color.transp; _texttype.onEsc = () { _texttype.text = ""; }; _texttype.onEnter = () { this.maybeSendText; }; _texttype.shown = false; _console = createConsole(); addChildren(_console, _label, _texttype); if (_network) { _network.console = _console; _texttype.text = _network.unsentChat; _network.unsentChat = ""; } on = _texttype.text != ""; } @property bool on() const { return _texttype.shown; } void saveUnsentMessageAndDispose() { if (_network) _network.unsentChat = on ? _texttype.text : ""; on = false; assert (! hasFocus(_texttype), "on() = false didn't go through"); _network = null; // We leave a reference to our console in _network, so that _network // can later copy the lines. That's OK, the console is GC-allocated. } // To draw something else onto the console during game, e.g. // announce that overtime has started. Leave it to the network to get // lines out of the console and into the lobby console. @property inout(Console) console() inout { return _console; } // After a networking game, we print the results to the console. // Needs a range of scores, and a preferred style to tiebreak the sort. // Example print: Game outcome: Player1 32 -- Player2, Player3 16 void printScores(R)(R rangeOfScores, in Replay rep, in Style preferred) if (isInputRange!R && is (ElementType!R == Score)) { Score[] scores = rangeOfScores.array; scores.sortPreferringTeam(preferred); string line = Lang.netGameEndResult.transl ~ " "; foreach (i, score; scores) line ~= format!"%s %d%s"( rep.styleToNames(score.style), score.current, i != scores.length - 1 ? " -- " : ""); _console.add(line); } protected: override void calcSelf() { super.calcSelf(); if (keyChat.keyTapped && _network && ! on) on = true; on = _texttype.on; } @property bool on(in bool b) { if (on == b) return b; if (! b) gui.requireCompleteRedraw(); // is this still necessary? _label.shown = b; _texttype.shown = b; _texttype.on = b; return b; } private: auto createConsole() { return new class TransparentConsole { this() { super(new Geom(0, 0, this.outer.geom.xlg, 0)); } override void onLineChange() { super.onLineChange(); this.outer.resize(xlg, ylg + 20); } }; } void maybeSendText() { if (_texttype.text != "" && _network !is null) _network.sendChatMessage(_texttype.text); _texttype.text = ""; } }
D
module ast.module_node; import ast.declaration_node; import ast.import_declaration_node; class ModuleNode { private: char[] _name; DeclarationNode[] _declarations; public: this(char[] name, DeclarationNode[] declarations) { _name = name.dup; _declarations = declarations; } char[] name() { return _name.dup; } DeclarationNode[] declarations() { return _declarations; } ImportDeclarationNode[] imports() { ImportDeclarationNode[] ret = []; foreach(decl; _declarations) { if (decl.type == DeclarationNode.Type.ImportDeclaration) { ret ~= cast(ImportDeclarationNode)decl.node; } } return ret; } }
D
module hunt.sql.ast.SQLStructDataType; import hunt.sql.ast.SQLObjectImpl; import hunt.sql.ast.SQLObject; import hunt.sql.ast.SQLDataType; import hunt.sql.ast.SQLName; import hunt.sql.ast.SQLExpr; import hunt.sql.util.FnvHash; import hunt.sql.visitor.SQLASTVisitor; import hunt.collection; public class SQLStructDataType : SQLObjectImpl , SQLDataType { private string dbType; private List!Field fields; public this() { fields = new ArrayList!Field(); } public this(string dbType) { this.dbType = dbType; this(); } public override string getName() { return "STRUCT"; } public override long nameHashCode64() { return FnvHash.Constants.STRUCT; } public override void setName(string name) { throw new Exception("UnsupportedOperation"); } public override List!SQLExpr getArguments() { return new ArrayList!SQLExpr(); } public override bool getWithTimeZone() { return false; } public void setWithTimeZone(bool value) { throw new Exception("UnsupportedOperation"); } public bool isWithLocalTimeZone() { return false; } public void setWithLocalTimeZone(bool value) { throw new Exception("UnsupportedOperation"); } public override void setDbType(string dbType) { dbType = dbType; } public override string getDbType() { return dbType; } protected override void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild!(SQLStructDataType.Field)(visitor, fields); } visitor.endVisit(this); } public override SQLStructDataType clone() { SQLStructDataType x = new SQLStructDataType(dbType); foreach (Field field ; fields) { x.addField(field.name, field.dataType.clone()); } return x; } public List!Field getFields() { return fields; } public void addField(SQLName name, SQLDataType dataType) { Field field = new Field(name, dataType); field.setParent(this); fields.add(field); } public static class Field : SQLObjectImpl { private SQLName name; private SQLDataType dataType; public this(SQLName name, SQLDataType dataType) { setName(name); setDataType(dataType); } protected override void accept0(SQLASTVisitor visitor) { if (visitor.visit(this)) { acceptChild(visitor, name); acceptChild(visitor, dataType); } visitor.endVisit(this); } public SQLName getName() { return name; } public void setName(SQLName x) { if (x !is null) { x.setParent(this); } this.name = x; } public SQLDataType getDataType() { return dataType; } public void setDataType(SQLDataType x) { if (x !is null) { x.setParent(this); } this.dataType = x; } } }
D
/Users/slashare/zongjie/rust/code/messages-actix/target/rls/debug/deps/bytestring-0e8358024b7d2b9d.rmeta: /Users/slashare/.cargo/registry/src/github.com-1ecc6299db9ec823/bytestring-0.1.5/src/lib.rs /Users/slashare/zongjie/rust/code/messages-actix/target/rls/debug/deps/bytestring-0e8358024b7d2b9d.d: /Users/slashare/.cargo/registry/src/github.com-1ecc6299db9ec823/bytestring-0.1.5/src/lib.rs /Users/slashare/.cargo/registry/src/github.com-1ecc6299db9ec823/bytestring-0.1.5/src/lib.rs:
D
surgical removal of a body part or tissue the act of pulling up or out
D
/Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/DerivedData/allbeat/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/Error.o : /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Timeline.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/SessionDelegate.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ParameterEncoding.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Request.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ResponseSerialization.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Error.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/SessionManager.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Response.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Alamofire.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/MultipartFormData.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ServerTrustPolicy.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/NetworkReachabilityManager.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/TaskDelegate.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Validation.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Notifications.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Result.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Alamofire.h /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/DerivedData/allbeat/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/unextended-module.modulemap /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/SwiftOnoneSupport.swiftmodule /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/DerivedData/allbeat/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/Error~partial.swiftmodule : /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Timeline.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/SessionDelegate.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ParameterEncoding.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Request.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ResponseSerialization.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Error.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/SessionManager.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Response.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Alamofire.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/MultipartFormData.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ServerTrustPolicy.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/NetworkReachabilityManager.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/TaskDelegate.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Validation.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Notifications.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Result.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Alamofire.h /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/DerivedData/allbeat/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/unextended-module.modulemap /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/SwiftOnoneSupport.swiftmodule /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/DerivedData/allbeat/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/Error~partial.swiftdoc : /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Timeline.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/SessionDelegate.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ParameterEncoding.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Request.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ResponseSerialization.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Error.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/SessionManager.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Response.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Alamofire.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/MultipartFormData.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/ServerTrustPolicy.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/NetworkReachabilityManager.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/TaskDelegate.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Validation.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Notifications.swift /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Result.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/Alamofire/Source/Alamofire.h /Users/Ari/Desktop/ArisAdditionsToAllBeat/allbeat-ios/allbeat/DerivedData/allbeat/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/unextended-module.modulemap /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/SwiftOnoneSupport.swiftmodule
D
/Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Map.o : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Reactive.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Errors.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Event.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Map~partial.swiftmodule : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Reactive.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Errors.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Event.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Map~partial.swiftdoc : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Reactive.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Errors.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Event.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
//********************************************************************* // Info EXIT //********************************************************************* INSTANCE DIA_NASZ_103_Johny_EXIT (C_INFO) { npc = NASZ_103_Johny; nr = 999; condition = DIA_NASZ_103_Johny_EXIT_Condition; information = DIA_NASZ_103_Johny_EXIT_Info; permanent = TRUE; description = DIALOG_ENDE; }; FUNC INT DIA_NASZ_103_Johny_EXIT_Condition() { return TRUE; }; FUNC VOID DIA_NASZ_103_Johny_EXIT_Info() { AI_StopProcessInfos (self); }; //********************************************************************* // Info Hello //********************************************************************* INSTANCE DIA_NASZ_103_Johny_siema (C_INFO) { npc = NASZ_103_Johny; nr = 1; condition = DIA_NASZ_103_Johny_siema_Condition; information = DIA_NASZ_103_Johny_siema_Info; permanent = FALSE; important = TRUE; }; FUNC INT DIA_NASZ_103_Johny_siema_Condition() { return TRUE; }; FUNC VOID DIA_NASZ_103_Johny_siema_Info() { AI_Output (self, other,"DIA_NASZ_103_Johny_siema_55_00"); //Hej, nowa twarz! AI_Output (self, other,"DIA_NASZ_103_Johny_siema_55_01"); //Gdybyś był kiedyś zainteresowany kupnem oręża, to wpadnij do mnie. AI_Output (self, other,"DIA_NASZ_103_Johny_siema_55_02"); //Sprzedaję wyroby naszego kowala Jana. Poza standardowym wyposażeniem, dobrze jest walczyć czymś lepszym niż przeciętny miecz. Log_CreateTopic (TOPIC_LowcyTrader,LOG_NOTE); B_LogEntry (TOPIC_LowcyTrader,"Johny sprzedaje wyroby kowala."); }; //********************************************************************* // Info HelloPiosenka //********************************************************************* INSTANCE DIA_NASZ_103_Johny_HelloPiosenka (C_INFO) { npc = NASZ_103_Johny; nr = 1; condition = DIA_NASZ_103_Johny_HelloPiosenka_Condition; information = DIA_NASZ_103_Johny_HelloPiosenka_Info; permanent = FALSE; important = TRUE; }; FUNC INT DIA_NASZ_103_Johny_HelloPiosenka_Condition() { if (npc_knowsinfo (other, DIA_NASZ_125_Silas_StaraPiosenka) && (Npc_IsInState(self, ZS_TALK))) { return TRUE; }; }; FUNC VOID DIA_NASZ_103_Johny_HelloPiosenka_Info() { AI_Output (other, self,"DIA_NASZ_103_Johny_HelloPiosenka_55_00"); //Hej, Johny! AI_Output (self, other,"DIA_NASZ_103_Johny_HelloPiosenka_55_01"); //Czołem. Co cię do mnie sprowadza? AI_Output (other, self,"DIA_NASZ_103_Johny_HelloPiosenka_55_02"); //Właściwie to przychodzę do ciebie w imieniu Silasa. To prawda, że potrafisz grać na lutni? AI_Output (self, other,"DIA_NASZ_103_Johny_HelloPiosenka_55_03"); //Czy potrafię? Owszem, posiadam niezgorsze umiejętności, jednak stanowczo odmawiam. W nocy oczy same mi się zamykają, a przecież wtedy najbardziej potrzeba muzyka. AI_Output (self, other,"DIA_NASZ_103_Johny_HelloPiosenka_55_04"); //Zapytaj Engora. Kiedyś mówił mi, że też potrafi coś tam grać. AI_Output (other, self,"DIA_NASZ_103_Johny_HelloPiosenka_55_05"); //Dzięki za informacje. B_LogEntry (TOPIC_Silas_piosenka, "Johny, co prawda, potrafi grać na lutni, jednak odesłał mnie do innego łowcy orków, Engora."); }; //********************************************************************* // Info Goth //********************************************************************* INSTANCE DIA_NASZ_103_Johny_goth (C_INFO) { npc = NASZ_103_Johny; nr = 2; condition = DIA_NASZ_103_Johny_goth_Condition; information = DIA_NASZ_103_Johny_goth_Info; permanent = FALSE; description = "Ponoć któryś z łowców orków okradł myśliwych."; }; FUNC INT DIA_NASZ_103_Johny_goth_Condition() { if (npc_knowsinfo (other, DIA_NASZ_214_Goth_zadanie)) { return TRUE; }; }; FUNC VOID DIA_NASZ_103_Johny_goth_Info() { AI_Output (other, self,"DIA_NASZ_103_Johny_goth_15_00"); //Ponoć któryś z łowców orków okradł myśliwych. AI_Output (self, other,"DIA_NASZ_103_Johny_goth_55_01"); //Doprawdy? To by wyjaśniało, skąd mam tą dziwną paczkę z mieczami... AI_Output (self, other,"DIA_NASZ_103_Johny_goth_55_02"); //Ktoś podrzucił mi ją kilka dni temu. B_LogEntry (TOPIC_Goth_kradziez, "Handlarz Johny jest w posiadaniu paczki mieczy jednoręcznych."); }; //********************************************************************* // Info Paczka //********************************************************************* var int johny_paczka_gold; INSTANCE DIA_NASZ_103_Johny_paczka (C_INFO) { npc = NASZ_103_Johny; nr = 4; condition = DIA_NASZ_103_Johny_paczka_Condition; information = DIA_NASZ_103_Johny_paczka_Info; permanent = FALSE; description = "Dasz mi tę paczkę?"; }; FUNC INT DIA_NASZ_103_Johny_paczka_Condition() { if (npc_knowsinfo (other, DIA_NASZ_103_Johny_goth)) { return TRUE; }; }; FUNC VOID DIA_NASZ_103_Johny_paczka_Info() { AI_Output (other, self,"DIA_NASZ_103_Johny_paczka_15_00"); //Dasz mi tę paczkę? AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_55_01"); //Mówi się: Znalezione, nie kradzione. Nie myślisz chyba, że oddam ci ją za darmo. AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_15_02"); //W środku znajduje się kilka wartościowych mieczy i mógłbym nieźle zarobić, gdyby któryś z łowców zechciał wymienić broń. AI_Output (other, self,"DIA_NASZ_103_Johny_paczka_55_03"); //W takim razie, ile za nią chcesz? AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_15_04"); //Osiemdziesiąt sztuk złota. Info_ClearChoices (DIA_NASZ_103_Johny_paczka); Info_AddChoice (DIA_NASZ_103_Johny_paczka, "Myślę, że nie chciałbyś, by z twoich zapasów coś zniknęło.", DIA_NASZ_103_Johny_paczka_znika); Info_AddChoice (DIA_NASZ_103_Johny_paczka, "Zgoda, to uczciwa cena.", DIA_NASZ_103_Johny_paczka_80); }; FUNC VOID DIA_NASZ_103_Johny_paczka_znika() { AI_Output (other,self ,"DIA_NASZ_103_Johny_paczka_znika_15_00"); //Myślę, że nie chciałbyś, by z twoich zapasów coś zniknęło. AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_znika_55_01"); //Czy ty mi grozisz? Wiesz, że Keroloth nie cierpi złodziejów. AI_Output (other, self,"DIA_NASZ_103_Johny_paczka_znika_55_02"); //W takim razie zastanów się: Co myśli o zwracaniu ukradzionych rzeczy? Chyba nie chcesz, żeby dowiedział się, że świadomie zatrzymujesz rzeczy nienależące do ciebie? AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_znika_55_03"); //Raczej nie... Niech ci będzie, odsprzedam paczkę za trzydzieści sztuk złota. Ale mógłbyś postawić mi chociaż za to dobre piwo! Info_ClearChoices (DIA_NASZ_103_Johny_paczka); if(npc_hasitems(other,ItFo_Beer)>=1) { Info_AddChoice (DIA_NASZ_103_Johny_paczka, "Umowa stoi. Zimne piwo dla ciebie!", DIA_NASZ_103_Johny_paczka_30); }; Info_AddChoice (DIA_NASZ_103_Johny_paczka, "Chyba się nie zrozumieliśmy...", DIA_NASZ_103_Johny_paczka_50); }; FUNC VOID DIA_NASZ_103_Johny_paczka_80() { AI_Output (other,self ,"DIA_NASZ_103_Johny_paczka_80_15_00"); //Zgoda, to uczciwa cena. johny_paczka_gold = 80; Info_ClearChoices (DIA_NASZ_103_Johny_paczka); }; FUNC VOID DIA_NASZ_103_Johny_paczka_30() { AI_Output (other,self ,"DIA_NASZ_103_Johny_paczka_30_15_00"); //Umowa stoi. Zimne piwo dla ciebie! B_GiveInvItems (other, self, ItFo_Beer, 1); AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_30_55_01"); //Za resztę złota kupię sobie jeszcze kilka wieczorem. johny_paczka_gold = 30; Info_ClearChoices (DIA_NASZ_103_Johny_paczka); }; FUNC VOID DIA_NASZ_103_Johny_paczka_50() { AI_Output (other,self ,"DIA_NASZ_103_Johny_paczka_50_15_00"); //Chyba się nie zrozumieliśmy... AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_50_55_01"); //Nie zrozumieliśmy? Jeśli nie chcesz dojść ze mną do zgody, to twój problem. Keroloth już nie jest takim honorowym rycerzem, jak niegdyś. AI_Output (self, other,"DIA_NASZ_103_Johny_paczka_50_55_02"); //Możesz mu opowiedzieć o tej sytuacji, ale zapewniam cię, że stanie po mojej stronie. Pięćdziesiąt sztuk złota to moja ostateczna oferta. johny_paczka_gold = 50; Info_ClearChoices (DIA_NASZ_103_Johny_paczka); }; //********************************************************************* // Info KupPaczke //********************************************************************* var int Johny_KupPaczke_Dane; INSTANCE DIA_NASZ_103_Johny_KupPaczke (C_INFO) { npc = NASZ_103_Johny; nr = 4; condition = DIA_NASZ_103_Johny_KupPaczke_Condition; information = DIA_NASZ_103_Johny_KupPaczke_Info; permanent = TRUE; description = "Sprzedaj mi paczkę."; }; FUNC INT DIA_NASZ_103_Johny_KupPaczke_Condition() { if (npc_knowsinfo (other, DIA_NASZ_103_Johny_paczka)) && (npc_hasitems (other,ItMi_Gold) >= johny_paczka_gold) && (Johny_KupPaczke_Dane == FALSE) { return TRUE; }; }; FUNC VOID DIA_NASZ_103_Johny_KupPaczke_Info() { AI_Output (other, self,"DIA_NASZ_103_Johny_KupPaczke_15_00"); //Sprzedaj mi paczkę. B_GiveInvItems (other, self, ItMi_Gold, johny_paczka_gold); AI_Output (self, other,"DIA_NASZ_103_Johny_KupPaczke_55_01"); //Proszę bardzo. Oddaj ją właścicielowi. Johny_KupPaczke_Dane = TRUE; Createinvitems (self, ItNa_PaczkaGoth, 1); B_GiveInvItems (self, other, ItNa_PaczkaGoth, 1); B_LogEntry (TOPIC_Goth_kradziez, "Kupiłem paczkę mieczy. Jeden kłopot już z głowy."); }; //********************************************************************* // Info DostaneMiecz //********************************************************************* INSTANCE DIA_NASZ_103_Johny_DostaneMiecz (C_INFO) { npc = NASZ_103_Johny; nr = 4; condition = DIA_NASZ_103_Johny_DostaneMiecz_Condition; information = DIA_NASZ_103_Johny_DostaneMiecz_Info; permanent = FALSE; description = "Keroloth powiedział, że dostanę miecz."; }; FUNC INT DIA_NASZ_103_Johny_DostaneMiecz_Condition() { if (hero.guild == GIL_DJG) { return TRUE; }; }; FUNC VOID DIA_NASZ_103_Johny_DostaneMiecz_Info() { AI_Output (other, self,"DIA_NASZ_103_Johny_DostaneMiecz_15_00"); //Keroloth powiedział, że dostanę miecz. AI_Output (self, other,"DIA_NASZ_103_Johny_DostaneMiecz_55_01"); //Tak. Ten jest dla ciebie. Tylko nie stęp go zbyt szybko! Createinvitems(self,ItNa_Djg_Weapon_L,1); B_GiveInvItems (self, other, ItNa_Djg_Weapon_L, 1); }; //********************************************************************* // Info Towary //********************************************************************* INSTANCE DIA_NASZ_103_Johny_towary (C_INFO) { npc = NASZ_103_Johny; nr = 5; condition = DIA_NASZ_103_Johny_towary_Condition; information = DIA_NASZ_103_Johny_towary_Info; permanent = TRUE; trade = TRUE; description = "Pokaż mi swoje towary."; }; FUNC INT DIA_NASZ_103_Johny_towary_Condition() { return TRUE; }; FUNC VOID DIA_NASZ_103_Johny_towary_Info() { AI_Output (other, self,"DIA_NASZ_103_Johny_towary_15_00"); //Pokaż mi swoje towary. AI_Output (self, other,"DIA_NASZ_103_Johny_towary_55_01"); //Do usług. B_GiveTradeInv (self); }; INSTANCE DIA_NASZ_103_Johny_KurgKan (C_INFO) { npc = NASZ_103_Johny; nr = 999; condition = DIA_NASZ_103_Johny_KurgKan_Condition; information = DIA_NASZ_103_Johny_KurgKan_Info; important = true; }; FUNC INT DIA_NASZ_103_Johny_KurgKan_Condition() { if(KurgKanFollowPC) { return TRUE; }; }; FUNC VOID DIA_NASZ_103_Johny_KurgKan_Info() { AI_Output (self, other,"DIA_NASZ_103_Johny_KurgKan_15_00"); //Narzekałem ostatnio na nudę, ale to jest chyba przesada. AI_StopProcessInfos (self); }; // ************************************************************ // PICK POCKET // ************************************************************ INSTANCE DIA_NASZ_103_Johny_PICKPOCKET (C_INFO) { npc = NASZ_103_Johny; nr = 900; condition = DIA_NASZ_103_Johny_PICKPOCKET_Condition; information = DIA_NASZ_103_Johny_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_20; // 20|40|60|80|100|120 }; var int JohnyThiefFail; FUNC INT DIA_NASZ_103_Johny_PICKPOCKET_Condition() { // da sie sprobowac okrasc, tylko jesli nie kupiles amuletu i aktywowales misje z amuletem // (bo dopiero wtedy johny tworzy sobie w ekwipunku amulet) if (Npc_HasItems(self,ItNa_HuntAmulet) >= 1) && (JohnyThiefFail == FALSE) { C_Beklauen (16); }; }; FUNC VOID DIA_NASZ_103_Johny_PICKPOCKET_Info() { Info_ClearChoices (DIA_NASZ_103_Johny_PICKPOCKET); Info_AddChoice (DIA_NASZ_103_Johny_PICKPOCKET, DIALOG_BACK ,DIA_NASZ_103_Johny_PICKPOCKET_BACK); Info_AddChoice (DIA_NASZ_103_Johny_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_NASZ_103_Johny_PICKPOCKET_DoIt); }; func void DIA_NASZ_103_Johny_PICKPOCKET_DoIt() { B_BeklauenThings (ItNa_HuntAmulet, 1); if (hero.attribute[ATR_DEXTERITY] < 16) { B_LogEntry (TOPIC_Hunt_amulet, "Johny nakrył mnie na kradzieży. Chyba będę musiał uczciwie kupić amulet."); JohnyThiefFail = TRUE; } else { HuntAmuletMIS = 2; // ukradzione Npc_RemoveInvItems(self,ItNa_HuntAmulet,1); // zeby juz nie dalo sie go kupic }; Info_ClearChoices (DIA_NASZ_103_Johny_PICKPOCKET); }; func void DIA_NASZ_103_Johny_PICKPOCKET_BACK() { Info_ClearChoices (DIA_NASZ_103_Johny_PICKPOCKET); };
D
import std.algorithm, std.conv, std.ctype, std.regex, std.range, std.stdio, std.string; struct PersonaData { uint totalWordsSpoken; uint [string] wordCount; } void addParagraph(string line, ref PersonaData[string] info) { // Figure out persona and sentence line = strip(line); auto sentence = std.algorithm.find(line,". "); if (sentence.empty) { return; } auto persona = line[0 .. $- sentence.length]; sentence = tolower(strip(sentence[2 ..$])); // Get the words spoken auto words = std.regex.split(sentence, regex("[ \t,.;:?]+")); // Insert or update information if (!(persona in info)) { // First time this persona speaketh info[persona] = PersonaData(); } info[persona].totalWordsSpoken += words.length; foreach (word; words) ++info[persona].wordCount[word]; } void printResults(PersonaData[string] info) { foreach (persona, data; info) { writefln(" %20s %6u %6u", persona, data.totalWordsSpoken, data.wordCount.length); } } void main() { // Accumulates information about dramatis personae PersonaData[string] info; // Fill info string currentParagraph; foreach (line; stdin.byLine()) { if (line.startsWith(" ") && line.length > 4 && isalpha(line[4])) { // Persona is continuing a Line currentParagraph ~= line[3..$]; } else if (line.startsWith(" ") && line.length > 2 && isalpha(line[2])) { // Persona just started speaking addParagraph(currentParagraph, info); currentParagraph = to!string(line[2..$]); } } // Done, now print collected information printResults(info); }
D
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/KeyedCache/MemoryKeyedCache.swift.o : /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Database.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/LogSupporting.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Databases.swift /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/work/Projects/Hello/.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/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/MemoryKeyedCache~partial.swiftmodule : /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Database.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/LogSupporting.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Databases.swift /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/work/Projects/Hello/.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/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/MemoryKeyedCache~partial.swiftdoc : /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DatabaseKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/DictionaryKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/MemoryKeyedCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolCache.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseStringFindable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnectable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseQueryable.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/URL+DatabaseName.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Database.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/ConfiguredDatabase.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseConfig.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPoolConfig.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/KeyedCache/KeyedCacheSupporting.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/LogSupporting.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLog.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/Container+ConnectionPool.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/ConnectionPool/DatabaseConnectionPool.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+CachedConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/DatabaseConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Connection/Container+NewConnection.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Service/DatabaseKitProvider.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogger.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/DatabaseIdentifier.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/DatabaseLogHandler.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Log/PrintLogHandler.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/DatabaseKitError.swift /Users/work/Projects/Hello/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Database/Databases.swift /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/work/Projects/Hello/.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/work/Projects/Hello/.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/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/work/Projects/Hello/.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/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/work/Projects/Hello/.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
/Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/Objects-normal/x86_64/RxSearchBarDelegateProxy.o : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/RxCocoa.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Deprecated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/Queue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/Bag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/Logging.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/RecursiveLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/Platform.Darwin.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/Binder.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/KeyPathBinder.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/RxTarget.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/TextInput.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITextField+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSTextField+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISwitch+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UILabel+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISegmentedControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIPageControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIRefreshControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UINavigationItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIBarButtonItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBarItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIApplication+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIAlertAction+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIButton+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSButton+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBar+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISearchBar+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISlider+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSSlider+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIDatePicker+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISearchController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UINavigationController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBarController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIViewController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIStepper+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIGestureRecognizer+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/NSLayoutConstraint+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIImageView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSImageView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITableView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIScrollView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UICollectionView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIPickerView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIProgressView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITextView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSTextView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/Platform.Linux.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.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/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxCocoa/RxCocoa-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxRelay/RxRelay-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/RxCocoa.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/unextended-module.modulemap /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/module.modulemap /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxRelay.build/module.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap /Users/MohamedNawar/Desktop/sharzein/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.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/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/Objects-normal/x86_64/RxSearchBarDelegateProxy~partial.swiftmodule : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/RxCocoa.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Deprecated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/Queue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/Bag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/Logging.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/RecursiveLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/Platform.Darwin.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/Binder.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/KeyPathBinder.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/RxTarget.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/TextInput.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITextField+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSTextField+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISwitch+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UILabel+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISegmentedControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIPageControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIRefreshControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UINavigationItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIBarButtonItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBarItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIApplication+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIAlertAction+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIButton+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSButton+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBar+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISearchBar+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISlider+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSSlider+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIDatePicker+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISearchController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UINavigationController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBarController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIViewController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIStepper+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIGestureRecognizer+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/NSLayoutConstraint+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIImageView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSImageView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITableView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIScrollView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UICollectionView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIPickerView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIProgressView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITextView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSTextView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/Platform.Linux.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.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/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxCocoa/RxCocoa-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxRelay/RxRelay-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/RxCocoa.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/unextended-module.modulemap /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/module.modulemap /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxRelay.build/module.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap /Users/MohamedNawar/Desktop/sharzein/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.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/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/Objects-normal/x86_64/RxSearchBarDelegateProxy~partial.swiftdoc : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/RxCocoa.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Deprecated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/Observable+Bind.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/ObservableConvertibleType+SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SchedulerType+SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/InfiniteSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxTableViewReactiveArrayDataSource.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxCollectionViewReactiveArrayDataSource.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+KVORepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx+RawRepresentable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/SectionedViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Protocols/RxPickerViewDataSourceType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/DelegateProxyType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/Queue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/PriorityQueue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DataStructures/Bag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/Logging.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/RecursiveLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/ObservableConvertibleType+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/ControlEvent+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/PublishRelay+Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/Platform.Darwin.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Signal/Signal+Subscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver+Subscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/Binder.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/KeyPathBinder.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/DataSources/RxPickerViewAdapter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ObservableConvertibleType+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlEvent+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/BehaviorRelay+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/ControlProperty+Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/Driver/Driver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+CoreGraphics.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/DispatchQueue+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/RxCocoaObjCRuntimeError+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Events/ItemEvents.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/ControlTarget.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/RxTarget.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/KVORepresentable+Swift.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/ControlEvent.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/TextInput.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITextField+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSTextField+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/NSTextStorage+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISwitch+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UILabel+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISegmentedControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIPageControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIRefreshControl+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UINavigationItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIBarButtonItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBarItem+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/URLSession+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIApplication+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIAlertAction+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIButton+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSButton+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBar+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISearchBar+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISlider+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSSlider+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIDatePicker+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UISearchController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UINavigationController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITabBarController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIViewController+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIStepper+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NotificationCenter+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIGestureRecognizer+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Foundation/NSObject+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/NSLayoutConstraint+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIImageView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSImageView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITableView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIScrollView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UICollectionView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIPickerView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UIProgressView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/UITextView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/macOS/NSTextView+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/Platform/Platform.Linux.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/SharedSequence/SharedSequence+Operators+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Traits/ControlProperty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Common/DelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextStorageDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchBarDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxSearchControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxNavigationControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTabBarControllerDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxScrollViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxPickerViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTextViewDelegateProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxTableViewDataSourcePrefetchingProxy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/iOS/Proxies/RxCollectionViewDataSourcePrefetchingProxy.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/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RX.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxCocoa/RxCocoa-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxRelay/RxRelay-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/RxCocoa.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXObjCRuntime.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/RxCocoaRuntime.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXKVOObserver.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxCocoa/RxCocoa/Runtime/include/_RXDelegateProxy.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/unextended-module.modulemap /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/module.modulemap /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxRelay.build/module.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap /Users/MohamedNawar/Desktop/sharzein/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.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
instance BAU_950_Lobart(Npc_Default) { name[0] = "Lobart"; guild = GIL_OUT; id = 950; voice = 5; flags = 0; npcType = npctype_main; B_SetAttributesToChapter(self,2); fight_tactic = FAI_HUMAN_COWARD; EquipItem(self,ItMw_1h_Bau_Axe); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_N_NormalBart_Senyan,BodyTex_N,ITAR_Bau_M); Mdl_SetModelFatness(self,1); Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,20); daily_routine = Rtn_Start_950; }; func void Rtn_Start_950() { TA_Stand_Guarding(7,30,12,0,"NW_FARM1_LOBART"); TA_Sit_Chair(12,0,13,0,"NW_FARM1_ENTRANCE_01"); TA_Saw(13,0,14,0,"NW_FARM1_OUT_ADD_09"); ta_woodcutting(14,0,17,0,"NW_FARM1_MWC_02"); TA_Stand_Guarding(17,0,19,0,"NW_FARM1_OUT_04"); TA_Sit_Chair(19,0,23,0,"NW_FARM1_ENTRANCE_01"); TA_Sleep(23,0,7,30,"NW_FARM1_INHOUSE_BED_01"); }; func void Rtn_ObesessionRitual_950() { TA_Stand_Guarding(7,30,23,0,"NW_FARM1_OUT_05"); TA_Stand_Guarding(23,0,7,30,"NW_FARM1_OUT_05"); };
D
module reggae.options; import reggae.types; import reggae.path: buildPath; import std.file: thisExePath; import std.path: absolutePath; import std.file: exists; enum version_ = "0.5.24+"; Options defaultOptions; enum BuildLanguage { D, Python, Ruby, JavaScript, Lua, } enum DubArchitecture { x86, x86_64, x86_mscoff, } version(Windows) { enum defaultCC = "cl.exe"; enum defaultCXX = "cl.exe"; } else { enum defaultCC = "gcc"; enum defaultCXX = "g++"; } struct Options { Backend backend; string projectPath; string dflags; string ranFromPath; string cCompiler; string cppCompiler; string dCompiler; bool help; bool perModule; bool allAtOnce; bool isDubProject; bool oldNinja; bool noCompilationDB; bool cacheBuildInfo; string[] args; string workingDir; bool version_; bool export_; bool verbose; string[] dependencies; string dubObjsDir; bool dubDepObjsInsteadOfStaticLib; string dubBuildType = "debug"; string dubArchOverride; string dubConfig; string[string] userVars; //must always be the last member variable Options dup() @safe pure const nothrow { return Options(backend, projectPath, dflags, ranFromPath, cCompiler, cppCompiler, dCompiler, help, perModule, isDubProject, oldNinja, noCompilationDB, cacheBuildInfo); } //finished setup void finalize(string[] args) @safe { import std.process; import std.file: thisExePath; this.args = args; ranFromPath = thisExePath; if(!cCompiler) cCompiler = environment.get("CC", defaultCC); if(!cppCompiler) cppCompiler = environment.get("CXX", defaultCXX); if(!dCompiler) dCompiler = environment.get("DC", "dmd"); isDubProject = _dubProjectFile != ""; // if there's a dub package file, add it to the list of dependencies so the project // is rebuilt if it changes if(isDubProject) { dependencies ~= _dubProjectFile; dependencies ~= buildPath(projectPath, "dub.selections.json"); } if(isDubProject && backend == Backend.tup) { throw new Exception("dub integration not supported with the tup backend"); } } package string _dubProjectFile() @safe nothrow { foreach(fileName; ["dub.sdl", "dub.json", "package.json"]) { const name = buildPath(projectPath, fileName); if(name.exists) return name; } return ""; } string reggaeFilePath() @safe const { import std.algorithm, std.array, std.exception, std.conv; auto langFiles = [dlangFile, pythonFile, rubyFile, jsFile, luaFile]; auto foundFiles = langFiles.filter!exists.array; enforce(foundFiles.length < 2, text("Reggae builds may only use one language. Found: ", foundFiles.map!(a => reggaeFileLanguage(a).to!string).join(", "))); if(!foundFiles.empty) return foundFiles.front; return buildPath(projectPath, "reggaefile.d").absolutePath; } string dlangFile() @safe const pure nothrow { return buildPath(projectPath, "reggaefile.d"); } string pythonFile() @safe const pure nothrow { return buildPath(projectPath, "reggaefile.py"); } string rubyFile() @safe const pure nothrow { return buildPath(projectPath, "reggaefile.rb"); } string jsFile() @safe const pure nothrow { return buildPath(projectPath, "reggaefile.js"); } string luaFile() @safe const pure nothrow { return buildPath(projectPath, "reggaefile.lua"); } string toString() @safe const pure { import std.conv: text; import std.traits: isSomeString, isAssociativeArray, Unqual; string repr = "Options(Backend."; foreach(member; this.tupleof) { static if(isSomeString!(typeof(member))) repr ~= "`" ~ text(member) ~ "`, "; else static if(isAssociativeArray!(typeof(member))) {} else static if(is(Unqual!(typeof(member)) == DubArchitecture)) repr ~= `DubArchitecture.` ~ text(member) ~ ", "; else repr ~= text(member, ", "); } repr ~= ")"; return repr; } const (string)[] rerunArgs() @safe pure const { return args; } bool isScriptBuild() @safe const { import reggae.rules.common: getLanguage, Language; return getLanguage(reggaeFilePath) != Language.D; } BuildLanguage reggaeFileLanguage(in string fileName) @safe const { import std.exception; import std.path: extension; with(BuildLanguage) { immutable extToLang = [".d": D, ".py": Python, ".rb": Ruby, ".js": JavaScript, ".lua": Lua]; enforce(extension(fileName) in extToLang, "Unsupported build description language in " ~ fileName); return extToLang[extension(fileName)]; } } BuildLanguage reggaeFileLanguage() @safe const { return reggaeFileLanguage(reggaeFilePath); } string[] reggaeFileDependencies() @safe const { return [ranFromPath, reggaeFilePath] ~ getReggaeFileDependenciesDlang ~ dependencies; } bool isJsonBuild() @safe const { return reggaeFileLanguage != BuildLanguage.D; } bool earlyExit() @safe pure const nothrow { return help || version_; } string[] compilerVariables() @safe pure nothrow const { return ["CC = " ~ cCompiler, "CXX = " ~ cppCompiler, "DC = " ~ dCompiler]; } string eraseProjectPath(in string str) @safe pure nothrow const { import std.string; import std.path: dirSeparator; return str.replace(projectPath ~ dirSeparator, ""); } } Options getOptions(string[] args) { return getOptions(defaultOptions, args); } //getopt is @system Options getOptions(Options defaultOptions, string[] args) @trusted { import std.getopt; import std.algorithm; import std.array; import std.path: buildNormalizedPath; import std.exception: enforce; import std.conv: ConvException; Options options = defaultOptions; //escape spaces so that if we try using these arguments again the shell won't complain auto origArgs = args.map!(a => a.canFind(" ") ? `"` ~ a ~ `"` : a).array; try { auto helpInfo = getopt( args, "backend|b", "Backend to use (ninja|make|binary|tup). Mandatory.", &options.backend, "dflags", "D compiler flags.", &options.dflags, "d", "User-defined variables (e.g. -d myvar=foo).", &options.userVars, "dc", "D compiler to use (default dmd).", &options.dCompiler, "cc", "C compiler to use (default " ~ defaultCC ~ ").", &options.cCompiler, "cxx", "C++ compiler to use (default " ~ defaultCXX ~ ").", &options.cppCompiler, "per-module", "Compile D files per module (default is per package)", &options.perModule, "all-at-once", "Compile D files all at once (default is per package)", &options.allAtOnce, "old-ninja", "Generate a Ninja build compatible with older versions of Ninja", &options.oldNinja, "no-comp-db", "Don't generate a JSON compilation database", &options.noCompilationDB, "cache-build-info", "Cache the build information for the binary backend", &options.cacheBuildInfo, "C", "Change directory to run in (similar to make -C and ninja -C)", &options.workingDir, "version", "Prints version information", &options.version_, "export", "Export build system - removes dependencies on reggae itself", &options.export_, "verbose", "Verbose output", &options.verbose, "dub-objs-dir", "Directory to place object files for dub dependencies", &options.dubObjsDir, "dub-arch", "Architecture (x86, x86_64, x86_mscoff)", &options.dubArchOverride, "dub-deps-objs", "Use object files instead of static library for dub dependencies", &options.dubDepObjsInsteadOfStaticLib, "dub-build-type", "Dub build type (debug, release, ...)", &options.dubBuildType, "dub-config", "Only use this dub configuration", &options.dubConfig, ); if(helpInfo.helpWanted) { defaultGetoptPrinter("Usage: reggae -b <ninja|make|binary|tup> </path/to/project>", helpInfo.options); options.help = true; } } catch(ConvException ex) { import std.algorithm: canFind; if(ex.msg.canFind("Backend")) throw new Exception("Unsupported backend, -b must be one of: make|ninja|tup|binary"); else if(ex.msg.canFind("DubArchitecture")) throw new Exception("Unsupported architecture, --dub-arch must be one of: x86|x86_64|x86_mscoff"); else assert(0); } enforce(!options.perModule || !options.allAtOnce, "Cannot specify both --per-module and --all-at-once"); enforce(options.backend != Backend.none || options.export_, "A backend must be specified with -b/--backend"); if(options.version_) { import std.stdio; writeln("reggae v", version_); } immutable argsPath = args.length > 1 ? args[1] : "."; options.projectPath = argsPath.absolutePath.buildNormalizedPath; options.finalize(origArgs); if(options.workingDir == "") { import std.file; options.workingDir = getcwd.absolutePath; } else { options.workingDir = options.workingDir.absolutePath; } return options; } immutable hiddenDir = ".reggae"; //returns the list of files that the `reggaefile` depends on //this will usually be empty, but won't be if the reggaefile imports other D files string[] getReggaeFileDependenciesDlang() @trusted { import std.string: chomp; import std.stdio: File; import std.algorithm: splitter; import std.array: array; immutable fileName = buildPath(hiddenDir, "reggaefile.dep"); if(!fileName.exists) return []; auto file = File(fileName); file.readln; return file.readln.chomp.splitter(" ").array; } Options withProjectPath(in Options options, in string projectPath) @safe pure nothrow { auto modOptions = options.dup; modOptions.projectPath = projectPath; return modOptions; } string banner() @safe pure nothrow { auto ret = "# Automatically generated by reggae version " ~ version_ ~ "\n"; ret ~= "# Do not edit by hand\n"; return ret; }
D
module bindbc.kw.scrollbox; import bindbc.kw.gui; import bindbc.kw.widget; import bindbc.kw.rect; version(BindKiwi_Static){ extern (C) @nogc nothrow { KW_Widget * KW_CreateScrollbox(KW_GUI * gui, KW_Widget * parent, const KW_Rect * geometry); void KW_ScrollboxVerticalScroll(KW_Widget * scrollbox, int amount); void KW_ScrollboxHorizontalScroll(KW_Widget * scrollbox, int amount); } } else { extern (C) @nogc nothrow { alias pKW_CreateScrollbox = KW_Widget* function(KW_GUI * gui, KW_Widget * parent, const KW_Rect * geometry); alias pKW_ScrollboxVerticalScroll = void function(KW_Widget * scrollbox, int amount); alias pKW_ScrollboxHorizontalScroll = void function(KW_Widget * scrollbox, int amount); } __gshared { pKW_CreateScrollbox KW_CreateScrollbox; pKW_ScrollboxVerticalScroll KW_ScrollboxVerticalScroll; pKW_ScrollboxHorizontalScroll KW_ScrollboxHorizontalScroll; } }
D
# FIXED Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/examples/rtos/CC2640R2_LAUNCHXL/blestack/project_zero/src/extra/uartlog/UartLog.c Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/examples/rtos/CC2640R2_LAUNCHXL/blestack/project_zero/src/extra/uartlog/UartLog.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/drivers/UART.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stddef.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/Hwi.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/std.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdarg.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/std.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/M3.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/std.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/xdc.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types__prologue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/package.defs.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types__epilogue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/Hwi__prologue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/package/package.defs.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error__prologue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IHeap.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Memory.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IHeap.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Memory_HeapProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IHeap.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Main_Module_GateProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error__epilogue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/package/package.defs.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/Hwi__epilogue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/package/package.defs.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags__prologue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags__epilogue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Log.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Log__prologue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Text.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Log__epilogue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert__prologue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert__epilogue.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/BIOS.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/BIOS__prologue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/package/package.defs.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/BIOS__epilogue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/System.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ISystemSupport.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_SupportProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ISystemSupport.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_Module_GateProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_SupportProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_Module_GateProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Timestamp.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampClient.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampProvider.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampClient.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampProvider.h Startup/UartLog.obj: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/aon_rtc.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/hw_types.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/../inc/hw_chip_def.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_rtc.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/debug.h Startup/UartLog.obj: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/string.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h Startup/UartLog.obj: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/examples/rtos/CC2640R2_LAUNCHXL/blestack/project_zero/src/extra/uartlog/UartLog.c: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/examples/rtos/CC2640R2_LAUNCHXL/blestack/project_zero/src/extra/uartlog/UartLog.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/drivers/UART.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stddef.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/cdefs.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_stdint.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/Hwi.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/std.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdarg.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/std.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/arm/elf/M3.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/targets/std.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/xdc.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types__prologue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/package.defs.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types__epilogue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/Hwi__prologue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/package/package.defs.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error__prologue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Memory.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Memory_HeapProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IHeap.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Main_Module_GateProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/package/package.defs.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/Hwi__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/package/package.defs.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags__prologue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags__epilogue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Log.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Log__prologue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Text.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Log__epilogue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert__prologue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Main.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Diags.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert__epilogue.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/BIOS.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/BIOS__prologue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/package/package.defs.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Error.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/package/BIOS_RtsGateProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/BIOS__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/interfaces/IHwi.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/kernel/tirtos/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/System.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Assert.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ISystemSupport.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_SupportProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ISystemSupport.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_Module_GateProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IInstance.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IGateProvider.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_SupportProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/System_Module_GateProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Timestamp.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampClient.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/IModule.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampProvider.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampClient.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/Types.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/ITimestampProvider.h: C:/ti/xdctools_3_51_01_18_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/aon_rtc.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/hw_types.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/../inc/hw_chip_def.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_rtc.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/debug.h: C:/ti/simplelink_cc2640r2_sdk_3_10_00_15/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/string.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h: D:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h:
D
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Entity/Dirty.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Dirty~partial.swiftmodule : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Dirty~partial.swiftdoc : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Service/FluentProvider.swift.o : /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/ID.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Model+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/MigrateCommand.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/RevertCommand.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/SoftDeletable.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationConfig.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Join/JoinSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Query/QuerySupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationLog.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Model.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/AnyModel.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Children.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/Migration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/AnyMigration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/FluentProvider.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaBuilder.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaUpdater.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/FluentError.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaCreator.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Siblings.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/Migrations.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/AnyMigrations.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Parent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/ModelEvent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Pivot.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Cache/CacheEntry.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Query/FluentProperty.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.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/nice/HelloWord/.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.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 /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/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/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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Fluent.build/FluentProvider~partial.swiftmodule : /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/ID.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Model+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/MigrateCommand.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/RevertCommand.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/SoftDeletable.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationConfig.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Join/JoinSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Query/QuerySupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationLog.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Model.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/AnyModel.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Children.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/Migration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/AnyMigration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/FluentProvider.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaBuilder.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaUpdater.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/FluentError.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaCreator.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Siblings.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/Migrations.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/AnyMigrations.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Parent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/ModelEvent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Pivot.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Cache/CacheEntry.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Query/FluentProperty.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.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/nice/HelloWord/.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.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 /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/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/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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Fluent.build/FluentProvider~partial.swiftdoc : /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/ID.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Model+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/MigrateCommand.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/RevertCommand.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/SoftDeletable.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationConfig.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Join/JoinSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Query/QuerySupporting.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/MigrationLog.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Model.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/AnyModel.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Children.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/Migration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/AnyMigration.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/FluentProvider.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaBuilder.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaUpdater.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/FluentError.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/SchemaCreator.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Siblings.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/Migrations.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Migration/AnyMigrations.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Relations/Parent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/ModelEvent.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Model/Pivot.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Cache/CacheEntry.swift /Users/nice/HelloWord/.build/checkouts/fluent.git-6829944210039798771/Sources/Fluent/Query/FluentProperty.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.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/nice/HelloWord/.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.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 /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/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/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
module gamelib.collisionmanager; import gamelib.all; class CollisionManager : PoolManager!(Collision) { this(uint max){ super(max, {return new Collision();}); } //ココからGenerate関数 Collision collision(Vector pos, double dir, int offence, DamageType type, BadState badState, Mover mover, bool isKnockBack, bool isMyBullet) in{ _checkLen(); }out{ _checkLen(); }body{ Collision res = pushListFromPool(); res.init(pos, dir, offence, type, badState, mover, isKnockBack, isMyBullet); return res; } void test(Vector pos, double dir, double velocity, double acceleration){ } }
D
/* TEST_OUTPUT: --- fail_compilation/fail9414c.d(47): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(34): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(35): Error: variable fail9414c.C.foo.bar.y cannot modify parameter `y` in contract fail_compilation/fail9414c.d(40): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(41): Error: variable fail9414c.C.foo.bar.y cannot modify parameter `y` in contract fail_compilation/fail9414c.d(42): Error: variable fail9414c.C.foo.bar.s cannot modify result `s` in contract fail_compilation/fail9414c.d(52): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(75): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(76): Error: variable fail9414c.C.foo.r cannot modify result `r` in contract fail_compilation/fail9414c.d(60): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(61): Error: variable fail9414c.C.foo.r cannot modify result `r` in contract fail_compilation/fail9414c.d(62): Error: variable fail9414c.C.foo.baz.y cannot modify parameter `y` in contract fail_compilation/fail9414c.d(67): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(68): Error: variable fail9414c.C.foo.r cannot modify result `r` in contract fail_compilation/fail9414c.d(69): Error: variable fail9414c.C.foo.baz.y cannot modify parameter `y` in contract fail_compilation/fail9414c.d(70): Error: variable fail9414c.C.foo.baz.s cannot modify result `s` in contract fail_compilation/fail9414c.d(81): Error: variable fail9414c.C.foo.x cannot modify parameter `x` in contract fail_compilation/fail9414c.d(82): Error: variable fail9414c.C.foo.r cannot modify result `r` in contract --- */ class C { private int foo(int x) in { int a; int bar(int y) in { x = 10; // err y = 10; // err a = 1; // OK } out(s) { x = 10; // err y = 10; // err s = 10; // err a = 1; // OK } body { x = 10; // err y = 1; // OK a = 1; // OK return 2; } x = 10; // err } out(r) { int a; int baz(int y) in { x = 10; // err r = 10; // err y = 10; // err a = 1; // OK } out(s) { x = 10; // err r = 10; // err y = 10; // err s = 10; // err a = 1; // OK } body { x = 10; // err r = 10; // err y = 1; // OK a = 1; // OK return 2; } x = 10; // err r = 10; // err } body { return 1; } }
D
/**************************************************************************** ** ** Copyright (C) 2013 John Layt <jlayt@kde.org> ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 or version 3 as published by the Free ** Software Foundation and appearing in the file LICENSE.LGPLv21 and ** LICENSE.LGPLv3 included in the packaging of this file. Please review the ** following information to ensure the GNU Lesser General Public License ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ public import QtCore.qsharedpointer; public import QtCore.qlocale; public import QtCore.qdatetime; extern(C++) class QTimeZonePrivate; extern(C++) class export QTimeZone { public: enum TimeType { StandardTime = 0, DaylightTime = 1, GenericTime = 2 } enum NameType { DefaultName = 0, LongName = 1, ShortName = 2, OffsetName = 3 } struct OffsetData { QString abbreviation; QDateTime atUtc; int offsetFromUtc; int standardTimeOffset; int daylightTimeOffset; } typedef QVector<OffsetData> OffsetDataList; QTimeZone(); explicit QTimeZone(ref const(QByteArray) ianaId); explicit QTimeZone(int offsetSeconds); /*implicit*/ QTimeZone(ref const(QByteArray) zoneId, int offsetSeconds, ref const(QString) name, ref const(QString) abbreviation, QLocale::Country country = QLocale::AnyCountry, ref const(QString) comment = QString()); QTimeZone(ref const(QTimeZone) other); ~QTimeZone(); QTimeZone &operator=(ref const(QTimeZone) other); #ifdef Q_COMPILER_RVALUE_REFS QTimeZone &operator=(QTimeZone &&other) { swap(other); return *this; } #endif void swap(QTimeZone &other) { d.swap(other.d); } bool operator==(ref const(QTimeZone) other) const; bool operator!=(ref const(QTimeZone) other) const; bool isValid() const; QByteArray id() const; QLocale::Country country() const; QString comment() const; QString displayName(ref const(QDateTime) atDateTime, QTimeZone::NameType nameType = QTimeZone::DefaultName, ref const(QLocale) locale = QLocale()) const; QString displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType = QTimeZone::DefaultName, ref const(QLocale) locale = QLocale()) const; QString abbreviation(ref const(QDateTime) atDateTime) const; int offsetFromUtc(ref const(QDateTime) atDateTime) const; int standardTimeOffset(ref const(QDateTime) atDateTime) const; int daylightTimeOffset(ref const(QDateTime) atDateTime) const; bool hasDaylightTime() const; bool isDaylightTime(ref const(QDateTime) atDateTime) const; OffsetData offsetData(ref const(QDateTime) forDateTime) const; bool hasTransitions() const; OffsetData nextTransition(ref const(QDateTime) afterDateTime) const; OffsetData previousTransition(ref const(QDateTime) beforeDateTime) const; OffsetDataList transitions(ref const(QDateTime) fromDateTime, ref const(QDateTime) toDateTime) const; static QByteArray systemTimeZoneId(); static bool isTimeZoneIdAvailable(ref const(QByteArray) ianaId); static QList<QByteArray> availableTimeZoneIds(); static QList<QByteArray> availableTimeZoneIds(QLocale::Country country); static QList<QByteArray> availableTimeZoneIds(int offsetSeconds); static QByteArray ianaIdToWindowsId(ref const(QByteArray) ianaId); static QByteArray windowsIdToDefaultIanaId(ref const(QByteArray) windowsId); static QByteArray windowsIdToDefaultIanaId(ref const(QByteArray) windowsId, QLocale::Country country); static QList<QByteArray> windowsIdToIanaIds(ref const(QByteArray) windowsId); static QList<QByteArray> windowsIdToIanaIds(ref const(QByteArray) windowsId, QLocale::Country country); private: QTimeZone(QTimeZonePrivate &dd); #ifndef QT_NO_DATASTREAM friend export QDataStream &operator<<(QDataStream &ds, ref const(QTimeZone) tz); #endif friend extern(C++) class QTimeZonePrivate; friend extern(C++) class QDateTime; friend extern(C++) class QDateTimePrivate; QSharedDataPointer<QTimeZonePrivate> d; } Q_DECLARE_TYPEINFO(QTimeZone::OffsetData, Q_MOVABLE_TYPE); Q_DECLARE_SHARED(QTimeZone) #ifndef QT_NO_DATASTREAM export QDataStream &operator<<(QDataStream &ds, ref const(QTimeZone) tz); export QDataStream &operator>>(QDataStream &ds, QTimeZone &tz); #endif #ifndef QT_NO_DEBUG_STREAM export QDebug operator<<(QDebug dbg, ref const(QTimeZone) tz); #endif #endif // QTIMEZONE_H
D
/******************************************************************************* * Copyright (c) 2000, 2006 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 dwtx.jface.action.IToolBarManager; import dwtx.jface.action.IContributionManager; /** * The <code>IToolBarManager</code> interface provides protocol for managing * contributions to a tool bar. It extends <code>IContributionManager</code> * but does not declare any new members; it exists only to increase the * readability of code using tool bars. * <p> * This package also provides a concrete tool bar manager implementation, * {@link ToolBarManager <code>ToolBarManager</code>}. * </p> */ public interface IToolBarManager : IContributionManager { }
D
/Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/DateTransform.o : /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/FromJSON.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ToJSON.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Mappable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ImmutableMappable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformOf.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/URLTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DataTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DateTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/EnumTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DateFormatterTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/HexColorTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DictionaryTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Map.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Mapper.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/MapError.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Operators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformOperators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/EnumOperators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/IntegerOperators.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/sunchuyue/Documents/test/RX_Product/Pods/Target\ Support\ Files/ObjectMapper/ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/DateTransform~partial.swiftmodule : /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/FromJSON.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ToJSON.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Mappable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ImmutableMappable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformOf.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/URLTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DataTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DateTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/EnumTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DateFormatterTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/HexColorTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DictionaryTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Map.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Mapper.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/MapError.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Operators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformOperators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/EnumOperators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/IntegerOperators.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/sunchuyue/Documents/test/RX_Product/Pods/Target\ Support\ Files/ObjectMapper/ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/DateTransform~partial.swiftdoc : /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/FromJSON.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ToJSON.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Mappable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ImmutableMappable.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformType.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformOf.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/URLTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DataTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DateTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/ISO8601DateTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/EnumTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/NSDecimalNumberTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DateFormatterTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/HexColorTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/CustomDateFormatTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/DictionaryTransform.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Map.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Mapper.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/MapError.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/Operators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/TransformOperators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/EnumOperators.swift /Users/sunchuyue/Documents/test/RX_Product/Pods/ObjectMapper/Sources/IntegerOperators.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/sunchuyue/Documents/test/RX_Product/Pods/Target\ Support\ Files/ObjectMapper/ObjectMapper-umbrella.h /Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
import std.stdio; int main() { foreach(i; 1..101) { fizzbuzz(i); } return 0; } void fizzbuzz(int i) { if (i % 15 == 0) writeln("FizzBuzz"); else if (i % 3 == 0) writeln("Fizz"); else if (i % 5 == 0) writeln("Buzz"); else writeln(i); }
D
module deimos.cef1.internal.nplugin_types; // Copyright (c) 2011 Marshall A. Greenblatt. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the name Chromium Embedded // Framework nor the names of its contributors may be used to endorse // or promote products derived from this software without specific prior // written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // #ifndef CEF_INCLUDE_INTERNAL_CEF_NPLUGIN_TYPES_H_ // #pragma once import deimos.cef1.internal.export; import deimos.cef1.internal.string; #include "third_party/npapi/bindings/npapi.h" #include "third_party/npapi/bindings/nphostapi.h" // #ifdef __cplusplus extern(C) { // #endif // Netscape plugins are normally built at separate DLLs that are loaded by the // browser when needed. This interface supports the creation of plugins that // are an embedded component of the application. Embedded plugins built using // this interface use the same Netscape Plugin API as DLL-based plugins. // See https://developer.mozilla.org/En/Gecko_Plugin_API_Reference for complete // documentation on how to use the Netscape Plugin API. // This structure provides attribute information and entry point functions for // a plugin. struct cef_plugin_info_t { // The unique name that identifies the plugin. cef_string_t unique_name; // The friendly display name of the plugin. cef_string_t display_name; // The version string of the plugin. cef_string_t version; // A description of the plugin. cef_string_t description; // A pipe (|) delimited list of mime type values that the plugin supports. cef_string_t mime_types; // A pipe (|) delimited list of extension values. Each value is associated // with the mime type value at the same position. Multiple file extensions // for the same mime type may be delimited with commas (,). cef_string_t file_extensions; // A pipe (|) delimited list of description values. Each value is associated // with the mime type value at the same position. cef_string_t type_descriptions; // Entry point function pointers. static if(!OS_POSIX || OS_MACOSX) { extern(System) short function(void*) np_getentrypoints; } extern(System) short function() np_initialize; extern(System) short function() np_shutdown; } }
D
module hunt.time.format.PrefixTree; import hunt.time.format.DateTimeParseContext; import hunt.time.text.ParsePosition; import hunt.collection.Set; import hunt.text.Common; import hunt.util.StringBuilder; import std.string; //----------------------------------------------------------------------- /** * A string based prefix tree for parsing time-zone names. */ static class PrefixTree { protected string key; protected string value; protected dchar c0; // performance optimization to avoid the // boundary check cost of key.charat(0) protected PrefixTree child; protected PrefixTree sibling; private this(string k, string v, PrefixTree child) { this.key = k; this.value = v; this.child = child; if (k.length == 0) { c0 = 0xffff; } else { c0 = key[0]; } } /** * Creates a new prefix parsing tree based on parse context. * * @param context the parse context * @return the tree, not null */ public static PrefixTree newTree(DateTimeParseContext context) { //if (!context.isStrict()) { // return new LENIENT("", null, null); //} if (context.isCaseSensitive()) { return new PrefixTree("", null, null); } return new CI("", null, null); } /** * Creates a new prefix parsing tree. * * @param keys a set of strings to build the prefix parsing tree, not null * @param context the parse context * @return the tree, not null */ public static PrefixTree newTree(Set!(string) keys, DateTimeParseContext context) { PrefixTree tree = newTree(context); foreach (string k; keys) { tree.add0(k, k); } return tree; } /** * Clone a copy of this tree */ public PrefixTree copyTree() { PrefixTree copy = new PrefixTree(key, value, null); if (child !is null) { copy.child = child.copyTree(); } if (sibling !is null) { copy.sibling = sibling.copyTree(); } return copy; } /** * Adds a pair of {key, value} into the prefix tree. * * @param k the key, not null * @param v the value, not null * @return true if the pair is added successfully */ public bool add(string k, string v) { return add0(k, v); } private bool add0(string k, string v) { k = toKey(k); int prefixLen = prefixLength(k); if (prefixLen == key.length) { if (prefixLen < k.length) { // down the tree string subKey = k.substring(prefixLen); PrefixTree c = child; while (c !is null) { if (isEqual(c.c0, subKey[0])) { return c.add0(subKey, v); } c = c.sibling; } // add the node as the child of the current node c = newNode(subKey, v, null); c.sibling = child; child = c; return true; } // have an existing !(key, value) already, overwrite it // if (value !is null) { // return false; //} value = v; return true; } // split the existing node PrefixTree n1 = newNode(key.substring(prefixLen), value, child); key = k.substring(0, prefixLen); child = n1; if (prefixLen < k.length) { PrefixTree n2 = newNode(k.substring(prefixLen), v, null); child.sibling = n2; value = null; } else { value = v; } return true; } /** * Match text with the prefix tree. * * @param text the input text to parse, not null * @param off the offset position to start parsing at * @param end the end position to stop parsing * @return the resulting string, or null if no match found. */ public string match(string text, int off, int end) { if (!prefixOf(text, off, end)) { return null; } if (child !is null && (off += key.length) != end) { PrefixTree c = child; do { if (isEqual(c.c0, text[off])) { string found = c.match(text, off, end); if (found !is null) { return found; } return value; } c = c.sibling; } while (c !is null); } return value; } /** * Match text with the prefix tree. * * @param text the input text to parse, not null * @param pos the position to start parsing at, from 0 to the text * length. Upon return, position will be updated to the new parse * position, or unchanged, if no match found. * @return the resulting string, or null if no match found. */ public string match(string text, ParsePosition pos) { int off = pos.getIndex(); int end = cast(int)(text.length); if (!prefixOf(text, off, end)) { return null; } off += key.length; if (child !is null && off != end) { PrefixTree c = child; do { if (isEqual(c.c0, text[off])) { pos.setIndex(off); string found = c.match(text, pos); if (found !is null) { return found; } break; } c = c.sibling; }while (c !is null); } pos.setIndex(off); return value; } protected string toKey(string k) { return k; } protected PrefixTree newNode(string k, string v, PrefixTree child) { return new PrefixTree(k, v, child); } protected bool isEqual(dchar c1, char c2) { return cast(char) c1 == c2; } protected bool isEqual(char c1, char c2) { return c1 == c2; } protected bool prefixOf(string text, int off, int end) { if (cast(string)(text) !is null) { return (cast(string) text).startsWith(key, off) > 0 ? true : false; } int len = cast(int)(key.length); if (len > end - off) { return false; } int off0 = 0; while (len-- > 0) { if (!isEqual(key[off0++], text[off++])) { return false; } } return true; } private int prefixLength(string k) { int off = 0; while (off < k.length && off < key.length) { if (!isEqual(k[off], key[off])) { return off; } off++; } return off; } /** * Case Insensitive prefix tree. */ private static class CI : PrefixTree { private this(string k, string v, PrefixTree child) { super(k, v, child); } override protected CI newNode(string k, string v, PrefixTree child) { return new CI(k, v, child); } override protected bool isEqual(char c1, char c2) { return DateTimeParseContext.charEqualsIgnoreCase(c1, c2); } override protected bool isEqual(dchar c1, char c2) { return DateTimeParseContext.charEqualsIgnoreCase(cast(char) c1, c2); } override protected bool prefixOf(string text, int off, int end) { int len = cast(int)(key.length); if (len > end - off) { return false; } int off0 = 0; while (len-- > 0) { if (!isEqual(key[off0++], text[off++])) { return false; } } return true; } } /** * Lenient prefix tree. Case insensitive and ignores characters * like space, underscore and slash. */ private static class LENIENT : CI { private this(string k, string v, PrefixTree child) { super(k, v, child); } override protected CI newNode(string k, string v, PrefixTree child) { return new LENIENT(k, v, child); } private bool isLenientChar(char c) { return c == ' ' || c == '_' || c == '/'; } override protected string toKey(string k) { for (int i = 0; i < k.length; i++) { if (isLenientChar(k[i])) { StringBuilder sb = new StringBuilder(k.length); sb.append(k, 0, i); i++; while (i < k.length) { if (!isLenientChar(k[i])) { sb.append(k[i]); } i++; } return sb.toString(); } } return k; } override public string match(string text, ParsePosition pos) { int off = pos.getIndex(); int end = cast(int)(text.length); int len = cast(int)(key.length); int koff = 0; while (koff < len && off < end) { if (isLenientChar(text[off])) { off++; continue; } if (!isEqual(key[koff++], text[off++])) { return null; } } if (koff != len) { return null; } if (child !is null && off != end) { int off0 = off; while (off0 < end && isLenientChar(text[off0])) { off0++; } if (off0 < end) { PrefixTree c = child; do { if (isEqual(c.c0, text[off0])) { pos.setIndex(off0); string found = c.match(text, pos); if (found !is null) { return found; } break; } c = c.sibling; } while (c !is null); } } pos.setIndex(off); return value; } } }
D
/home/merzouk/COURS_ESGI/RUST/project/RustProject4IABD/raytracer/app/target/debug/build/rayon-core-29c51c312b9482ed/build_script_build-29c51c312b9482ed: /home/merzouk/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.7.1/build.rs /home/merzouk/COURS_ESGI/RUST/project/RustProject4IABD/raytracer/app/target/debug/build/rayon-core-29c51c312b9482ed/build_script_build-29c51c312b9482ed.d: /home/merzouk/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.7.1/build.rs /home/merzouk/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.7.1/build.rs:
D
/** Mirror _object.h Object and type object interface Objects are structures allocated on the heap. Special rules apply to the use of objects to ensure they are properly garbage-collected. Objects are never allocated statically or on the stack; they must be accessed through special macros and functions only. (Type objects are exceptions to the first rule; the standard types are represented by statically initialized type objects, although work on type/class unification for Python 2.2 made it possible to have heap-allocated type objects too). An object has a 'reference count' that is increased or decreased when a pointer to the object is copied or deleted; when the reference count reaches zero there are no references to the object left and it can be removed from the heap. An object has a 'type' that determines what it represents and what kind of data it contains. An object's type is fixed when it is created. Types themselves are represented as objects; an object contains a pointer to the corresponding type object. The type itself has a type pointer pointing to the object representing the type 'type', which contains a pointer to itself!). Objects do not float around in memory; once allocated an object keeps the same size and address. Objects that must hold variable-size data can contain pointers to variable-size parts of the object. Not all objects of the same type have the same size; but the size cannot change after allocation. (These restrictions are made so a reference to an object can be simply a pointer -- moving an object would require updating all the pointers, and changing an object's size would require moving it if there was another object right next to it.) Objects are always accessed through pointers of the type 'PyObject *'. The type 'PyObject' is a structure that only contains the reference count and the type pointer. The actual memory allocated for an object contains other data that can only be accessed after casting the pointer to a pointer to a longer structure type. This longer type must start with the reference count and type fields; the macro PyObject_HEAD should be used for this (to accommodate for future changes). The implementation of a particular object type can cast the object pointer to the proper type and back. A standard interface exists for objects that contain an array of items whose size is determined when the object is allocated. */ module deimos.python.object; import core.stdc.stdio; import deimos.python.pyport; import deimos.python.methodobject; import deimos.python.structmember; import deimos.python.descrobject; extern(C): // Python-header-file: Include/object.h: // XXX:Conditionalize in if running debug build of Python interpreter: /* version (Python_Debug_Build) { template _PyObject_HEAD_EXTRA() { PyObject *_ob_next; PyObject *_ob_prev; } } else { */ /// _ template _PyObject_HEAD_EXTRA() {} /*}*/ version(Python_3_0_Or_Later) { /// _ mixin template PyObject_HEAD() { /// _ PyObject ob_base; } }else{ /// _ mixin template PyObject_HEAD() { mixin _PyObject_HEAD_EXTRA; /// _ Py_ssize_t ob_refcnt; /// _ PyTypeObject* ob_type; } } /** Nothing is actually declared to be a PyObject, but every pointer to * a Python object can be cast to a PyObject*. This is inheritance built * by hand. Similarly every pointer to a variable-size Python object can, * in addition, be cast to PyVarObject*. */ struct PyObject { version(Python_3_0_Or_Later) { version(Issue7758Fixed) { mixin _PyObject_HEAD_EXTRA; } Py_ssize_t ob_refcnt; PyTypeObject* ob_type; }else { mixin PyObject_HEAD; } } /** Denotes a borrowed reference. (Not part of Python api) Intended use: An api function Foo returning a borrowed reference will have return type Borrowed!PyObject* instead of PyObject*. Py_INCREF can be used to get the original type back. Params: T = Python object type (PyObject, PyTypeObject, etc) Example: --- Borrowed!PyObject* borrowed = PyTuple_GetItem(tuple, 0); PyObject* item = Py_XINCREF(borrowed); --- */ struct Borrowed(T) { } alias Borrowed!PyObject PyObject_BorrowedRef; /** Convert a python reference to borrowed reference. (Not part of Python api) */ Borrowed!T* borrowed(T)(T* obj) { return cast(Borrowed!T*) obj; } version(Python_3_0_Or_Later) { /// _ mixin template PyObject_VAR_HEAD() { /// _ PyVarObject ob_base; } }else { /** PyObject_VAR_HEAD defines the initial segment of all variable-size * container objects. These end with a declaration of an array with 1 * element, but enough space is malloc'ed so that the array actually * has room for ob_size elements. Note that ob_size is an element count, * not necessarily a byte count. */ mixin template PyObject_VAR_HEAD() { mixin PyObject_HEAD; /// _ Py_ssize_t ob_size; /* Number of items in variable part */ } } /// _ struct PyVarObject { version(Python_3_0_Or_Later) { version(Issue7758Fixed) { mixin PyObject_HEAD; }else{ PyObject ob_base; } Py_ssize_t ob_size; /* Number of items in variable part */ }else{ mixin PyObject_VAR_HEAD; } } /// _ auto Py_REFCNT(T)(T* ob) { return (cast(PyObject*)ob).ob_refcnt; } /// _ auto Py_TYPE(T)(T* ob) { return (cast(PyObject*)ob).ob_type; } /// _ auto Py_SIZE(T)(T* ob) { return (cast(PyVarObject*)ob).ob_size; } /// Not part of the python api, but annoying to do without. void Py_SET_REFCNT(T)(T* ob, int refcnt) { (cast(PyObject*) ob).ob_refcnt = refcnt; } /// ditto void Py_SET_TYPE(T)(T* ob, PyTypeObject* tipo) { (cast(PyObject*)ob).ob_type = tipo; } /// ditto void Py_SET_SIZE(T)(T* ob, Py_ssize_t size) { (cast(PyVarObject*)ob).ob_size = size; } /// _ alias PyObject* function(PyObject*) unaryfunc; /// _ alias PyObject* function(PyObject*, PyObject*) binaryfunc; /// _ alias PyObject* function(PyObject*, PyObject*, PyObject*) ternaryfunc; /// _ alias Py_ssize_t function(PyObject*) lenfunc; /// _ alias lenfunc inquiry; version(Python_3_0_Or_Later) { }else{ /// Availability: 2.* alias int function(PyObject**, PyObject**) coercion; } /// _ alias PyObject* function(PyObject*, Py_ssize_t) ssizeargfunc; /// _ alias PyObject* function(PyObject*, Py_ssize_t, Py_ssize_t) ssizessizeargfunc; version(Python_2_5_Or_Later){ }else{ /// Availability: 2.4 alias ssizeargfunc intargfunc; /// Availability: 2.4 alias ssizessizeargfunc intintargfunc; } /// _ alias int function(PyObject*, Py_ssize_t, PyObject*) ssizeobjargproc; /// _ alias int function(PyObject*, Py_ssize_t, Py_ssize_t, PyObject*) ssizessizeobjargproc; version(Python_2_5_Or_Later){ }else{ /// Availability: 2.4 alias ssizeobjargproc intobjargproc; /// Availability: 2.4 alias ssizessizeobjargproc intintobjargproc; } /// _ alias int function(PyObject*, PyObject*, PyObject*) objobjargproc; version(Python_3_0_Or_Later) { }else{ /// ssize_t-based buffer interface /// Availability: 2.* alias Py_ssize_t function(PyObject*, Py_ssize_t, void**) readbufferproc; /// ditto alias Py_ssize_t function(PyObject*, Py_ssize_t, void**) writebufferproc; /// ditto alias Py_ssize_t function(PyObject*, Py_ssize_t*) segcountproc; /// ditto alias Py_ssize_t function(PyObject*, Py_ssize_t, char**) charbufferproc; } version(Python_2_5_Or_Later){ }else{ /// int-based buffer interface /// Availability: 2.4 alias readbufferproc getreadbufferproc; /// ditto alias writebufferproc getwritebufferproc; /// ditto alias segcountproc getsegcountproc; /// ditto alias charbufferproc getcharbufferproc; } version(Python_2_6_Or_Later){ /** Py3k buffer interface */ /// Availability: >= 2.6 struct Py_buffer{ void* buf; /** borrowed reference */ Borrowed!PyObject* obj; /// _ Py_ssize_t len; /** This is Py_ssize_t so it can be pointed to by strides in simple case.*/ Py_ssize_t itemsize; /// _ int readonly; /// _ int ndim; /// _ char* format; /// _ Py_ssize_t* shape; /// _ Py_ssize_t* strides; /// _ Py_ssize_t* suboffsets; version(Python_3_4_Or_Later) { }else version(Python_2_7_Or_Later) { /** static store for shape and strides of mono-dimensional buffers. */ /// Availability: >= 2.7 < 3.4 Py_ssize_t[2] smalltable; } /// _ void* internal; }; /// Availability: >= 2.6 alias int function(PyObject*, Py_buffer*, int) getbufferproc; /// Availability: >= 2.6 alias void function(PyObject*, Py_buffer*) releasebufferproc; /** Flags for getting buffers */ /// Availability: >= 2.6 enum PyBUF_SIMPLE = 0; /// ditto enum PyBUF_WRITABLE = 0x0001; /* we used to include an E, backwards compatible alias */ /// ditto enum PyBUF_WRITEABLE = PyBUF_WRITABLE; /// ditto enum PyBUF_FORMAT = 0x0004; /// ditto enum PyBUF_ND = 0x0008; /// ditto enum PyBUF_STRIDES = (0x0010 | PyBUF_ND); /// ditto enum PyBUF_C_CONTIGUOUS = (0x0020 | PyBUF_STRIDES); /// ditto enum PyBUF_F_CONTIGUOUS = (0x0040 | PyBUF_STRIDES); /// ditto enum PyBUF_ANY_CONTIGUOUS = (0x0080 | PyBUF_STRIDES); /// ditto enum PyBUF_INDIRECT = (0x0100 | PyBUF_STRIDES); /// ditto enum PyBUF_CONTIG = (PyBUF_ND | PyBUF_WRITABLE); /// ditto enum PyBUF_CONTIG_RO = (PyBUF_ND); /// ditto enum PyBUF_STRIDED = (PyBUF_STRIDES | PyBUF_WRITABLE); /// ditto enum PyBUF_STRIDED_RO = (PyBUF_STRIDES); /// ditto enum PyBUF_RECORDS = (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT); /// ditto enum PyBUF_RECORDS_RO = (PyBUF_STRIDES | PyBUF_FORMAT); /// ditto enum PyBUF_FULL = (PyBUF_INDIRECT | PyBUF_WRITABLE | PyBUF_FORMAT); /// ditto enum PyBUF_FULL_RO = (PyBUF_INDIRECT | PyBUF_FORMAT); /// ditto enum PyBUF_READ = 0x100; /// ditto enum PyBUF_WRITE = 0x200; /// ditto enum PyBUF_SHADOW = 0x400; /* end Py3k buffer interface */ } /// _ alias int function(PyObject*, PyObject*) objobjproc; /// _ alias int function(PyObject*, void*) visitproc; /// _ alias int function(PyObject*, visitproc, void*) traverseproc; /** For numbers without flag bit Py_TPFLAGS_CHECKTYPES set, all arguments are guaranteed to be of the object's type (modulo coercion hacks -- i.e. if the type's coercion function returns other types, then these are allowed as well). Numbers that have the Py_TPFLAGS_CHECKTYPES flag bit set should check *both* arguments for proper type and implement the necessary conversions in the slot functions themselves. */ struct PyNumberMethods { binaryfunc nb_add; binaryfunc nb_subtract; binaryfunc nb_multiply; version(Python_3_0_Or_Later) { }else { binaryfunc nb_divide; } binaryfunc nb_remainder; binaryfunc nb_divmod; ternaryfunc nb_power; unaryfunc nb_negative; unaryfunc nb_positive; unaryfunc nb_absolute; version(Python_3_0_Or_Later) { inquiry nb_bool; }else { inquiry nb_nonzero; } unaryfunc nb_invert; binaryfunc nb_lshift; binaryfunc nb_rshift; binaryfunc nb_and; binaryfunc nb_xor; binaryfunc nb_or; version(Python_3_0_Or_Later) { }else{ coercion nb_coerce; } unaryfunc nb_int; version(Python_3_0_Or_Later) { void* nb_reserved; /* the slot formerly known as nb_long */ }else{ unaryfunc nb_long; } unaryfunc nb_float; version(Python_3_0_Or_Later) { }else{ unaryfunc nb_oct; unaryfunc nb_hex; } binaryfunc nb_inplace_add; binaryfunc nb_inplace_subtract; binaryfunc nb_inplace_multiply; version(Python_3_0_Or_Later) { }else{ binaryfunc nb_inplace_divide; } binaryfunc nb_inplace_remainder; ternaryfunc nb_inplace_power; binaryfunc nb_inplace_lshift; binaryfunc nb_inplace_rshift; binaryfunc nb_inplace_and; binaryfunc nb_inplace_xor; binaryfunc nb_inplace_or; /** These require the Py_TPFLAGS_HAVE_CLASS flag */ binaryfunc nb_floor_divide; ///ditto binaryfunc nb_true_divide; ///ditto binaryfunc nb_inplace_floor_divide; ///ditto binaryfunc nb_inplace_true_divide; version(Python_2_5_Or_Later){ /// Availability: >= 2.5 unaryfunc nb_index; } version(Python_3_5_Or_Later) { binaryfunc nb_matrix_multiply; binaryfunc nb_inplace_matrix_multiply; } } /// _ struct PySequenceMethods { /// _ lenfunc sq_length; /// _ binaryfunc sq_concat; /// _ ssizeargfunc sq_repeat; /// _ ssizeargfunc sq_item; version(Python_3_0_Or_Later) { /// _ void* was_sq_slice; }else{ /// Availability: 2.* ssizessizeargfunc sq_slice; } /// _ ssizeobjargproc sq_ass_item; version(Python_3_0_Or_Later) { /// _ void* was_sq_ass_slice; }else{ /// Availability: 2.* ssizessizeobjargproc sq_ass_slice; } /// _ objobjproc sq_contains; /// _ binaryfunc sq_inplace_concat; /// _ ssizeargfunc sq_inplace_repeat; } /// _ struct PyMappingMethods { /// _ lenfunc mp_length; /// _ binaryfunc mp_subscript; /// _ objobjargproc mp_ass_subscript; } version(Python_3_5_Or_Later) { /// _ struct PyAsyncMethods { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } } /// _ struct PyBufferProcs { version(Python_3_0_Or_Later) { }else{ /// Availability: 3.* readbufferproc bf_getreadbuffer; /// Availability: 3.* writebufferproc bf_getwritebuffer; /// Availability: 3.* segcountproc bf_getsegcount; /// Availability: 3.* charbufferproc bf_getcharbuffer; } version(Python_2_6_Or_Later){ /// Availability: 2.6, 2.7 getbufferproc bf_getbuffer; /// Availability: 2.6, 2.7 releasebufferproc bf_releasebuffer; } } /// _ alias void function(void*) freefunc; /// _ alias void function(PyObject*) destructor; /// _ alias int function(PyObject*, FILE*, int) printfunc; /// _ alias PyObject* function(PyObject*, char*) getattrfunc; /// _ alias PyObject* function(PyObject*, PyObject*) getattrofunc; /// _ alias int function(PyObject*, char*, PyObject*) setattrfunc; /// _ alias int function(PyObject*, PyObject*, PyObject*) setattrofunc; version(Python_3_0_Or_Later) { }else{ /// Availability: 2.* alias int function(PyObject*, PyObject*) cmpfunc; } /// _ alias PyObject* function(PyObject*) reprfunc; /// _ alias Py_hash_t function(PyObject*) hashfunc; /// _ alias PyObject* function(PyObject*, PyObject*, int) richcmpfunc; /// _ alias PyObject* function(PyObject*) getiterfunc; /// _ alias PyObject* function(PyObject*) iternextfunc; /// _ alias PyObject* function(PyObject*, PyObject*, PyObject*) descrgetfunc; /// _ alias int function(PyObject*, PyObject*, PyObject*) descrsetfunc; /// _ alias int function(PyObject*, PyObject*, PyObject*) initproc; /// _ alias PyObject* function(PyTypeObject*, PyObject*, PyObject*) newfunc; /// _ alias PyObject* function(PyTypeObject*, Py_ssize_t) allocfunc; /** Type objects contain a string containing the type name (to help somewhat in debugging), the allocation parameters (see PyObject_New() and PyObject_NewVar()), and methods for accessing objects of the type. Methods are optional, a nil pointer meaning that particular kind of access is not available for this type. The Py_DECREF() macro uses the tp_dealloc method without checking for a nil pointer; it should always be implemented except if the implementation can guarantee that the reference count will never reach zero (e.g., for statically allocated type objects). NB: the methods for certain type groups are now contained in separate method blocks. */ struct PyTypeObject { version(Issue7758Fixed) { mixin PyObject_VAR_HEAD; }else{ version(Python_3_0_Or_Later) { PyVarObject ob_base; }else { Py_ssize_t ob_refcnt; PyTypeObject* ob_type; Py_ssize_t ob_size; /* Number of items in variable part */ } } /** For printing, in format "<module>.<name>" */ const(char)* tp_name; /** For allocation */ Py_ssize_t tp_basicsize, tp_itemsize; /** Methods to implement standard operations */ destructor tp_dealloc; /// ditto printfunc tp_print; /// ditto getattrfunc tp_getattr; /// ditto setattrfunc tp_setattr; /// ditto version(Python_3_5_Or_Later) { PyAsyncMethods* tp_as_async; }else version(Python_3_0_Or_Later) { void* tp_reserved; }else{ cmpfunc tp_compare; } /// ditto reprfunc tp_repr; /** Method suites for standard classes */ PyNumberMethods* tp_as_number; /// ditto PySequenceMethods* tp_as_sequence; /// ditto PyMappingMethods* tp_as_mapping; /** More standard operations (here for binary compatibility) */ hashfunc tp_hash; /// ditto ternaryfunc tp_call; /// ditto reprfunc tp_str; /// ditto getattrofunc tp_getattro; /// ditto setattrofunc tp_setattro; /** Functions to access object as input/output buffer */ PyBufferProcs* tp_as_buffer; /** Flags to define presence of optional/expanded features */ C_ulong tp_flags; /** Documentation string */ const(char)* tp_doc; /** call function for all accessible objects */ traverseproc tp_traverse; /** delete references to contained objects */ inquiry tp_clear; /** rich comparisons */ richcmpfunc tp_richcompare; /** weak reference enabler */ version(Python_2_5_Or_Later){ Py_ssize_t tp_weaklistoffset; }else{ C_long tp_weaklistoffset; } /** Iterators */ getiterfunc tp_iter; /// ditto iternextfunc tp_iternext; /** Attribute descriptor and subclassing stuff */ PyMethodDef* tp_methods; /// ditto PyMemberDef* tp_members; /// ditto PyGetSetDef* tp_getset; /// ditto PyTypeObject* tp_base; /// ditto PyObject* tp_dict; /// ditto descrgetfunc tp_descr_get; /// ditto descrsetfunc tp_descr_set; /// ditto version(Python_2_5_Or_Later){ Py_ssize_t tp_dictoffset; }else{ C_long tp_dictoffset; } /// ditto initproc tp_init; /// ditto allocfunc tp_alloc; /// ditto newfunc tp_new; /** Low-level free-memory routine */ freefunc tp_free; /** For PyObject_IS_GC */ inquiry tp_is_gc; /// _ PyObject* tp_bases; /** method resolution order */ PyObject* tp_mro; /// _ PyObject* tp_cache; /// _ PyObject* tp_subclasses; /// _ PyObject* tp_weaklist; /// _ destructor tp_del; version(Python_2_6_Or_Later){ /** Type attribute cache version tag. Added in version 2.6 */ uint tp_version_tag; } version(Python_3_0_Or_Later) { /// Availability: 3.?? destructor tp_finalize; } } version(Python_3_0_Or_Later) { /// Availability: 3.* struct PyType_Slot{ /** slot id, see below */ int slot; /** function pointer */ void* pfunc; } /// Availability: 3.* struct PyType_Spec{ /// _ const(char)* name; /// _ int basicsize; /// _ int itemsize; /// _ int flags; /** terminated by slot==0. */ PyType_Slot* slots; } /// Availability: 3.* PyObject* PyType_FromSpec(PyType_Spec*); } /** The *real* layout of a type object when allocated on the heap */ struct PyHeapTypeObject { version(Python_2_5_Or_Later){ /// Availability: >= 2.5 PyTypeObject ht_type; }else{ /// Availability: 2.4 PyTypeObject type; } version(Python_3_5_Or_Later) { /// Availability: >= 3.5 PyAsyncMethods as_async; } /// _ PyNumberMethods as_number; /// _ PyMappingMethods as_mapping; /** as_sequence comes after as_mapping, so that the mapping wins when both the mapping and the sequence define a given operator (e.g. __getitem__). see add_operators() in typeobject.c . */ PySequenceMethods as_sequence; /// _ PyBufferProcs as_buffer; version(Python_2_5_Or_Later){ /// Availability: >= 2.5 PyObject* ht_name; /// Availability: >= 2.5 PyObject* ht_slots; }else{ /// Availability: 2.4 PyObject* name; /// Availability: 2.4 PyObject* slots; } } /** Generic type check */ int PyType_IsSubtype(PyTypeObject*, PyTypeObject*); // D translation of C macro: /// _ int PyObject_TypeCheck()(PyObject* ob, PyTypeObject* tp) { return (ob.ob_type == tp || PyType_IsSubtype(ob.ob_type, tp)); } /** built-in 'type' */ mixin(PyAPI_DATA!"PyTypeObject PyType_Type"); /** built-in 'object' */ mixin(PyAPI_DATA!"PyTypeObject PyBaseObject_Type"); /** built-in 'super' */ mixin(PyAPI_DATA!"PyTypeObject PySuper_Type"); version(Python_3_2_Or_Later) { /// Availability: >= 3.2 C_long PyType_GetFlags(PyTypeObject*); } // D translation of C macro: /// _ int PyType_Check()(PyObject* op) { return PyObject_TypeCheck(op, &PyType_Type); } // D translation of C macro: /// _ int PyType_CheckExact()(PyObject* op) { return op.ob_type == &PyType_Type; } /// _ int PyType_Ready(PyTypeObject*); /// _ PyObject* PyType_GenericAlloc(PyTypeObject*, Py_ssize_t); /// _ PyObject* PyType_GenericNew(PyTypeObject*, PyObject*, PyObject*); /// _ PyObject* _PyType_Lookup(PyTypeObject*, PyObject*); /// _ version(Python_2_7_Or_Later) { /// Availability: >= 2.7 PyObject* _PyObject_LookupSpecial(PyObject*, char*, PyObject**); } version(Python_3_0_Or_Later) { /// Availability: 3.* PyTypeObject* _PyType_CalculateMetaclass(PyTypeObject*, PyObject*); } version(Python_2_6_Or_Later){ /// Availability: >= 2.6 uint PyType_ClearCache(); /// Availability: >= 2.6 void PyType_Modified(PyTypeObject *); } /// _ int PyObject_Print(PyObject*, FILE*, int); version(Python_3_0_Or_Later) { /// Availability: 3.* void _Py_BreakPoint(); } /// _ PyObject* PyObject_Repr(PyObject*); version(Python_3_0_Or_Later) { }else version(Python_2_5_Or_Later) { /// Availability: 2.5, 2.6, 2.7 PyObject* _PyObject_Str(PyObject*); } /// _ PyObject* PyObject_Str(PyObject*); version(Python_3_0_Or_Later) { /// Availability: 3.* PyObject* PyObject_ASCII(PyObject*); /// Availability: 3.* PyObject* PyObject_Bytes(PyObject*); }else{ /// Availability: 2.* alias PyObject_Str PyObject_Bytes; /// Availability: 2.* PyObject * PyObject_Unicode(PyObject*); /// Availability: 2.* int PyObject_Compare(PyObject*, PyObject*); } /// _ PyObject* PyObject_RichCompare(PyObject*, PyObject*, int); /// _ int PyObject_RichCompareBool(PyObject*, PyObject*, int); /// _ PyObject* PyObject_GetAttrString(PyObject*, const(char)*); /// _ int PyObject_SetAttrString(PyObject*, const(char)*, PyObject*); /// _ int PyObject_HasAttrString(PyObject*, const(char)*); /// _ PyObject* PyObject_GetAttr(PyObject*, PyObject*); /// _ int PyObject_SetAttr(PyObject*, PyObject*, PyObject*); /// _ int PyObject_HasAttr(PyObject*, PyObject*); /// _ PyObject* PyObject_SelfIter(PyObject*); /// _ PyObject* PyObject_GenericGetAttr(PyObject*, PyObject*); /// _ int PyObject_GenericSetAttr(PyObject*, PyObject*, PyObject*); /// _ Py_hash_t PyObject_Hash(PyObject*); version(Python_2_6_Or_Later) { /// Availability: >= 2.6 Py_hash_t PyObject_HashNotImplemented(PyObject*); } /// _ int PyObject_IsTrue(PyObject*); /// _ int PyObject_Not(PyObject*); /// _ int PyCallable_Check(PyObject*); version(Python_3_0_Or_Later) { }else{ /// Availability: 2.* int PyNumber_Coerce(PyObject**, PyObject**); /// Availability: 2.* int PyNumber_CoerceEx(PyObject**, PyObject**); } /// _ void PyObject_ClearWeakRefs(PyObject*); /** PyObject_Dir(obj) acts like Python __builtin__.dir(obj), returning a list of strings. PyObject_Dir(NULL) is like __builtin__.dir(), returning the names of the current locals. In this case, if there are no current locals, NULL is returned, and PyErr_Occurred() is false. */ PyObject * PyObject_Dir(PyObject *); /** Helpers for printing recursive container types */ int Py_ReprEnter(PyObject *); /// ditto void Py_ReprLeave(PyObject *); /// _ Py_hash_t _Py_HashDouble(double); /// _ Py_hash_t _Py_HashPointer(void*); version(Python_3_1_Or_Later) { version = Py_HashSecret; }else version(Python_3_0_Or_Later) { }else version(Python_2_7_Or_Later) { version = Py_HashSecret; } version(Py_HashSecret) { /// Availability: 2.7, >= 3.1 struct _Py_HashSecret_t{ /// _ Py_hash_t prefix; /// _ Py_hash_t suffix; } /// Availability: 2.7, >= 3.1 mixin(PyAPI_DATA!"_Py_HashSecret_t _Py_HashSecret"); } /// _ auto PyObject_REPR()(PyObject* obj) { version(Python_3_0_Or_Later) { import deimos.python.unicodeobject; return _PyUnicode_AsString(PyObject_Repr(obj)); }else{ import deimos.python.stringobject; return PyString_AS_STRING(PyObject_Repr(obj)); } } /// _ enum int Py_PRINT_RAW = 1; version(Python_3_0_Or_Later) { }else{ /** PyBufferProcs contains bf_getcharbuffer */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_GETCHARBUFFER = 1L<<0; /** PySequenceMethods contains sq_contains */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_SEQUENCE_IN = 1L<<1; /** This is here for backwards compatibility. Extensions that use the old GC API will still compile but the objects will not be tracked by the GC. */ /// Availability: 2.* enum int Py_TPFLAGS_GC = 0; /** PySequenceMethods and PyNumberMethods contain in-place operators */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_INPLACEOPS = 1L<<3; /** PyNumberMethods do their own coercion */ /// Availability: 2.* enum int Py_TPFLAGS_CHECKTYPES = 1L<<4; /** tp_richcompare is defined */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_RICHCOMPARE = 1L<<5; /** Objects which are weakly referencable if their tp_weaklistoffset is >0 */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_WEAKREFS = 1L<<6; /** tp_iter is defined */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_ITER = 1L<<7; /** New members introduced by Python 2.2 exist */ /// Availability: 2.* enum int Py_TPFLAGS_HAVE_CLASS = 1L<<8; } /** Set if the type object is dynamically allocated */ enum int Py_TPFLAGS_HEAPTYPE = 1L<<9; /** Set if the type allows subclassing */ enum int Py_TPFLAGS_BASETYPE = 1L<<10; /** Set if the type is 'ready' -- fully initialized */ enum int Py_TPFLAGS_READY = 1L<<12; /** Set while the type is being 'readied', to prevent recursive ready calls */ enum int Py_TPFLAGS_READYING = 1L<<13; /** Objects support garbage collection (see objimp.h) */ enum int Py_TPFLAGS_HAVE_GC = 1L<<14; // YYY: Should conditionalize for stackless: //#ifdef STACKLESS //#define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION (3L<<15) //#else /// _ enum int Py_TPFLAGS_HAVE_STACKLESS_EXTENSION = 0; //#endif version(Python_3_0_Or_Later) { }else version(Python_2_5_Or_Later){ /** Objects support nb_index in PyNumberMethods */ /// Availability: 2.* enum Py_TPFLAGS_HAVE_INDEX = 1L<<17; } version(Python_2_6_Or_Later){ /** Objects support type attribute cache */ /// Availability: >= 2.6 enum Py_TPFLAGS_HAVE_VERSION_TAG = (1L<<18); /// ditto enum Py_TPFLAGS_VALID_VERSION_TAG = (1L<<19); /** Type is abstract and cannot be instantiated */ /// Availability: >= 2.6 enum Py_TPFLAGS_IS_ABSTRACT = (1L<<20); version(Python_3_0_Or_Later) { }else { /** Has the new buffer protocol */ /// Availability: 2.6,2.7 enum Py_TPFLAGS_HAVE_NEWBUFFER = (1L<<21); } /** These flags are used to determine if a type is a subclass. */ /// Availability: >= 2.6 enum Py_TPFLAGS_INT_SUBCLASS =(1L<<23); /// ditto enum Py_TPFLAGS_LONG_SUBCLASS =(1L<<24); /// ditto enum Py_TPFLAGS_LIST_SUBCLASS =(1L<<25); /// ditto enum Py_TPFLAGS_TUPLE_SUBCLASS =(1L<<26); /// ditto version(Python_3_0_Or_Later) { enum Py_TPFLAGS_BYTES_SUBCLASS =(1L<<27); }else{ enum Py_TPFLAGS_STRING_SUBCLASS =(1L<<27); } /// ditto enum Py_TPFLAGS_UNICODE_SUBCLASS =(1L<<28); /// ditto enum Py_TPFLAGS_DICT_SUBCLASS =(1L<<29); /// ditto enum Py_TPFLAGS_BASE_EXC_SUBCLASS =(1L<<30); /// ditto enum Py_TPFLAGS_TYPE_SUBCLASS =(1L<<31); } version(Python_3_0_Or_Later) { /// _ enum Py_TPFLAGS_DEFAULT = Py_TPFLAGS_HAVE_STACKLESS_EXTENSION | Py_TPFLAGS_HAVE_VERSION_TAG; }else version(Python_2_5_Or_Later){ /// _ enum Py_TPFLAGS_DEFAULT = Py_TPFLAGS_HAVE_GETCHARBUFFER | Py_TPFLAGS_HAVE_SEQUENCE_IN | Py_TPFLAGS_HAVE_INPLACEOPS | Py_TPFLAGS_HAVE_RICHCOMPARE | Py_TPFLAGS_HAVE_WEAKREFS | Py_TPFLAGS_HAVE_ITER | Py_TPFLAGS_HAVE_CLASS | Py_TPFLAGS_HAVE_STACKLESS_EXTENSION | Py_TPFLAGS_HAVE_INDEX | 0 ; version(Python_2_6_Or_Later) { // meh enum Py_TPFLAGS_DEFAULT_EXTERNAL = Py_TPFLAGS_DEFAULT; } }else{ /// _ enum int Py_TPFLAGS_DEFAULT = Py_TPFLAGS_HAVE_GETCHARBUFFER | Py_TPFLAGS_HAVE_SEQUENCE_IN | Py_TPFLAGS_HAVE_INPLACEOPS | Py_TPFLAGS_HAVE_RICHCOMPARE | Py_TPFLAGS_HAVE_WEAKREFS | Py_TPFLAGS_HAVE_ITER | Py_TPFLAGS_HAVE_CLASS | Py_TPFLAGS_HAVE_STACKLESS_EXTENSION | 0 ; } // D translation of C macro: /// _ int PyType_HasFeature()(PyTypeObject* t, int f) { version(Python_3_2_Or_Later) { return (PyType_GetFlags(t) & f) != 0; }else{ return (t.tp_flags & f) != 0; } } version(Python_2_6_Or_Later){ alias PyType_HasFeature PyType_FastSubclass; } /** Initializes reference counts to 1, and in special builds (Py_REF_DEBUG, Py_TRACE_REFS) performs additional bookkeeping appropriate to the special build. */ void _Py_NewReference()(PyObject* op) { Py_SET_REFCNT(op, 1); } /** Increment reference counts. Can be used wherever a void expression is allowed. The argument must not be a NULL pointer. If it may be NULL, use Py_XINCREF instead. In addition, converts and returns Borrowed references to their base types. */ auto Py_INCREF(T)(T op) if(is(T == PyObject*) || is(T _unused : Borrowed!P*, P)) { static if(is(T _unused : Borrowed!P*, P)) { PyObject* pop = cast(PyObject*) op; ++pop.ob_refcnt; return cast(P*) pop; }else { ++op.ob_refcnt; } } /** Increment reference counts. Can be used wherever a void expression is allowed. The argument may be a NULL pointer. In addition, converts and returns Borrowed references to their base types. The argument may not be null. */ auto Py_XINCREF(T)(T op) { if (op == null) { //static if(is(typeof(return) == void)) static if(is(typeof(Py_INCREF!T(op)) == void)) return; else { assert(0, "INCREF on null"); } } return Py_INCREF(op); } /** Used to decrement reference counts. Calls the object's deallocator function when the refcount falls to 0; for objects that don't contain references to other objects or heap memory this can be the standard function free(). Can be used wherever a void expression is allowed. The argument must not be a NULL pointer. If it may be NULL, use Py_XDECREF instead. */ void Py_DECREF()(PyObject *op) { // version(PY_REF_DEBUG) _Py_RefTotal++ --op.ob_refcnt; // EMN: this is a horrible idea because it takes forever to figure out // what's going on if this is being called from within the garbage // collector. // EMN: if we do keep it, don't change the assert! // assert(0) or assert(condition) mess up linking somehow. if(op.ob_refcnt < 0) assert (0, "refcount negative"); if(op.ob_refcnt != 0) { // version(PY_REF_DEBUG) _Py_NegativeRefcount(__FILE__, __LINE__, cast(PyObject*)op); }else { op.ob_type.tp_dealloc(op); } } /** Same as Py_DECREF, except is a no-op if op is null. */ void Py_XDECREF()(PyObject* op) { if(op == null) { return; } Py_DECREF(op); } /** These are provided as conveniences to Python runtime embedders, so that they can have object code that is not dependent on Python compilation flags. */ void Py_IncRef(PyObject *); /// ditto void Py_DecRef(PyObject *); mixin(PyAPI_DATA!"PyObject _Py_NoneStruct"); // issue 8683 gets in the way of this being a property Borrowed!PyObject* Py_None()() { return borrowed(&_Py_NoneStruct); } /** Rich comparison opcodes */ enum Py_LT = 0; /// ditto enum Py_LE = 1; /// ditto enum Py_EQ = 2; /// ditto enum Py_NE = 3; /// ditto enum Py_GT = 4; /// ditto enum Py_GE = 5; version(Python_3_0_Or_Later) { /// Availability: 3.* void _Py_Dealloc(PyObject*); }
D
/** * Table support */ module harud.table; import harud.page: Page; import harud.types: Rect, HaruTextAlignment, HaruCMYKColor; /** * Describe a table. * * A `Table` is a layout element that represents data in a two-dimensional grid */ class Table { private Page page; this(Page page, Rect rect) { assert(page !is null); this.page = page; x0 = x = rect.left; y0 = y = rect.top; width = rect.right - rect.left; height = rect.top - rect.bottom; _divSize = width / 12; currentHeight = 0.; } private float x0; private float y0; private float x; private float y; private float height; private float width; /** * Add a [Column] to table. */ void addCol(Column col) { import harud.extension: addTextRect, addRect, setFillColor, setStrokeColor; import harud.util: createTopLeftRect; drawBorder(col); fillCell(col); page.beginText; float w = col.colSpan * _divSize; Rect r = createTopLeftRect(x + col.paddingLeft, y - col.paddingBottom, w - col.paddingLeft - col.paddingRight, currentHeight - col.paddingTop - col.paddingBottom); page.addTextRect(r, col.text, col.alignment); page.endText; x += col.colSpan * _divSize; } private void fillCell(Column col) { import harud.extension: addRect, setFillColor, setStrokeColor; import harud.util: createTopLeftRect; page.graphicSave(); page.setFillColor(col.fillColor); Rect border = createTopLeftRect(x, y, col.colSpan * _divSize, currentHeight); page.addRect(border); page.fill; page.graphicRestore; } private void drawBorder(Column col) { import std.stdio; import harud.extension: addTextRect, addRect, setFillColor, setStrokeColor; page.graphicSave(); page.setStrokeColor(col.borderColor); float w = col.colSpan * _divSize; float h = currentHeight; if (col.border & CellBorder.top) { page.moveTo(x, y); page.lineTo(x + w, y); } if (col.border & CellBorder.right) { page.moveTo(x + w, y); page.lineTo(x + w, y - h); } if (col.border & CellBorder.bottom) { page.moveTo(x + w, y - h); page.lineTo(x, y - h); } if (col.border & CellBorder.left) { page.moveTo(x, y - h); page.lineTo(x, y); } page.moveTo(x, y); page.stroke; page.graphicRestore; } private float currentHeight; void addRow(float height) { x = x0; y -= currentHeight; currentHeight = height; } private float _divSize; float divSize() { return _divSize; } } /** * Describes a table colums (cell). * * Table divide horizontal space into indivisible units called "columns". * All columns in a table must specify their width as proportion of the total available row width. * harud uses 12 columns */ struct Column { /** * Specifies the column width */ int colSpan; /** * Text */ string text; HaruTextAlignment alignment = HaruTextAlignment.left; CellBorder border = CellBorder.none; /// padding left float paddingLeft = 0; /// padding top float paddingTop = 0; /// padding right float paddingRight = 0; /// padding bottom float paddingBottom = 0; HaruCMYKColor fillColor = HaruCMYKColor(0, 0, 0, 0); // white HaruCMYKColor borderColor = HaruCMYKColor(0, 0, 0, 1); // black } /** * Cell border */ enum CellBorder { none = 0x0, top = 0x01, right = 0x02, bottom = 0x04, left = 0x08, all = 0x0F }
D
<?xml version="1.0" encoding="UTF-8"?> <di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi"> <pageList> <availablePage> <emfPageIdentifier href="extractSuperclassRef.notation#_9kH7EMSUEeOqnqPzoaAjHw"/> </availablePage> <availablePage> <emfPageIdentifier href="extractSuperclassRef.notation#_OYW6AMSlEeOqnqPzoaAjHw"/> </availablePage> <availablePage> <emfPageIdentifier href="extractSuperclassRef.notation#_YgAfcMSlEeOqnqPzoaAjHw"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="extractSuperclassRef.notation#_9kH7EMSUEeOqnqPzoaAjHw"/> </children> <children> <emfPageIdentifier href="extractSuperclassRef.notation#_OYW6AMSlEeOqnqPzoaAjHw"/> </children> <children> <emfPageIdentifier href="extractSuperclassRef.notation#_YgAfcMSlEeOqnqPzoaAjHw"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
instance Pal_220_Schiffswache(Npc_Default) { name[0] = NAME_Ritter; guild = GIL_PAL; id = 220; voice = 4; flags = 0; npcType = npctype_main; B_SetAttributesToChapter(self,6); fight_tactic = FAI_HUMAN_MASTER; EquipItem(self,ItMw_1H_Blessed_02); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_N_NormalBart05,BodyTex_N,ItAr_PAL_M_NPC); Mdl_SetModelFatness(self,0); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,80); daily_routine = Rtn_Start_220; }; func void Rtn_Start_220() { TA_Stand_Plaz(7,0,9,0,"PLAZ_07"); TA_Stand_Guarding(9,0,18,0,"SHIP_DECK_05"); TA_Stand_Plaz(18,0,20,0,"PLAZ_07"); TA_Stand_Guarding(20,0,7,0,"SHIP_DECK_05"); }; func void Rtn_ShipFree_220() { TA_Stand_WP(8,0,23,0,"NW_CITY_UPTOWNPARADE_01"); TA_Stand_WP(23,0,8,0,"NW_CITY_UPTOWNPARADE_01"); };
D
instance SLD_737_Torlof(Npc_Default) { name[0] = "Torlof"; npcType = npctype_main; guild = GIL_SLD; level = 19; voice = 4; id = 737; attribute[ATR_STRENGTH] = 95; attribute[ATR_DEXTERITY] = 75; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 268; attribute[ATR_HITPOINTS] = 268; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",0,1,"Hum_Head_Pony",53,1,sld_armor_h); B_Scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_MASTER; Npc_SetTalentSkill(self,NPC_TALENT_1H,2); Npc_SetTalentSkill(self,NPC_TALENT_2H,1); Npc_SetTalentSkill(self,NPC_TALENT_BOW,1); EquipItem(self,Torlofs_Axt); EquipItem(self,ItRw_Bow_Long_01); CreateInvItems(self,ItAmArrow,20); CreateInvItems(self,ItFoRice,8); CreateInvItems(self,ItFoLoaf,5); CreateInvItems(self,ItFoMutton,4); CreateInvItems(self,ItMiNugget,15); CreateInvItems(self,ItFoBooze,5); CreateInvItems(self,ItLsTorch,5); CreateInvItems(self,ItFo_Potion_Health_02,7); CreateInvItem(self,ItMi_Stuff_Barbknife_01); CreateInvItem(self,ItMi_Stuff_Mug_01); daily_routine = Rtn_start_737; }; func void Rtn_start_737() { TA_Smalltalk(8,0,23,0,"NC_HUT04_OUT"); TA_Boss(23,0,1,15,"NC_HUT04_OUT"); TA_Sleep(1,15,8,0,"NC_HUT04_IN"); };
D
/** * Authors: Szabo Bogdan <szabobogdan@yahoo.com> * Date: 9 8, 2015 * License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. * Copyright: Public Domain */ module swaggerize.parser; import swaggerize.definitions; import vibe.data.json; import yaml; import std.file, std.traits, std.stdio; Json toJson(Node node) { Json item; if(node.isMapping) { item = Json.emptyObject; foreach(string key, Node value; node) { item[key] = value.toJson; } } if(node.isSequence) { item = Json.emptyArray; foreach(Node value; node) { item ~= value.toJson; } } if(node.isScalar) { if(node.isType!bool) { item = Json(node.as!bool); } else if(node.isType!long) { item = Json(node.as!long); } else { item = Json(node.as!string); } } return item; } Swagger updateReferences(Swagger definition) { foreach(name, schema; definition.definitions) { schema.updateReference(definition); } foreach(url, path; definition.paths) { foreach(operationName, operation; path) { foreach(responseCode, response; operation.responses) { definition.paths[url][operationName].responses[responseCode].schema.updateReference(definition); } foreach(i, parameter; path[operationName].parameters) { definition.paths[url][operationName].parameters[i].updateReference(definition); } } foreach(i, parameter; path.parameters) { definition.paths[url].parameters[i].updateReference(definition); } } return definition; } Swagger swaggerizeJson(string path) { return readText(path).deserializeJson!Swagger.updateReferences; } Swagger swaggerizeYaml(string path) { return Loader(path).load.toJson.deserializeJson!Swagger.updateReferences; }
D
module UnrealScript.TribesGame.TrPlayerVoice_T2_Male01; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.TribesGame.TrPlayerVoice; extern(C++) interface TrPlayerVoice_T2_Male01 : TrPlayerVoice { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrPlayerVoice_T2_Male01")); } private static __gshared TrPlayerVoice_T2_Male01 mDefaultProperties; @property final static TrPlayerVoice_T2_Male01 DefaultProperties() { mixin(MGDPC("TrPlayerVoice_T2_Male01", "TrPlayerVoice_T2_Male01 TribesGame.Default__TrPlayerVoice_T2_Male01")); } }
D
// Written in the D programming language. /** * Builtin SIMD intrinsics * * Source: $(DRUNTIMESRC core/_simd.d) * * Copyright: Copyright Digital Mars 2012. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: $(HTTP digitalmars.com, Walter Bright), */ module core.simd; pure: nothrow: @safe: @nogc: /******************************* * Create a vector type. * * Parameters: * T = one of double[2], float[4], void[16], byte[16], ubyte[16], * short[8], ushort[8], int[4], uint[4], long[2], ulong[2]. * For 256 bit vectors, * one of double[4], float[8], void[32], byte[32], ubyte[32], * short[16], ushort[16], int[8], uint[8], long[4], ulong[4] */ template Vector(T) { /* __vector is compiler magic, hide it behind a template. * The compiler will reject T's that don't work. */ alias __vector(T) Vector; } /* Handy aliases */ static if (is(Vector!(void[16]))) alias Vector!(void[16]) void16; /// static if (is(Vector!(double[2]))) alias Vector!(double[2]) double2; /// static if (is(Vector!(float[4]))) alias Vector!(float[4]) float4; /// static if (is(Vector!(byte[16]))) alias Vector!(byte[16]) byte16; /// static if (is(Vector!(ubyte[16]))) alias Vector!(ubyte[16]) ubyte16; /// static if (is(Vector!(short[8]))) alias Vector!(short[8]) short8; /// static if (is(Vector!(ushort[8]))) alias Vector!(ushort[8]) ushort8; /// static if (is(Vector!(int[4]))) alias Vector!(int[4]) int4; /// static if (is(Vector!(uint[4]))) alias Vector!(uint[4]) uint4; /// static if (is(Vector!(long[2]))) alias Vector!(long[2]) long2; /// static if (is(Vector!(ulong[2]))) alias Vector!(ulong[2]) ulong2; /// version (all) // LDC: was D_AVX { static if (is(Vector!(void[32]))) alias Vector!(void[32]) void32; /// static if (is(Vector!(double[4]))) alias Vector!(double[4]) double4; /// static if (is(Vector!(float[8]))) alias Vector!(float[8]) float8; /// static if (is(Vector!(byte[32]))) alias Vector!(byte[32]) byte32; /// static if (is(Vector!(ubyte[32]))) alias Vector!(ubyte[32]) ubyte32; /// static if (is(Vector!(short[16]))) alias Vector!(short[16]) short16; /// static if (is(Vector!(ushort[16]))) alias Vector!(ushort[16]) ushort16; /// static if (is(Vector!(int[8]))) alias Vector!(int[8]) int8; /// static if (is(Vector!(uint[8]))) alias Vector!(uint[8]) uint8; /// static if (is(Vector!(long[4]))) alias Vector!(long[4]) long4; /// static if (is(Vector!(ulong[4]))) alias Vector!(ulong[4]) ulong4; /// } version (LDC) { public import ldc.simd : loadUnaligned, storeUnaligned; /********************* * Emit prefetch instruction. * Params: * address = address to be prefetched * writeFetch = true for write fetch, false for read fetch * locality = 0..3 (0 meaning least local, 3 meaning most local) */ pragma(inline, true) void prefetch(bool writeFetch, ubyte locality)(const(void)* address) { import ldc.intrinsics : llvm_prefetch; static assert(locality < 4, "0..3 expected for locality"); enum dataCache = 1; llvm_prefetch(address, writeFetch, locality, dataCache); } unittest { float[4] data = [ 0.5, 1, 1.5, 2 ]; auto ptr = &data[0]; prefetch!(false, 0)(ptr); auto v = loadUnaligned!float4(ptr); v *= 2; storeUnaligned!float4(v, ptr); float[4] expected = [ 1, 2, 3, 4 ]; assert(data == expected); } } else version (D_SIMD) { /** XMM opcodes that conform to the following: * * opcode xmm1,xmm2/mem * * and do not have side effects (i.e. do not write to memory). */ enum XMM { ADDSS = 0xF30F58, ADDSD = 0xF20F58, ADDPS = 0x000F58, ADDPD = 0x660F58, PADDB = 0x660FFC, PADDW = 0x660FFD, PADDD = 0x660FFE, PADDQ = 0x660FD4, SUBSS = 0xF30F5C, SUBSD = 0xF20F5C, SUBPS = 0x000F5C, SUBPD = 0x660F5C, PSUBB = 0x660FF8, PSUBW = 0x660FF9, PSUBD = 0x660FFA, PSUBQ = 0x660FFB, MULSS = 0xF30F59, MULSD = 0xF20F59, MULPS = 0x000F59, MULPD = 0x660F59, PMULLW = 0x660FD5, DIVSS = 0xF30F5E, DIVSD = 0xF20F5E, DIVPS = 0x000F5E, DIVPD = 0x660F5E, PAND = 0x660FDB, POR = 0x660FEB, UCOMISS = 0x000F2E, UCOMISD = 0x660F2E, XORPS = 0x000F57, XORPD = 0x660F57, // Use STO and LOD instead of MOV to distinguish the direction STOSS = 0xF30F11, STOSD = 0xF20F11, STOAPS = 0x000F29, STOAPD = 0x660F29, STODQA = 0x660F7F, STOD = 0x660F7E, // MOVD reg/mem64, xmm 66 0F 7E /r STOQ = 0x660FD6, LODSS = 0xF30F10, LODSD = 0xF20F10, LODAPS = 0x000F28, LODAPD = 0x660F28, LODDQA = 0x660F6F, LODD = 0x660F6E, // MOVD xmm, reg/mem64 66 0F 6E /r LODQ = 0xF30F7E, LODDQU = 0xF30F6F, // MOVDQU xmm1, xmm2/mem128 F3 0F 6F /r STODQU = 0xF30F7F, // MOVDQU xmm1/mem128, xmm2 F3 0F 7F /r MOVDQ2Q = 0xF20FD6, // MOVDQ2Q mmx, xmm F2 0F D6 /r MOVHLPS = 0x0F12, // MOVHLPS xmm1, xmm2 0F 12 /r LODHPD = 0x660F16, STOHPD = 0x660F17, // MOVHPD mem64, xmm 66 0F 17 /r LODHPS = 0x0F16, STOHPS = 0x0F17, MOVLHPS = 0x0F16, LODLPD = 0x660F12, STOLPD = 0x660F13, LODLPS = 0x0F12, STOLPS = 0x0F13, MOVMSKPD = 0x660F50, MOVMSKPS = 0x0F50, MOVNTDQ = 0x660FE7, MOVNTI = 0x0FC3, MOVNTPD = 0x660F2B, MOVNTPS = 0x0F2B, MOVNTQ = 0x0FE7, MOVQ2DQ = 0xF30FD6, LODUPD = 0x660F10, STOUPD = 0x660F11, LODUPS = 0x0F10, STOUPS = 0x0F11, PACKSSDW = 0x660F6B, PACKSSWB = 0x660F63, PACKUSWB = 0x660F67, PADDSB = 0x660FEC, PADDSW = 0x660FED, PADDUSB = 0x660FDC, PADDUSW = 0x660FDD, PANDN = 0x660FDF, PCMPEQB = 0x660F74, PCMPEQD = 0x660F76, PCMPEQW = 0x660F75, PCMPGTB = 0x660F64, PCMPGTD = 0x660F66, PCMPGTW = 0x660F65, PMADDWD = 0x660FF5, PSLLW = 0x660FF1, PSLLD = 0x660FF2, PSLLQ = 0x660FF3, PSRAW = 0x660FE1, PSRAD = 0x660FE2, PSRLW = 0x660FD1, PSRLD = 0x660FD2, PSRLQ = 0x660FD3, PSUBSB = 0x660FE8, PSUBSW = 0x660FE9, PSUBUSB = 0x660FD8, PSUBUSW = 0x660FD9, PUNPCKHBW = 0x660F68, PUNPCKHDQ = 0x660F6A, PUNPCKHWD = 0x660F69, PUNPCKLBW = 0x660F60, PUNPCKLDQ = 0x660F62, PUNPCKLWD = 0x660F61, PXOR = 0x660FEF, ANDPD = 0x660F54, ANDPS = 0x0F54, ANDNPD = 0x660F55, ANDNPS = 0x0F55, CMPPS = 0x0FC2, CMPPD = 0x660FC2, CMPSD = 0xF20FC2, CMPSS = 0xF30FC2, COMISD = 0x660F2F, COMISS = 0x0F2F, CVTDQ2PD = 0xF30FE6, CVTDQ2PS = 0x0F5B, CVTPD2DQ = 0xF20FE6, CVTPD2PI = 0x660F2D, CVTPD2PS = 0x660F5A, CVTPI2PD = 0x660F2A, CVTPI2PS = 0x0F2A, CVTPS2DQ = 0x660F5B, CVTPS2PD = 0x0F5A, CVTPS2PI = 0x0F2D, CVTSD2SI = 0xF20F2D, CVTSD2SS = 0xF20F5A, CVTSI2SD = 0xF20F2A, CVTSI2SS = 0xF30F2A, CVTSS2SD = 0xF30F5A, CVTSS2SI = 0xF30F2D, CVTTPD2PI = 0x660F2C, CVTTPD2DQ = 0x660FE6, CVTTPS2DQ = 0xF30F5B, CVTTPS2PI = 0x0F2C, CVTTSD2SI = 0xF20F2C, CVTTSS2SI = 0xF30F2C, MASKMOVDQU = 0x660FF7, MASKMOVQ = 0x0FF7, MAXPD = 0x660F5F, MAXPS = 0x0F5F, MAXSD = 0xF20F5F, MAXSS = 0xF30F5F, MINPD = 0x660F5D, MINPS = 0x0F5D, MINSD = 0xF20F5D, MINSS = 0xF30F5D, ORPD = 0x660F56, ORPS = 0x0F56, PAVGB = 0x660FE0, PAVGW = 0x660FE3, PMAXSW = 0x660FEE, //PINSRW = 0x660FC4, PMAXUB = 0x660FDE, PMINSW = 0x660FEA, PMINUB = 0x660FDA, //PMOVMSKB = 0x660FD7, PMULHUW = 0x660FE4, PMULHW = 0x660FE5, PMULUDQ = 0x660FF4, PSADBW = 0x660FF6, PUNPCKHQDQ = 0x660F6D, PUNPCKLQDQ = 0x660F6C, RCPPS = 0x0F53, RCPSS = 0xF30F53, RSQRTPS = 0x0F52, RSQRTSS = 0xF30F52, SQRTPD = 0x660F51, SHUFPD = 0x660FC6, SHUFPS = 0x0FC6, SQRTPS = 0x0F51, SQRTSD = 0xF20F51, SQRTSS = 0xF30F51, UNPCKHPD = 0x660F15, UNPCKHPS = 0x0F15, UNPCKLPD = 0x660F14, UNPCKLPS = 0x0F14, PSHUFD = 0x660F70, PSHUFHW = 0xF30F70, PSHUFLW = 0xF20F70, PSHUFW = 0x0F70, PSLLDQ = 0x07660F73, PSRLDQ = 0x03660F73, //PREFETCH = 0x0F18, // SSE3 Pentium 4 (Prescott) ADDSUBPD = 0x660FD0, ADDSUBPS = 0xF20FD0, HADDPD = 0x660F7C, HADDPS = 0xF20F7C, HSUBPD = 0x660F7D, HSUBPS = 0xF20F7D, MOVDDUP = 0xF20F12, MOVSHDUP = 0xF30F16, MOVSLDUP = 0xF30F12, LDDQU = 0xF20FF0, MONITOR = 0x0F01C8, MWAIT = 0x0F01C9, // SSSE3 PALIGNR = 0x660F3A0F, PHADDD = 0x660F3802, PHADDW = 0x660F3801, PHADDSW = 0x660F3803, PABSB = 0x660F381C, PABSD = 0x660F381E, PABSW = 0x660F381D, PSIGNB = 0x660F3808, PSIGND = 0x660F380A, PSIGNW = 0x660F3809, PSHUFB = 0x660F3800, PMADDUBSW = 0x660F3804, PMULHRSW = 0x660F380B, PHSUBD = 0x660F3806, PHSUBW = 0x660F3805, PHSUBSW = 0x660F3807, // SSE4.1 BLENDPD = 0x660F3A0D, BLENDPS = 0x660F3A0C, BLENDVPD = 0x660F3815, BLENDVPS = 0x660F3814, DPPD = 0x660F3A41, DPPS = 0x660F3A40, EXTRACTPS = 0x660F3A17, INSERTPS = 0x660F3A21, MPSADBW = 0x660F3A42, PBLENDVB = 0x660F3810, PBLENDW = 0x660F3A0E, PEXTRD = 0x660F3A16, PEXTRQ = 0x660F3A16, PINSRB = 0x660F3A20, PINSRD = 0x660F3A22, PINSRQ = 0x660F3A22, MOVNTDQA = 0x660F382A, PACKUSDW = 0x660F382B, PCMPEQQ = 0x660F3829, PEXTRB = 0x660F3A14, PHMINPOSUW = 0x660F3841, PMAXSB = 0x660F383C, PMAXSD = 0x660F383D, PMAXUD = 0x660F383F, PMAXUW = 0x660F383E, PMINSB = 0x660F3838, PMINSD = 0x660F3839, PMINUD = 0x660F383B, PMINUW = 0x660F383A, PMOVSXBW = 0x660F3820, PMOVSXBD = 0x660F3821, PMOVSXBQ = 0x660F3822, PMOVSXWD = 0x660F3823, PMOVSXWQ = 0x660F3824, PMOVSXDQ = 0x660F3825, PMOVZXBW = 0x660F3830, PMOVZXBD = 0x660F3831, PMOVZXBQ = 0x660F3832, PMOVZXWD = 0x660F3833, PMOVZXWQ = 0x660F3834, PMOVZXDQ = 0x660F3835, PMULDQ = 0x660F3828, PMULLD = 0x660F3840, PTEST = 0x660F3817, ROUNDPD = 0x660F3A09, ROUNDPS = 0x660F3A08, ROUNDSD = 0x660F3A0B, ROUNDSS = 0x660F3A0A, // SSE4.2 PCMPESTRI = 0x660F3A61, PCMPESTRM = 0x660F3A60, PCMPISTRI = 0x660F3A63, PCMPISTRM = 0x660F3A62, PCMPGTQ = 0x660F3837, //CRC32 // SSE4a (AMD only) // EXTRQ,INSERTQ,MOVNTSD,MOVNTSS // POPCNT and LZCNT (have their own CPUID bits) POPCNT = 0xF30FB8, // LZCNT } /** * Generate two operand instruction with XMM 128 bit operands. * * This is a compiler magic function - it doesn't behave like * regular D functions. * * Parameters: * opcode = any of the XMM opcodes; it must be a compile time constant * op1 = first operand * op2 = second operand * Returns: * result of opcode */ pure @safe V1 simd(XMM opcode, V1, V2)(V1 op1, V2 op2) if (is(V1 == __vector) && is(V2 == __vector)) { pragma(inline, true); return cast(V1)__simd(opcode, op1, op2); } pure @safe void16 __simd(XMM opcode, void16 op1, void16 op2); // intrinsic /// unittest { float4 a; a = simd!(XMM.PXOR)(a, a); } /** * Unary SIMD instructions. */ pure @safe V1 simd(XMM opcode, V1)(V1 op1) if (is(V1 == __vector)) { pragma(inline, true); return cast(V1)__simd(opcode, op1); } /// pure @safe V1 simd(XMM opcode, V1)(double d) if (is(V1 == __vector)) { pragma(inline, true); return cast(V1)__simd(opcode, d); } /// pure @safe V1 simd(XMM opcode, V1)(float f) if (is(V1 == __vector)) { pragma(inline, true); return cast(V1)__simd(opcode, f); } pure @safe void16 __simd(XMM opcode, void16 op1); // intrinsic pure @safe void16 __simd(XMM opcode, double d); // intrinsic pure @safe void16 __simd(XMM opcode, float f); // intrinsic /// unittest { float4 a; a = simd!(XMM.LODSS)(a); } /**** * For instructions: * CMPPD, CMPSS, CMPSD, CMPPS, * PSHUFD, PSHUFHW, PSHUFLW, * BLENDPD, BLENDPS, DPPD, DPPS, * MPSADBW, PBLENDW, * ROUNDPD, ROUNDPS, ROUNDSD, ROUNDSS * Parameters: * opcode = any of the above XMM opcodes; it must be a compile time constant * op1 = first operand * op2 = second operand * imm8 = third operand; must be a compile time constant * Returns: * result of opcode */ pure @safe V1 simd(XMM opcode, ubyte imm8, V1, V2)(V1 op1, V2 op2) if (is(V1 == __vector) && is(V2 == __vector)) { pragma(inline, true); return cast(V1)__simd(opcode, op1, op2, imm8); } pure @safe void16 __simd(XMM opcode, void16 op1, void16 op2, ubyte imm8); // intrinsic /// unittest { float4 a; a = simd!(XMM.CMPPD, 0x7A)(a, a); } /*** * For instructions with the imm8 version: * PSLLD, PSLLQ, PSLLW, PSRAD, PSRAW, PSRLD, PSRLQ, PSRLW, * PSRLDQ, PSLLDQ * Parameters: * opcode = any of the XMM opcodes; it must be a compile time constant * op1 = first operand * imm8 = second operand; must be a compile time constant * Returns: * result of opcode */ pure @safe V1 simd(XMM opcode, ubyte imm8, V1)(V1 op1) if (is(V1 == __vector)) { pragma(inline, true); return cast(V1)__simd_ib(opcode, op1, imm8); } pure @safe void16 __simd_ib(XMM opcode, void16 op1, ubyte imm8); // intrinsic /// unittest { float4 a; a = simd!(XMM.PSRLQ, 0x7A)(a); } /***** * For "store" operations of the form: * op1 op= op2 * Returns: * op2 * These cannot be marked as pure, as semantic() doesn't check them. */ @safe V1 simd_sto(XMM opcode, V1, V2)(V1 op1, V2 op2) if (is(V1 == __vector) && is(V2 == __vector)) { pragma(inline, true); return cast(V1)__simd_sto(opcode, op1, op2); } /// @safe V1 simd_stod(XMM opcode, V1, V2)(double op1, V1 op2) if (is(V1 == __vector)) { pragma(inline, true); return cast(V1)__simd_sto(opcode, op1, op2); } /// @safe V1 simd_stof(XMM opcode, V1)(float op1, V1 op2) if (is(V1 == __vector)) { pragma(inline, true); return cast(V1)__simd_sto(opcode, op1, op2); } @safe void16 __simd_sto(XMM opcode, void16 op1, void16 op2); // intrinsic @safe void16 __simd_sto(XMM opcode, double op1, void16 op2); // intrinsic @safe void16 __simd_sto(XMM opcode, float op1, void16 op2); // intrinsic /// unittest { void16 a; float f = 1; double d = 1; cast(void)simd_sto!(XMM.STOUPS)(a, a); //simd_sto!(XMM.STOUPS)(f, a); //simd_sto!(XMM.STOUPS)(d, a); } /* The following use overloading to ensure correct typing. * Compile with inlining on for best performance. */ pure @safe short8 pcmpeq()(short8 v1, short8 v2) { return cast(short8)__simd(XMM.PCMPEQW, v1, v2); } pure @safe ushort8 pcmpeq()(ushort8 v1, ushort8 v2) { return cast(ushort8)__simd(XMM.PCMPEQW, v1, v2); } /********************* * Emit prefetch instruction. * Params: * address = address to be prefetched * writeFetch = true for write fetch, false for read fetch * locality = 0..3 (0 meaning least local, 3 meaning most local) * Note: * The Intel mappings are: * $(TABLE * $(THEAD writeFetch, locality, Instruction) * $(TROW false, 0, prefetchnta) * $(TROW false, 1, prefetch2) * $(TROW false, 2, prefetch1) * $(TROW false, 3, prefetch0) * $(TROW false, 0, prefetchw) * $(TROW false, 1, prefetchw) * $(TROW false, 2, prefetchw) * $(TROW false, 3, prefetchw) * ) */ void prefetch(bool writeFetch, ubyte locality)(const(void)* address) { static if (writeFetch) __prefetch(address, 4); else static if (locality < 4) __prefetch(address, 3 - locality); else static assert(0, "0..3 expected for locality"); } private void __prefetch(const(void*) address, ubyte encoding); /************************************* * Load unaligned vector from address. * This is a compiler intrinsic. * Params: * p = pointer to vector * Returns: * vector */ V loadUnaligned(V)(const V* p) if (is(V == void16) || is(V == byte16) || is(V == ubyte16) || is(V == short8) || is(V == ushort8) || is(V == int4) || is(V == uint4) || is(V == long2) || is(V == ulong2) || is(V == double2) || is(V == float4)) { pragma(inline, true); static if (is(V == double2)) return cast(V)__simd(XMM.LODUPD, *cast(const void16*)p); else static if (is(V == float4)) return cast(V)__simd(XMM.LODUPS, *cast(const void16*)p); else return cast(V)__simd(XMM.LODDQU, *cast(const void16*)p); } } // D_SIMD (keep loadUnaligned unittest for LDC) @system unittest { // Memory to load into the vector: // Should have enough data to test all 16-byte alignments, and still // have room for a 16-byte vector ubyte[32] data; foreach (i; 0..data.length) { data[i] = cast(ubyte)i; } // to test all alignments from 1 ~ 16 foreach (i; 0..16) { ubyte* d = &data[i]; void test(T)() { // load the data T v = loadUnaligned(cast(T*)d); // check that the data was loaded correctly ubyte* ptrToV = cast(ubyte*)&v; foreach (j; 0..T.sizeof) { assert(ptrToV[j] == d[j]); } } test!void16(); test!byte16(); test!ubyte16(); test!short8(); test!ushort8(); test!int4(); test!uint4(); test!long2(); test!ulong2(); test!double2(); test!float4(); } } version (D_SIMD) // LDC { /************************************* * Store vector to unaligned address. * This is a compiler intrinsic. * Params: * p = pointer to vector * value = value to store * Returns: * value */ V storeUnaligned(V)(V* p, V value) if (is(V == void16) || is(V == byte16) || is(V == ubyte16) || is(V == short8) || is(V == ushort8) || is(V == int4) || is(V == uint4) || is(V == long2) || is(V == ulong2) || is(V == double2) || is(V == float4)) { pragma(inline, true); static if (is(V == double2)) return cast(V)__simd_sto(XMM.STOUPD, *cast(void16*)p, value); else static if (is(V == float4)) return cast(V)__simd_sto(XMM.STOUPS, *cast(void16*)p, value); else return cast(V)__simd_sto(XMM.STODQU, *cast(void16*)p, value); } } // D_SIMD (keep storeUnaligned unittest for LDC) @system unittest { // Memory to store the vector to: // Should have enough data to test all 16-byte alignments, and still // have room for a 16-byte vector ubyte[32] data; // to test all alignments from 1 ~ 16 foreach (i; 0..16) { ubyte* d = &data[i]; void test(T)() { T v; // populate v` with data ubyte* ptrToV = cast(ubyte*)&v; foreach (j; 0..T.sizeof) { ptrToV[j] = cast(ubyte)j; } // store `v` to location pointed to by `d` storeUnaligned(cast(T*)d, v); // check that the the data was stored correctly foreach (j; 0..T.sizeof) { assert(ptrToV[j] == d[j]); } } test!void16(); test!byte16(); test!ubyte16(); test!short8(); test!ushort8(); test!int4(); test!uint4(); test!long2(); test!ulong2(); test!double2(); test!float4(); } } //} no D_SIMD scope to terminate for LDC
D
/** * item.d * tower * April 30, 2013 * Brandon Surmanski */ module entity.item; import c.lua; import gl.glb.glb; import std.math; import entity.entity; import entity.sprite; import math.matrix; import camera; class ItemInfo : SpriteInfo { bool autopickup; bool holdable; int type; Texture texture = void; this(lua_State *l, string textureFilenm, int frames = 1, int sides = 1) { super(l,textureFilenm, frames, sides); } ~this() { destroy(texture); texture = Texture.init; } } class Item : Sprite { this(int id) { super(id); } @property override ItemInfo info() { return cast(ItemInfo) _info; } static string typeName() { return "Item"; } override void update(float dt) { super.update(dt); } }
D
// Written in the D programming language. /** This module contains common layouts implementations. Layouts are similar to the same in Android. LinearLayout - either VerticalLayout or HorizontalLayout. VerticalLayout - just LinearLayout with orientation=Orientation.Vertical HorizontalLayout - just LinearLayout with orientation=Orientation.Vertical FrameLayout - children occupy the same place, usually one one is visible at a time TableLayout - children aligned into rows and columns Synopsis: ---- import dlangui.widgets.layouts; ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module dlangui.widgets.layouts; public import dlangui.widgets.widget; /// helper for layouts struct LayoutItem { Widget _widget; Orientation _orientation; int _measuredSize; // primary size for orientation int _secondarySize; // other measured size int _layoutSize; // layout size for primary dimension int _minSize; // min size for primary dimension int _maxSize; // max size for primary dimension int _weight; // weight bool _fillParent; bool _isResizer; int _resizerDelta; @property bool canExtend() { return !_isResizer; } @property int measuredSize() { return _measuredSize; } @property int minSize() { return _measuredSize; } @property int maxSize() { return _maxSize; } @property int layoutSize() { return _layoutSize; } @property int secondarySize() { return _layoutSize; } @property bool fillParent() { return _fillParent; } @property int weight() { return _weight; } // just to help GC void clear() { _widget = null; } /// sets item for widget void set(Widget widget, Orientation orientation) { _widget = widget; _orientation = orientation; if (cast(ResizerWidget)widget) { _isResizer = true; _resizerDelta = (cast(ResizerWidget)widget).delta; } } /// set item and measure it void measure(int parentWidth, int parentHeight) { _widget.measure(parentWidth, parentHeight); _weight = _widget.layoutWeight; if (_orientation == Orientation.Horizontal) { _secondarySize = _widget.measuredHeight; _measuredSize = _widget.measuredWidth; _minSize = _widget.minWidth; _maxSize = _widget.maxWidth; _layoutSize = _widget.layoutWidth; } else { _secondarySize = _widget.measuredWidth; _measuredSize = _widget.measuredHeight; _minSize = _widget.minHeight; _maxSize = _widget.maxHeight; _layoutSize = _widget.layoutHeight; } _fillParent = _layoutSize == FILL_PARENT; } void layout(ref Rect rc) { _widget.layout(rc); } } /// helper class for layouts class LayoutItems { Orientation _orientation; LayoutItem[] _list; int _count; int _totalSize; int _maxSecondarySize; Point _measureParentSize; int _layoutWidth; int _layoutHeight; void setLayoutParams(Orientation orientation, int layoutWidth, int layoutHeight) { _orientation = orientation; _layoutWidth = layoutWidth; _layoutHeight = layoutHeight; } /// fill widget layout list with Visible or Invisible items, measure them Point measure(int parentWidth, int parentHeight) { _totalSize = 0; _maxSecondarySize = 0; _measureParentSize.x = parentWidth; _measureParentSize.y = parentHeight; // measure for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; item.measure(parentWidth, parentHeight); if (_maxSecondarySize < item._secondarySize) _maxSecondarySize = item._secondarySize; _totalSize += item._measuredSize; } return _orientation == Orientation.Horizontal ? Point(_totalSize, _maxSecondarySize) : Point(_maxSecondarySize, _totalSize); } /// fill widget layout list with Visible or Invisible items, measure them void setWidgets(ref WidgetList widgets) { // remove old items, if any clear(); // reserve space if (_list.length < widgets.count) _list.length = widgets.count; // copy for (int i = 0; i < widgets.count; i++) { Widget item = widgets.get(i); if (item.visibility == Visibility.Gone) continue; _list[_count++].set(item, _orientation); } } void layout(Rect rc) { // measure again - available area could be changed if (_measureParentSize.x != rc.width || _measureParentSize.y != rc.height) measure(rc.width, rc.height); int contentSecondarySize = 0; int contentHeight = 0; int totalSize = 0; int delta = 0; int resizableSize = 0; int resizableWeight = 0; int nonresizableSize = 0; int nonresizableWeight = 0; int maxItem = 0; // max item dimention // calc total size int visibleCount = cast(int)_list.length; int resizersSize = 0; for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; int weight = item.weight; int size = item.measuredSize; totalSize += size; if (maxItem < item.secondarySize) maxItem = item.secondarySize; if (item._isResizer) { resizersSize += size; } else if (item.fillParent) { resizableWeight += weight; resizableSize += size * weight; } else { nonresizableWeight += weight; nonresizableSize += size * weight; } } if (_orientation == Orientation.Vertical) { if (_layoutWidth == WRAP_CONTENT && maxItem < rc.width) contentSecondarySize = maxItem; else contentSecondarySize = rc.width; if (_layoutHeight == FILL_PARENT || totalSize > rc.height) delta = rc.height - totalSize; // total space to add to fit } else { if (_layoutHeight == WRAP_CONTENT && maxItem < rc.height) contentSecondarySize = maxItem; else contentSecondarySize = rc.height; if (_layoutWidth == FILL_PARENT || totalSize > rc.width) delta = rc.width - totalSize; // total space to add to fit } // calculate resize options and scale bool needForceResize = false; bool needResize = false; int scaleFactor = 10000; // per weight unit if (delta != 0 && visibleCount > 0) { if (delta < 0) nonresizableSize += resizersSize; // allow to shrink resizers // need resize of some children needResize = true; // resize all if need to shrink or only resizable are too small to correct delta needForceResize = delta < 0 || resizableWeight == 0; // || resizableSize * 2 / 3 < delta; // do we need resize non-FILL_PARENT items? // calculate scale factor: weight / delta * 10000 if (needForceResize && nonresizableSize + resizableSize > 0) scaleFactor = 10000 * delta / (nonresizableSize + resizableSize); else if (resizableSize > 0) scaleFactor = 10000 * delta / resizableSize; else scaleFactor = 0; } //Log.d("VerticalLayout delta=", delta, ", nonres=", nonresizableWeight, ", res=", resizableWeight, ", scale=", scaleFactor); // find last resized - to allow fill space 1 pixel accurate int lastResized = -1; ResizerWidget resizer = null; int resizerIndex = -1; int resizerDelta = 0; for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; if ((item.fillParent || needForceResize) && (delta < 0 || item.canExtend)) { lastResized = i; } if (item._isResizer) { resizerIndex = i; resizerDelta = item._resizerDelta; } } // final resize and layout of children int position = 0; int deltaTotal = 0; for (int i = 0; i < _count; i++) { LayoutItem * item = &_list[i]; int layoutSize = item.layoutSize; int weight = item.weight; int size = item.measuredSize; if (needResize && (layoutSize == FILL_PARENT || needForceResize)) { // do resize int correction = (delta < 0 || item.canExtend) ? scaleFactor * weight * size / 10000 : 0; deltaTotal += correction; // for last resized, apply additional correction to resolve calculation inaccuracy if (i == lastResized) { correction += delta - deltaTotal; } size += correction; } // apply size Rect childRect = rc; if (_orientation == Orientation.Vertical) { // Vertical childRect.top += position; childRect.bottom = childRect.top + size; childRect.right = childRect.left + contentSecondarySize; item.layout(childRect); } else { // Horizontal childRect.left += position; childRect.right = childRect.left + size; childRect.bottom = childRect.top + contentSecondarySize; item.layout(childRect); } position += size; } } void clear() { for (int i = 0; i < _count; i++) _list[i].clear(); _count = 0; } ~this() { clear(); } } /** * Resizer control. * Put it between other items in LinearLayout to allow resizing its siblings. * While dragging, it will resize previous and next children in layout. */ class ResizerWidget : Widget { protected Orientation _orientation; protected Widget _previousWidget; protected Widget _nextWidget; protected string _styleVertical; protected string _styleHorizontal; this(string ID = null) { super(ID); _styleVertical = "RESIZER_VERTICAL"; _styleHorizontal = "RESIZER_HORIZONTAL"; trackHover = true; } @property bool validProps() { return _previousWidget && _nextWidget; } /// returns mouse cursor type for widget override uint getCursorType(int x, int y) { if (_orientation == Orientation.Vertical) { return CursorType.SizeNS; } else { return CursorType.SizeWE; } } protected void updateProps() { _previousWidget = null; _nextWidget = null; _orientation = Orientation.Vertical; LinearLayout parentLayout = cast(LinearLayout)_parent; if (parentLayout) { _orientation = parentLayout.orientation; int index = parentLayout.childIndex(this); _previousWidget = parentLayout.child(index - 1); _nextWidget = parentLayout.child(index + 1); } if (validProps) { if (_orientation == Orientation.Vertical) { styleId = _styleVertical; } else { styleId = _styleHorizontal; } } else { _previousWidget = null; _nextWidget = null; } } /** Measure widget according to desired width and height constraints. (Step 1 of two phase layout). */ override void measure(int parentWidth, int parentHeight) { updateProps(); if (_orientation == Orientation.Vertical) { } measuredContent(parentWidth, parentHeight, 7, 7); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { updateProps(); if (visibility == Visibility.Gone) { return; } _pos = rc; _needLayout = false; } protected int _delta; protected int _minDragDelta; protected int _maxDragDelta; protected bool _dragging; protected int _dragStartPosition; // drag start delta protected Point _dragStart; protected Rect _dragStartRect; protected Rect _scrollArea; @property int delta() { return _delta; } /// process mouse event; return true if event is processed by widget. override bool onMouseEvent(MouseEvent event) { // support onClick if (event.action == MouseAction.ButtonDown && event.button == MouseButton.Left) { setState(State.Pressed); _dragging = true; _dragStart.x = event.x; _dragStart.y = event.y; _dragStartPosition = _delta; _dragStartRect = _pos; _scrollArea = _pos; _minDragDelta = 0; _maxDragDelta = 0; if (validProps) { Rect r1 = _previousWidget.pos; Rect r2 = _nextWidget.pos; _scrollArea.left = r1.left; _scrollArea.right = r2.right; _scrollArea.top = r1.top; _scrollArea.bottom = r2.bottom; if (_orientation == Orientation.Vertical) { _minDragDelta = _scrollArea.top - _dragStartRect.top; _maxDragDelta = _scrollArea.bottom - _dragStartRect.bottom; } if (_delta < _minDragDelta) _delta = _minDragDelta; if (_delta > _maxDragDelta) _delta = _maxDragDelta; } return true; } if (event.action == MouseAction.FocusOut && _dragging) { return true; } if (event.action == MouseAction.Move && _dragging) { int delta = _orientation == Orientation.Vertical ? event.y - _dragStart.y : event.x - _dragStart.x; _delta = _dragStartPosition + delta; if (_delta < _minDragDelta) _delta = _minDragDelta; if (_delta > _maxDragDelta) _delta = _maxDragDelta; Rect rc = _dragStartRect; int offset; int space; if (_orientation == Orientation.Vertical) { rc.top += delta; rc.bottom += delta; if (rc.top < _scrollArea.top) { rc.top = _scrollArea.top; rc.bottom = _scrollArea.top + _dragStartRect.height; } else if (rc.bottom > _scrollArea.bottom) { rc.top = _scrollArea.bottom - _dragStartRect.height; rc.bottom = _scrollArea.bottom; } offset = rc.top - _scrollArea.top; space = _scrollArea.height - rc.height; } else { rc.left += delta; rc.right += delta; if (rc.left < _scrollArea.left) { rc.left = _scrollArea.left; rc.right = _scrollArea.left + _dragStartRect.width; } else if (rc.right > _scrollArea.right) { rc.left = _scrollArea.right - _dragStartRect.width; rc.right = _scrollArea.right; } offset = rc.left - _scrollArea.left; space = _scrollArea.width - rc.width; } //_pos = rc; //int position = space > 0 ? _minValue + offset * (_maxValue - _minValue - _pageSize) / space : 0; requestLayout(); invalidate(); //onIndicatorDragging(_dragStartPosition, position); return true; } if (event.action == MouseAction.ButtonUp && event.button == MouseButton.Left) { resetState(State.Pressed); if (_dragging) { //sendScrollEvent(ScrollAction.SliderReleased, _position); _dragging = false; } return true; } if (event.action == MouseAction.Move && trackHover) { if (!(state & State.Hovered)) { Log.d("Hover ", id); setState(State.Hovered); } return true; } if ((event.action == MouseAction.Leave || event.action == MouseAction.Cancel) && trackHover) { Log.d("Leave ", id); resetState(State.Hovered); return true; } if (event.action == MouseAction.Cancel) { Log.d("SliderButton.onMouseEvent event.action == MouseAction.Cancel"); resetState(State.Pressed); _dragging = false; return true; } return false; } } class LinearLayout : WidgetGroup { protected Orientation _orientation = Orientation.Vertical; /// returns linear layout orientation (Vertical, Horizontal) @property Orientation orientation() { return _orientation; } /// sets linear layout orientation @property LinearLayout orientation(Orientation value) { _orientation = value; requestLayout(); return this; } this(string ID = null) { super(ID); _layoutItems = new LayoutItems(); } LayoutItems _layoutItems; /// Measure widget according to desired width and height constraints. (Step 1 of two phase layout). override void measure(int parentWidth, int parentHeight) { Rect m = margins; Rect p = padding; // calc size constraints for children int pwidth = parentWidth; int pheight = parentHeight; if (parentWidth != SIZE_UNSPECIFIED) pwidth -= m.left + m.right + p.left + p.right; if (parentHeight != SIZE_UNSPECIFIED) pheight -= m.top + m.bottom + p.top + p.bottom; // measure children _layoutItems.setLayoutParams(orientation, layoutWidth, layoutHeight); _layoutItems.setWidgets(_children); Point sz = _layoutItems.measure(pwidth, pheight); measuredContent(parentWidth, parentHeight, sz.x, sz.y); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { _needLayout = false; if (visibility == Visibility.Gone) { return; } _pos = rc; applyMargins(rc); applyPadding(rc); _layoutItems.layout(rc); } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Visible) continue; item.onDraw(buf); } } } class VerticalLayout : LinearLayout { this(string ID = null) { super(ID); orientation = Orientation.Vertical; } } class HorizontalLayout : LinearLayout { this(string ID = null) { super(ID); orientation = Orientation.Horizontal; } } /// place all children into same place (usually, only one child should be visible at a time) class FrameLayout : WidgetGroup { this(string ID) { super(ID); } /// Measure widget according to desired width and height constraints. (Step 1 of two phase layout). override void measure(int parentWidth, int parentHeight) { Rect m = margins; Rect p = padding; // calc size constraints for children int pwidth = parentWidth; int pheight = parentHeight; if (parentWidth != SIZE_UNSPECIFIED) pwidth -= m.left + m.right + p.left + p.right; if (parentHeight != SIZE_UNSPECIFIED) pheight -= m.top + m.bottom + p.top + p.bottom; // measure children Point sz; for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Gone) { item.measure(pwidth, pheight); if (sz.x < item.measuredWidth) sz.x = item.measuredWidth; if (sz.y < item.measuredHeight) sz.y = item.measuredHeight; } } measuredContent(parentWidth, parentHeight, sz.x, sz.y); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { _needLayout = false; if (visibility == Visibility.Gone) { return; } _pos = rc; applyMargins(rc); applyPadding(rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Gone) { item.layout(rc); } } } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Visible) continue; item.onDraw(buf); } } /// make one of children (with specified ID) visible, for the rest, set visibility to otherChildrenVisibility bool showChild(string ID, Visibility otherChildrenVisibility = Visibility.Invisible, bool updateFocus = false) { bool found = false; Widget foundWidget = null; for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.compareId(ID)) { item.visibility = Visibility.Visible; foundWidget = item; found = true; } else { item.visibility = otherChildrenVisibility; } } if (foundWidget !is null && updateFocus) foundWidget.setFocus(); return found; } } /// layout children as table with rows and columns class TableLayout : WidgetGroup { this(string ID) { super(ID); } protected static struct TableLayoutCell { int col; int row; Widget widget; @property int measuredWidth() { return widget ? widget.measuredWidth : 0; } @property int measuredHeight() { return widget ? widget.measuredHeight : 0; } @property int layoutWidth() { return widget ? widget.layoutWidth : 0; } @property int layoutHeight() { return widget ? widget.layoutHeight : 0; } @property int minWidth() { return widget ? widget.minWidth : 0; } @property int maxWidth() { return widget ? widget.maxWidth : 0; } @property int minHeight() { return widget ? widget.minHeight : 0; } @property int maxHeight() { return widget ? widget.maxHeight : 0; } void clear(int col, int row) { this.col = col; this.row = row; widget = null; } void measure(Widget w, int pwidth, int pheight) { widget = w; if (widget) widget.measure(pwidth, pheight); } } protected static struct TableLayoutGroup { int index; int measuredSize; int layoutSize; int minSize; int maxSize; int size; void init(int index) { measuredSize = minSize = maxSize = layoutSize = size = 0; this.index = index; } void rowCellMeasured(ref TableLayoutCell cell) { if (measuredSize < cell.measuredHeight) measuredSize = cell.measuredHeight; if (minSize < cell.minHeight) minSize = cell.minHeight; if (cell.layoutHeight == FILL_PARENT) layoutSize = FILL_PARENT; size = measuredSize; } void colCellMeasured(ref TableLayoutCell cell) { if (measuredSize < cell.measuredWidth) measuredSize = cell.measuredWidth; if (minSize < cell.minWidth) minSize = cell.minWidth; if (cell.layoutWidth == FILL_PARENT) layoutSize = FILL_PARENT; size = measuredSize; } } protected static struct TableLayoutHelper { protected TableLayoutGroup[] _cols; protected TableLayoutGroup[] _rows; protected TableLayoutCell[] _cells; protected int colCount; protected int rowCount; void init(int cols, int rows) { colCount = cols; rowCount = rows; _cells.length = cols * rows; _rows.length = rows; _cols.length = cols; for(int i = 0; i < rows; i++) _rows[i].init(i); for(int i = 0; i < cols; i++) _cols[i].init(i); for (int y = 0; y < rows; y++) { for (int x = 0; x < cols; x++) { cell(x, y).clear(x, y); } } } ref TableLayoutCell cell(int col, int row) { return _cells[row * colCount + col]; } ref TableLayoutGroup col(int c) { return _cols[c]; } ref TableLayoutGroup row(int r) { return _rows[r]; } Point measure(Widget parent, int cc, int rc, int pwidth, int pheight) { init(cc, rc); for (int y = 0; y < rc; y++) { for (int x = 0; x < cc; x++) { int index = y * cc + x; Widget child = index < parent.childCount ? parent.child(index) : null; cell(x, y).measure(child, pwidth, pheight); } } // calc total row size int totalHeight = 0; for (int y = 0; y < rc; y++) { for (int x = 0; x < cc; x++) { row(y).rowCellMeasured(cell(x,y)); } totalHeight += row(y).measuredSize; } // calc total col size int totalWidth = 0; for (int x = 0; x < cc; x++) { for (int y = 0; y < rc; y++) { col(x).colCellMeasured(cell(x,y)); } totalWidth += col(x).measuredSize; } return Point(totalWidth, totalHeight); } void layoutRows() { } void layoutCols() { } void layout(Rect rc) { layoutRows(); layoutCols(); int y0 = 0; for (int y = 0; y < rowCount; y++) { int x0 = 0; for (int x = 0; x < colCount; x++) { int index = y * colCount + x; Rect r; r.left = rc.left + x0; r.top = rc.top + y0; r.right = r.left + col(x).size; r.bottom = r.top + row(y).size; if (cell(x, y).widget) cell(x, y).widget.layout(r); x0 += col(x).size; } y0 += row(y).size; } } } protected TableLayoutHelper _cells; protected int _colCount = 1; /// number of columns @property int colCount() { return _colCount; } @property TableLayout colCount(int count) { if (_colCount != count) requestLayout(); _colCount = count; return this; } @property int rowCount() { return (childCount + (_colCount - 1)) / _colCount * _colCount; } /// Measure widget according to desired width and height constraints. (Step 1 of two phase layout). override void measure(int parentWidth, int parentHeight) { Rect m = margins; Rect p = padding; // calc size constraints for children int pwidth = parentWidth; int pheight = parentHeight; if (parentWidth != SIZE_UNSPECIFIED) pwidth -= m.left + m.right + p.left + p.right; if (parentHeight != SIZE_UNSPECIFIED) pheight -= m.top + m.bottom + p.top + p.bottom; int rc = rowCount; Point sz = _cells.measure(this, colCount, rc, pwidth, pheight); measuredContent(parentWidth, parentHeight, sz.x, sz.y); } /// Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). override void layout(Rect rc) { _needLayout = false; if (visibility == Visibility.Gone) { return; } _pos = rc; applyMargins(rc); applyPadding(rc); _cells.layout(rc); } /// Draw widget at its position to buffer override void onDraw(DrawBuf buf) { if (visibility != Visibility.Visible) return; super.onDraw(buf); Rect rc = _pos; applyMargins(rc); applyPadding(rc); auto saver = ClipRectSaver(buf, rc); for (int i = 0; i < _children.count; i++) { Widget item = _children.get(i); if (item.visibility != Visibility.Visible) continue; item.onDraw(buf); } } }
D
/Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FSPagerView.build/Objects-normal/x86_64/FSPageControl.o : /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewCell.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageControl.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewTransformer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewLayoutAttributes.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewLayout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerCollectionView.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView-umbrella.h /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerViewObjcCompat.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FSPagerView.build/Objects-normal/x86_64/FSPageControl~partial.swiftmodule : /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewCell.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageControl.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewTransformer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewLayoutAttributes.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewLayout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerCollectionView.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView-umbrella.h /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerViewObjcCompat.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FSPagerView.build/Objects-normal/x86_64/FSPageControl~partial.swiftdoc : /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewCell.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageControl.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewTransformer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewLayoutAttributes.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewLayout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerCollectionView.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView-umbrella.h /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerViewObjcCompat.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FSPagerView.build/Objects-normal/x86_64/FSPageControl~partial.swiftsourceinfo : /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewCell.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageControl.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewTransformer.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerViewLayoutAttributes.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPageViewLayout.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerCollectionView.swift /Users/yq/Project/Swift/SwiftGroup/Pods/FSPagerView/Sources/FSPagerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/ijiami.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView-umbrella.h /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerViewObjcCompat.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/RxSwift/RxSwift.modulemap /Users/yq/Project/Swift/SwiftGroup/Pods/Headers/Public/FSPagerView/FSPagerView.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module clwrap; public import clwrap.l2.wrap, clwrap.l2.clSelect, clwrap.l2.errors, clwrap.l2.info, clwrap.l2.util; public import clwrap.cl;
D
module android.java.android.os.MessageQueue; public import android.java.android.os.MessageQueue_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!MessageQueue; import import3 = android.java.java.lang.Class;
D
module ds.stack; import ds.linked_list; class LLStack(Item) { private LinkedList!Item list; private int N; this() { list = new LinkedList!Item; } void push(Item item) { list.addBeginning(item); N += 1; } Item pop() { Item popped = list.first.item; list.deleteBeginning(); N -= 1; return popped; } bool isEmpty() { return list.isEmpty(); } int size() { return N; } } class ArrayStack(Item) { private Item[] stack; private int N; void push(Item item) { if (stack.length == N) { stack.length = 2 * stack.length + 1; } stack[N] = item; N += 1; } Item pop() { // do i need to address "loitering"? if (!isEmpty() && stack.length / 4 == N) { stack.length /= 2; } N -= 1; return stack[N+1]; } bool isEmpty() { return N == 0; } int size() { return N; } } unittest { auto x = new ArrayStack!int; x.push(2); x.push(3); x.push(4); x.push(5); }
D
/home/zbf/workspace/git/RTAP/target/debug/build/serde-bd5198959f5a7fe2/build_script_build-bd5198959f5a7fe2: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.101/build.rs /home/zbf/workspace/git/RTAP/target/debug/build/serde-bd5198959f5a7fe2/build_script_build-bd5198959f5a7fe2.d: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.101/build.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.101/build.rs:
D
module routes.blog; import vibe.core.log; import vibe.http.server; import vibe.data.bson; import dlirium.conf; import dlirium.data; import dlirium.db; import std.file; import std.datetime; import std.conv; import std.string : strip, translate; import std.array : split, array; void renderArticle(HttpServerRequest req, HttpServerResponse res, Article article) { res.renderCompat!("blog.dt", HttpServerRequest, "req", Article, "article")(req, article); } void redirectArticle(HttpServerRequest req, HttpServerResponse res, Article article) { if("tag" in req.params) res.redirect("/tag/" ~ req.params["tag"] ~ "/" ~ article.slug); else res.redirect("/" ~ article.slug); } void redirectArticle(HttpServerRequest req, HttpServerResponse res, string slug) { if("tag" in req.params) res.redirect("/tag/" ~ req.params["tag"] ~ "/" ~ slug); else res.redirect("/" ~ slug); } void index(HttpServerRequest req, HttpServerResponse res) { renderArticle(req, res, getArticle()); } void show(HttpServerRequest req, HttpServerResponse res) { renderArticle(req, res, getArticle(req.params["slug"])); } void tag(HttpServerRequest req, HttpServerResponse res) { Article article = getLatestArticleByFilter("tags", req.params["tag"].translate([' ': '+'])); if(article != Article()) renderArticle(req, res, article); else res.redirect("/"); } void next(HttpServerRequest req, HttpServerResponse res) { redirectArticle(req, res, getNextArticle(req.params["slug"], req.params.get("tag", ""))); } void prev(HttpServerRequest req, HttpServerResponse res) { redirectArticle(req, res, getPreviousArticle(req.params["slug"], req.params.get("tag", ""))); } void articleForm(HttpServerRequest req, HttpServerResponse res) { res.renderCompat!("create.dt", HttpServerRequest, "req", Article, "article")(req, ("slug" in req.params?getArticle(req.params["slug"]):Article())); } void save(HttpServerRequest req, HttpServerResponse res) { bool published = cast(bool)("published" in req.form); bool commentable = cast(bool)("commentable" in req.form); string author = req.form["author"]; string title = req.form["title"]; string slug = makeSlugFromHeader(title); string[] tags = req.form["tags"].split(",").map!(a => strip(a))().array(); string text = req.form["text"]; Article article; if(req.form["slug"] != "") { article = getArticle(req.form["slug"]); article.published = published; article.commentable = commentable; article.author = author; article.title = title; article.slug = slug; article.tags = tags; article._text = text; saveArticle(article); } else { article = Article(BsonObjectID.generate(), published, commentable, author, dlirium.data.Date(Clock.currTime()), title, slug, tags, text, []); insertArticle(article); } redirectArticle(req, res, article); } void comment(HttpServerRequest req, HttpServerResponse res) { if("author" in req.form && req.form["author"] != "" && "text" in req.form && req.form["text"] != "") { Comment com = Comment(BsonObjectID.generate(), req.form["author"], dlirium.data.Date(Clock.currTime()), req.form["text"]); addComment(req.params["slug"], com); } redirectArticle(req, res, req.params["slug"]); } void rmComment(HttpServerRequest req, HttpServerResponse res) { removeComment(req.params["slug"], req.params["cid"]); redirectArticle(req, res, req.params["slug"]); }
D
// REQUIRED_ARGS: -w // https://issues.dlang.org/show_bug.cgi?id=4375: Dangling else /* TEST_OUTPUT: --- fail_compilation/fail4375e.d(14): Warning: else is dangling, add { } after condition at fail_compilation/fail4375e.d(11) --- */ void main() { version (A) if (true) assert(24); else assert(25); }
D
/* DSFML - The Simple and Fast Multimedia Library for D Copyright (c) <2013> <Jeremy DeHaan> 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 ***All code is based on code written by Laurent Gomila*** External Libraries Used: SFML - The Simple and Fast Multimedia Library Copyright (C) 2007-2013 Laurent Gomila (laurent.gom@gmail.com) All Libraries used by SFML - For a full list see http://www.sfml-dev.org/license.php */ module dsfml.graphics.image; import dsfml.system.vector2; import dsfml.graphics.color; import dsfml.system.inputstream; import dsfml.graphics.rect; import dsfml.system.err; /++ + Class for loading, manipulating and saving images. + + Image is an abstraction to manipulate images as bidimensional arrays of pixels. + + The class provides functions to load, read, write and save pixels, as well as many other useful functions. + + Image can handle a unique internal representation of pixels, which is RGBA 32 bits. This means that a pixel must be composed of 8 bits red, green, blue and alpha channels – just like a Color. All the functions that return an array of pixels follow this rule, and all parameters that you pass to Image functions (such as loadFromPixels) must use this representation as well. + + A Image can be copied, but it is a heavy resource and if possible you should always use [const] references to pass or return them to avoid useless copies. + + Authors: Laurent Gomila, Jeremy DeHaan + See_Also: http://www.sfml-dev.org/documentation/2.0/classsf_1_1Image.php#details +/ class Image { package sfImage* sfPtr; this() { //Creates a null Image } package this(sfImage* image) { sfPtr = image; } ~this() { debug import dsfml.system.config; debug mixin(destructorOutput); sfImage_destroy(sfPtr); } /** * Create the image and fill it with a unique color. * * Params: * width = Width of the image * height = Height of the image * color = Fill color * * Returns: True if loading succeeded, false if it failed */ bool create(uint width, uint height, Color color) { //if the Image already exists, destroy it first if(sfPtr) { sfImage_destroy(sfPtr); } sfPtr = sfImage_createFromColor(width, height,color.r, color.b, color.g, color.a); return (sfPtr != null); } /** * Create the image from an array of pixels. * * The pixel array is assumed to contain 32-bits RGBA pixels, and have the given width and height. If not, this is an undefined behaviour. If pixels is null, an empty image is created. * * Params: * width = Width of the image * height = Height of the image * pixels = Array of pixels to copy to the image * * Returns: True if loading succeeded, false if it failed */ bool create(uint width, uint height, const ref ubyte[] pixels) { //if the Image already exists, destroy it first if(sfPtr) { sfImage_destroy(sfPtr); } sfPtr = sfImage_createFromPixels(width, height,pixels.ptr); return (sfPtr != null); } /** * Load the image from a file on disk. * * The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged. * * Params: * filename = Path of the image file to load * * Returns: True if loading succeeded, false if it failed */ bool loadFromFile(string fileName) { import std.conv; import std.string; //if the Image already exists, destroy it first if(sfPtr) { sfImage_destroy(sfPtr); } sfPtr = sfImage_createFromFile(toStringz(fileName)); err.write(text(sfErrGraphics_getOutput())); return (sfPtr != null); } /** * Load the image from a file in memory. * * The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged. * * Params: * data = Data file in memory to load * * Returns: True if loading succeeded, false if it failed */ bool loadFromMemory(const(void)[] data) { import std.conv; //if the Image already exists, destroy it first if(sfPtr) { sfImage_destroy(sfPtr); } sfPtr = sfImage_createFromMemory(data.ptr, data.length); err.write(text(sfErrGraphics_getOutput())); return (sfPtr != null); } /** * Load the image from a custom stream. * * The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged. * * Params: * stream = Source stream to read from * * Returns: True if loading succeeded, false if it failed */ bool loadFromStream(InputStream stream) { import std.conv; //if the Image already exists, destroy it first if(sfPtr) { sfImage_destroy(sfPtr); } sfPtr = sfImage_createFromStream(new imageStream(stream)); err.write(text(sfErrGraphics_getOutput())); return (sfPtr == null)?false:true; } /** * Get the color of a pixel * * This function doesn't check the validity of the pixel coordinates; using out-of-range values will result in an undefined behaviour. * * Params: * x = X coordinate of the pixel to get * y = Y coordinate of the pixel to get * * Returns: Color of the pixel at coordinates (x, y) */ Color getPixel(uint x, uint y) { Color temp; sfImage_getPixel(sfPtr, x,y, &temp.r, &temp.b, &temp.g, &temp.a); return temp; } /** * Get the read-only array of pixels that make up the image. * * The returned value points to an array of RGBA pixels made of 8 bits integers components. The size of the array is width * height * 4 (getSize().x * getSize().y * 4). Warning: the returned pointer may become invalid if you modify the image, so you should never store it for too long. * * Returns: Read-only array of pixels that make up the image. */ const(ubyte)[] getPixelArray() { Vector2u size = getSize(); int length = size.x * size.y * 4; if(length!=0) { return sfImage_getPixelsPtr(sfPtr)[0..length]; } else { err.writeln("Trying to access the pixels of an empty image"); return []; } } /** * Return the size (width and height) of the image. * * Returns: Size of the image, in pixels. */ Vector2u getSize() { Vector2u temp; sfImage_getSize(sfPtr,&temp.x, &temp.y); return temp; } /** * Change the color of a pixel. * * This function doesn't check the validity of the pixel coordinates, using out-of-range values will result in an undefined behaviour. * * Params: * x = X coordinate of pixel to change * y = Y coordinate of pixel to change * color = New color of the pixel */ void setPixel(uint x, uint y, Color color) { sfImage_setPixel(sfPtr, x,y,color.r, color.b,color.g, color.a); } /** * Copy pixels from another image onto this one. * * This function does a slow pixel copy and should not be used intensively. It can be used to prepare a complex static image from several others, but if you need this kind of feature in real-time you'd better use RenderTexture. * * If sourceRect is empty, the whole image is copied. If applyAlpha is set to true, the transparency of source pixels is applied. If it is false, the pixels are copied unchanged with their alpha value. * * Params: * source = Source image to copy * destX = X coordinate of the destination position * destY = Y coordinate of the destination position * sourceRect = Sub-rectangle of the source image to copy * applyAlpha = Should the copy take the source transparency into account? */ void copyImage(const ref Image source, uint destX, uint destY, IntRect sourceRect = IntRect(0,0,0,0), bool applyAlpha = false) { sfImage_copyImage(sfPtr, source.sfPtr, destX, destY,sourceRect.left, sourceRect.top, sourceRect.width, sourceRect.height, applyAlpha);//:sfImage_copyImage(sfPtr, source.sfPtr, destX, destY, temp, sfFalse); } /** * Create a transparency mask from a specified color-key. * * This function sets the alpha value of every pixel matching the given color to alpha (0 by default) so that they become transparent. * * Params: * color = Color to make transparent * alpha = Alpha value to assign to transparent pixels */ void createMaskFromColor(Color maskColor, ubyte alpha = 0) { sfImage_createMaskFromColor(sfPtr,maskColor.r,maskColor.b, maskColor.g, maskColor.a, alpha); } @property Image dup() const { return new Image(sfImage_copy(sfPtr)); } /// Flip the image horizontally (left <-> right) void flipHorizontally() { sfImage_flipHorizontally(sfPtr); } /// Flip the image vertically (top <-> bottom) void flipVertically() { sfImage_flipVertically(sfPtr); } /** * Save the image to a file on disk. * * The format of the image is automatically deduced from the extension. The supported image formats are bmp, png, tga and jpg. The destination file is overwritten if it already exists. This function fails if the image is empty. * * Params: * filename = Path of the file to save * * Returns: True if saving was successful */ bool saveToFile(string fileName) { import std.conv; bool toReturn = sfImage_saveToFile(sfPtr, fileName.ptr); err.write(text(sfErrGraphics_getOutput())); return toReturn; } } unittest { version(DSFML_Unittest_Graphics) { import std.stdio; writeln("Unit test for Image"); auto image = new Image(); assert(image.create(100,100,Color.Blue)); assert(image.getPixel(0,0) == Color.Blue); image.setPixel(0,0,Color.Green); assert(image.getPixel(0,0) == Color.Green); image.flipHorizontally(); assert(image.getPixel(99,0) == Color.Green); image.flipVertically(); assert(image.getPixel(99,99) == Color.Green); assert(image.getSize() == Vector2u(100,100)); writeln(); } } private extern(C++) interface sfmlInputStream { long read(void* data, long size); long seek(long position); long tell(); long getSize(); } private class imageStream:sfmlInputStream { private InputStream myStream; this(InputStream stream) { myStream = stream; } extern(C++)long read(void* data, long size) { return myStream.read(data[0..cast(size_t)size]); } extern(C++)long seek(long position) { return myStream.seek(position); } extern(C++)long tell() { return myStream.tell(); } extern(C++)long getSize() { return myStream.getSize(); } } package extern(C) struct sfImage; private extern(C): sfImage* sfImage_create(uint width, uint height); /// \brief Create an image and fill it with a unique color sfImage* sfImage_createFromColor(uint width, uint height, ubyte r, ubyte b, ubyte g, ubyte a); /// \brief Create an image from an array of pixels sfImage* sfImage_createFromPixels(uint width, uint height, const ubyte* pixels); /// \brief Create an image from a file on disk sfImage* sfImage_createFromFile(const char* filename); /// \brief Create an image from a file in memory sfImage* sfImage_createFromMemory(const void* data, size_t size); /// \brief Create an image from a custom stream sfImage* sfImage_createFromStream(sfmlInputStream stream); /// \brief Copy an existing image sfImage* sfImage_copy(const sfImage* image); /// \brief Destroy an existing image void sfImage_destroy(sfImage* image); /// \brief Save an image to a file on disk bool sfImage_saveToFile(const sfImage* image, const char* filename); /// \brief Return the size of an image void sfImage_getSize(const sfImage* image, uint* width, uint* height); /// \brief Create a transparency mask from a specified color-key void sfImage_createMaskFromColor(sfImage* image, ubyte r, ubyte b, ubyte g, ubyte a, ubyte alpha); /// \brief Copy pixels from an image onto another void sfImage_copyImage(sfImage* image, const(sfImage)* source, uint destX, uint destY, int sourceRectTop, int sourceRectLeft, int sourceRectWidth, int sourceRectHeight, bool applyAlpha); /// \brief Change the color of a pixel in an image void sfImage_setPixel(sfImage* image, uint x, uint y, ubyte r, ubyte b, ubyte g, ubyte a); /// \brief Get the color of a pixel in an image void sfImage_getPixel(const sfImage* image, uint x, uint y, ubyte* r, ubyte* b, ubyte* g, ubyte* a); /// \brief Get a read-only pointer to the array of pixels of an image const(ubyte)* sfImage_getPixelsPtr(const sfImage* image); /// \brief Flip an image horizontally (left <-> right) void sfImage_flipHorizontally(sfImage* image); /// \brief Flip an image vertically (top <-> bottom) void sfImage_flipVertically(sfImage* image); const(char)* sfErrGraphics_getOutput();
D
INSTANCE Info_Mod_Suchender_DT_Hi (C_INFO) { npc = Mod_7543_DMT_Suchender_DT; nr = 1; condition = Info_Mod_Suchender_DT_Hi_Condition; information = Info_Mod_Suchender_DT_Hi_Info; permanent = 0; important = 0; description = "Ha. Wieder erwischt."; }; FUNC INT Info_Mod_Suchender_DT_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Suchender_DT_Hi_Info() { AI_Output(hero, self, "Info_Mod_Suchender_DT_Hi_15_00"); //Ha. Wieder erwischt. Jetzt weiß ich auch, was dein Zuhause ist. Diesmal entkommst du mir nicht! AI_Output(self, hero, "Info_Mod_Suchender_DT_Hi_10_01"); //Ha. Du schon wieder! Diesmal verschon ich dich nicht! AI_Output(hero, self, "Info_Mod_Suchender_DT_Hi_15_02"); //Mal langsam. Was treibt dich eigentlich um? AI_Output(self, hero, "Info_Mod_Suchender_DT_Hi_10_03"); //Ich bin der Diener meines Herrn, Khorgor, dem Göttlichen. AI_Output(hero, self, "Info_Mod_Suchender_DT_Hi_15_04"); //Was ist so göttlich an ihm? AI_Output(self, hero, "Info_Mod_Suchender_DT_Hi_10_05"); //Mein Herr wird Herr über das Chaos sein, wenn die Bewahrer des Gleichgewichts, die Wassermagier und die Waldleute, erst vernichtet sind. }; INSTANCE Info_Mod_Suchender_DT_Option01 (C_INFO) { npc = Mod_7543_DMT_Suchender_DT; nr = 1; condition = Info_Mod_Suchender_DT_Option01_Condition; information = Info_Mod_Suchender_DT_Option01_Info; permanent = 0; important = 0; description = "Verstehe. Sag, könnte ich vielleicht eurem Verein beitreten?"; }; FUNC INT Info_Mod_Suchender_DT_Option01_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Suchender_DT_Hi)) { return 1; }; }; FUNC VOID Info_Mod_Suchender_DT_Option01_Info() { AI_Output(hero, self, "Info_Mod_Suchender_DT_Option01_15_00"); //Verstehe. Sag, könnte ich vielleicht eurem Verein beitreten? AI_Output(self, hero, "Info_Mod_Suchender_DT_Option01_10_01"); //Du? Ich weiß nicht ... AI_Output(hero, self, "Info_Mod_Suchender_DT_Option01_15_02"); //Warum nicht? Bin schon lange nicht mehr damit einverstanden, was die anderen so treiben. AI_Output(self, hero, "Info_Mod_Suchender_DT_Option01_10_03"); //Das muss der Meister entscheiden. Ich werde ihn fragen. Warte hier. AI_GotoWP (self, "DT_037"); AI_StopProcessInfos (self); }; INSTANCE Info_Mod_Suchender_DT_Option02 (C_INFO) { npc = Mod_7543_DMT_Suchender_DT; nr = 1; condition = Info_Mod_Suchender_DT_Option02_Condition; information = Info_Mod_Suchender_DT_Option02_Info; permanent = 0; important = 0; description = "Aha! Deshalb seid ihr hinter uns und den Druiden her."; }; FUNC INT Info_Mod_Suchender_DT_Option02_Condition() { if (Npc_KnowsInfo(hero, Info_Mod_Suchender_DT_Hi)) { return 1; }; }; FUNC VOID Info_Mod_Suchender_DT_Option02_Info() { AI_Output(hero, self, "Info_Mod_Suchender_DT_Option02_15_00"); //Aha! Deshalb seid ihr hinter uns und den Druiden her. AI_Output(self, hero, "Info_Mod_Suchender_DT_Option02_10_01"); //Du hast es kapiert. Nun stirb! AI_StopProcessInfos (self); B_Attack (self, hero, AR_GuildEnemy, 0); };
D
/Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/target/release/wbuild/node-template-runtime/target/release/build/zstd-safe-7c5735ffb58c0ef6/build_script_build-7c5735ffb58c0ef6: /Users/edward.wangcrypto.com/.cargo/registry/src/github.com-1ecc6299db9ec823/zstd-safe-3.0.1+zstd.1.4.9/build.rs /Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/target/release/wbuild/node-template-runtime/target/release/build/zstd-safe-7c5735ffb58c0ef6/build_script_build-7c5735ffb58c0ef6.d: /Users/edward.wangcrypto.com/.cargo/registry/src/github.com-1ecc6299db9ec823/zstd-safe-3.0.1+zstd.1.4.9/build.rs /Users/edward.wangcrypto.com/.cargo/registry/src/github.com-1ecc6299db9ec823/zstd-safe-3.0.1+zstd.1.4.9/build.rs:
D
module buffer.compiler; import std.string; import std.conv; import std.array; import std.typecons; import std.algorithm.searching; import std.uni; import std.exception; template LoadBufferFile(const string fileName) { pragma(msg, "Compiling file: ", fileName, "..."); const char[] LoadBufferFile = compiler!(import(fileName)); } template LoadBufferScript(const string src) { pragma(msg, "Compiling script: ", extractScriptfragment(src), "..."); const char[] LoadBufferScript = compiler!src; } private string compiler(const string source)() { Token[] tokens = lexer(source); Sentence[] sentences = parser(tokens); Appender!string code; code.put("import buffer;\r\n\r\n"); foreach (sentence; sentences) { code.put("final static class " ~ sentence.name ~ " : Message\r\n"); code.put("{\r\n"); foreach (field; sentence.fields) { code.put("\t" ~ field.type ~ " " ~ field.name ~ ";\r\n"); } code.put("\r\n"); code.put("\tubyte[] serialize(const string method = string.init)\r\n"); code.put("\t{\r\n"); code.put("\t\treturn super.serialize!(typeof(this))(this, method);\r\n"); code.put("\t}\r\n"); code.put("}\r\n"); code.put("\r\n"); } return code.data; } /// lexer enum TokenType { Define = 1, // message Keyword = 2, // type: int8... Identifier = 3, SentenceEnd = 110, // ; DelimiterOpen = 120, // { DelimiterClose = 121 // } } private const string[] keywords = [ "int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "float32", "float64", "float128", "bool", "char", "string" ]; struct Token { TokenType type; string name; this(const string name) { if (name == "message") { this.type = TokenType.Define; } else if (keywords.any!(x => x == name)) { this.type = TokenType.Keyword; } else { this.type = TokenType.Identifier; } this.name = name; } this(const TokenType type, const string name) { this.type = type; this.name = name; } } Token[] lexer(const string source) { /* State transition diagram: 0: none 1: word 2: { 3: ; 4: } -1: / -2: // -3: /* 0 -> \s[ \f\n\r\t\v] 0 -> A..Za..z_ 1 -> { 2 -> add token -> 0 -> ; 3 -> add token -> 0 -> } 4 -> add token -> 0 -> / hang state, -1 -> other Exception 1 -> \s[ \f\n\r\t\v] 1 -> add token -> 0 -> A..Za..z0..9_ 1 -> { 1 -> add token -> 2 -> add token -> 0 -> ; 1 -> add token -> 3 -> add token -> 0 -> } 1 -> add token -> 4 -> add token -> 0 -> / hang state, -1 -> other Exception 2 -> 0 3 -> 0 4 -> 0 -1 -> / -2 -> * -3 -> other Exception -2 -> \n restore state, hang = 0 -> other skip -3 -> / if last is * then restore state & hang = 0, else skip -> other skip */ Token[] tokens; int state = 0; int stateHang; char last; string token = string.init; const string src = (cast(string) source ~ "\r\n"); foreach (i, ch; src) { switch (state) { case 0: if (isWhite(ch)) { continue; } else if (isIdentifierFirstChar(ch)) { token = ch.to!string; state = 1; } else if (ch == '{') { tokens ~= Token(TokenType.DelimiterOpen, "{"); state = 0; } else if (ch == ';') { tokens ~= Token(TokenType.SentenceEnd, ";"); state = 0; } else if (ch == '}') { tokens ~= Token(TokenType.DelimiterClose, "}"); state = 0; } else if (ch == '/') { stateHang = state; state = -1; } else { enforce(0, "Invalid character: " ~ ch.to!string); } break; case 1: if (isWhite(ch)) { tokens ~= Token(token); token = string.init; state = 0; } else if (isIdentifierChar(ch)) { token ~= ch.to!string; } else if (ch == '{') { tokens ~= Token(token); tokens ~= Token(TokenType.DelimiterOpen, "{"); token = string.init; state = 0; } else if (ch == ';') { tokens ~= Token(token); tokens ~= Token(TokenType.SentenceEnd, ";"); token = string.init; state = 0; } else if (ch == '}') { tokens ~= Token(token); tokens ~= Token(TokenType.DelimiterClose, "}"); token = string.init; state = 0; } else if (ch == '/') { stateHang = state; state = -1; } else { enforce(0, "Invalid character: " ~ ch.to!string); } break; case -1: if (ch == '/') { state = -2; } else if (ch == '*') { state = -3; } else { enforce(0, "Invalid character: " ~ ch.to!string); } break; case -2: if (ch == '\n') { state = stateHang; stateHang = 0; } break; case -3: if ((ch == '/') && (last == '*')) { state = stateHang; stateHang = 0; } break; default: break; } last = ch; } return tokens; } private bool isIdentifierFirstChar(const char ch) { return isAlpha(ch) || ch == '_'; } private bool isIdentifierChar(const char ch) { return isAlphaNum(ch) || ch == '_'; } private string extractScriptfragment(const string source) { string ret = string.init; foreach (ch; source) { if (ret.length >= 50) break; if (!isWhite(ch)) ret ~= ch.to!string; else if ((ret.length > 0) && (ret[$ - 1] != ' ')) ret ~= " "; } return ret; } /// parser struct Field { string type; string name; } struct Sentence { string name; Field[] fields; } Sentence[] parser(const Token[] tokens) { Sentence[] sentences; int pos; while (pos < cast(int)tokens.length - 1) { if (tokens[pos].type != TokenType.Define) { enforce(0, "Syntax error at " ~ tokens[pos].name); } sentences ~= parser_define(tokens, pos); } return sentences; } private Sentence parser_define(const Token[] tokens, ref int pos) { if ((cast(int)tokens.length - pos < 4) || (tokens[pos].type != TokenType.Define) || (tokens[pos + 1].type != TokenType.Identifier) || (tokens[pos + 2].type != TokenType.DelimiterOpen)) { enforce(0, "Syntax error at " ~ tokens[pos].name); } Sentence sentence; sentence.name = tokens[pos + 1].name; pos += 3; while (pos < tokens.length) { Nullable!Field field = parser_field(tokens, pos); if (field.isNull) return sentence; sentence.fields ~= field; } return sentence; } private Nullable!Field parser_field(const Token[] tokens, ref int pos) { if ((cast(int)tokens.length - pos >= 1) && (tokens[pos].type == TokenType.DelimiterClose)) { pos++; return Nullable!Field(); } if ((cast(int)tokens.length - pos < 3) || (tokens[pos].type != TokenType.Keyword) || (tokens[pos + 1].type != TokenType.Identifier) || (tokens[pos + 2].type != TokenType.SentenceEnd)) { enforce(0, "Syntax error at " ~ tokens[pos].name); } Field field; field.type = tokens[pos].name; field.name = tokens[pos + 1].name; pos += 3; return Nullable!Field(field); } /* import buffer; final static class Sample : Message { string name; int32 age; int16 sex; ubyte[] serialize(const string method = string.init) { return super.serialize!(typeof(this))(this, method); } } */
D
import std.stdio; import core.thread; import std.datetime; // Yield count should be larger for a // more accurate measurment, but this // is just a unit tests, so don't spin // for long immutable uint yield_count = 1000; immutable uint worker_count = 10; uint stack_check() { uint x; asm { mov x,ESP; } return x; } void fiber_func() { uint i = yield_count; while( --i ) Fiber.yield(); } void thread_func() { uint i = yield_count; while( --i ) Thread.yield(); } void fiber_test() { Fiber[worker_count] fib_array; foreach( ref f; fib_array ) f = new Fiber( &fiber_func ); StopWatch sw; uint i = yield_count; // fibers are cooperative and need a driver loop sw.start(); bool done; do { done = true; foreach( f; fib_array ) { f.call(); if( f.state() != f.State.TERM ) done = false; } } while( !done ); sw.stop(); writeln( "Elapsed time for ", worker_count, " workers times ", yield_count, " yield() calls with fibers = ", sw.peek().msecs, "ms" ); } void thread_test() { Thread[worker_count] thread_array; foreach( ref t; thread_array ) t = new Thread( &thread_func ); StopWatch sw; sw.start(); foreach( t; thread_array ) t.start(); thread_joinAll(); sw.stop(); writeln( "Elapsed time for ", worker_count, " workers times ", yield_count, " yield() calls with threads = ", sw.peek().msecs, "ms" ); } int main() { fiber_test(); thread_test(); return 0; }
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.build/ByteBuffer+require.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+require.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+string.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+peek.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Control.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/BitsError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Data+Bytes.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Bytes.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Data+Strings.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+binaryFloatingPointOperations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Alphabet.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Digit.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/Debugging.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 /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/Bits.build/ByteBuffer+require~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+require.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+string.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+peek.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Control.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/BitsError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Data+Bytes.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Bytes.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Data+Strings.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+binaryFloatingPointOperations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Alphabet.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Digit.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/Debugging.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 /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/Bits.build/ByteBuffer+require~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+require.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+string.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+peek.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Control.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/BitsError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Data+Bytes.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Bytes.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Data+Strings.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+binaryFloatingPointOperations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Alphabet.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Byte+Digit.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/Debugging.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 /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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
/* 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. */ import std.datetime.stopwatch; import Dmemcpy: Dmemcpy, Cmemcpy; import S_struct; import std.random; import std.stdio; import core.stdc.string; import std.traits; /// /// A big thanks to Mike Franklin (JinShil). A big part of code is taken from his memcpyD implementation. /// // From a very good Chandler Carruth video on benchmarking: https://www.youtube.com/watch?v=nXaxk27zwlk void escape(void* p) { version(LDC) { import ldc.llvmasm; __asm("", "r,~{memory}", p); } version(GNU) { asm { "" : : "g" p : "memory"; } } } void clobber() { version(LDC) { import ldc.llvmasm; __asm("", "~{memory}"); } version(GNU) { asm { "" : : : "memory"; } } } Duration benchmark(T, alias f)(T *dst, T *src, ulong* bytesCopied) { enum iterations = 2^^20 / T.sizeof; Duration result; auto swt = StopWatch(AutoStart.yes); swt.reset(); while(swt.peek().total!"msecs" < 50) { auto sw = StopWatch(AutoStart.yes); sw.reset(); foreach (_; 0 .. iterations) { escape(&dst); // So optimizer doesn't remove code f(dst, src); escape(&src); // So optimizer doesn't remove code } result += sw.peek(); *bytesCopied += (iterations * T.sizeof); } return result; } void init(T)(T *v) { static if (is (T == float)) { v = uniform(0.0f, 9_999_999.0f); } else static if (is(T == double)) { v = uniform(0.0, 9_999_999.0); } else static if (is(T == real)) { v = uniform(0.0L, 9_999_999.0L); } else { auto m = (cast(ubyte*)v)[0 .. T.sizeof]; for(int i = 0; i < m.length; i++) { m[i] = uniform!byte; } } } void verify(T)(const T *a, const T *b) { auto aa = (cast(ubyte*)a)[0..T.sizeof]; auto bb = (cast(ubyte*)b)[0..T.sizeof]; for(int i = 0; i < T.sizeof; i++) { assert(aa[i] == bb[i]); } } bool average; void test(T)() { ubyte[80000] buf1; ubyte[80000] buf2; double TotalGBperSec1 = 0.0; double TotalGBperSec2 = 0.0; enum alignments = 32; foreach(i; 0..alignments) { { T* d = cast(T*)(&buf1[i]); T* s = cast(T*)(&buf2[i]); ulong bytesCopied1; ulong bytesCopied2; init(d); init(s); immutable d1 = benchmark!(T, Cmemcpy)(d, s, &bytesCopied1); verify(d, s); init(d); init(s); immutable d2 = benchmark!(T, Dmemcpy)(d, s, &bytesCopied2); verify(d, s); auto secs1 = (cast(double)(d1.total!"nsecs")) / 1_000_000_000.0; auto secs2 = (cast(double)(d2.total!"nsecs")) / 1_000_000_000.0; auto GB1 = (cast(double)bytesCopied1) / 1_000_000_000.0; auto GB2 = (cast(double)bytesCopied2) / 1_000_000_000.0; auto GBperSec1 = GB1 / secs1; auto GBperSec2 = GB2 / secs2; if (average) { TotalGBperSec1 += GBperSec1; TotalGBperSec2 += GBperSec2; } else { writeln(T.sizeof, " ", GBperSec1, " ", GBperSec2); stdout.flush(); } } } if (average) { writeln(T.sizeof, " ", TotalGBperSec1 / alignments, " ", TotalGBperSec2 / alignments); stdout.flush(); } } enum Aligned = true; enum MisAligned = false; void main(string[] args) { average = args.length >= 2; // For performing benchmarks writeln("size(bytes) Cmemcpy(GB/s) Dmemcpy(GB/s)"); stdout.flush(); static foreach(i; 120..130) { test!(S!i); } static foreach(i; 220..230) { test!(S!i); } static foreach(i; 720..730) { test!(S!i); } test!(S!3452); test!(S!6598); test!(S!14928); test!(S!27891); test!(S!44032); test!(S!55897); test!(S!79394); }
D
module url; import core.stdc.stdio; import core.stdc.ctype; /********************************* * Determine if c is a valid URL character. */ int isURLchar(char c) { if (isalnum(c)) return 1; switch (c) { case '-': case '_': case '?': case '=': case '%': case '&': case '/': case '+': case '#': case '~': case '.': case ':': return 1; default: return 0; } } /****************************** * Determine if string s of length is the start of a URL. * Returns: * 0 means not a URL, >0 gives the length of the URL */ size_t isURL(const(char)[] s) { /* Must start with one of: * http:// * https:// */ if (s.length < 9 || s[6] != '/') return 0; //writefln("isURL(%s)", s); if (!((s[0] == 'h' || s[0] == 'H') && (s[1] == 't' || s[1] == 'T') && (s[2] == 't' || s[2] == 'T') && (s[3] == 'p' || s[3] == 'P'))) return 0; size_t i; if (s[4] == ':' && s[5] == '/') i = 7; else if ((s[4] == 's' || s[4] == 'S') && s[5] == ':' && s[7] == '/') i = 8; else return 0; size_t lastdot; for (; i < s.length; i++) { auto c = s[i]; if (isalnum(c)) continue; if (c == '-' || c == '_' || c == '?' || c == '=' || c == '%' || c == '&' || c == '/' || c == '+' || c == '#' || c == '~') continue; if (c == '.') { lastdot = i; continue; } break; } if (!lastdot) return 0; return i; } /**************************************************** * Determine if index is in a URL or not. */ int inURL(const(char)[] s, size_t index) { if (s.length < 9 || !isURLchar(s[index])) return 0; size_t i; size_t end = s.length - 9; if (index < end) end = index + 1; for (i = 0; i < end; ++i) { size_t j = isURL(s[i .. s.length]); if (j) { if (i <= index && index < i + j) return 1; i = i + j - 1; } } return 0; } /************************************************ * Determine URL that index is in. * Return slice of s, null if not in a URL. */ inout(char)[] getURL(inout(char)[] s, size_t index) { //printf("\ngetURL() '%.*s' \n", cast(int)s.length, s.ptr); for (size_t i = 0; i <= index; ++i) { size_t j = isURL(s[i .. s.length]); if (j) { if (i <= index && index < i + j) { return s[i .. i + j]; } i = i + j - 1; } } return null; }
D
module deimos.cef1.request_handler; // Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the name Chromium Embedded // Framework nor the names of its contributors may be used to endorse // or promote products derived from this software without specific prior // written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translator tool and should not edited // by hand. See the translator.README.txt file in the tools directory for // more information. // // #ifndef CEF_INCLUDE_CAPI_CEF_REQUEST_HANDLER_CAPI_H_ // #pragma once // #ifdef __cplusplus extern(C) { // #endif import deimos.cef1.base; /// // Implement this structure to handle events related to browser requests. The // functions of this structure will be called on the thread indicated. /// struct cef_request_handler_t { /// // Base structure. /// cef_base_t base; /// // Called on the UI thread before browser navigation. Return true (1) to // cancel the navigation or false (0) to allow the navigation to proceed. /// extern(System) int function(cef_request_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_request_t* request, cef_handler_navtype_t navType, int isRedirect) on_before_browse; /// // Called on the IO thread before a resource is loaded. To allow the resource // to load normally return false (0). To redirect the resource to a new url // populate the |redirectUrl| value and return false (0). To specify data for // the resource return a CefStream object in |resourceStream|, use the // |response| object to set mime type, HTTP status code and optional header // values, and return false (0). To cancel loading of the resource return true // (1). Any modifications to |request| will be observed. If the URL in // |request| is changed and |redirectUrl| is also set, the URL in |request| // will be used. /// extern(System) int function(cef_request_handler_t* self, cef_browser_t* browser, cef_request_t* request, cef_string_t* redirectUrl, cef_stream_reader_t** resourceStream, cef_response_t* response, int loadFlags) on_before_resource_load; /// // Called on the IO thread when a resource load is redirected. The |old_url| // parameter will contain the old URL. The |new_url| parameter will contain // the new URL and can be changed if desired. /// extern(System) void function(cef_request_handler_t* self, cef_browser_t* browser, const(cef_string_t)* old_url, cef_string_t* new_url) on_resource_redirect; /// // Called on the UI thread after a response to the resource request is // received. Set |filter| if response content needs to be monitored and/or // modified as it arrives. /// extern(System) void function(cef_request_handler_t* self, cef_browser_t* browser, const(cef_string_t)* url, cef_response_t* response, cef_content_filter_t** filter) on_resource_response; /// // Called on the IO thread to handle requests for URLs with an unknown // protocol component. Return true (1) to indicate that the request should // succeed because it was handled externally. Set |allowOSExecution| to true // (1) and return false (0) to attempt execution via the registered OS // protocol handler, if any. If false (0) is returned and either // |allow_os_execution| is false (0) or OS protocol handler execution fails // then the request will fail with an error condition. SECURITY WARNING: YOU // SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR // OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION. /// extern(System) int function(cef_request_handler_t* self, cef_browser_t* browser, const(cef_string_t)* url, int* allowOSExecution) on_protocol_execution; /// // Called on the UI thread when a server indicates via the 'Content- // Disposition' header that a response represents a file to download. // |mimeType| is the mime type for the download, |fileName| is the suggested // target file name and |contentLength| is either the value of the 'Content- // Size' header or -1 if no size was provided. Set |handler| to the // cef_download_handler_t instance that will recieve the file contents. Return // true (1) to download the file or false (0) to cancel the file download. /// extern(System) int function(cef_request_handler_t* self, cef_browser_t* browser, const(cef_string_t)* mimeType, const(cef_string_t)* fileName, int64 contentLength, cef_download_handler_t** handler) get_download_handler; /// // Called on the IO thread when the browser needs credentials from the user. // |isProxy| indicates whether the host is a proxy server. |host| contains the // hostname and port number. Set |username| and |password| and return true (1) // to handle the request. Return false (0) to cancel the request. /// extern(System) int function(cef_request_handler_t* self, cef_browser_t* browser, int isProxy, const(cef_string_t)* host, int port, const(cef_string_t)* realm, const(cef_string_t)* scheme, cef_string_t* username, cef_string_t* password) get_auth_credentials; /// // Called on the IO thread to retrieve the cookie manager. |main_url| is the // URL of the top-level frame. Cookies managers can be unique per browser or // shared across multiple browsers. The global cookie manager will be used if // this function returns NULL. /// extern(System) cef_cookie_manager_t* function(cef_request_handler_t* self, cef_browser_t* browser, const(cef_string_t)* main_url) get_cookie_manager; } // #ifdef __cplusplus } // #endif // #endif CEF_INCLUDE_CAPI_CEF_REQUEST_HANDLER_CAPI_H_
D
/* * Copyright 2015-2018 HuntLabs.cn. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ module hunt.sql.builder.SQLSelectBuilder; import hunt.sql.ast.statement.SQLSelectStatement; import hunt.sql.builder.SQLBuilder; abstract class SQLSelectBuilder : SQLBuilder { SQLBuilder select(string[] column...) { return this; } SQLBuilder selectWithAlias(string column, string _alias) { return this; } SQLBuilder from(string table) { return this; } SQLBuilder from(string table, string _alias) { return this; } SQLBuilder orderBy(string[] columns...) { return this; } SQLBuilder groupBy(string expr) { return this; } SQLBuilder having(string expr) { return this; } SQLBuilder into(string expr) { return this; } SQLBuilder limit(int rowCount) { return this; } SQLBuilder offset(int offset) { return this; } SQLBuilder limit(int rowCount, int offset) { return this; } SQLBuilder where(string sql) { return this; } SQLBuilder whereAnd(string sql) { return this; } SQLBuilder whereOr(string sql) { return this; } SQLBuilder join(string table , string _alias = null, string cond = null) { return this; } SQLBuilder innerJoin(string table , string _alias = null, string cond = null) { return this; } SQLBuilder leftJoin(string table , string _alias = null, string cond = null) { return this; } SQLBuilder rightJoin(string table , string _alias = null, string cond = null) { return this; } override string toString() { return "SQLSelectBuilder"; } }
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_3_MobileMedia-2111633542.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_3_MobileMedia-2111633542.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
module android.java.java.lang.invoke.LambdaConversionException; public import android.java.java.lang.invoke.LambdaConversionException_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!LambdaConversionException; import import4 = android.java.java.lang.Class; import import3 = android.java.java.lang.StackTraceElement;
D
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/release/build/syn-d1407df2b9a0b93d/build_script_build-d1407df2b9a0b93d: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/syn-1.0.3/build.rs /mnt/c/Users/zeliwang/hello_world/digital_signature/target/release/build/syn-d1407df2b9a0b93d/build_script_build-d1407df2b9a0b93d.d: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/syn-1.0.3/build.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/syn-1.0.3/build.rs:
D
module engine.thirdparty.imageformats.png; import etc.c.zlib; import std.algorithm : min, reverse; import std.bitmanip : bigEndianToNative, nativeToBigEndian; import std.stdio : File, SEEK_SET; import std.digest.crc : CRC32, crc32Of; import std.typecons : scoped; import engine.thirdparty.imageformats; private: /// Header of a PNG file. public struct PNG_Header { int width; int height; ubyte bit_depth; ubyte color_type; ubyte compression_method; ubyte filter_method; ubyte interlace_method; } /// Returns the header of a PNG file. public PNG_Header read_png_header(in char[] filename) { auto reader = scoped!FileReader(filename); return read_png_header(reader); } /// Returns the header of the image in the buffer. public PNG_Header read_png_header_from_mem(in ubyte[] source) { auto reader = scoped!MemReader(source); return read_png_header(reader); } /// Reads an 8-bit or 16-bit PNG image and returns it as an 8-bit image. /// req_chans defines the format of returned image (you can use ColFmt here). public IFImage read_png(in char[] filename, long req_chans = 0) { auto reader = scoped!FileReader(filename); return read_png(reader, req_chans); } /// Reads an 8-bit or 16-bit PNG image from a buffer and returns it as an /// 8-bit image. req_chans defines the format of returned image (you can use /// ColFmt here). public IFImage read_png_from_mem(in ubyte[] source, long req_chans = 0) { auto reader = scoped!MemReader(source); return read_png(reader, req_chans); } /// Reads an 8-bit or 16-bit PNG image and returns it as a 16-bit image. /// req_chans defines the format of returned image (you can use ColFmt here). public IFImage16 read_png16(in char[] filename, long req_chans = 0) { auto reader = scoped!FileReader(filename); return read_png16(reader, req_chans); } /// Reads an 8-bit or 16-bit PNG image from a buffer and returns it as a /// 16-bit image. req_chans defines the format of returned image (you can use /// ColFmt here). public IFImage16 read_png16_from_mem(in ubyte[] source, long req_chans = 0) { auto reader = scoped!MemReader(source); return read_png16(reader, req_chans); } /// Writes a PNG image into a file. public void write_png(in char[] file, long w, long h, in ubyte[] data, long tgt_chans = 0) { auto writer = scoped!FileWriter(file); write_png(writer, w, h, data, tgt_chans); } /// Writes a PNG image into a buffer. public ubyte[] write_png_to_mem(long w, long h, in ubyte[] data, long tgt_chans = 0) { auto writer = scoped!MemWriter(); write_png(writer, w, h, data, tgt_chans); return writer.result; } /// Returns width, height and color format information via w, h and chans. public void read_png_info(in char[] filename, out int w, out int h, out int chans) { auto reader = scoped!FileReader(filename); return read_png_info(reader, w, h, chans); } /// Returns width, height and color format information via w, h and chans. public void read_png_info_from_mem(in ubyte[] source, out int w, out int h, out int chans) { auto reader = scoped!MemReader(source); return read_png_info(reader, w, h, chans); } // Detects whether a PNG image is readable from stream. package bool detect_png(Reader stream) { try { ubyte[8] tmp = void; stream.readExact(tmp, tmp.length); return (tmp[0..8] == png_file_header[0..$]); } catch (Throwable) { return false; } finally { stream.seek(0, SEEK_SET); } } PNG_Header read_png_header(Reader stream) { ubyte[33] tmp = void; // file header, IHDR len+type+data+crc stream.readExact(tmp, tmp.length); ubyte[4] crc = crc32Of(tmp[12..29]); reverse(crc[]); if ( tmp[0..8] != png_file_header[0..$] || tmp[8..16] != png_image_header || crc != tmp[29..33] ) throw new ImageIOException("corrupt header"); PNG_Header header = { width : bigEndianToNative!int(tmp[16..20]), height : bigEndianToNative!int(tmp[20..24]), bit_depth : tmp[24], color_type : tmp[25], compression_method : tmp[26], filter_method : tmp[27], interlace_method : tmp[28], }; return header; } package IFImage read_png(Reader stream, long req_chans = 0) { PNG_Decoder dc = init_png_decoder(stream, req_chans, 8); IFImage result = { w : dc.w, h : dc.h, c : cast(ColFmt) dc.tgt_chans, pixels : decode_png(dc).bpc8 }; return result; } IFImage16 read_png16(Reader stream, long req_chans = 0) { PNG_Decoder dc = init_png_decoder(stream, req_chans, 16); IFImage16 result = { w : dc.w, h : dc.h, c : cast(ColFmt) dc.tgt_chans, pixels : decode_png(dc).bpc16 }; return result; } PNG_Decoder init_png_decoder(Reader stream, long req_chans, int req_bpc) { if (req_chans < 0 || 4 < req_chans) throw new ImageIOException("come on..."); PNG_Header hdr = read_png_header(stream); if (hdr.width < 1 || hdr.height < 1 || int.max < cast(ulong) hdr.width * hdr.height) throw new ImageIOException("invalid dimensions"); if ((hdr.bit_depth != 8 && hdr.bit_depth != 16) || (req_bpc != 8 && req_bpc != 16)) throw new ImageIOException("only 8-bit and 16-bit images supported"); if (! (hdr.color_type == PNG_ColorType.Y || hdr.color_type == PNG_ColorType.RGB || hdr.color_type == PNG_ColorType.Idx || hdr.color_type == PNG_ColorType.YA || hdr.color_type == PNG_ColorType.RGBA) ) throw new ImageIOException("color type not supported"); if (hdr.compression_method != 0 || hdr.filter_method != 0 || (hdr.interlace_method != 0 && hdr.interlace_method != 1)) throw new ImageIOException("not supported"); PNG_Decoder dc = { stream : stream, src_indexed : (hdr.color_type == PNG_ColorType.Idx), src_chans : channels(cast(PNG_ColorType) hdr.color_type), bpc : hdr.bit_depth, req_bpc : req_bpc, ilace : hdr.interlace_method, w : hdr.width, h : hdr.height, }; dc.tgt_chans = (req_chans == 0) ? dc.src_chans : cast(int) req_chans; return dc; } immutable ubyte[8] png_file_header = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]; immutable ubyte[8] png_image_header = [0x0, 0x0, 0x0, 0xd, 'I','H','D','R']; int channels(PNG_ColorType ct) pure nothrow { final switch (ct) with (PNG_ColorType) { case Y: return 1; case RGB: return 3; case YA: return 2; case RGBA, Idx: return 4; } } PNG_ColorType color_type(long channels) pure nothrow { switch (channels) { case 1: return PNG_ColorType.Y; case 2: return PNG_ColorType.YA; case 3: return PNG_ColorType.RGB; case 4: return PNG_ColorType.RGBA; default: assert(0); } } struct PNG_Decoder { Reader stream; bool src_indexed; int src_chans; int tgt_chans; int bpc; int req_bpc; int w, h; ubyte ilace; CRC32 crc; ubyte[12] chunkmeta; // crc | length and type ubyte[] read_buf; ubyte[] palette; ubyte[] transparency; // decompression z_stream* z; // zlib stream uint avail_idat; // available bytes in current idat chunk ubyte[] idat_window; // slice of read_buf } Buffer decode_png(ref PNG_Decoder dc) { dc.read_buf = new ubyte[4096]; enum Stage { IHDR_parsed, PLTE_parsed, IDAT_parsed, IEND_parsed, } Buffer result; auto stage = Stage.IHDR_parsed; dc.stream.readExact(dc.chunkmeta[4..$], 8); // next chunk's len and type while (stage != Stage.IEND_parsed) { int len = bigEndianToNative!int(dc.chunkmeta[4..8]); if (len < 0) throw new ImageIOException("chunk too long"); // standard allows PLTE chunk for non-indexed images too but we don't dc.crc.put(dc.chunkmeta[8..12]); // type switch (cast(char[]) dc.chunkmeta[8..12]) { // chunk type case "IDAT": if (! (stage == Stage.IHDR_parsed || (stage == Stage.PLTE_parsed && dc.src_indexed)) ) throw new ImageIOException("corrupt chunk stream"); result = read_IDAT_stream(dc, len); dc.stream.readExact(dc.chunkmeta, 12); // crc | len, type ubyte[4] crc = dc.crc.finish; reverse(crc[]); if (crc != dc.chunkmeta[0..4]) throw new ImageIOException("corrupt chunk"); stage = Stage.IDAT_parsed; break; case "PLTE": if (stage != Stage.IHDR_parsed) throw new ImageIOException("corrupt chunk stream"); int entries = len / 3; if (len % 3 != 0 || 256 < entries) throw new ImageIOException("corrupt chunk"); dc.palette = new ubyte[len]; dc.stream.readExact(dc.palette, dc.palette.length); dc.crc.put(dc.palette); dc.stream.readExact(dc.chunkmeta, 12); // crc | len, type ubyte[4] crc = dc.crc.finish; reverse(crc[]); if (crc != dc.chunkmeta[0..4]) throw new ImageIOException("corrupt chunk"); stage = Stage.PLTE_parsed; break; case "tRNS": if (! (stage == Stage.IHDR_parsed || (stage == Stage.PLTE_parsed && dc.src_indexed)) ) throw new ImageIOException("corrupt chunk stream"); if (dc.src_indexed) { size_t entries = dc.palette.length / 3; if (len > entries) throw new ImageIOException("corrupt chunk"); } dc.transparency = new ubyte[len]; dc.stream.readExact(dc.transparency, dc.transparency.length); dc.stream.readExact(dc.chunkmeta, 12); dc.crc.put(dc.transparency); ubyte[4] crc = dc.crc.finish; reverse(crc[]); if (crc != dc.chunkmeta[0..4]) throw new ImageIOException("corrupt chunk"); break; case "IEND": if (stage != Stage.IDAT_parsed) throw new ImageIOException("corrupt chunk stream"); dc.stream.readExact(dc.chunkmeta, 4); // crc static immutable ubyte[4] expectedCRC = [0xae, 0x42, 0x60, 0x82]; if (len != 0 || dc.chunkmeta[0..4] != expectedCRC) throw new ImageIOException("corrupt chunk"); stage = Stage.IEND_parsed; break; case "IHDR": throw new ImageIOException("corrupt chunk stream"); default: // unknown chunk, ignore but check crc while (0 < len) { size_t bytes = min(len, dc.read_buf.length); dc.stream.readExact(dc.read_buf, bytes); len -= bytes; dc.crc.put(dc.read_buf[0..bytes]); } dc.stream.readExact(dc.chunkmeta, 12); // crc | len, type ubyte[4] crc = dc.crc.finish; reverse(crc[]); if (crc != dc.chunkmeta[0..4]) throw new ImageIOException("corrupt chunk"); } } return result; } enum PNG_ColorType : ubyte { Y = 0, RGB = 2, Idx = 3, YA = 4, RGBA = 6, } enum PNG_FilterType : ubyte { None = 0, Sub = 1, Up = 2, Average = 3, Paeth = 4, } enum InterlaceMethod { None = 0, Adam7 = 1 } union Buffer { ubyte[] bpc8; ushort[] bpc16; } Buffer read_IDAT_stream(ref PNG_Decoder dc, int len) { assert(dc.req_bpc == 8 || dc.req_bpc == 16); // initialize zlib stream z_stream z = { zalloc: null, zfree: null, opaque: null }; if (inflateInit(&z) != Z_OK) throw new ImageIOException("can't init zlib"); dc.z = &z; dc.avail_idat = len; scope(exit) inflateEnd(&z); const size_t filter_step = dc.src_indexed ? 1 : dc.src_chans * (dc.bpc == 8 ? 1 : 2); ubyte[] depaletted = dc.src_indexed ? new ubyte[dc.w * 4] : null; auto cline = new ubyte[dc.w * filter_step + 1]; // +1 for filter type byte auto pline = new ubyte[dc.w * filter_step + 1]; // +1 for filter type byte auto cline8 = (dc.req_bpc == 8 && dc.bpc != 8) ? new ubyte[dc.w * dc.src_chans] : null; auto cline16 = (dc.req_bpc == 16) ? new ushort[dc.w * dc.src_chans] : null; ubyte[] result8 = (dc.req_bpc == 8) ? new ubyte[dc.w * dc.h * dc.tgt_chans] : null; ushort[] result16 = (dc.req_bpc == 16) ? new ushort[dc.w * dc.h * dc.tgt_chans] : null; const LineConv!ubyte convert8 = get_converter!ubyte(dc.src_chans, dc.tgt_chans); const LineConv!ushort convert16 = get_converter!ushort(dc.src_chans, dc.tgt_chans); if (dc.ilace == InterlaceMethod.None) { const size_t src_linelen = dc.w * dc.src_chans; const size_t tgt_linelen = dc.w * dc.tgt_chans; size_t ti = 0; // target index foreach (j; 0 .. dc.h) { uncompress(dc, cline); ubyte filter_type = cline[0]; recon(cline[1..$], pline[1..$], filter_type, filter_step); ubyte[] bytes; // defiltered bytes or 8-bit samples from palette if (dc.src_indexed) { depalette(dc.palette, dc.transparency, cline[1..$], depaletted); bytes = depaletted[0 .. src_linelen]; } else { bytes = cline[1..$]; } // convert colors if (dc.req_bpc == 8) { line8_from_bytes(bytes, dc.bpc, cline8); convert8(cline8[0 .. src_linelen], result8[ti .. ti + tgt_linelen]); } else { line16_from_bytes(bytes, dc.bpc, cline16); convert16(cline16[0 .. src_linelen], result16[ti .. ti + tgt_linelen]); } ti += tgt_linelen; ubyte[] _swap = pline; pline = cline; cline = _swap; } } else { // Adam7 interlacing immutable size_t[7] redw = [(dc.w + 7) / 8, (dc.w + 3) / 8, (dc.w + 3) / 4, (dc.w + 1) / 4, (dc.w + 1) / 2, (dc.w + 0) / 2, (dc.w + 0) / 1]; immutable size_t[7] redh = [(dc.h + 7) / 8, (dc.h + 7) / 8, (dc.h + 3) / 8, (dc.h + 3) / 4, (dc.h + 1) / 4, (dc.h + 1) / 2, (dc.h + 0) / 2]; auto redline8 = (dc.req_bpc == 8) ? new ubyte[dc.w * dc.tgt_chans] : null; auto redline16 = (dc.req_bpc == 16) ? new ushort[dc.w * dc.tgt_chans] : null; foreach (pass; 0 .. 7) { const A7_Catapult tgt_px = a7_catapults[pass]; // target pixel const size_t src_linelen = redw[pass] * dc.src_chans; ubyte[] cln = cline[0 .. redw[pass] * filter_step + 1]; ubyte[] pln = pline[0 .. redw[pass] * filter_step + 1]; pln[] = 0; foreach (j; 0 .. redh[pass]) { uncompress(dc, cln); ubyte filter_type = cln[0]; recon(cln[1..$], pln[1..$], filter_type, filter_step); ubyte[] bytes; // defiltered bytes or 8-bit samples from palette if (dc.src_indexed) { depalette(dc.palette, dc.transparency, cln[1..$], depaletted); bytes = depaletted[0 .. src_linelen]; } else { bytes = cln[1..$]; } // convert colors and sling pixels from reduced image to final buffer if (dc.req_bpc == 8) { line8_from_bytes(bytes, dc.bpc, cline8); convert8(cline8[0 .. src_linelen], redline8[0 .. redw[pass]*dc.tgt_chans]); for (size_t i, redi; i < redw[pass]; ++i, redi += dc.tgt_chans) { size_t tgt = tgt_px(i, j, dc.w) * dc.tgt_chans; result8[tgt .. tgt + dc.tgt_chans] = redline8[redi .. redi + dc.tgt_chans]; } } else { line16_from_bytes(bytes, dc.bpc, cline16); convert16(cline16[0 .. src_linelen], redline16[0 .. redw[pass]*dc.tgt_chans]); for (size_t i, redi; i < redw[pass]; ++i, redi += dc.tgt_chans) { size_t tgt = tgt_px(i, j, dc.w) * dc.tgt_chans; result16[tgt .. tgt + dc.tgt_chans] = redline16[redi .. redi + dc.tgt_chans]; } } ubyte[] _swap = pln; pln = cln; cln = _swap; } } } Buffer result; switch (dc.req_bpc) { case 8: result.bpc8 = result8; return result; case 16: result.bpc16 = result16; return result; default: throw new ImageIOException("internal error"); } } void line8_from_bytes(ubyte[] src, int bpc, ref ubyte[] tgt) { switch (bpc) { case 8: tgt = src; break; case 16: for (size_t k, t; k < src.length; k+=2, t+=1) { tgt[t] = src[k]; /* truncate */ } break; default: throw new ImageIOException("unsupported bit depth (and bug)"); } } void line16_from_bytes(in ubyte[] src, int bpc, ushort[] tgt) { switch (bpc) { case 8: for (size_t k; k < src.length; k+=1) { tgt[k] = src[k] * 256 + 128; } break; case 16: for (size_t k, t; k < src.length; k+=2, t+=1) { tgt[t] = src[k] << 8 | src[k+1]; } break; default: throw new ImageIOException("unsupported bit depth (and bug)"); } } void depalette(in ubyte[] palette, in ubyte[] transparency, in ubyte[] src_line, ubyte[] depaletted) pure { for (size_t s, d; s < src_line.length; s+=1, d+=4) { ubyte pid = src_line[s]; size_t pidx = pid * 3; if (palette.length < pidx + 3) throw new ImageIOException("palette index wrong"); depaletted[d .. d+3] = palette[pidx .. pidx+3]; depaletted[d+3] = (pid < transparency.length) ? transparency[pid] : 255; } } alias A7_Catapult = size_t function(size_t redx, size_t redy, size_t dstw); immutable A7_Catapult[7] a7_catapults = [ &a7_red1_to_dst, &a7_red2_to_dst, &a7_red3_to_dst, &a7_red4_to_dst, &a7_red5_to_dst, &a7_red6_to_dst, &a7_red7_to_dst, ]; pure nothrow { size_t a7_red1_to_dst(size_t redx, size_t redy, size_t dstw) { return redy*8*dstw + redx*8; } size_t a7_red2_to_dst(size_t redx, size_t redy, size_t dstw) { return redy*8*dstw + redx*8+4; } size_t a7_red3_to_dst(size_t redx, size_t redy, size_t dstw) { return (redy*8+4)*dstw + redx*4; } size_t a7_red4_to_dst(size_t redx, size_t redy, size_t dstw) { return redy*4*dstw + redx*4+2; } size_t a7_red5_to_dst(size_t redx, size_t redy, size_t dstw) { return (redy*4+2)*dstw + redx*2; } size_t a7_red6_to_dst(size_t redx, size_t redy, size_t dstw) { return redy*2*dstw + redx*2+1; } size_t a7_red7_to_dst(size_t redx, size_t redy, size_t dstw) { return (redy*2+1)*dstw + redx; } } // Uncompresses a line from the IDAT stream into dst. void uncompress(ref PNG_Decoder dc, ubyte[] dst) { dc.z.avail_out = cast(uint) dst.length; dc.z.next_out = dst.ptr; while (true) { if (!dc.z.avail_in) { if (!dc.avail_idat) { dc.stream.readExact(dc.chunkmeta, 12); // crc | len & type ubyte[4] crc = dc.crc.finish; reverse(crc[]); if (crc != dc.chunkmeta[0..4]) throw new ImageIOException("corrupt chunk"); dc.avail_idat = bigEndianToNative!uint(dc.chunkmeta[4..8]); if (!dc.avail_idat) throw new ImageIOException("invalid data"); if (dc.chunkmeta[8..12] != "IDAT") throw new ImageIOException("not enough data"); dc.crc.put(dc.chunkmeta[8..12]); } const size_t n = min(dc.avail_idat, dc.read_buf.length); dc.stream.readExact(dc.read_buf, n); dc.idat_window = dc.read_buf[0..n]; if (!dc.idat_window) throw new ImageIOException("TODO"); dc.crc.put(dc.idat_window); dc.avail_idat -= cast(uint) dc.idat_window.length; dc.z.avail_in = cast(uint) dc.idat_window.length; dc.z.next_in = dc.idat_window.ptr; } int q = inflate(dc.z, Z_NO_FLUSH); if (dc.z.avail_out == 0) return; if (q != Z_OK) throw new ImageIOException("zlib error"); } } void recon(ubyte[] cline, in ubyte[] pline, ubyte ftype, size_t fstep) pure { switch (ftype) with (PNG_FilterType) { case None: break; case Sub: foreach (k; fstep .. cline.length) cline[k] += cline[k-fstep]; break; case Up: foreach (k; 0 .. cline.length) cline[k] += pline[k]; break; case Average: foreach (k; 0 .. fstep) cline[k] += pline[k] / 2; foreach (k; fstep .. cline.length) cline[k] += cast(ubyte) ((cast(uint) cline[k-fstep] + cast(uint) pline[k]) / 2); break; case Paeth: foreach (i; 0 .. fstep) cline[i] += paeth(0, pline[i], 0); foreach (i; fstep .. cline.length) cline[i] += paeth(cline[i-fstep], pline[i], pline[i-fstep]); break; default: throw new ImageIOException("filter type not supported"); } } ubyte paeth(ubyte a, ubyte b, ubyte c) pure nothrow { int pc = c; int pa = b - pc; int pb = a - pc; pc = pa + pb; if (pa < 0) pa = -pa; if (pb < 0) pb = -pb; if (pc < 0) pc = -pc; if (pa <= pb && pa <= pc) { return a; } else if (pb <= pc) { return b; } return c; } // ---------------------------------------------------------------------- // PNG encoder void write_png(Writer stream, long w, long h, in ubyte[] data, long tgt_chans = 0) { if (w < 1 || h < 1 || int.max < w || int.max < h) throw new ImageIOException("invalid dimensions"); uint src_chans = cast(uint) (data.length / w / h); if (src_chans < 1 || 4 < src_chans || tgt_chans < 0 || 4 < tgt_chans) throw new ImageIOException("invalid channel count"); if (src_chans * w * h != data.length) throw new ImageIOException("mismatching dimensions and length"); PNG_Encoder ec = { stream : stream, w : cast(size_t) w, h : cast(size_t) h, src_chans : src_chans, tgt_chans : tgt_chans ? cast(uint) tgt_chans : src_chans, data : data, }; write_png(ec); stream.flush(); } enum MAXIMUM_CHUNK_SIZE = 8192; struct PNG_Encoder { Writer stream; size_t w, h; uint src_chans; uint tgt_chans; const(ubyte)[] data; CRC32 crc; z_stream* z; ubyte[] idatbuf; } void write_png(ref PNG_Encoder ec) { ubyte[33] hdr = void; hdr[ 0 .. 8] = png_file_header; hdr[ 8 .. 16] = png_image_header; hdr[16 .. 20] = nativeToBigEndian(cast(uint) ec.w); hdr[20 .. 24] = nativeToBigEndian(cast(uint) ec.h); hdr[24 ] = 8; // bit depth hdr[25 ] = color_type(ec.tgt_chans); hdr[26 .. 29] = 0; // compression, filter and interlace methods ec.crc.start(); ec.crc.put(hdr[12 .. 29]); ubyte[4] crc = ec.crc.finish(); reverse(crc[]); hdr[29 .. 33] = crc; ec.stream.rawWrite(hdr); write_IDATs(ec); static immutable ubyte[12] iend = [0, 0, 0, 0, 'I','E','N','D', 0xae, 0x42, 0x60, 0x82]; ec.stream.rawWrite(iend); } void write_IDATs(ref PNG_Encoder ec) { // initialize zlib stream z_stream z = { zalloc: null, zfree: null, opaque: null }; if (deflateInit(&z, Z_DEFAULT_COMPRESSION) != Z_OK) throw new ImageIOException("zlib init error"); scope(exit) deflateEnd(ec.z); ec.z = &z; const LineConv!ubyte convert = get_converter!ubyte(ec.src_chans, ec.tgt_chans); const size_t filter_step = ec.tgt_chans; // step between pixels, in bytes const size_t slinesz = ec.w * ec.src_chans; const size_t tlinesz = ec.w * ec.tgt_chans + 1; const size_t workbufsz = 3 * tlinesz + MAXIMUM_CHUNK_SIZE; ubyte[] workbuf = new ubyte[workbufsz]; ubyte[] cline = workbuf[0 .. tlinesz]; ubyte[] pline = workbuf[tlinesz .. 2 * tlinesz]; ubyte[] filtered = workbuf[2 * tlinesz .. 3 * tlinesz]; ec.idatbuf = workbuf[$-MAXIMUM_CHUNK_SIZE .. $]; workbuf[0..$] = 0; ec.z.avail_out = cast(uint) ec.idatbuf.length; ec.z.next_out = ec.idatbuf.ptr; const size_t ssize = ec.w * ec.src_chans * ec.h; for (size_t si; si < ssize; si += slinesz) { convert(ec.data[si .. si + slinesz], cline[1..$]); // these loops could be merged with some extra space... foreach (i; 1 .. filter_step+1) filtered[i] = cast(ubyte) (cline[i] - paeth(0, pline[i], 0)); foreach (i; filter_step+1 .. tlinesz) filtered[i] = cast(ubyte) (cline[i] - paeth(cline[i-filter_step], pline[i], pline[i-filter_step])); filtered[0] = PNG_FilterType.Paeth; compress(ec, filtered); ubyte[] _swap = pline; pline = cline; cline = _swap; } while (true) { // flush zlib int q = deflate(ec.z, Z_FINISH); if (ec.idatbuf.length - ec.z.avail_out > 0) flush_idat(ec); if (q == Z_STREAM_END) break; if (q == Z_OK) continue; // not enough avail_out throw new ImageIOException("zlib compression error"); } } void compress(ref PNG_Encoder ec, in ubyte[] line) { ec.z.avail_in = cast(uint) line.length; ec.z.next_in = line.ptr; while (ec.z.avail_in) { int q = deflate(ec.z, Z_NO_FLUSH); if (q != Z_OK) throw new ImageIOException("zlib compression error"); if (ec.z.avail_out == 0) flush_idat(ec); } } void flush_idat(ref PNG_Encoder ec) // writes an idat chunk { const uint len = cast(uint) (ec.idatbuf.length - ec.z.avail_out); ec.crc.put(cast(const(ubyte)[]) "IDAT"); ec.crc.put(ec.idatbuf[0 .. len]); ubyte[8] meta; meta[0..4] = nativeToBigEndian!uint(len); meta[4..8] = cast(ubyte[4]) "IDAT"; ec.stream.rawWrite(meta); ec.stream.rawWrite(ec.idatbuf[0 .. len]); ubyte[4] crc = ec.crc.finish(); reverse(crc[]); ec.stream.rawWrite(crc[0..$]); ec.z.next_out = ec.idatbuf.ptr; ec.z.avail_out = cast(uint) ec.idatbuf.length; } package void read_png_info(Reader stream, out int w, out int h, out int chans) { PNG_Header hdr = read_png_header(stream); w = hdr.width; h = hdr.height; chans = channels(cast(PNG_ColorType) hdr.color_type); }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/dsymbolsem.d, _dsymbolsem.d) * Documentation: https://dlang.org/phobos/dmd_dsymbolsem.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/dsymbolsem.d */ module dmd.dsymbolsem; import core.stdc.stdio; import core.stdc.string; import dmd.aggregate; import dmd.aliasthis; import dmd.arraytypes; import dmd.astcodegen; import dmd.attrib; import dmd.blockexit; import dmd.clone; import dmd.dcast; import dmd.dclass; import dmd.declaration; import dmd.denum; import dmd.dimport; import dmd.dinterpret; import dmd.dmodule; import dmd.dscope; import dmd.dstruct; import dmd.dsymbol; import dmd.dtemplate; import dmd.dversion; import dmd.errors; import dmd.escape; import dmd.expression; import dmd.expressionsem; import dmd.func; import dmd.globals; import dmd.gluelayer; import dmd.id; import dmd.identifier; import dmd.init; import dmd.initsem; import dmd.hdrgen; import dmd.mars; import dmd.mtype; import dmd.nogc; import dmd.nspace; import dmd.objc; import dmd.opover; import dmd.parse; import dmd.root.filename; import dmd.root.outbuffer; import dmd.root.rmem; import dmd.root.rootobject; import dmd.semantic2; import dmd.semantic3; import dmd.sideeffect; import dmd.statementsem; import dmd.staticassert; import dmd.tokens; import dmd.utf; import dmd.utils; import dmd.statement; import dmd.target; import dmd.templateparamsem; import dmd.typesem; import dmd.visitor; enum LOG = false; private uint setMangleOverride(Dsymbol s, char* sym) { AttribDeclaration ad = s.isAttribDeclaration(); if (ad) { Dsymbols* decls = ad.include(null); uint nestedCount = 0; if (decls && decls.dim) for (size_t i = 0; i < decls.dim; ++i) nestedCount += setMangleOverride((*decls)[i], sym); return nestedCount; } else if (s.isFuncDeclaration() || s.isVarDeclaration()) { s.isDeclaration().mangleOverride = sym; return 1; } else return 0; } /************************************* * Does semantic analysis on the public face of declarations. */ extern(C++) void dsymbolSemantic(Dsymbol dsym, Scope* sc) { scope v = new DsymbolSemanticVisitor(sc); dsym.accept(v); } structalign_t getAlignment(AlignDeclaration ad, Scope* sc) { if (ad.salign != ad.UNKNOWN) return ad.salign; if (!ad.ealign) return ad.salign = STRUCTALIGN_DEFAULT; sc = sc.startCTFE(); ad.ealign = ad.ealign.expressionSemantic(sc); ad.ealign = resolveProperties(sc, ad.ealign); sc = sc.endCTFE(); ad.ealign = ad.ealign.ctfeInterpret(); if (ad.ealign.op == TOKerror) return ad.salign = STRUCTALIGN_DEFAULT; Type tb = ad.ealign.type.toBasetype(); auto n = ad.ealign.toInteger(); if (n < 1 || n & (n - 1) || structalign_t.max < n || !tb.isintegral()) { error(ad.loc, "alignment must be an integer positive power of 2, not %s", ad.ealign.toChars()); return ad.salign = STRUCTALIGN_DEFAULT; } return ad.salign = cast(structalign_t)n; } const(char)* getMessage(DeprecatedDeclaration dd) { if (auto sc = dd._scope) { dd._scope = null; sc = sc.startCTFE(); dd.msg = dd.msg.expressionSemantic(sc); dd.msg = resolveProperties(sc, dd.msg); sc = sc.endCTFE(); dd.msg = dd.msg.ctfeInterpret(); if (auto se = dd.msg.toStringExp()) dd.msgstr = se.toStringz().ptr; else dd.msg.error("compile time constant expected, not `%s`", dd.msg.toChars()); } return dd.msgstr; } // Returns true if a contract can appear without a function body. package bool allowsContractWithoutBody(FuncDeclaration funcdecl) { assert(!funcdecl.fbody); /* Contracts can only appear without a body when they are virtual * interface functions or abstract. */ Dsymbol parent = funcdecl.toParent(); InterfaceDeclaration id = parent.isInterfaceDeclaration(); if (!funcdecl.isAbstract() && (funcdecl.fensure || funcdecl.frequire) && !(id && funcdecl.isVirtual())) { auto cd = parent.isClassDeclaration(); if (!(cd && cd.isAbstract())) return false; } return true; } private extern(C++) final class DsymbolSemanticVisitor : Visitor { alias visit = Visitor.visit; Scope* sc; this(Scope* sc) { this.sc = sc; } override void visit(Dsymbol dsym) { dsym.error("%p has no semantic routine", dsym); } override void visit(ScopeDsymbol) { } override void visit(Declaration) { } override void visit(AliasThis dsym) { if (dsym.semanticRun != PASSinit) return; if (dsym._scope) { sc = dsym._scope; dsym._scope = null; } if (!sc) return; dsym.semanticRun = PASSsemantic; Dsymbol p = sc.parent.pastMixin(); AggregateDeclaration ad = p.isAggregateDeclaration(); if (!ad) { error(dsym.loc, "alias this can only be a member of aggregate, not %s `%s`", p.kind(), p.toChars()); return; } assert(ad.members); Dsymbol s = ad.search(dsym.loc, dsym.ident); if (!s) { s = sc.search(dsym.loc, dsym.ident, null); if (s) error(dsym.loc, "`%s` is not a member of `%s`", s.toChars(), ad.toChars()); else error(dsym.loc, "undefined identifier `%s`", dsym.ident.toChars()); return; } if (ad.aliasthis && s != ad.aliasthis) { error(dsym.loc, "there can be only one alias this"); return; } /* disable the alias this conversion so the implicit conversion check * doesn't use it. */ ad.aliasthis = null; Dsymbol sx = s; if (sx.isAliasDeclaration()) sx = sx.toAlias(); Declaration d = sx.isDeclaration(); if (d && !d.isTupleDeclaration()) { Type t = d.type; assert(t); if (ad.type.implicitConvTo(t) > MATCH.nomatch) { error(dsym.loc, "alias this is not reachable as `%s` already converts to `%s`", ad.toChars(), t.toChars()); } } ad.aliasthis = s; dsym.semanticRun = PASSsemanticdone; } override void visit(AliasDeclaration dsym) { if (dsym.semanticRun >= PASSsemanticdone) return; assert(dsym.semanticRun <= PASSsemantic); dsym.storage_class |= sc.stc & STCdeprecated; dsym.protection = sc.protection; dsym.userAttribDecl = sc.userAttribDecl; if (!sc.func && dsym.inNonRoot()) return; aliasSemantic(dsym, sc); } override void visit(VarDeclaration dsym) { version (none) { printf("VarDeclaration::semantic('%s', parent = '%s') sem = %d\n", toChars(), sc.parent ? sc.parent.toChars() : null, sem); printf(" type = %s\n", type ? type.toChars() : "null"); printf(" stc = x%x\n", sc.stc); printf(" storage_class = x%llx\n", storage_class); printf("linkage = %d\n", sc.linkage); //if (strcmp(toChars(), "mul") == 0) assert(0); } //if (semanticRun > PASSinit) // return; //semanticRun = PSSsemantic; if (dsym.semanticRun >= PASSsemanticdone) return; Scope* scx = null; if (dsym._scope) { sc = dsym._scope; scx = sc; dsym._scope = null; } if (!sc) return; dsym.semanticRun = PASSsemantic; /* Pick up storage classes from context, but except synchronized, * override, abstract, and final. */ dsym.storage_class |= (sc.stc & ~(STCsynchronized | STCoverride | STCabstract | STCfinal)); if (dsym.storage_class & STCextern && dsym._init) dsym.error("extern symbols cannot have initializers"); dsym.userAttribDecl = sc.userAttribDecl; AggregateDeclaration ad = dsym.isThis(); if (ad) dsym.storage_class |= ad.storage_class & STC_TYPECTOR; /* If auto type inference, do the inference */ int inferred = 0; if (!dsym.type) { dsym.inuse++; // Infering the type requires running semantic, // so mark the scope as ctfe if required bool needctfe = (dsym.storage_class & (STCmanifest | STCstatic)) != 0; if (needctfe) sc = sc.startCTFE(); //printf("inferring type for %s with init %s\n", toChars(), _init.toChars()); dsym._init = dsym._init.inferType(sc); dsym.type = dsym._init.initializerToExpression().type; if (needctfe) sc = sc.endCTFE(); dsym.inuse--; inferred = 1; /* This is a kludge to support the existing syntax for RAII * declarations. */ dsym.storage_class &= ~STCauto; dsym.originalType = dsym.type.syntaxCopy(); } else { if (!dsym.originalType) dsym.originalType = dsym.type.syntaxCopy(); /* Prefix function attributes of variable declaration can affect * its type: * pure nothrow void function() fp; * static assert(is(typeof(fp) == void function() pure nothrow)); */ Scope* sc2 = sc.push(); sc2.stc |= (dsym.storage_class & STC_FUNCATTR); dsym.inuse++; dsym.type = dsym.type.typeSemantic(dsym.loc, sc2); dsym.inuse--; sc2.pop(); } //printf(" semantic type = %s\n", type ? type.toChars() : "null"); if (dsym.type.ty == Terror) dsym.errors = true; dsym.type.checkDeprecated(dsym.loc, sc); dsym.linkage = sc.linkage; dsym.parent = sc.parent; //printf("this = %p, parent = %p, '%s'\n", this, parent, parent.toChars()); dsym.protection = sc.protection; /* If scope's alignment is the default, use the type's alignment, * otherwise the scope overrrides. */ dsym.alignment = sc.alignment(); if (dsym.alignment == STRUCTALIGN_DEFAULT) dsym.alignment = dsym.type.alignment(); // use type's alignment //printf("sc.stc = %x\n", sc.stc); //printf("storage_class = x%x\n", storage_class); if (global.params.vcomplex) dsym.type.checkComplexTransition(dsym.loc); // Calculate type size + safety checks if (sc.func && !sc.intypeof) { if (dsym.storage_class & STCgshared && !dsym.isMember()) { if (sc.func.setUnsafe()) dsym.error("__gshared not allowed in safe functions; use shared"); } } Dsymbol parent = dsym.toParent(); Type tb = dsym.type.toBasetype(); Type tbn = tb.baseElemOf(); if (tb.ty == Tvoid && !(dsym.storage_class & STClazy)) { if (inferred) { dsym.error("type %s is inferred from initializer %s, and variables cannot be of type void", dsym.type.toChars(), dsym._init.toChars()); } else dsym.error("variables cannot be of type void"); dsym.type = Type.terror; tb = dsym.type; } if (tb.ty == Tfunction) { dsym.error("cannot be declared to be a function"); dsym.type = Type.terror; tb = dsym.type; } if (tb.ty == Tstruct) { TypeStruct ts = cast(TypeStruct)tb; if (!ts.sym.members) { dsym.error("no definition of struct %s", ts.toChars()); } } if ((dsym.storage_class & STCauto) && !inferred) dsym.error("storage class 'auto' has no effect if type is not inferred, did you mean 'scope'?"); if (tb.ty == Ttuple) { /* Instead, declare variables for each of the tuple elements * and add those. */ TypeTuple tt = cast(TypeTuple)tb; size_t nelems = Parameter.dim(tt.arguments); Expression ie = (dsym._init && !dsym._init.isVoidInitializer()) ? dsym._init.initializerToExpression() : null; if (ie) ie = ie.expressionSemantic(sc); if (nelems > 0 && ie) { auto iexps = new Expressions(); iexps.push(ie); auto exps = new Expressions(); for (size_t pos = 0; pos < iexps.dim; pos++) { Lexpand1: Expression e = (*iexps)[pos]; Parameter arg = Parameter.getNth(tt.arguments, pos); arg.type = arg.type.typeSemantic(dsym.loc, sc); //printf("[%d] iexps.dim = %d, ", pos, iexps.dim); //printf("e = (%s %s, %s), ", Token::tochars[e.op], e.toChars(), e.type.toChars()); //printf("arg = (%s, %s)\n", arg.toChars(), arg.type.toChars()); if (e != ie) { if (iexps.dim > nelems) goto Lnomatch; if (e.type.implicitConvTo(arg.type)) continue; } if (e.op == TOKtuple) { TupleExp te = cast(TupleExp)e; if (iexps.dim - 1 + te.exps.dim > nelems) goto Lnomatch; iexps.remove(pos); iexps.insert(pos, te.exps); (*iexps)[pos] = Expression.combine(te.e0, (*iexps)[pos]); goto Lexpand1; } else if (isAliasThisTuple(e)) { auto v = copyToTemp(0, "__tup", e); v.dsymbolSemantic(sc); auto ve = new VarExp(dsym.loc, v); ve.type = e.type; exps.setDim(1); (*exps)[0] = ve; expandAliasThisTuples(exps, 0); for (size_t u = 0; u < exps.dim; u++) { Lexpand2: Expression ee = (*exps)[u]; arg = Parameter.getNth(tt.arguments, pos + u); arg.type = arg.type.typeSemantic(dsym.loc, sc); //printf("[%d+%d] exps.dim = %d, ", pos, u, exps.dim); //printf("ee = (%s %s, %s), ", Token::tochars[ee.op], ee.toChars(), ee.type.toChars()); //printf("arg = (%s, %s)\n", arg.toChars(), arg.type.toChars()); size_t iexps_dim = iexps.dim - 1 + exps.dim; if (iexps_dim > nelems) goto Lnomatch; if (ee.type.implicitConvTo(arg.type)) continue; if (expandAliasThisTuples(exps, u) != -1) goto Lexpand2; } if ((*exps)[0] != ve) { Expression e0 = (*exps)[0]; (*exps)[0] = new CommaExp(dsym.loc, new DeclarationExp(dsym.loc, v), e0); (*exps)[0].type = e0.type; iexps.remove(pos); iexps.insert(pos, exps); goto Lexpand1; } } } if (iexps.dim < nelems) goto Lnomatch; ie = new TupleExp(dsym._init.loc, iexps); } Lnomatch: if (ie && ie.op == TOKtuple) { TupleExp te = cast(TupleExp)ie; size_t tedim = te.exps.dim; if (tedim != nelems) { error(dsym.loc, "tuple of %d elements cannot be assigned to tuple of %d elements", cast(int)tedim, cast(int)nelems); for (size_t u = tedim; u < nelems; u++) // fill dummy expression te.exps.push(new ErrorExp()); } } auto exps = new Objects(); exps.setDim(nelems); for (size_t i = 0; i < nelems; i++) { Parameter arg = Parameter.getNth(tt.arguments, i); OutBuffer buf; buf.printf("__%s_field_%llu", dsym.ident.toChars(), cast(ulong)i); auto id = Identifier.idPool(buf.peekSlice()); Initializer ti; if (ie) { Expression einit = ie; if (ie.op == TOKtuple) { TupleExp te = cast(TupleExp)ie; einit = (*te.exps)[i]; if (i == 0) einit = Expression.combine(te.e0, einit); } ti = new ExpInitializer(einit.loc, einit); } else ti = dsym._init ? dsym._init.syntaxCopy() : null; StorageClass storage_class = STCtemp | dsym.storage_class; if (arg.storageClass & STCparameter) storage_class |= arg.storageClass; auto v = new VarDeclaration(dsym.loc, arg.type, id, ti, storage_class); //printf("declaring field %s of type %s\n", v.toChars(), v.type.toChars()); v.dsymbolSemantic(sc); if (sc.scopesym) { //printf("adding %s to %s\n", v.toChars(), sc.scopesym.toChars()); if (sc.scopesym.members) // Note this prevents using foreach() over members, because the limits can change sc.scopesym.members.push(v); } Expression e = new DsymbolExp(dsym.loc, v); (*exps)[i] = e; } auto v2 = new TupleDeclaration(dsym.loc, dsym.ident, exps); v2.parent = dsym.parent; v2.isexp = true; dsym.aliassym = v2; dsym.semanticRun = PASSsemanticdone; return; } /* Storage class can modify the type */ dsym.type = dsym.type.addStorageClass(dsym.storage_class); /* Adjust storage class to reflect type */ if (dsym.type.isConst()) { dsym.storage_class |= STCconst; if (dsym.type.isShared()) dsym.storage_class |= STCshared; } else if (dsym.type.isImmutable()) dsym.storage_class |= STCimmutable; else if (dsym.type.isShared()) dsym.storage_class |= STCshared; else if (dsym.type.isWild()) dsym.storage_class |= STCwild; if (StorageClass stc = dsym.storage_class & (STCsynchronized | STCoverride | STCabstract | STCfinal)) { if (stc == STCfinal) dsym.error("cannot be final, perhaps you meant const?"); else { OutBuffer buf; stcToBuffer(&buf, stc); dsym.error("cannot be %s", buf.peekString()); } dsym.storage_class &= ~stc; // strip off } if (dsym.storage_class & STCscope) { StorageClass stc = dsym.storage_class & (STCstatic | STCextern | STCmanifest | STCtls | STCgshared); if (stc) { OutBuffer buf; stcToBuffer(&buf, stc); dsym.error("cannot be 'scope' and '%s'", buf.peekString()); } else if (dsym.isMember()) { dsym.error("field cannot be 'scope'"); } else if (!dsym.type.hasPointers()) { dsym.storage_class &= ~STCscope; // silently ignore; may occur in generic code } } if (dsym.storage_class & (STCstatic | STCextern | STCmanifest | STCtemplateparameter | STCtls | STCgshared | STCctfe)) { } else { AggregateDeclaration aad = parent.isAggregateDeclaration(); if (aad) { if (global.params.vfield && dsym.storage_class & (STCconst | STCimmutable) && dsym._init && !dsym._init.isVoidInitializer()) { const(char)* p = dsym.loc.toChars(); const(char)* s = (dsym.storage_class & STCimmutable) ? "immutable" : "const"; fprintf(global.stdmsg, "%s: %s.%s is %s field\n", p ? p : "", ad.toPrettyChars(), dsym.toChars(), s); } dsym.storage_class |= STCfield; if (tbn.ty == Tstruct && (cast(TypeStruct)tbn).sym.noDefaultCtor) { if (!dsym.isThisDeclaration() && !dsym._init) aad.noDefaultCtor = true; } } InterfaceDeclaration id = parent.isInterfaceDeclaration(); if (id) { dsym.error("field not allowed in interface"); } else if (aad && aad.sizeok == SIZEOKdone) { dsym.error("cannot be further field because it will change the determined %s size", aad.toChars()); } /* Templates cannot add fields to aggregates */ TemplateInstance ti = parent.isTemplateInstance(); if (ti) { // Take care of nested templates while (1) { TemplateInstance ti2 = ti.tempdecl.parent.isTemplateInstance(); if (!ti2) break; ti = ti2; } // If it's a member template AggregateDeclaration ad2 = ti.tempdecl.isMember(); if (ad2 && dsym.storage_class != STCundefined) { dsym.error("cannot use template to add field to aggregate '%s'", ad2.toChars()); } } } if ((dsym.storage_class & (STCref | STCparameter | STCforeach | STCtemp | STCresult)) == STCref && dsym.ident != Id.This) { dsym.error("only parameters or foreach declarations can be ref"); } if (dsym.type.hasWild()) { if (dsym.storage_class & (STCstatic | STCextern | STCtls | STCgshared | STCmanifest | STCfield) || dsym.isDataseg()) { dsym.error("only parameters or stack based variables can be inout"); } FuncDeclaration func = sc.func; if (func) { if (func.fes) func = func.fes.func; bool isWild = false; for (FuncDeclaration fd = func; fd; fd = fd.toParent2().isFuncDeclaration()) { if ((cast(TypeFunction)fd.type).iswild) { isWild = true; break; } } if (!isWild) { dsym.error("inout variables can only be declared inside inout functions"); } } } if (!(dsym.storage_class & (STCctfe | STCref | STCresult)) && tbn.ty == Tstruct && (cast(TypeStruct)tbn).sym.noDefaultCtor) { if (!dsym._init) { if (dsym.isField()) { /* For fields, we'll check the constructor later to make sure it is initialized */ dsym.storage_class |= STCnodefaultctor; } else if (dsym.storage_class & STCparameter) { } else dsym.error("default construction is disabled for type %s", dsym.type.toChars()); } } FuncDeclaration fd = parent.isFuncDeclaration(); if (dsym.type.isscope() && !(dsym.storage_class & STCnodtor)) { if (dsym.storage_class & (STCfield | STCout | STCref | STCstatic | STCmanifest | STCtls | STCgshared) || !fd) { dsym.error("globals, statics, fields, manifest constants, ref and out parameters cannot be scope"); } if (!(dsym.storage_class & STCscope)) { if (!(dsym.storage_class & STCparameter) && dsym.ident != Id.withSym) dsym.error("reference to scope class must be scope"); } } // Calculate type size + safety checks if (sc.func && !sc.intypeof) { if (dsym._init && dsym._init.isVoidInitializer() && dsym.type.hasPointers()) // get type size { if (sc.func.setUnsafe()) dsym.error("void initializers for pointers not allowed in safe functions"); } else if (!dsym._init && !(dsym.storage_class & (STCstatic | STCextern | STCtls | STCgshared | STCmanifest | STCfield | STCparameter)) && dsym.type.hasVoidInitPointers()) { if (sc.func.setUnsafe()) dsym.error("void initializers for pointers not allowed in safe functions"); } } if (!dsym._init && !fd) { // If not mutable, initializable by constructor only dsym.storage_class |= STCctorinit; } if (dsym._init) dsym.storage_class |= STCinit; // remember we had an explicit initializer else if (dsym.storage_class & STCmanifest) dsym.error("manifest constants must have initializers"); bool isBlit = false; d_uns64 sz; if (!dsym._init && !sc.inunion && !(dsym.storage_class & (STCstatic | STCgshared | STCextern)) && fd && (!(dsym.storage_class & (STCfield | STCin | STCforeach | STCparameter | STCresult)) || (dsym.storage_class & STCout)) && (sz = dsym.type.size()) != 0) { // Provide a default initializer //printf("Providing default initializer for '%s'\n", toChars()); if (sz == SIZE_INVALID && dsym.type.ty != Terror) dsym.error("size of type %s is invalid", dsym.type.toChars()); Type tv = dsym.type; while (tv.ty == Tsarray) // Don't skip Tenum tv = tv.nextOf(); if (tv.needsNested()) { /* Nested struct requires valid enclosing frame pointer. * In StructLiteralExp::toElem(), it's calculated. */ assert(tbn.ty == Tstruct); checkFrameAccess(dsym.loc, sc, (cast(TypeStruct)tbn).sym); Expression e = tv.defaultInitLiteral(dsym.loc); e = new BlitExp(dsym.loc, new VarExp(dsym.loc, dsym), e); e = e.expressionSemantic(sc); dsym._init = new ExpInitializer(dsym.loc, e); goto Ldtor; } if (tv.ty == Tstruct && (cast(TypeStruct)tv).sym.zeroInit == 1) { /* If a struct is all zeros, as a special case * set it's initializer to the integer 0. * In AssignExp::toElem(), we check for this and issue * a memset() to initialize the struct. * Must do same check in interpreter. */ Expression e = new IntegerExp(dsym.loc, 0, Type.tint32); e = new BlitExp(dsym.loc, new VarExp(dsym.loc, dsym), e); e.type = dsym.type; // don't type check this, it would fail dsym._init = new ExpInitializer(dsym.loc, e); goto Ldtor; } if (dsym.type.baseElemOf().ty == Tvoid) { dsym.error("%s does not have a default initializer", dsym.type.toChars()); } else if (auto e = dsym.type.defaultInit(dsym.loc)) { dsym._init = new ExpInitializer(dsym.loc, e); } // Default initializer is always a blit isBlit = true; } if (dsym._init) { sc = sc.push(); sc.stc &= ~(STC_TYPECTOR | STCpure | STCnothrow | STCnogc | STCref | STCdisable); ExpInitializer ei = dsym._init.isExpInitializer(); if (ei) // https://issues.dlang.org/show_bug.cgi?id=13424 // Preset the required type to fail in FuncLiteralDeclaration::semantic3 ei.exp = inferType(ei.exp, dsym.type); // If inside function, there is no semantic3() call if (sc.func || sc.intypeof == 1) { // If local variable, use AssignExp to handle all the various // possibilities. if (fd && !(dsym.storage_class & (STCmanifest | STCstatic | STCtls | STCgshared | STCextern)) && !dsym._init.isVoidInitializer()) { //printf("fd = '%s', var = '%s'\n", fd.toChars(), toChars()); if (!ei) { ArrayInitializer ai = dsym._init.isArrayInitializer(); Expression e; if (ai && tb.ty == Taarray) e = ai.toAssocArrayLiteral(); else e = dsym._init.initializerToExpression(); if (!e) { // Run semantic, but don't need to interpret dsym._init = dsym._init.initializerSemantic(sc, dsym.type, INITnointerpret); e = dsym._init.initializerToExpression(); if (!e) { dsym.error("is not a static and cannot have static initializer"); e = new ErrorExp(); } } ei = new ExpInitializer(dsym._init.loc, e); dsym._init = ei; } Expression exp = ei.exp; Expression e1 = new VarExp(dsym.loc, dsym); if (isBlit) exp = new BlitExp(dsym.loc, e1, exp); else exp = new ConstructExp(dsym.loc, e1, exp); dsym.canassign++; exp = exp.expressionSemantic(sc); dsym.canassign--; exp = exp.optimize(WANTvalue); if (exp.op == TOKerror) { dsym._init = new ErrorInitializer(); ei = null; } else ei.exp = exp; if (ei && dsym.isScope()) { Expression ex = ei.exp; while (ex.op == TOKcomma) ex = (cast(CommaExp)ex).e2; if (ex.op == TOKblit || ex.op == TOKconstruct) ex = (cast(AssignExp)ex).e2; if (ex.op == TOKnew) { // See if initializer is a NewExp that can be allocated on the stack NewExp ne = cast(NewExp)ex; if (dsym.type.toBasetype().ty == Tclass) { if (ne.newargs && ne.newargs.dim > 1) { dsym.mynew = true; } else { ne.onstack = 1; dsym.onstack = true; } } } else if (ex.op == TOKfunction) { // or a delegate that doesn't escape a reference to the function FuncDeclaration f = (cast(FuncExp)ex).fd; f.tookAddressOf--; } } } else { // https://issues.dlang.org/show_bug.cgi?id=14166 // Don't run CTFE for the temporary variables inside typeof dsym._init = dsym._init.initializerSemantic(sc, dsym.type, sc.intypeof == 1 ? INITnointerpret : INITinterpret); } } else if (parent.isAggregateDeclaration()) { dsym._scope = scx ? scx : sc.copy(); dsym._scope.setNoFree(); } else if (dsym.storage_class & (STCconst | STCimmutable | STCmanifest) || dsym.type.isConst() || dsym.type.isImmutable()) { /* Because we may need the results of a const declaration in a * subsequent type, such as an array dimension, before semantic2() * gets ordinarily run, try to run semantic2() now. * Ignore failure. */ if (!inferred) { uint errors = global.errors; dsym.inuse++; if (ei) { Expression exp = ei.exp.syntaxCopy(); bool needctfe = dsym.isDataseg() || (dsym.storage_class & STCmanifest); if (needctfe) sc = sc.startCTFE(); exp = exp.expressionSemantic(sc); exp = resolveProperties(sc, exp); if (needctfe) sc = sc.endCTFE(); Type tb2 = dsym.type.toBasetype(); Type ti = exp.type.toBasetype(); /* The problem is the following code: * struct CopyTest { * double x; * this(double a) { x = a * 10.0;} * this(this) { x += 2.0; } * } * const CopyTest z = CopyTest(5.3); // ok * const CopyTest w = z; // not ok, postblit not run * static assert(w.x == 55.0); * because the postblit doesn't get run on the initialization of w. */ if (ti.ty == Tstruct) { StructDeclaration sd = (cast(TypeStruct)ti).sym; /* Look to see if initializer involves a copy constructor * (which implies a postblit) */ // there is a copy constructor // and exp is the same struct if (sd.postblit && tb2.toDsymbol(null) == sd) { // The only allowable initializer is a (non-copy) constructor if (exp.isLvalue()) dsym.error("of type struct %s uses this(this), which is not allowed in static initialization", tb2.toChars()); } } ei.exp = exp; } dsym._init = dsym._init.initializerSemantic(sc, dsym.type, INITinterpret); dsym.inuse--; if (global.errors > errors) { dsym._init = new ErrorInitializer(); dsym.type = Type.terror; } } else { dsym._scope = scx ? scx : sc.copy(); dsym._scope.setNoFree(); } } sc = sc.pop(); } Ldtor: /* Build code to execute destruction, if necessary */ dsym.edtor = dsym.callScopeDtor(sc); if (dsym.edtor) { /* If dsym is a local variable, who's type is a struct with a scope destructor, * then make dsym scope, too. */ if (global.params.vsafe && !(dsym.storage_class & (STCparameter | STCtemp | STCfield | STCin | STCforeach | STCresult | STCmanifest)) && !dsym.isDataseg() && !dsym.doNotInferScope && dsym.type.hasPointers()) { auto tv = dsym.type.baseElemOf(); if (tv.ty == Tstruct && (cast(TypeStruct)tv).sym.dtor.storage_class & STCscope) { dsym.storage_class |= STCscope; } } if (sc.func && dsym.storage_class & (STCstatic | STCgshared)) dsym.edtor = dsym.edtor.expressionSemantic(sc._module._scope); else dsym.edtor = dsym.edtor.expressionSemantic(sc); version (none) { // currently disabled because of std.stdio.stdin, stdout and stderr if (dsym.isDataseg() && !(dsym.storage_class & STCextern)) dsym.error("static storage variables cannot have destructors"); } } dsym.semanticRun = PASSsemanticdone; if (dsym.type.toBasetype().ty == Terror) dsym.errors = true; if(sc.scopesym && !sc.scopesym.isAggregateDeclaration()) { for (ScopeDsymbol sym = sc.scopesym; sym && dsym.endlinnum == 0; sym = sym.parent ? sym.parent.isScopeDsymbol() : null) dsym.endlinnum = sym.endlinnum; } } override void visit(TypeInfoDeclaration dsym) { assert(dsym.linkage == LINKc); } override void visit(Import imp) { //printf("Import::semantic('%s') %s\n", toPrettyChars(), id.toChars()); if (imp.semanticRun > PASSinit) return; if (imp._scope) { sc = imp._scope; imp._scope = null; } if (!sc) return; imp.semanticRun = PASSsemantic; // Load if not already done so if (!imp.mod) { imp.load(sc); if (imp.mod) imp.mod.importAll(null); } if (imp.mod) { // Modules need a list of each imported module //printf("%s imports %s\n", sc.module.toChars(), mod.toChars()); sc._module.aimports.push(imp.mod); if (sc.explicitProtection) imp.protection = sc.protection; if (!imp.aliasId && !imp.names.dim) // neither a selective nor a renamed import { ScopeDsymbol scopesym; for (Scope* scd = sc; scd; scd = scd.enclosing) { if (!scd.scopesym) continue; scopesym = scd.scopesym; break; } if (!imp.isstatic) { scopesym.importScope(imp.mod, imp.protection); } // Mark the imported packages as accessible from the current // scope. This access check is necessary when using FQN b/c // we're using a single global package tree. // https://issues.dlang.org/show_bug.cgi?id=313 if (imp.packages) { // import a.b.c.d; auto p = imp.pkg; // a scopesym.addAccessiblePackage(p, imp.protection); foreach (id; (*imp.packages)[1 .. imp.packages.dim]) // [b, c] { p = cast(Package) p.symtab.lookup(id); scopesym.addAccessiblePackage(p, imp.protection); } } scopesym.addAccessiblePackage(imp.mod, imp.protection); // d } imp.mod.dsymbolSemantic(null); if (imp.mod.needmoduleinfo) { //printf("module4 %s because of %s\n", sc.module.toChars(), mod.toChars()); sc._module.needmoduleinfo = 1; } sc = sc.push(imp.mod); sc.protection = imp.protection; for (size_t i = 0; i < imp.aliasdecls.dim; i++) { AliasDeclaration ad = imp.aliasdecls[i]; //printf("\tImport %s alias %s = %s, scope = %p\n", toPrettyChars(), aliases[i].toChars(), names[i].toChars(), ad._scope); if (imp.mod.search(imp.loc, imp.names[i])) { ad.dsymbolSemantic(sc); // If the import declaration is in non-root module, // analysis of the aliased symbol is deferred. // Therefore, don't see the ad.aliassym or ad.type here. } else { Dsymbol s = imp.mod.search_correct(imp.names[i]); if (s) imp.mod.error(imp.loc, "import '%s' not found, did you mean %s '%s'?", imp.names[i].toChars(), s.kind(), s.toChars()); else imp.mod.error(imp.loc, "import '%s' not found", imp.names[i].toChars()); ad.type = Type.terror; } } sc = sc.pop(); } imp.semanticRun = PASSsemanticdone; // object self-imports itself, so skip that // https://issues.dlang.org/show_bug.cgi?id=7547 // don't list pseudo modules __entrypoint.d, __main.d // https://issues.dlang.org/show_bug.cgi?id=11117 // https://issues.dlang.org/show_bug.cgi?id=11164 if (global.params.moduleDeps !is null && !(imp.id == Id.object && sc._module.ident == Id.object) && sc._module.ident != Id.entrypoint && strcmp(sc._module.ident.toChars(), "__main") != 0) { /* The grammar of the file is: * ImportDeclaration * ::= BasicImportDeclaration [ " : " ImportBindList ] [ " -> " * ModuleAliasIdentifier ] "\n" * * BasicImportDeclaration * ::= ModuleFullyQualifiedName " (" FilePath ") : " Protection|"string" * " [ " static" ] : " ModuleFullyQualifiedName " (" FilePath ")" * * FilePath * - any string with '(', ')' and '\' escaped with the '\' character */ OutBuffer* ob = global.params.moduleDeps; Module imod = sc.instantiatingModule(); if (!global.params.moduleDepsFile) ob.writestring("depsImport "); ob.writestring(imod.toPrettyChars()); ob.writestring(" ("); escapePath(ob, imod.srcfile.toChars()); ob.writestring(") : "); // use protection instead of sc.protection because it couldn't be // resolved yet, see the comment above protectionToBuffer(ob, imp.protection); ob.writeByte(' '); if (imp.isstatic) { stcToBuffer(ob, STCstatic); ob.writeByte(' '); } ob.writestring(": "); if (imp.packages) { for (size_t i = 0; i < imp.packages.dim; i++) { Identifier pid = (*imp.packages)[i]; ob.printf("%s.", pid.toChars()); } } ob.writestring(imp.id.toChars()); ob.writestring(" ("); if (imp.mod) escapePath(ob, imp.mod.srcfile.toChars()); else ob.writestring("???"); ob.writeByte(')'); for (size_t i = 0; i < imp.names.dim; i++) { if (i == 0) ob.writeByte(':'); else ob.writeByte(','); Identifier name = imp.names[i]; Identifier _alias = imp.aliases[i]; if (!_alias) { ob.printf("%s", name.toChars()); _alias = name; } else ob.printf("%s=%s", _alias.toChars(), name.toChars()); } if (imp.aliasId) ob.printf(" -> %s", imp.aliasId.toChars()); ob.writenl(); } //printf("-Import::semantic('%s'), pkg = %p\n", toChars(), pkg); } void attribSemantic(AttribDeclaration ad) { if (ad.semanticRun != PASSinit) return; ad.semanticRun = PASSsemantic; Dsymbols* d = ad.include(sc); //printf("\tAttribDeclaration::semantic '%s', d = %p\n",toChars(), d); if (d) { Scope* sc2 = ad.newScope(sc); bool errors; for (size_t i = 0; i < d.dim; i++) { Dsymbol s = (*d)[i]; s.dsymbolSemantic(sc2); errors |= s.errors; } ad.errors |= errors; if (sc2 != sc) sc2.pop(); } ad.semanticRun = PASSsemanticdone; } override void visit(AttribDeclaration atd) { attribSemantic(atd); } override void visit(AnonDeclaration scd) { //printf("\tAnonDeclaration::semantic %s %p\n", isunion ? "union" : "struct", this); assert(sc.parent); auto p = sc.parent.pastMixin(); auto ad = p.isAggregateDeclaration(); if (!ad) { error(scd.loc, "%s can only be a part of an aggregate, not %s `%s`", scd.kind(), p.kind(), p.toChars()); scd.errors = true; return; } if (scd.decl) { sc = sc.push(); sc.stc &= ~(STCauto | STCscope | STCstatic | STCtls | STCgshared); sc.inunion = scd.isunion; sc.flags = 0; for (size_t i = 0; i < scd.decl.dim; i++) { Dsymbol s = (*scd.decl)[i]; s.dsymbolSemantic(sc); } sc = sc.pop(); } } override void visit(PragmaDeclaration pd) { // Should be merged with PragmaStatement //printf("\tPragmaDeclaration::semantic '%s'\n", pd.toChars()); if (pd.ident == Id.msg) { if (pd.args) { for (size_t i = 0; i < pd.args.dim; i++) { Expression e = (*pd.args)[i]; sc = sc.startCTFE(); e = e.expressionSemantic(sc); e = resolveProperties(sc, e); sc = sc.endCTFE(); // pragma(msg) is allowed to contain types as well as expressions if (e.type && e.type.ty == Tvoid) { error(pd.loc, "Cannot pass argument `%s` to `pragma msg` because it is `void`", e.toChars()); return; } e = ctfeInterpretForPragmaMsg(e); if (e.op == TOKerror) { errorSupplemental(pd.loc, "while evaluating pragma(msg, %s)", (*pd.args)[i].toChars()); return; } StringExp se = e.toStringExp(); if (se) { se = se.toUTF8(sc); fprintf(stderr, "%.*s", cast(int)se.len, se.string); } else fprintf(stderr, "%s", e.toChars()); } fprintf(stderr, "\n"); } goto Lnodecl; } else if (pd.ident == Id.lib) { if (!pd.args || pd.args.dim != 1) pd.error("string expected for library name"); else { auto se = semanticString(sc, (*pd.args)[0], "library name"); if (!se) goto Lnodecl; (*pd.args)[0] = se; auto name = cast(char*)mem.xmalloc(se.len + 1); memcpy(name, se.string, se.len); name[se.len] = 0; if (global.params.verbose) fprintf(global.stdmsg, "library %s\n", name); if (global.params.moduleDeps && !global.params.moduleDepsFile) { OutBuffer* ob = global.params.moduleDeps; Module imod = sc.instantiatingModule(); ob.writestring("depsLib "); ob.writestring(imod.toPrettyChars()); ob.writestring(" ("); escapePath(ob, imod.srcfile.toChars()); ob.writestring(") : "); ob.writestring(name); ob.writenl(); } mem.xfree(name); } goto Lnodecl; } else if (pd.ident == Id.startaddress) { if (!pd.args || pd.args.dim != 1) pd.error("function name expected for start address"); else { /* https://issues.dlang.org/show_bug.cgi?id=11980 * resolveProperties and ctfeInterpret call are not necessary. */ Expression e = (*pd.args)[0]; sc = sc.startCTFE(); e = e.expressionSemantic(sc); sc = sc.endCTFE(); (*pd.args)[0] = e; Dsymbol sa = getDsymbol(e); if (!sa || !sa.isFuncDeclaration()) pd.error("function name expected for start address, not `%s`", e.toChars()); } goto Lnodecl; } else if (pd.ident == Id.Pinline) { goto Ldecl; } else if (pd.ident == Id.mangle) { if (!pd.args) pd.args = new Expressions(); if (pd.args.dim != 1) { pd.error("string expected for mangled name"); pd.args.setDim(1); (*pd.args)[0] = new ErrorExp(); // error recovery goto Ldecl; } auto se = semanticString(sc, (*pd.args)[0], "mangled name"); if (!se) goto Ldecl; (*pd.args)[0] = se; // Will be used later if (!se.len) { pd.error("zero-length string not allowed for mangled name"); goto Ldecl; } if (se.sz != 1) { pd.error("mangled name characters can only be of type char"); goto Ldecl; } version (all) { /* Note: D language specification should not have any assumption about backend * implementation. Ideally pragma(mangle) can accept a string of any content. * * Therefore, this validation is compiler implementation specific. */ for (size_t i = 0; i < se.len;) { char* p = se.string; dchar c = p[i]; if (c < 0x80) { if (c >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c != 0 && strchr("$%().:?@[]_", c)) { ++i; continue; } else { pd.error("char 0x%02x not allowed in mangled name", c); break; } } if (const msg = utf_decodeChar(se.string, se.len, i, c)) { pd.error("%s", msg); break; } if (!isUniAlpha(c)) { pd.error("char `0x%04x` not allowed in mangled name", c); break; } } } } else if (pd.ident == Id.crt_constructor || pd.ident == Id.crt_destructor) { if (pd.args && pd.args.dim != 0) pd.error("takes no argument"); goto Ldecl; } else if (global.params.ignoreUnsupportedPragmas) { if (global.params.verbose) { /* Print unrecognized pragmas */ fprintf(global.stdmsg, "pragma %s", pd.ident.toChars()); if (pd.args) { for (size_t i = 0; i < pd.args.dim; i++) { Expression e = (*pd.args)[i]; sc = sc.startCTFE(); e = e.expressionSemantic(sc); e = resolveProperties(sc, e); sc = sc.endCTFE(); e = e.ctfeInterpret(); if (i == 0) fprintf(global.stdmsg, " ("); else fprintf(global.stdmsg, ","); fprintf(global.stdmsg, "%s", e.toChars()); } if (pd.args.dim) fprintf(global.stdmsg, ")"); } fprintf(global.stdmsg, "\n"); } goto Lnodecl; } else pd.error("unrecognized `pragma(%s)`", pd.ident.toChars()); Ldecl: if (pd.decl) { Scope* sc2 = pd.newScope(sc); for (size_t i = 0; i < pd.decl.dim; i++) { Dsymbol s = (*pd.decl)[i]; s.dsymbolSemantic(sc2); if (pd.ident == Id.mangle) { assert(pd.args && pd.args.dim == 1); if (auto se = (*pd.args)[0].toStringExp()) { char* name = cast(char*)mem.xmalloc(se.len + 1); memcpy(name, se.string, se.len); name[se.len] = 0; uint cnt = setMangleOverride(s, name); if (cnt > 1) pd.error("can only apply to a single declaration"); } } } if (sc2 != sc) sc2.pop(); } return; Lnodecl: if (pd.decl) { pd.error("pragma is missing closing `;`"); goto Ldecl; // do them anyway, to avoid segfaults. } } override void visit(StaticIfDeclaration sid) { attribSemantic(sid); } override void visit(StaticForeachDeclaration sfd) { attribSemantic(sfd); } void compileIt(CompileDeclaration cd, Scope* sc) { //printf("CompileDeclaration::compileIt(loc = %d) %s\n", loc.linnum, exp.toChars()); auto se = semanticString(sc, cd.exp, "argument to mixin"); if (!se) return; se = se.toUTF8(sc); uint errors = global.errors; scope p = new Parser!ASTCodegen(cd.loc, sc._module, se.toStringz(), false); p.nextToken(); cd.decl = p.parseDeclDefs(0); if (p.token.value != TOKeof) cd.exp.error("incomplete mixin declaration `%s`", se.toChars()); if (p.errors) { assert(global.errors != errors); cd.decl = null; } } override void visit(CompileDeclaration cd) { //printf("CompileDeclaration::semantic()\n"); if (!cd.compiled) { compileIt(cd, sc); cd.AttribDeclaration.addMember(sc, cd.scopesym); cd.compiled = true; if (cd._scope && cd.decl) { for (size_t i = 0; i < cd.decl.dim; i++) { Dsymbol s = (*cd.decl)[i]; s.setScope(cd._scope); } } } attribSemantic(cd); } override void visit(UserAttributeDeclaration uad) { //printf("UserAttributeDeclaration::semantic() %p\n", this); if (uad.decl && !uad._scope) uad.Dsymbol.setScope(sc); // for function local symbols return attribSemantic(uad); } override void visit(StaticAssert sa) { if (sa.semanticRun < PASSsemanticdone) sa.semanticRun = PASSsemanticdone; } override void visit(DebugSymbol ds) { //printf("DebugSymbol::semantic() %s\n", toChars()); if (ds.semanticRun < PASSsemanticdone) ds.semanticRun = PASSsemanticdone; } override void visit(VersionSymbol vs) { if (vs.semanticRun < PASSsemanticdone) vs.semanticRun = PASSsemanticdone; } override void visit(Package pkg) { if (pkg.semanticRun < PASSsemanticdone) pkg.semanticRun = PASSsemanticdone; } override void visit(Module m) { if (m.semanticRun != PASSinit) return; //printf("+Module::semantic(this = %p, '%s'): parent = %p\n", this, toChars(), parent); m.semanticRun = PASSsemantic; // Note that modules get their own scope, from scratch. // This is so regardless of where in the syntax a module // gets imported, it is unaffected by context. Scope* sc = m._scope; // see if already got one from importAll() if (!sc) { Scope.createGlobal(m); // create root scope } //printf("Module = %p, linkage = %d\n", sc.scopesym, sc.linkage); // Pass 1 semantic routines: do public side of the definition for (size_t i = 0; i < m.members.dim; i++) { Dsymbol s = (*m.members)[i]; //printf("\tModule('%s'): '%s'.dsymbolSemantic()\n", toChars(), s.toChars()); s.dsymbolSemantic(sc); m.runDeferredSemantic(); } if (m.userAttribDecl) { m.userAttribDecl.dsymbolSemantic(sc); } if (!m._scope) { sc = sc.pop(); sc.pop(); // 2 pops because Scope::createGlobal() created 2 } m.semanticRun = PASSsemanticdone; //printf("-Module::semantic(this = %p, '%s'): parent = %p\n", this, toChars(), parent); } override void visit(EnumDeclaration ed) { //printf("EnumDeclaration::semantic(sd = %p, '%s') %s\n", sc.scopesym, sc.scopesym.toChars(), toChars()); //printf("EnumDeclaration::semantic() %p %s\n", this, toChars()); if (ed.semanticRun >= PASSsemanticdone) return; // semantic() already completed if (ed.semanticRun == PASSsemantic) { assert(ed.memtype); error(ed.loc, "circular reference to enum base type `%s`", ed.memtype.toChars()); ed.errors = true; ed.semanticRun = PASSsemanticdone; return; } uint dprogress_save = Module.dprogress; Scope* scx = null; if (ed._scope) { sc = ed._scope; scx = ed._scope; // save so we don't make redundant copies ed._scope = null; } if (!sc) return; ed.parent = sc.parent; ed.type = ed.type.typeSemantic(ed.loc, sc); ed.protection = sc.protection; if (sc.stc & STCdeprecated) ed.isdeprecated = true; ed.userAttribDecl = sc.userAttribDecl; ed.semanticRun = PASSsemantic; if (!ed.members && !ed.memtype) // enum ident; { ed.semanticRun = PASSsemanticdone; return; } if (!ed.symtab) ed.symtab = new DsymbolTable(); /* The separate, and distinct, cases are: * 1. enum { ... } * 2. enum : memtype { ... } * 3. enum ident { ... } * 4. enum ident : memtype { ... } * 5. enum ident : memtype; * 6. enum ident; */ if (ed.memtype) { ed.memtype = ed.memtype.typeSemantic(ed.loc, sc); /* Check to see if memtype is forward referenced */ if (ed.memtype.ty == Tenum) { EnumDeclaration sym = cast(EnumDeclaration)ed.memtype.toDsymbol(sc); if (!sym.memtype || !sym.members || !sym.symtab || sym._scope) { // memtype is forward referenced, so try again later ed._scope = scx ? scx : sc.copy(); ed._scope.setNoFree(); ed._scope._module.addDeferredSemantic(ed); Module.dprogress = dprogress_save; //printf("\tdeferring %s\n", toChars()); ed.semanticRun = PASSinit; return; } } if (ed.memtype.ty == Tvoid) { ed.error("base type must not be void"); ed.memtype = Type.terror; } if (ed.memtype.ty == Terror) { ed.errors = true; if (ed.members) { for (size_t i = 0; i < ed.members.dim; i++) { Dsymbol s = (*ed.members)[i]; s.errors = true; // poison all the members } } ed.semanticRun = PASSsemanticdone; return; } } ed.semanticRun = PASSsemanticdone; if (!ed.members) // enum ident : memtype; return; if (ed.members.dim == 0) { ed.error("enum `%s` must have at least one member", ed.toChars()); ed.errors = true; return; } Module.dprogress++; Scope* sce; if (ed.isAnonymous()) sce = sc; else { sce = sc.push(ed); sce.parent = ed; } sce = sce.startCTFE(); sce.setNoFree(); // needed for getMaxMinValue() /* Each enum member gets the sce scope */ for (size_t i = 0; i < ed.members.dim; i++) { EnumMember em = (*ed.members)[i].isEnumMember(); if (em) em._scope = sce; } if (!ed.added) { /* addMember() is not called when the EnumDeclaration appears as a function statement, * so we have to do what addMember() does and install the enum members in the right symbol * table */ ScopeDsymbol scopesym = null; if (ed.isAnonymous()) { /* Anonymous enum members get added to enclosing scope. */ for (Scope* sct = sce; 1; sct = sct.enclosing) { assert(sct); if (sct.scopesym) { scopesym = sct.scopesym; if (!sct.scopesym.symtab) sct.scopesym.symtab = new DsymbolTable(); break; } } } else { // Otherwise enum members are in the EnumDeclaration's symbol table scopesym = ed; } for (size_t i = 0; i < ed.members.dim; i++) { EnumMember em = (*ed.members)[i].isEnumMember(); if (em) { em.ed = ed; em.addMember(sc, scopesym); } } } for (size_t i = 0; i < ed.members.dim; i++) { EnumMember em = (*ed.members)[i].isEnumMember(); if (em) em.dsymbolSemantic(em._scope); } //printf("defaultval = %lld\n", defaultval); //if (defaultval) printf("defaultval: %s %s\n", defaultval.toChars(), defaultval.type.toChars()); //printf("members = %s\n", members.toChars()); } override void visit(EnumMember em) { //printf("EnumMember::semantic() %s\n", toChars()); void errorReturn() { em.errors = true; em.semanticRun = PASSsemanticdone; } if (em.errors || em.semanticRun >= PASSsemanticdone) return; if (em.semanticRun == PASSsemantic) { em.error("circular reference to enum member"); return errorReturn(); } assert(em.ed); em.ed.dsymbolSemantic(sc); if (em.ed.errors) return errorReturn(); if (em.errors || em.semanticRun >= PASSsemanticdone) return; if (em._scope) sc = em._scope; if (!sc) return; em.semanticRun = PASSsemantic; em.protection = em.ed.isAnonymous() ? em.ed.protection : Prot(PROTpublic); em.linkage = LINKd; em.storage_class = STCmanifest; em.userAttribDecl = em.ed.isAnonymous() ? em.ed.userAttribDecl : null; // The first enum member is special bool first = (em == (*em.ed.members)[0]); if (em.origType) { em.origType = em.origType.typeSemantic(em.loc, sc); em.type = em.origType; assert(em.value); // "type id;" is not a valid enum member declaration } if (em.value) { Expression e = em.value; assert(e.dyncast() == DYNCAST.expression); e = e.expressionSemantic(sc); e = resolveProperties(sc, e); e = e.ctfeInterpret(); if (e.op == TOKerror) return errorReturn(); if (first && !em.ed.memtype && !em.ed.isAnonymous()) { em.ed.memtype = e.type; if (em.ed.memtype.ty == Terror) { em.ed.errors = true; return errorReturn(); } if (em.ed.memtype.ty != Terror) { /* https://issues.dlang.org/show_bug.cgi?id=11746 * All of named enum members should have same type * with the first member. If the following members were referenced * during the first member semantic, their types should be unified. */ for (size_t i = 0; i < em.ed.members.dim; i++) { EnumMember enm = (*em.ed.members)[i].isEnumMember(); if (!enm || enm == em || enm.semanticRun < PASSsemanticdone || enm.origType) continue; //printf("[%d] em = %s, em.semanticRun = %d\n", i, toChars(), em.semanticRun); Expression ev = enm.value; ev = ev.implicitCastTo(sc, em.ed.memtype); ev = ev.ctfeInterpret(); ev = ev.castTo(sc, em.ed.type); if (ev.op == TOKerror) em.ed.errors = true; enm.value = ev; } if (em.ed.errors) { em.ed.memtype = Type.terror; return errorReturn(); } } } if (em.ed.memtype && !em.origType) { e = e.implicitCastTo(sc, em.ed.memtype); e = e.ctfeInterpret(); // save origValue for better json output em.origValue = e; if (!em.ed.isAnonymous()) { e = e.castTo(sc, em.ed.type.addMod(e.type.mod)); // https://issues.dlang.org/show_bug.cgi?id=12385 e = e.ctfeInterpret(); } } else if (em.origType) { e = e.implicitCastTo(sc, em.origType); e = e.ctfeInterpret(); assert(em.ed.isAnonymous()); // save origValue for better json output em.origValue = e; } em.value = e; } else if (first) { Type t; if (em.ed.memtype) t = em.ed.memtype; else { t = Type.tint32; if (!em.ed.isAnonymous()) em.ed.memtype = t; } Expression e = new IntegerExp(em.loc, 0, Type.tint32); e = e.implicitCastTo(sc, t); e = e.ctfeInterpret(); // save origValue for better json output em.origValue = e; if (!em.ed.isAnonymous()) { e = e.castTo(sc, em.ed.type); e = e.ctfeInterpret(); } em.value = e; } else { /* Find the previous enum member, * and set this to be the previous value + 1 */ EnumMember emprev = null; for (size_t i = 0; i < em.ed.members.dim; i++) { EnumMember enm = (*em.ed.members)[i].isEnumMember(); if (enm) { if (enm == em) break; emprev = enm; } } assert(emprev); if (emprev.semanticRun < PASSsemanticdone) // if forward reference emprev.dsymbolSemantic(emprev._scope); // resolve it if (emprev.errors) return errorReturn(); Expression eprev = emprev.value; Type tprev = eprev.type.equals(em.ed.type) ? em.ed.memtype : eprev.type; Expression emax = tprev.getProperty(em.ed.loc, Id.max, 0); emax = emax.expressionSemantic(sc); emax = emax.ctfeInterpret(); // Set value to (eprev + 1). // But first check that (eprev != emax) assert(eprev); Expression e = new EqualExp(TOKequal, em.loc, eprev, emax); e = e.expressionSemantic(sc); e = e.ctfeInterpret(); if (e.toInteger()) { em.error("initialization with `%s.%s+1` causes overflow for type `%s`", emprev.ed.toChars(), emprev.toChars(), em.ed.memtype.toChars()); return errorReturn(); } // Now set e to (eprev + 1) e = new AddExp(em.loc, eprev, new IntegerExp(em.loc, 1, Type.tint32)); e = e.expressionSemantic(sc); e = e.castTo(sc, eprev.type); e = e.ctfeInterpret(); // save origValue (without cast) for better json output if (e.op != TOKerror) // avoid duplicate diagnostics { assert(emprev.origValue); em.origValue = new AddExp(em.loc, emprev.origValue, new IntegerExp(em.loc, 1, Type.tint32)); em.origValue = em.origValue.expressionSemantic(sc); em.origValue = em.origValue.ctfeInterpret(); } if (e.op == TOKerror) return errorReturn(); if (e.type.isfloating()) { // Check that e != eprev (not always true for floats) Expression etest = new EqualExp(TOKequal, em.loc, e, eprev); etest = etest.expressionSemantic(sc); etest = etest.ctfeInterpret(); if (etest.toInteger()) { em.error("has inexact value due to loss of precision"); return errorReturn(); } } em.value = e; } if (!em.origType) em.type = em.value.type; assert(em.origValue); em.semanticRun = PASSsemanticdone; } override void visit(TemplateDeclaration tempdecl) { static if (LOG) { printf("TemplateDeclaration.dsymbolSemantic(this = %p, id = '%s')\n", this, tempdecl.ident.toChars()); printf("sc.stc = %llx\n", sc.stc); printf("sc.module = %s\n", sc._module.toChars()); } if (tempdecl.semanticRun != PASSinit) return; // semantic() already run if (tempdecl._scope) { sc = tempdecl._scope; tempdecl._scope = null; } if (!sc) return; // Remember templates defined in module object that we need to know about if (sc._module && sc._module.ident == Id.object) { if (tempdecl.ident == Id.RTInfo) Type.rtinfo = tempdecl; } /* Remember Scope for later instantiations, but make * a copy since attributes can change. */ if (!tempdecl._scope) { tempdecl._scope = sc.copy(); tempdecl._scope.setNoFree(); } tempdecl.semanticRun = PASSsemantic; tempdecl.parent = sc.parent; tempdecl.protection = sc.protection; tempdecl.isstatic = tempdecl.toParent().isModule() || (tempdecl._scope.stc & STCstatic); if (!tempdecl.isstatic) { if (auto ad = tempdecl.parent.pastMixin().isAggregateDeclaration()) ad.makeNested(); } // Set up scope for parameters auto paramsym = new ScopeDsymbol(); paramsym.parent = tempdecl.parent; Scope* paramscope = sc.push(paramsym); paramscope.stc = 0; if (global.params.doDocComments) { tempdecl.origParameters = new TemplateParameters(); tempdecl.origParameters.setDim(tempdecl.parameters.dim); for (size_t i = 0; i < tempdecl.parameters.dim; i++) { TemplateParameter tp = (*tempdecl.parameters)[i]; (*tempdecl.origParameters)[i] = tp.syntaxCopy(); } } for (size_t i = 0; i < tempdecl.parameters.dim; i++) { TemplateParameter tp = (*tempdecl.parameters)[i]; if (!tp.declareParameter(paramscope)) { error(tp.loc, "parameter '%s' multiply defined", tp.ident.toChars()); tempdecl.errors = true; } if (!tp.tpsemantic(paramscope, tempdecl.parameters)) { tempdecl.errors = true; } if (i + 1 != tempdecl.parameters.dim && tp.isTemplateTupleParameter()) { tempdecl.error("template tuple parameter must be last one"); tempdecl.errors = true; } } /* Calculate TemplateParameter.dependent */ TemplateParameters tparams; tparams.setDim(1); for (size_t i = 0; i < tempdecl.parameters.dim; i++) { TemplateParameter tp = (*tempdecl.parameters)[i]; tparams[0] = tp; for (size_t j = 0; j < tempdecl.parameters.dim; j++) { // Skip cases like: X(T : T) if (i == j) continue; if (TemplateTypeParameter ttp = (*tempdecl.parameters)[j].isTemplateTypeParameter()) { if (reliesOnTident(ttp.specType, &tparams)) tp.dependent = true; } else if (TemplateAliasParameter tap = (*tempdecl.parameters)[j].isTemplateAliasParameter()) { if (reliesOnTident(tap.specType, &tparams) || reliesOnTident(isType(tap.specAlias), &tparams)) { tp.dependent = true; } } } } paramscope.pop(); // Compute again tempdecl.onemember = null; if (tempdecl.members) { Dsymbol s; if (Dsymbol.oneMembers(tempdecl.members, &s, tempdecl.ident) && s) { tempdecl.onemember = s; s.parent = tempdecl; } } /* BUG: should check: * o no virtual functions or non-static data members of classes */ tempdecl.semanticRun = PASSsemanticdone; } override void visit(TemplateInstance ti) { templateInstanceSemantic(ti, sc, null); } override void visit(TemplateMixin tm) { static if (LOG) { printf("+TemplateMixin.dsymbolSemantic('%s', this=%p)\n",tm.toChars(), tm); fflush(stdout); } if (tm.semanticRun != PASSinit) { // When a class/struct contains mixin members, and is done over // because of forward references, never reach here so semanticRun // has been reset to PASSinit. static if (LOG) { printf("\tsemantic done\n"); } return; } tm.semanticRun = PASSsemantic; static if (LOG) { printf("\tdo semantic\n"); } Scope* scx = null; if (tm._scope) { sc = tm._scope; scx = tm._scope; // save so we don't make redundant copies tm._scope = null; } /* Run semantic on each argument, place results in tiargs[], * then find best match template with tiargs */ if (!tm.findTempDecl(sc) || !tm.semanticTiargs(sc) || !tm.findBestMatch(sc, null)) { if (tm.semanticRun == PASSinit) // forward reference had occurred { //printf("forward reference - deferring\n"); tm._scope = scx ? scx : sc.copy(); tm._scope.setNoFree(); tm._scope._module.addDeferredSemantic(tm); return; } tm.inst = tm; tm.errors = true; return; // error recovery } auto tempdecl = tm.tempdecl.isTemplateDeclaration(); assert(tempdecl); if (!tm.ident) { /* Assign scope local unique identifier, as same as lambdas. */ const(char)* s = "__mixin"; DsymbolTable symtab; if (FuncDeclaration func = sc.parent.isFuncDeclaration()) { tm.symtab = func.localsymtab; if (tm.symtab) { // Inside template constraint, symtab is not set yet. goto L1; } } else { tm.symtab = sc.parent.isScopeDsymbol().symtab; L1: assert(tm.symtab); tm.ident = Identifier.generateId(s, tm.symtab.len + 1); tm.symtab.insert(tm); } } tm.inst = tm; tm.parent = sc.parent; /* Detect recursive mixin instantiations. */ for (Dsymbol s = tm.parent; s; s = s.parent) { //printf("\ts = '%s'\n", s.toChars()); TemplateMixin tmix = s.isTemplateMixin(); if (!tmix || tempdecl != tmix.tempdecl) continue; /* Different argument list lengths happen with variadic args */ if (tm.tiargs.dim != tmix.tiargs.dim) continue; for (size_t i = 0; i < tm.tiargs.dim; i++) { RootObject o = (*tm.tiargs)[i]; Type ta = isType(o); Expression ea = isExpression(o); Dsymbol sa = isDsymbol(o); RootObject tmo = (*tmix.tiargs)[i]; if (ta) { Type tmta = isType(tmo); if (!tmta) goto Lcontinue; if (!ta.equals(tmta)) goto Lcontinue; } else if (ea) { Expression tme = isExpression(tmo); if (!tme || !ea.equals(tme)) goto Lcontinue; } else if (sa) { Dsymbol tmsa = isDsymbol(tmo); if (sa != tmsa) goto Lcontinue; } else assert(0); } tm.error("recursive mixin instantiation"); return; Lcontinue: continue; } // Copy the syntax trees from the TemplateDeclaration tm.members = Dsymbol.arraySyntaxCopy(tempdecl.members); if (!tm.members) return; tm.symtab = new DsymbolTable(); for (Scope* sce = sc; 1; sce = sce.enclosing) { ScopeDsymbol sds = sce.scopesym; if (sds) { sds.importScope(tm, Prot(PROTpublic)); break; } } static if (LOG) { printf("\tcreate scope for template parameters '%s'\n", tm.toChars()); } Scope* scy = sc.push(tm); scy.parent = tm; tm.argsym = new ScopeDsymbol(); tm.argsym.parent = scy.parent; Scope* argscope = scy.push(tm.argsym); uint errorsave = global.errors; // Declare each template parameter as an alias for the argument type tm.declareParameters(argscope); // Add members to enclosing scope, as well as this scope for (size_t i = 0; i < tm.members.dim; i++) { Dsymbol s = (*tm.members)[i]; s.addMember(argscope, tm); //printf("sc.parent = %p, sc.scopesym = %p\n", sc.parent, sc.scopesym); //printf("s.parent = %s\n", s.parent.toChars()); } // Do semantic() analysis on template instance members static if (LOG) { printf("\tdo semantic() on template instance members '%s'\n", tm.toChars()); } Scope* sc2 = argscope.push(tm); //size_t deferred_dim = Module.deferred.dim; static __gshared int nest; //printf("%d\n", nest); if (++nest > 500) { global.gag = 0; // ensure error message gets printed tm.error("recursive expansion"); fatal(); } for (size_t i = 0; i < tm.members.dim; i++) { Dsymbol s = (*tm.members)[i]; s.setScope(sc2); } for (size_t i = 0; i < tm.members.dim; i++) { Dsymbol s = (*tm.members)[i]; s.importAll(sc2); } for (size_t i = 0; i < tm.members.dim; i++) { Dsymbol s = (*tm.members)[i]; s.dsymbolSemantic(sc2); } nest--; /* In DeclDefs scope, TemplateMixin does not have to handle deferred symbols. * Because the members would already call Module.addDeferredSemantic() for themselves. * See Struct, Class, Interface, and EnumDeclaration.dsymbolSemantic(). */ //if (!sc.func && Module.deferred.dim > deferred_dim) {} AggregateDeclaration ad = tm.toParent().isAggregateDeclaration(); if (sc.func && !ad) { tm.semantic2(sc2); tm.semantic3(sc2); } // Give additional context info if error occurred during instantiation if (global.errors != errorsave) { tm.error("error instantiating"); tm.errors = true; } sc2.pop(); argscope.pop(); scy.pop(); static if (LOG) { printf("-TemplateMixin.dsymbolSemantic('%s', this=%p)\n", tm.toChars(), tm); } } override void visit(Nspace ns) { if (ns.semanticRun != PASSinit) return; static if (LOG) { printf("+Nspace::semantic('%s')\n", ns.toChars()); } if (ns._scope) { sc = ns._scope; ns._scope = null; } if (!sc) return; ns.semanticRun = PASSsemantic; ns.parent = sc.parent; if (ns.members) { assert(sc); sc = sc.push(ns); sc.linkage = LINKcpp; // note that namespaces imply C++ linkage sc.parent = ns; foreach (s; *ns.members) { s.importAll(sc); } foreach (s; *ns.members) { static if (LOG) { printf("\tmember '%s', kind = '%s'\n", s.toChars(), s.kind()); } s.dsymbolSemantic(sc); } sc.pop(); } ns.semanticRun = PASSsemanticdone; static if (LOG) { printf("-Nspace::semantic('%s')\n", ns.toChars()); } } void funcDeclarationSemantic(FuncDeclaration funcdecl) { TypeFunction f; AggregateDeclaration ad; InterfaceDeclaration id; version (none) { printf("FuncDeclaration::semantic(sc = %p, this = %p, '%s', linkage = %d)\n", sc, funcdecl, funcdecl.toPrettyChars(), sc.linkage); if (funcdecl.isFuncLiteralDeclaration()) printf("\tFuncLiteralDeclaration()\n"); printf("sc.parent = %s, parent = %s\n", sc.parent.toChars(), funcdecl.parent ? funcdecl.parent.toChars() : ""); printf("type: %p, %s\n", funcdecl.type, funcdecl.type.toChars()); } if (funcdecl.semanticRun != PASSinit && funcdecl.isFuncLiteralDeclaration()) { /* Member functions that have return types that are * forward references can have semantic() run more than * once on them. * See test\interface2.d, test20 */ return; } if (funcdecl.semanticRun >= PASSsemanticdone) return; assert(funcdecl.semanticRun <= PASSsemantic); funcdecl.semanticRun = PASSsemantic; if (funcdecl._scope) { sc = funcdecl._scope; funcdecl._scope = null; } if (!sc || funcdecl.errors) return; funcdecl.parent = sc.parent; Dsymbol parent = funcdecl.toParent(); funcdecl.foverrides.setDim(0); // reset in case semantic() is being retried for this function funcdecl.storage_class |= sc.stc & ~STCref; ad = funcdecl.isThis(); // Don't nest structs b/c of generated methods which should not access the outer scopes. // https://issues.dlang.org/show_bug.cgi?id=16627 if (ad && !funcdecl.generated) { funcdecl.storage_class |= ad.storage_class & (STC_TYPECTOR | STCsynchronized); ad.makeNested(); } if (sc.func) funcdecl.storage_class |= sc.func.storage_class & STCdisable; // Remove prefix storage classes silently. if ((funcdecl.storage_class & STC_TYPECTOR) && !(ad || funcdecl.isNested())) funcdecl.storage_class &= ~STC_TYPECTOR; //printf("function storage_class = x%llx, sc.stc = x%llx, %x\n", storage_class, sc.stc, Declaration::isFinal()); FuncLiteralDeclaration fld = funcdecl.isFuncLiteralDeclaration(); if (fld && fld.treq) { Type treq = fld.treq; assert(treq.nextOf().ty == Tfunction); if (treq.ty == Tdelegate) fld.tok = TOKdelegate; else if (treq.ty == Tpointer && treq.nextOf().ty == Tfunction) fld.tok = TOKfunction; else assert(0); funcdecl.linkage = treq.nextOf().toTypeFunction().linkage; } else funcdecl.linkage = sc.linkage; funcdecl.inlining = sc.inlining; funcdecl.protection = sc.protection; funcdecl.userAttribDecl = sc.userAttribDecl; if (!funcdecl.originalType) funcdecl.originalType = funcdecl.type.syntaxCopy(); if (funcdecl.type.ty != Tfunction) { if (funcdecl.type.ty != Terror) { funcdecl.error("%s must be a function instead of %s", funcdecl.toChars(), funcdecl.type.toChars()); funcdecl.type = Type.terror; } funcdecl.errors = true; return; } if (!funcdecl.type.deco) { sc = sc.push(); sc.stc |= funcdecl.storage_class & (STCdisable | STCdeprecated); // forward to function type TypeFunction tf = funcdecl.type.toTypeFunction(); if (sc.func) { /* If the nesting parent is pure without inference, * then this function defaults to pure too. * * auto foo() pure { * auto bar() {} // become a weak purity function * class C { // nested class * auto baz() {} // become a weak purity function * } * * static auto boo() {} // typed as impure * // Even though, boo cannot call any impure functions. * // See also Expression::checkPurity(). * } */ if (tf.purity == PUREimpure && (funcdecl.isNested() || funcdecl.isThis())) { FuncDeclaration fd = null; for (Dsymbol p = funcdecl.toParent2(); p; p = p.toParent2()) { if (AggregateDeclaration adx = p.isAggregateDeclaration()) { if (adx.isNested()) continue; break; } if ((fd = p.isFuncDeclaration()) !is null) break; } /* If the parent's purity is inferred, then this function's purity needs * to be inferred first. */ if (fd && fd.isPureBypassingInference() >= PUREweak && !funcdecl.isInstantiated()) { tf.purity = PUREfwdref; // default to pure } } } if (tf.isref) sc.stc |= STCref; if (tf.isscope) sc.stc |= STCscope; if (tf.isnothrow) sc.stc |= STCnothrow; if (tf.isnogc) sc.stc |= STCnogc; if (tf.isproperty) sc.stc |= STCproperty; if (tf.purity == PUREfwdref) sc.stc |= STCpure; if (tf.trust != TRUSTdefault) sc.stc &= ~(STCsafe | STCsystem | STCtrusted); if (tf.trust == TRUSTsafe) sc.stc |= STCsafe; if (tf.trust == TRUSTsystem) sc.stc |= STCsystem; if (tf.trust == TRUSTtrusted) sc.stc |= STCtrusted; if (funcdecl.isCtorDeclaration()) { sc.flags |= SCOPEctor; Type tret = ad.handleType(); assert(tret); tret = tret.addStorageClass(funcdecl.storage_class | sc.stc); tret = tret.addMod(funcdecl.type.mod); tf.next = tret; if (ad.isStructDeclaration()) sc.stc |= STCref; } // 'return' on a non-static class member function implies 'scope' as well if (ad && ad.isClassDeclaration() && (tf.isreturn || sc.stc & STCreturn) && !(sc.stc & STCstatic)) sc.stc |= STCscope; // If 'this' has no pointers, remove 'scope' as it has no meaning if (sc.stc & STCscope && ad && ad.isStructDeclaration() && !ad.type.hasPointers()) { sc.stc &= ~STCscope; tf.isscope = false; } sc.linkage = funcdecl.linkage; if (!tf.isNaked() && !(funcdecl.isThis() || funcdecl.isNested())) { OutBuffer buf; MODtoBuffer(&buf, tf.mod); funcdecl.error("without 'this' cannot be %s", buf.peekString()); tf.mod = 0; // remove qualifiers } /* Apply const, immutable, wild and shared storage class * to the function type. Do this before type semantic. */ auto stc = funcdecl.storage_class; if (funcdecl.type.isImmutable()) stc |= STCimmutable; if (funcdecl.type.isConst()) stc |= STCconst; if (funcdecl.type.isShared() || funcdecl.storage_class & STCsynchronized) stc |= STCshared; if (funcdecl.type.isWild()) stc |= STCwild; funcdecl.type = funcdecl.type.addSTC(stc); funcdecl.type = funcdecl.type.typeSemantic(funcdecl.loc, sc); sc = sc.pop(); } if (funcdecl.type.ty != Tfunction) { if (funcdecl.type.ty != Terror) { funcdecl.error("%s must be a function instead of %s", funcdecl.toChars(), funcdecl.type.toChars()); funcdecl.type = Type.terror; } funcdecl.errors = true; return; } else { // Merge back function attributes into 'originalType'. // It's used for mangling, ddoc, and json output. TypeFunction tfo = funcdecl.originalType.toTypeFunction(); TypeFunction tfx = funcdecl.type.toTypeFunction(); tfo.mod = tfx.mod; tfo.isscope = tfx.isscope; tfo.isscopeinferred = tfx.isscopeinferred; tfo.isref = tfx.isref; tfo.isnothrow = tfx.isnothrow; tfo.isnogc = tfx.isnogc; tfo.isproperty = tfx.isproperty; tfo.purity = tfx.purity; tfo.trust = tfx.trust; funcdecl.storage_class &= ~(STC_TYPECTOR | STC_FUNCATTR); } f = cast(TypeFunction)funcdecl.type; size_t nparams = Parameter.dim(f.parameters); if ((funcdecl.storage_class & STCauto) && !f.isref && !funcdecl.inferRetType) funcdecl.error("storage class 'auto' has no effect if return type is not inferred"); /* Functions can only be 'scope' if they have a 'this' */ if (f.isscope && !funcdecl.isNested() && !ad) { funcdecl.error("functions cannot be scope"); } if (f.isreturn && !funcdecl.needThis() && !funcdecl.isNested()) { /* Non-static nested functions have a hidden 'this' pointer to which * the 'return' applies */ funcdecl.error("static member has no 'this' to which 'return' can apply"); } if (funcdecl.isAbstract() && !funcdecl.isVirtual()) { const(char)* sfunc; if (funcdecl.isStatic()) sfunc = "static"; else if (funcdecl.protection.kind == PROTprivate || funcdecl.protection.kind == PROTpackage) sfunc = protectionToChars(funcdecl.protection.kind); else sfunc = "non-virtual"; funcdecl.error("%s functions cannot be abstract", sfunc); } if (funcdecl.isOverride() && !funcdecl.isVirtual()) { PROTKIND kind = funcdecl.prot().kind; if ((kind == PROTprivate || kind == PROTpackage) && funcdecl.isMember()) funcdecl.error("%s method is not virtual and cannot override", protectionToChars(kind)); else funcdecl.error("cannot override a non-virtual function"); } if (funcdecl.isAbstract() && funcdecl.isFinalFunc()) funcdecl.error("cannot be both final and abstract"); version (none) { if (funcdecl.isAbstract() && funcdecl.fbody) funcdecl.error("abstract functions cannot have bodies"); } version (none) { if (funcdecl.isStaticConstructor() || funcdecl.isStaticDestructor()) { if (!funcdecl.isStatic() || funcdecl.type.nextOf().ty != Tvoid) funcdecl.error("static constructors / destructors must be static void"); if (f.arguments && f.arguments.dim) funcdecl.error("static constructors / destructors must have empty parameter list"); // BUG: check for invalid storage classes } } id = parent.isInterfaceDeclaration(); if (id) { funcdecl.storage_class |= STCabstract; if (funcdecl.isCtorDeclaration() || funcdecl.isPostBlitDeclaration() || funcdecl.isDtorDeclaration() || funcdecl.isInvariantDeclaration() || funcdecl.isNewDeclaration() || funcdecl.isDelete()) funcdecl.error("constructors, destructors, postblits, invariants, new and delete functions are not allowed in interface %s", id.toChars()); if (funcdecl.fbody && funcdecl.isVirtual()) funcdecl.error("function body only allowed in final functions in interface %s", id.toChars()); } if (UnionDeclaration ud = parent.isUnionDeclaration()) { if (funcdecl.isPostBlitDeclaration() || funcdecl.isDtorDeclaration() || funcdecl.isInvariantDeclaration()) funcdecl.error("destructors, postblits and invariants are not allowed in union %s", ud.toChars()); } if (StructDeclaration sd = parent.isStructDeclaration()) { if (funcdecl.isCtorDeclaration()) { goto Ldone; } } if (ClassDeclaration cd = parent.isClassDeclaration()) { if (funcdecl.isCtorDeclaration()) { goto Ldone; } if (funcdecl.storage_class & STCabstract) cd.isabstract = ABSyes; // if static function, do not put in vtbl[] if (!funcdecl.isVirtual()) { //printf("\tnot virtual\n"); goto Ldone; } // Suppress further errors if the return type is an error if (funcdecl.type.nextOf() == Type.terror) goto Ldone; bool may_override = false; for (size_t i = 0; i < cd.baseclasses.dim; i++) { BaseClass* b = (*cd.baseclasses)[i]; ClassDeclaration cbd = b.type.toBasetype().isClassHandle(); if (!cbd) continue; for (size_t j = 0; j < cbd.vtbl.dim; j++) { FuncDeclaration f2 = cbd.vtbl[j].isFuncDeclaration(); if (!f2 || f2.ident != funcdecl.ident) continue; if (cbd.parent && cbd.parent.isTemplateInstance()) { if (!f2.functionSemantic()) goto Ldone; } may_override = true; } } if (may_override && funcdecl.type.nextOf() is null) { /* If same name function exists in base class but 'this' is auto return, * cannot find index of base class's vtbl[] to override. */ funcdecl.error("return type inference is not supported if may override base class function"); } /* Find index of existing function in base class's vtbl[] to override * (the index will be the same as in cd's current vtbl[]) */ int vi = cd.baseClass ? funcdecl.findVtblIndex(&cd.baseClass.vtbl, cast(int)cd.baseClass.vtbl.dim) : -1; bool doesoverride = false; switch (vi) { case -1: Lintro: /* Didn't find one, so * This is an 'introducing' function which gets a new * slot in the vtbl[]. */ // Verify this doesn't override previous final function if (cd.baseClass) { Dsymbol s = cd.baseClass.search(funcdecl.loc, funcdecl.ident); if (s) { FuncDeclaration f2 = s.isFuncDeclaration(); if (f2) { f2 = f2.overloadExactMatch(funcdecl.type); if (f2 && f2.isFinalFunc() && f2.prot().kind != PROTprivate) funcdecl.error("cannot override final function %s", f2.toPrettyChars()); } } } /* These quirky conditions mimic what VC++ appears to do */ if (global.params.mscoff && cd.classKind == ClassKind.cpp && cd.baseClass && cd.baseClass.vtbl.dim) { /* if overriding an interface function, then this is not * introducing and don't put it in the class vtbl[] */ funcdecl.interfaceVirtual = funcdecl.overrideInterface(); if (funcdecl.interfaceVirtual) { //printf("\tinterface function %s\n", toChars()); cd.vtblFinal.push(funcdecl); goto Linterfaces; } } if (funcdecl.isFinalFunc()) { // Don't check here, as it may override an interface function //if (isOverride()) // error("is marked as override, but does not override any function"); cd.vtblFinal.push(funcdecl); } else { //printf("\tintroducing function %s\n", toChars()); funcdecl.introducing = 1; if (cd.classKind == ClassKind.cpp && Target.reverseCppOverloads) { // with dmc, overloaded functions are grouped and in reverse order funcdecl.vtblIndex = cast(int)cd.vtbl.dim; for (size_t i = 0; i < cd.vtbl.dim; i++) { if (cd.vtbl[i].ident == funcdecl.ident && cd.vtbl[i].parent == parent) { funcdecl.vtblIndex = cast(int)i; break; } } // shift all existing functions back for (size_t i = cd.vtbl.dim; i > funcdecl.vtblIndex; i--) { FuncDeclaration fd = cd.vtbl[i - 1].isFuncDeclaration(); assert(fd); fd.vtblIndex++; } cd.vtbl.insert(funcdecl.vtblIndex, funcdecl); } else { // Append to end of vtbl[] vi = cast(int)cd.vtbl.dim; cd.vtbl.push(funcdecl); funcdecl.vtblIndex = vi; } } break; case -2: // can't determine because of forward references funcdecl.errors = true; return; default: { FuncDeclaration fdv = cd.baseClass.vtbl[vi].isFuncDeclaration(); FuncDeclaration fdc = cd.vtbl[vi].isFuncDeclaration(); // This function is covariant with fdv if (fdc == funcdecl) { doesoverride = true; break; } if (fdc.toParent() == parent) { //printf("vi = %d,\tthis = %p %s %s @ [%s]\n\tfdc = %p %s %s @ [%s]\n\tfdv = %p %s %s @ [%s]\n", // vi, this, this.toChars(), this.type.toChars(), this.loc.toChars(), // fdc, fdc .toChars(), fdc .type.toChars(), fdc .loc.toChars(), // fdv, fdv .toChars(), fdv .type.toChars(), fdv .loc.toChars()); // fdc overrides fdv exactly, then this introduces new function. if (fdc.type.mod == fdv.type.mod && funcdecl.type.mod != fdv.type.mod) goto Lintro; } if (fdv.isDeprecated) deprecation(funcdecl.loc, "`%s` is overriding the deprecated method `%s`", funcdecl.toPrettyChars, fdv.toPrettyChars); // This function overrides fdv if (fdv.isFinalFunc()) funcdecl.error("cannot override final function %s", fdv.toPrettyChars()); if (!funcdecl.isOverride()) { if (fdv.isFuture()) { deprecation(funcdecl.loc, "@future base class method %s is being overridden by %s; rename the latter", fdv.toPrettyChars(), funcdecl.toPrettyChars()); // Treat 'this' as an introducing function, giving it a separate hierarchy in the vtbl[] goto Lintro; } else { int vi2 = funcdecl.findVtblIndex(&cd.baseClass.vtbl, cast(int)cd.baseClass.vtbl.dim, false); if (vi2 < 0) // https://issues.dlang.org/show_bug.cgi?id=17349 deprecation(funcdecl.loc, "cannot implicitly override base class method `%s` with `%s`; add `override` attribute", fdv.toPrettyChars(), funcdecl.toPrettyChars()); else error(funcdecl.loc, "cannot implicitly override base class method %s with %s; add 'override' attribute", fdv.toPrettyChars(), funcdecl.toPrettyChars()); } } doesoverride = true; if (fdc.toParent() == parent) { // If both are mixins, or both are not, then error. // If either is not, the one that is not overrides the other. bool thismixin = funcdecl.parent.isClassDeclaration() !is null; bool fdcmixin = fdc.parent.isClassDeclaration() !is null; if (thismixin == fdcmixin) { funcdecl.error("multiple overrides of same function"); } else if (!thismixin) // fdc overrides fdv { // this doesn't override any function break; } } cd.vtbl[vi] = funcdecl; funcdecl.vtblIndex = vi; /* Remember which functions this overrides */ funcdecl.foverrides.push(fdv); /* This works by whenever this function is called, * it actually returns tintro, which gets dynamically * cast to type. But we know that tintro is a base * of type, so we could optimize it by not doing a * dynamic cast, but just subtracting the isBaseOf() * offset if the value is != null. */ if (fdv.tintro) funcdecl.tintro = fdv.tintro; else if (!funcdecl.type.equals(fdv.type)) { /* Only need to have a tintro if the vptr * offsets differ */ int offset; if (fdv.type.nextOf().isBaseOf(funcdecl.type.nextOf(), &offset)) { funcdecl.tintro = fdv.type; } } break; } } /* Go through all the interface bases. * If this function is covariant with any members of those interface * functions, set the tintro. */ Linterfaces: foreach (b; cd.interfaces) { vi = funcdecl.findVtblIndex(&b.sym.vtbl, cast(int)b.sym.vtbl.dim); switch (vi) { case -1: break; case -2: // can't determine because of forward references funcdecl.errors = true; return; default: { auto fdv = cast(FuncDeclaration)b.sym.vtbl[vi]; Type ti = null; /* Remember which functions this overrides */ funcdecl.foverrides.push(fdv); /* Should we really require 'override' when implementing * an interface function? */ //if (!isOverride()) // warning(loc, "overrides base class function %s, but is not marked with 'override'", fdv.toPrettyChars()); if (fdv.tintro) ti = fdv.tintro; else if (!funcdecl.type.equals(fdv.type)) { /* Only need to have a tintro if the vptr * offsets differ */ int offset; if (fdv.type.nextOf().isBaseOf(funcdecl.type.nextOf(), &offset)) { ti = fdv.type; } } if (ti) { if (funcdecl.tintro) { if (!funcdecl.tintro.nextOf().equals(ti.nextOf()) && !funcdecl.tintro.nextOf().isBaseOf(ti.nextOf(), null) && !ti.nextOf().isBaseOf(funcdecl.tintro.nextOf(), null)) { funcdecl.error("incompatible covariant types %s and %s", funcdecl.tintro.toChars(), ti.toChars()); } } funcdecl.tintro = ti; } goto L2; } } } if (!doesoverride && funcdecl.isOverride() && (funcdecl.type.nextOf() || !may_override)) { BaseClass* bc = null; Dsymbol s = null; for (size_t i = 0; i < cd.baseclasses.dim; i++) { bc = (*cd.baseclasses)[i]; s = bc.sym.search_correct(funcdecl.ident); if (s) break; } if (s) funcdecl.error("does not override any function, did you mean to override '%s%s'?", bc.sym.isCPPclass() ? "extern (C++) ".ptr : "".ptr, s.toPrettyChars()); else funcdecl.error("does not override any function"); } L2: /* Go through all the interface bases. * Disallow overriding any final functions in the interface(s). */ foreach (b; cd.interfaces) { if (b.sym) { Dsymbol s = search_function(b.sym, funcdecl.ident); if (s) { FuncDeclaration f2 = s.isFuncDeclaration(); if (f2) { f2 = f2.overloadExactMatch(funcdecl.type); if (f2 && f2.isFinalFunc() && f2.prot().kind != PROTprivate) funcdecl.error("cannot override final function %s.%s", b.sym.toChars(), f2.toPrettyChars()); } } } } if (funcdecl.isOverride) { if (funcdecl.storage_class & STCdisable) deprecation(funcdecl.loc, "`%s` cannot be annotated with `@disable` because it is overriding a function in the base class", funcdecl.toPrettyChars); if (funcdecl.isDeprecated) deprecation(funcdecl.loc, "`%s` cannot be marked as `deprecated` because it is overriding a function in the base class", funcdecl.toPrettyChars); } } else if (funcdecl.isOverride() && !parent.isTemplateInstance()) funcdecl.error("override only applies to class member functions"); // Reflect this.type to f because it could be changed by findVtblIndex f = funcdecl.type.toTypeFunction(); Ldone: if (!funcdecl.fbody && !funcdecl.allowsContractWithoutBody()) funcdecl.error("in and out contracts can only appear without a body when they are virtual interface functions or abstract"); /* Do not allow template instances to add virtual functions * to a class. */ if (funcdecl.isVirtual()) { TemplateInstance ti = parent.isTemplateInstance(); if (ti) { // Take care of nested templates while (1) { TemplateInstance ti2 = ti.tempdecl.parent.isTemplateInstance(); if (!ti2) break; ti = ti2; } // If it's a member template ClassDeclaration cd = ti.tempdecl.isClassMember(); if (cd) { funcdecl.error("cannot use template to add virtual function to class '%s'", cd.toChars()); } } } if (funcdecl.isMain()) funcdecl.checkDmain(); // Check main() parameters and return type /* Purity and safety can be inferred for some functions by examining * the function body. */ if (funcdecl.canInferAttributes(sc)) funcdecl.initInferAttributes(); Module.dprogress++; funcdecl.semanticRun = PASSsemanticdone; /* Save scope for possible later use (if we need the * function internals) */ funcdecl._scope = sc.copy(); funcdecl._scope.setNoFree(); static __gshared bool printedMain = false; // semantic might run more than once if (global.params.verbose && !printedMain) { const(char)* type = funcdecl.isMain() ? "main" : funcdecl.isWinMain() ? "winmain" : funcdecl.isDllMain() ? "dllmain" : cast(const(char)*)null; Module mod = sc._module; if (type && mod) { printedMain = true; const(char)* name = FileName.searchPath(global.path, mod.srcfile.toChars(), true); fprintf(global.stdmsg, "entry %-10s\t%s\n", type, name); } } if (funcdecl.fbody && funcdecl.isMain() && sc._module.isRoot()) genCmain(sc); assert(funcdecl.type.ty != Terror || funcdecl.errors); } /// Do the semantic analysis on the external interface to the function. override void visit(FuncDeclaration funcdecl) { funcDeclarationSemantic(funcdecl); } override void visit(CtorDeclaration ctd) { //printf("CtorDeclaration::semantic() %s\n", toChars()); if (ctd.semanticRun >= PASSsemanticdone) return; if (ctd._scope) { sc = ctd._scope; ctd._scope = null; } ctd.parent = sc.parent; Dsymbol p = ctd.toParent2(); AggregateDeclaration ad = p.isAggregateDeclaration(); if (!ad) { error(ctd.loc, "constructor can only be a member of aggregate, not %s %s", p.kind(), p.toChars()); ctd.type = Type.terror; ctd.errors = true; return; } sc = sc.push(); sc.stc &= ~STCstatic; // not a static constructor sc.flags |= SCOPEctor; funcDeclarationSemantic(ctd); sc.pop(); if (ctd.errors) return; TypeFunction tf = ctd.type.toTypeFunction(); /* See if it's the default constructor * But, template constructor should not become a default constructor. */ if (ad && (!ctd.parent.isTemplateInstance() || ctd.parent.isTemplateMixin())) { immutable dim = Parameter.dim(tf.parameters); if (auto sd = ad.isStructDeclaration()) { if (dim == 0 && tf.varargs == 0) // empty default ctor w/o any varargs { if (ctd.fbody || !(ctd.storage_class & STCdisable)) { ctd.error("default constructor for structs only allowed " ~ "with @disable, no body, and no parameters"); ctd.storage_class |= STCdisable; ctd.fbody = null; } sd.noDefaultCtor = true; } else if (dim == 0 && tf.varargs) // allow varargs only ctor { } else if (dim && Parameter.getNth(tf.parameters, 0).defaultArg) { // if the first parameter has a default argument, then the rest does as well if (ctd.storage_class & STCdisable) { ctd.deprecation("@disable'd constructor cannot have default "~ "arguments for all parameters."); deprecationSupplemental(ctd.loc, "Use @disable this(); if you want to disable default initialization."); } else ctd.deprecation("all parameters have default arguments, "~ "but structs cannot have default constructors."); } } else if (dim == 0 && tf.varargs == 0) { ad.defaultCtor = ctd; } } } override void visit(PostBlitDeclaration pbd) { //printf("PostBlitDeclaration::semantic() %s\n", toChars()); //printf("ident: %s, %s, %p, %p\n", ident.toChars(), Id::dtor.toChars(), ident, Id::dtor); //printf("stc = x%llx\n", sc.stc); if (pbd.semanticRun >= PASSsemanticdone) return; if (pbd._scope) { sc = pbd._scope; pbd._scope = null; } pbd.parent = sc.parent; Dsymbol p = pbd.toParent2(); StructDeclaration ad = p.isStructDeclaration(); if (!ad) { error(pbd.loc, "postblit can only be a member of struct/union, not %s %s", p.kind(), p.toChars()); pbd.type = Type.terror; pbd.errors = true; return; } if (pbd.ident == Id.postblit && pbd.semanticRun < PASSsemantic) ad.postblits.push(pbd); if (!pbd.type) pbd.type = new TypeFunction(null, Type.tvoid, false, LINKd, pbd.storage_class); sc = sc.push(); sc.stc &= ~STCstatic; // not static sc.linkage = LINKd; funcDeclarationSemantic(pbd); sc.pop(); } override void visit(DtorDeclaration dd) { //printf("DtorDeclaration::semantic() %s\n", toChars()); //printf("ident: %s, %s, %p, %p\n", ident.toChars(), Id::dtor.toChars(), ident, Id::dtor); if (dd.semanticRun >= PASSsemanticdone) return; if (dd._scope) { sc = dd._scope; dd._scope = null; } dd.parent = sc.parent; Dsymbol p = dd.toParent2(); AggregateDeclaration ad = p.isAggregateDeclaration(); if (!ad) { error(dd.loc, "destructor can only be a member of aggregate, not %s %s", p.kind(), p.toChars()); dd.type = Type.terror; dd.errors = true; return; } if (dd.ident == Id.dtor && dd.semanticRun < PASSsemantic) ad.dtors.push(dd); if (!dd.type) dd.type = new TypeFunction(null, Type.tvoid, false, LINKd, dd.storage_class); sc = sc.push(); sc.stc &= ~STCstatic; // not a static destructor if (sc.linkage != LINKcpp) sc.linkage = LINKd; funcDeclarationSemantic(dd); sc.pop(); } override void visit(StaticCtorDeclaration scd) { //printf("StaticCtorDeclaration::semantic()\n"); if (scd.semanticRun >= PASSsemanticdone) return; if (scd._scope) { sc = scd._scope; scd._scope = null; } scd.parent = sc.parent; Dsymbol p = scd.parent.pastMixin(); if (!p.isScopeDsymbol()) { const(char)* s = (scd.isSharedStaticCtorDeclaration() ? "shared " : ""); error(scd.loc, "%sstatic constructor can only be member of module/aggregate/template, not %s %s", s, p.kind(), p.toChars()); scd.type = Type.terror; scd.errors = true; return; } if (!scd.type) scd.type = new TypeFunction(null, Type.tvoid, false, LINKd, scd.storage_class); /* If the static ctor appears within a template instantiation, * it could get called multiple times by the module constructors * for different modules. Thus, protect it with a gate. */ if (scd.isInstantiated() && scd.semanticRun < PASSsemantic) { /* Add this prefix to the function: * static int gate; * if (++gate != 1) return; * Note that this is not thread safe; should not have threads * during static construction. */ auto v = new VarDeclaration(Loc(), Type.tint32, Id.gate, null); v.storage_class = STCtemp | (scd.isSharedStaticCtorDeclaration() ? STCstatic : STCtls); auto sa = new Statements(); Statement s = new ExpStatement(Loc(), v); sa.push(s); Expression e = new IdentifierExp(Loc(), v.ident); e = new AddAssignExp(Loc(), e, new IntegerExp(1)); e = new EqualExp(TOKnotequal, Loc(), e, new IntegerExp(1)); s = new IfStatement(Loc(), null, e, new ReturnStatement(Loc(), null), null, Loc()); sa.push(s); if (scd.fbody) sa.push(scd.fbody); scd.fbody = new CompoundStatement(Loc(), sa); } funcDeclarationSemantic(scd); // We're going to need ModuleInfo Module m = scd.getModule(); if (!m) m = sc._module; if (m) { m.needmoduleinfo = 1; //printf("module1 %s needs moduleinfo\n", m.toChars()); } } override void visit(StaticDtorDeclaration sdd) { if (sdd.semanticRun >= PASSsemanticdone) return; if (sdd._scope) { sc = sdd._scope; sdd._scope = null; } sdd.parent = sc.parent; Dsymbol p = sdd.parent.pastMixin(); if (!p.isScopeDsymbol()) { const(char)* s = (sdd.isSharedStaticDtorDeclaration() ? "shared " : ""); error(sdd.loc, "%sstatic destructor can only be member of module/aggregate/template, not %s %s", s, p.kind(), p.toChars()); sdd.type = Type.terror; sdd.errors = true; return; } if (!sdd.type) sdd.type = new TypeFunction(null, Type.tvoid, false, LINKd, sdd.storage_class); /* If the static ctor appears within a template instantiation, * it could get called multiple times by the module constructors * for different modules. Thus, protect it with a gate. */ if (sdd.isInstantiated() && sdd.semanticRun < PASSsemantic) { /* Add this prefix to the function: * static int gate; * if (--gate != 0) return; * Increment gate during constructor execution. * Note that this is not thread safe; should not have threads * during static destruction. */ auto v = new VarDeclaration(Loc(), Type.tint32, Id.gate, null); v.storage_class = STCtemp | (sdd.isSharedStaticDtorDeclaration() ? STCstatic : STCtls); auto sa = new Statements(); Statement s = new ExpStatement(Loc(), v); sa.push(s); Expression e = new IdentifierExp(Loc(), v.ident); e = new AddAssignExp(Loc(), e, new IntegerExp(-1)); e = new EqualExp(TOKnotequal, Loc(), e, new IntegerExp(0)); s = new IfStatement(Loc(), null, e, new ReturnStatement(Loc(), null), null, Loc()); sa.push(s); if (sdd.fbody) sa.push(sdd.fbody); sdd.fbody = new CompoundStatement(Loc(), sa); sdd.vgate = v; } funcDeclarationSemantic(sdd); // We're going to need ModuleInfo Module m = sdd.getModule(); if (!m) m = sc._module; if (m) { m.needmoduleinfo = 1; //printf("module2 %s needs moduleinfo\n", m.toChars()); } } override void visit(InvariantDeclaration invd) { if (invd.semanticRun >= PASSsemanticdone) return; if (invd._scope) { sc = invd._scope; invd._scope = null; } invd.parent = sc.parent; Dsymbol p = invd.parent.pastMixin(); AggregateDeclaration ad = p.isAggregateDeclaration(); if (!ad) { error(invd.loc, "invariant can only be a member of aggregate, not %s %s", p.kind(), p.toChars()); invd.type = Type.terror; invd.errors = true; return; } if (invd.ident != Id.classInvariant && invd.semanticRun < PASSsemantic && !ad.isUnionDeclaration() // users are on their own with union fields ) ad.invs.push(invd); if (!invd.type) invd.type = new TypeFunction(null, Type.tvoid, false, LINKd, invd.storage_class); sc = sc.push(); sc.stc &= ~STCstatic; // not a static invariant sc.stc |= STCconst; // invariant() is always const sc.flags = (sc.flags & ~SCOPEcontract) | SCOPEinvariant; sc.linkage = LINKd; funcDeclarationSemantic(invd); sc.pop(); } override void visit(UnitTestDeclaration utd) { // The identifier has to be generated here in order for it to be possible // to link regardless of whether the files were compiled separately // or all at once. See: // https://issues.dlang.org/show_bug.cgi?id=16995 utd.setIdentifier(); if (utd.semanticRun >= PASSsemanticdone) return; if (utd._scope) { sc = utd._scope; utd._scope = null; } utd.protection = sc.protection; utd.parent = sc.parent; Dsymbol p = utd.parent.pastMixin(); if (!p.isScopeDsymbol()) { error(utd.loc, "unittest can only be a member of module/aggregate/template, not %s %s", p.kind(), p.toChars()); utd.type = Type.terror; utd.errors = true; return; } if (global.params.useUnitTests) { if (!utd.type) utd.type = new TypeFunction(null, Type.tvoid, false, LINKd, utd.storage_class); Scope* sc2 = sc.push(); sc2.linkage = LINKd; funcDeclarationSemantic(utd); sc2.pop(); } version (none) { // We're going to need ModuleInfo even if the unit tests are not // compiled in, because other modules may import this module and refer // to this ModuleInfo. // (This doesn't make sense to me?) Module m = utd.getModule(); if (!m) m = sc._module; if (m) { //printf("module3 %s needs moduleinfo\n", m.toChars()); m.needmoduleinfo = 1; } } } override void visit(NewDeclaration nd) { //printf("NewDeclaration::semantic()\n"); if (nd.semanticRun >= PASSsemanticdone) return; if (nd._scope) { sc = nd._scope; nd._scope = null; } nd.parent = sc.parent; Dsymbol p = nd.parent.pastMixin(); if (!p.isAggregateDeclaration()) { error(nd.loc, "allocator can only be a member of aggregate, not %s %s", p.kind(), p.toChars()); nd.type = Type.terror; nd.errors = true; return; } Type tret = Type.tvoid.pointerTo(); if (!nd.type) nd.type = new TypeFunction(nd.parameters, tret, nd.varargs, LINKd, nd.storage_class); nd.type = nd.type.typeSemantic(nd.loc, sc); // Check that there is at least one argument of type size_t TypeFunction tf = nd.type.toTypeFunction(); if (Parameter.dim(tf.parameters) < 1) { nd.error("at least one argument of type size_t expected"); } else { Parameter fparam = Parameter.getNth(tf.parameters, 0); if (!fparam.type.equals(Type.tsize_t)) nd.error("first argument must be type size_t, not %s", fparam.type.toChars()); } funcDeclarationSemantic(nd); } override void visit(DeleteDeclaration deld) { //printf("DeleteDeclaration::semantic()\n"); if (deld.semanticRun >= PASSsemanticdone) return; if (deld._scope) { sc = deld._scope; deld._scope = null; } deld.parent = sc.parent; Dsymbol p = deld.parent.pastMixin(); if (!p.isAggregateDeclaration()) { error(deld.loc, "deallocator can only be a member of aggregate, not %s %s", p.kind(), p.toChars()); deld.type = Type.terror; deld.errors = true; return; } if (!deld.type) deld.type = new TypeFunction(deld.parameters, Type.tvoid, 0, LINKd, deld.storage_class); deld.type = deld.type.typeSemantic(deld.loc, sc); // Check that there is only one argument of type void* TypeFunction tf = deld.type.toTypeFunction(); if (Parameter.dim(tf.parameters) != 1) { deld.error("one argument of type void* expected"); } else { Parameter fparam = Parameter.getNth(tf.parameters, 0); if (!fparam.type.equals(Type.tvoid.pointerTo())) deld.error("one argument of type void* expected, not %s", fparam.type.toChars()); } funcDeclarationSemantic(deld); } override void visit(StructDeclaration sd) { //printf("StructDeclaration::semantic(this=%p, '%s', sizeok = %d)\n", this, toPrettyChars(), sizeok); //static int count; if (++count == 20) assert(0); if (sd.semanticRun >= PASSsemanticdone) return; int errors = global.errors; //printf("+StructDeclaration::semantic(this=%p, '%s', sizeok = %d)\n", this, toPrettyChars(), sizeok); Scope* scx = null; if (sd._scope) { sc = sd._scope; scx = sd._scope; // save so we don't make redundant copies sd._scope = null; } if (!sd.parent) { assert(sc.parent && sc.func); sd.parent = sc.parent; } assert(sd.parent && !sd.isAnonymous()); if (sd.errors) sd.type = Type.terror; if (sd.semanticRun == PASSinit) sd.type = sd.type.addSTC(sc.stc | sd.storage_class); sd.type = sd.type.typeSemantic(sd.loc, sc); if (sd.type.ty == Tstruct && (cast(TypeStruct)sd.type).sym != sd) { auto ti = (cast(TypeStruct)sd.type).sym.isInstantiated(); if (ti && isError(ti)) (cast(TypeStruct)sd.type).sym = sd; } // Ungag errors when not speculative Ungag ungag = sd.ungagSpeculative(); if (sd.semanticRun == PASSinit) { sd.protection = sc.protection; sd.alignment = sc.alignment(); sd.storage_class |= sc.stc; if (sd.storage_class & STCdeprecated) sd.isdeprecated = true; if (sd.storage_class & STCabstract) sd.error("structs, unions cannot be abstract"); sd.userAttribDecl = sc.userAttribDecl; } else if (sd.symtab && !scx) return; sd.semanticRun = PASSsemantic; if (!sd.members) // if opaque declaration { sd.semanticRun = PASSsemanticdone; return; } if (!sd.symtab) { sd.symtab = new DsymbolTable(); for (size_t i = 0; i < sd.members.dim; i++) { auto s = (*sd.members)[i]; //printf("adding member '%s' to '%s'\n", s.toChars(), this.toChars()); s.addMember(sc, sd); } } auto sc2 = sd.newScope(sc); /* Set scope so if there are forward references, we still might be able to * resolve individual members like enums. */ for (size_t i = 0; i < sd.members.dim; i++) { auto s = (*sd.members)[i]; //printf("struct: setScope %s %s\n", s.kind(), s.toChars()); s.setScope(sc2); } for (size_t i = 0; i < sd.members.dim; i++) { auto s = (*sd.members)[i]; s.importAll(sc2); } for (size_t i = 0; i < sd.members.dim; i++) { auto s = (*sd.members)[i]; s.dsymbolSemantic(sc2); sd.errors |= s.errors; } if (sd.errors) sd.type = Type.terror; if (!sd.determineFields()) { if (sd.type.ty != Terror) { sd.error(sd.loc, "circular or forward reference"); sd.errors = true; sd.type = Type.terror; } sc2.pop(); sd.semanticRun = PASSsemanticdone; return; } /* Following special member functions creation needs semantic analysis * completion of sub-structs in each field types. For example, buildDtor * needs to check existence of elaborate dtor in type of each fields. * See the case in compilable/test14838.d */ foreach (v; sd.fields) { Type tb = v.type.baseElemOf(); if (tb.ty != Tstruct) continue; auto sdec = (cast(TypeStruct)tb).sym; if (sdec.semanticRun >= PASSsemanticdone) continue; sc2.pop(); sd._scope = scx ? scx : sc.copy(); sd._scope.setNoFree(); sd._scope._module.addDeferredSemantic(sd); //printf("\tdeferring %s\n", toChars()); return; } /* Look for special member functions. */ sd.aggNew = cast(NewDeclaration)sd.search(Loc(), Id.classNew); sd.aggDelete = cast(DeleteDeclaration)sd.search(Loc(), Id.classDelete); // Look for the constructor sd.ctor = sd.searchCtor(); sd.dtor = buildDtor(sd, sc2); sd.postblit = buildPostBlit(sd, sc2); buildOpAssign(sd, sc2); buildOpEquals(sd, sc2); if (global.params.useTypeInfo) // these functions are used for TypeInfo { sd.xeq = buildXopEquals(sd, sc2); sd.xcmp = buildXopCmp(sd, sc2); sd.xhash = buildXtoHash(sd, sc2); } sd.inv = buildInv(sd, sc2); Module.dprogress++; sd.semanticRun = PASSsemanticdone; //printf("-StructDeclaration::semantic(this=%p, '%s')\n", this, toChars()); sc2.pop(); if (sd.ctor) { Dsymbol scall = sd.search(Loc(), Id.call); if (scall) { uint xerrors = global.startGagging(); sc = sc.push(); sc.tinst = null; sc.minst = null; auto fcall = resolveFuncCall(sd.loc, sc, scall, null, null, null, 1); sc = sc.pop(); global.endGagging(xerrors); if (fcall && fcall.isStatic()) { sd.error(fcall.loc, "static opCall is hidden by constructors and can never be called"); errorSupplemental(fcall.loc, "Please use a factory method instead, or replace all constructors with static opCall."); } } } if (global.errors != errors) { // The type is no good. sd.type = Type.terror; sd.errors = true; if (sd.deferred) sd.deferred.errors = true; } if (sd.deferred && !global.gag) { sd.deferred.semantic2(sc); sd.deferred.semantic3(sc); } version (none) { if (sd.type.ty == Tstruct && (cast(TypeStruct)sd.type).sym != sd) { printf("this = %p %s\n", sd, sd.toChars()); printf("type = %d sym = %p\n", sd.type.ty, (cast(TypeStruct)sd.type).sym); } } assert(sd.type.ty != Tstruct || (cast(TypeStruct)sd.type).sym == sd); } final void interfaceSemantic(ClassDeclaration cd) { cd.vtblInterfaces = new BaseClasses(); cd.vtblInterfaces.reserve(cd.interfaces.length); foreach (b; cd.interfaces) { cd.vtblInterfaces.push(b); b.copyBaseInterfaces(cd.vtblInterfaces); } } override void visit(ClassDeclaration cldec) { //printf("ClassDeclaration.dsymbolSemantic(%s), type = %p, sizeok = %d, this = %p\n", toChars(), type, sizeok, this); //printf("\tparent = %p, '%s'\n", sc.parent, sc.parent ? sc.parent.toChars() : ""); //printf("sc.stc = %x\n", sc.stc); //{ static int n; if (++n == 20) *(char*)0=0; } if (cldec.semanticRun >= PASSsemanticdone) return; int errors = global.errors; //printf("+ClassDeclaration.dsymbolSemantic(%s), type = %p, sizeok = %d, this = %p\n", toChars(), type, sizeok, this); Scope* scx = null; if (cldec._scope) { sc = cldec._scope; scx = cldec._scope; // save so we don't make redundant copies cldec._scope = null; } if (!cldec.parent) { assert(sc.parent); cldec.parent = sc.parent; } if (cldec.errors) cldec.type = Type.terror; cldec.type = cldec.type.typeSemantic(cldec.loc, sc); if (cldec.type.ty == Tclass && (cast(TypeClass)cldec.type).sym != cldec) { auto ti = (cast(TypeClass)cldec.type).sym.isInstantiated(); if (ti && isError(ti)) (cast(TypeClass)cldec.type).sym = cldec; } // Ungag errors when not speculative Ungag ungag = cldec.ungagSpeculative(); if (cldec.semanticRun == PASSinit) { cldec.protection = sc.protection; cldec.storage_class |= sc.stc; if (cldec.storage_class & STCdeprecated) cldec.isdeprecated = true; if (cldec.storage_class & STCauto) cldec.error("storage class 'auto' is invalid when declaring a class, did you mean to use 'scope'?"); if (cldec.storage_class & STCscope) cldec.stack = true; if (cldec.storage_class & STCabstract) cldec.isabstract = ABSyes; cldec.userAttribDecl = sc.userAttribDecl; if (sc.linkage == LINKcpp) cldec.classKind = ClassKind.cpp; if (sc.linkage == LINKobjc) objc.setObjc(cldec); } else if (cldec.symtab && !scx) { cldec.semanticRun = PASSsemanticdone; return; } cldec.semanticRun = PASSsemantic; if (cldec.baseok < BASEOKdone) { /* https://issues.dlang.org/show_bug.cgi?id=12078 * https://issues.dlang.org/show_bug.cgi?id=12143 * https://issues.dlang.org/show_bug.cgi?id=15733 * While resolving base classes and interfaces, a base may refer * the member of this derived class. In that time, if all bases of * this class can be determined, we can go forward the semantc process * beyond the Lancestorsdone. To do the recursive semantic analysis, * temporarily set and unset `_scope` around exp(). */ T resolveBase(T)(lazy T exp) { if (!scx) { scx = sc.copy(); scx.setNoFree(); } static if (!is(T == void)) { cldec._scope = scx; auto r = exp(); cldec._scope = null; return r; } else { cldec._scope = scx; exp(); cldec._scope = null; } } cldec.baseok = BASEOKin; // Expand any tuples in baseclasses[] for (size_t i = 0; i < cldec.baseclasses.dim;) { auto b = (*cldec.baseclasses)[i]; b.type = resolveBase(b.type.typeSemantic(cldec.loc, sc)); Type tb = b.type.toBasetype(); if (tb.ty == Ttuple) { TypeTuple tup = cast(TypeTuple)tb; cldec.baseclasses.remove(i); size_t dim = Parameter.dim(tup.arguments); for (size_t j = 0; j < dim; j++) { Parameter arg = Parameter.getNth(tup.arguments, j); b = new BaseClass(arg.type); cldec.baseclasses.insert(i + j, b); } } else i++; } if (cldec.baseok >= BASEOKdone) { //printf("%s already semantic analyzed, semanticRun = %d\n", toChars(), semanticRun); if (cldec.semanticRun >= PASSsemanticdone) return; goto Lancestorsdone; } // See if there's a base class as first in baseclasses[] if (cldec.baseclasses.dim) { BaseClass* b = (*cldec.baseclasses)[0]; Type tb = b.type.toBasetype(); TypeClass tc = (tb.ty == Tclass) ? cast(TypeClass)tb : null; if (!tc) { if (b.type != Type.terror) cldec.error("base type must be class or interface, not %s", b.type.toChars()); cldec.baseclasses.remove(0); goto L7; } if (tc.sym.isDeprecated()) { if (!cldec.isDeprecated()) { // Deriving from deprecated class makes this one deprecated too cldec.isdeprecated = true; tc.checkDeprecated(cldec.loc, sc); } } if (tc.sym.isInterfaceDeclaration()) goto L7; for (ClassDeclaration cdb = tc.sym; cdb; cdb = cdb.baseClass) { if (cdb == cldec) { cldec.error("circular inheritance"); cldec.baseclasses.remove(0); goto L7; } } /* https://issues.dlang.org/show_bug.cgi?id=11034 * Class inheritance hierarchy * and instance size of each classes are orthogonal information. * Therefore, even if tc.sym.sizeof == SIZEOKnone, * we need to set baseClass field for class covariance check. */ cldec.baseClass = tc.sym; b.sym = cldec.baseClass; if (tc.sym.baseok < BASEOKdone) resolveBase(tc.sym.dsymbolSemantic(null)); // Try to resolve forward reference if (tc.sym.baseok < BASEOKdone) { //printf("\ttry later, forward reference of base class %s\n", tc.sym.toChars()); if (tc.sym._scope) tc.sym._scope._module.addDeferredSemantic(tc.sym); cldec.baseok = BASEOKnone; } L7: } // Treat the remaining entries in baseclasses as interfaces // Check for errors, handle forward references for (size_t i = (cldec.baseClass ? 1 : 0); i < cldec.baseclasses.dim;) { BaseClass* b = (*cldec.baseclasses)[i]; Type tb = b.type.toBasetype(); TypeClass tc = (tb.ty == Tclass) ? cast(TypeClass)tb : null; if (!tc || !tc.sym.isInterfaceDeclaration()) { if (b.type != Type.terror) cldec.error("base type must be interface, not %s", b.type.toChars()); cldec.baseclasses.remove(i); continue; } // Check for duplicate interfaces for (size_t j = (cldec.baseClass ? 1 : 0); j < i; j++) { BaseClass* b2 = (*cldec.baseclasses)[j]; if (b2.sym == tc.sym) { cldec.error("inherits from duplicate interface %s", b2.sym.toChars()); cldec.baseclasses.remove(i); continue; } } if (tc.sym.isDeprecated()) { if (!cldec.isDeprecated()) { // Deriving from deprecated class makes this one deprecated too cldec.isdeprecated = true; tc.checkDeprecated(cldec.loc, sc); } } b.sym = tc.sym; if (tc.sym.baseok < BASEOKdone) resolveBase(tc.sym.dsymbolSemantic(null)); // Try to resolve forward reference if (tc.sym.baseok < BASEOKdone) { //printf("\ttry later, forward reference of base %s\n", tc.sym.toChars()); if (tc.sym._scope) tc.sym._scope._module.addDeferredSemantic(tc.sym); cldec.baseok = BASEOKnone; } i++; } if (cldec.baseok == BASEOKnone) { // Forward referencee of one or more bases, try again later cldec._scope = scx ? scx : sc.copy(); cldec._scope.setNoFree(); cldec._scope._module.addDeferredSemantic(cldec); //printf("\tL%d semantic('%s') failed due to forward references\n", __LINE__, toChars()); return; } cldec.baseok = BASEOKdone; // If no base class, and this is not an Object, use Object as base class if (!cldec.baseClass && cldec.ident != Id.Object && !cldec.classKind == ClassKind.cpp) { void badObjectDotD() { cldec.error("missing or corrupt object.d"); fatal(); } if (!cldec.object || cldec.object.errors) badObjectDotD(); Type t = cldec.object.type; t = t.typeSemantic(cldec.loc, sc).toBasetype(); if (t.ty == Terror) badObjectDotD(); assert(t.ty == Tclass); TypeClass tc = cast(TypeClass)t; auto b = new BaseClass(tc); cldec.baseclasses.shift(b); cldec.baseClass = tc.sym; assert(!cldec.baseClass.isInterfaceDeclaration()); b.sym = cldec.baseClass; } if (cldec.baseClass) { if (cldec.baseClass.storage_class & STCfinal) cldec.error("cannot inherit from final class %s", cldec.baseClass.toChars()); // Inherit properties from base class if (cldec.baseClass.isCOMclass()) cldec.com = true; if (cldec.baseClass.isCPPclass()) cldec.classKind = ClassKind.cpp; if (cldec.baseClass.stack) cldec.stack = true; cldec.enclosing = cldec.baseClass.enclosing; cldec.storage_class |= cldec.baseClass.storage_class & STC_TYPECTOR; } cldec.interfaces = cldec.baseclasses.tdata()[(cldec.baseClass ? 1 : 0) .. cldec.baseclasses.dim]; foreach (b; cldec.interfaces) { // If this is an interface, and it derives from a COM interface, // then this is a COM interface too. if (b.sym.isCOMinterface()) cldec.com = true; if (cldec.classKind == ClassKind.cpp && !b.sym.isCPPinterface()) { error(cldec.loc, "C++ class '%s' cannot implement D interface '%s'", cldec.toPrettyChars(), b.sym.toPrettyChars()); } } interfaceSemantic(cldec); } Lancestorsdone: //printf("\tClassDeclaration.dsymbolSemantic(%s) baseok = %d\n", toChars(), baseok); if (!cldec.members) // if opaque declaration { cldec.semanticRun = PASSsemanticdone; return; } if (!cldec.symtab) { cldec.symtab = new DsymbolTable(); /* https://issues.dlang.org/show_bug.cgi?id=12152 * The semantic analysis of base classes should be finished * before the members semantic analysis of this class, in order to determine * vtbl in this class. However if a base class refers the member of this class, * it can be resolved as a normal forward reference. * Call addMember() and setScope() to make this class members visible from the base classes. */ for (size_t i = 0; i < cldec.members.dim; i++) { auto s = (*cldec.members)[i]; s.addMember(sc, cldec); } auto sc2 = cldec.newScope(sc); /* Set scope so if there are forward references, we still might be able to * resolve individual members like enums. */ for (size_t i = 0; i < cldec.members.dim; i++) { auto s = (*cldec.members)[i]; //printf("[%d] setScope %s %s, sc2 = %p\n", i, s.kind(), s.toChars(), sc2); s.setScope(sc2); } sc2.pop(); } for (size_t i = 0; i < cldec.baseclasses.dim; i++) { BaseClass* b = (*cldec.baseclasses)[i]; Type tb = b.type.toBasetype(); assert(tb.ty == Tclass); TypeClass tc = cast(TypeClass)tb; if (tc.sym.semanticRun < PASSsemanticdone) { // Forward referencee of one or more bases, try again later cldec._scope = scx ? scx : sc.copy(); cldec._scope.setNoFree(); if (tc.sym._scope) tc.sym._scope._module.addDeferredSemantic(tc.sym); cldec._scope._module.addDeferredSemantic(cldec); //printf("\tL%d semantic('%s') failed due to forward references\n", __LINE__, toChars()); return; } } if (cldec.baseok == BASEOKdone) { cldec.baseok = BASEOKsemanticdone; // initialize vtbl if (cldec.baseClass) { if (cldec.classKind == ClassKind.cpp && cldec.baseClass.vtbl.dim == 0) { cldec.error("C++ base class %s needs at least one virtual function", cldec.baseClass.toChars()); } // Copy vtbl[] from base class cldec.vtbl.setDim(cldec.baseClass.vtbl.dim); memcpy(cldec.vtbl.tdata(), cldec.baseClass.vtbl.tdata(), (void*).sizeof * cldec.vtbl.dim); cldec.vthis = cldec.baseClass.vthis; } else { // No base class, so this is the root of the class hierarchy cldec.vtbl.setDim(0); if (cldec.vtblOffset()) cldec.vtbl.push(cldec); // leave room for classinfo as first member } /* If this is a nested class, add the hidden 'this' * member which is a pointer to the enclosing scope. */ if (cldec.vthis) // if inheriting from nested class { // Use the base class's 'this' member if (cldec.storage_class & STCstatic) cldec.error("static class cannot inherit from nested class %s", cldec.baseClass.toChars()); if (cldec.toParent2() != cldec.baseClass.toParent2() && (!cldec.toParent2() || !cldec.baseClass.toParent2().getType() || !cldec.baseClass.toParent2().getType().isBaseOf(cldec.toParent2().getType(), null))) { if (cldec.toParent2()) { cldec.error("is nested within %s, but super class %s is nested within %s", cldec.toParent2().toChars(), cldec.baseClass.toChars(), cldec.baseClass.toParent2().toChars()); } else { cldec.error("is not nested, but super class %s is nested within %s", cldec.baseClass.toChars(), cldec.baseClass.toParent2().toChars()); } cldec.enclosing = null; } } else cldec.makeNested(); } auto sc2 = cldec.newScope(sc); for (size_t i = 0; i < cldec.members.dim; ++i) { auto s = (*cldec.members)[i]; s.importAll(sc2); } // Note that members.dim can grow due to tuple expansion during semantic() for (size_t i = 0; i < cldec.members.dim; ++i) { auto s = (*cldec.members)[i]; s.dsymbolSemantic(sc2); } if (!cldec.determineFields()) { assert(cldec.type == Type.terror); sc2.pop(); return; } /* Following special member functions creation needs semantic analysis * completion of sub-structs in each field types. */ foreach (v; cldec.fields) { Type tb = v.type.baseElemOf(); if (tb.ty != Tstruct) continue; auto sd = (cast(TypeStruct)tb).sym; if (sd.semanticRun >= PASSsemanticdone) continue; sc2.pop(); cldec._scope = scx ? scx : sc.copy(); cldec._scope.setNoFree(); cldec._scope._module.addDeferredSemantic(cldec); //printf("\tdeferring %s\n", toChars()); return; } /* Look for special member functions. * They must be in this class, not in a base class. */ // Can be in base class cldec.aggNew = cast(NewDeclaration)cldec.search(Loc(), Id.classNew); cldec.aggDelete = cast(DeleteDeclaration)cldec.search(Loc(), Id.classDelete); // Look for the constructor cldec.ctor = cldec.searchCtor(); if (!cldec.ctor && cldec.noDefaultCtor) { // A class object is always created by constructor, so this check is legitimate. foreach (v; cldec.fields) { if (v.storage_class & STCnodefaultctor) error(v.loc, "field %s must be initialized in constructor", v.toChars()); } } // If this class has no constructor, but base class has a default // ctor, create a constructor: // this() { } if (!cldec.ctor && cldec.baseClass && cldec.baseClass.ctor) { auto fd = resolveFuncCall(cldec.loc, sc2, cldec.baseClass.ctor, null, cldec.type, null, 1); if (!fd) // try shared base ctor instead fd = resolveFuncCall(cldec.loc, sc2, cldec.baseClass.ctor, null, cldec.type.sharedOf, null, 1); if (fd && !fd.errors) { //printf("Creating default this(){} for class %s\n", toChars()); auto btf = fd.type.toTypeFunction(); auto tf = new TypeFunction(null, null, 0, LINKd, fd.storage_class); tf.mod = btf.mod; tf.purity = btf.purity; tf.isnothrow = btf.isnothrow; tf.isnogc = btf.isnogc; tf.trust = btf.trust; auto ctor = new CtorDeclaration(cldec.loc, Loc(), 0, tf); ctor.fbody = new CompoundStatement(Loc(), new Statements()); cldec.members.push(ctor); ctor.addMember(sc, cldec); ctor.dsymbolSemantic(sc2); cldec.ctor = ctor; cldec.defaultCtor = ctor; } else { cldec.error("cannot implicitly generate a default ctor when base class %s is missing a default ctor", cldec.baseClass.toPrettyChars()); } } cldec.dtor = buildDtor(cldec, sc2); if (auto f = hasIdentityOpAssign(cldec, sc2)) { if (!(f.storage_class & STCdisable)) cldec.error(f.loc, "identity assignment operator overload is illegal"); } cldec.inv = buildInv(cldec, sc2); Module.dprogress++; cldec.semanticRun = PASSsemanticdone; //printf("-ClassDeclaration.dsymbolSemantic(%s), type = %p\n", toChars(), type); //members.print(); sc2.pop(); /* isAbstract() is undecidable in some cases because of circular dependencies. * Now that semantic is finished, get a definitive result, and error if it is not the same. */ if (cldec.isabstract != ABSfwdref) // if evaluated it before completion { const isabstractsave = cldec.isabstract; cldec.isabstract = ABSfwdref; cldec.isAbstract(); // recalculate if (cldec.isabstract != isabstractsave) { cldec.error("cannot infer `abstract` attribute due to circular dependencies"); } } if (cldec.type.ty == Tclass && (cast(TypeClass)cldec.type).sym != cldec) { // https://issues.dlang.org/show_bug.cgi?id=17492 ClassDeclaration cd = (cast(TypeClass)cldec.type).sym; version (none) { printf("this = %p %s\n", cldec, cldec.toPrettyChars()); printf("type = %d sym = %p, %s\n", cldec.type.ty, cd, cd.toPrettyChars()); } cldec.error("already exists at %s. Perhaps in another function with the same name?", cd.loc.toChars()); } if (global.errors != errors) { // The type is no good. cldec.type = Type.terror; cldec.errors = true; if (cldec.deferred) cldec.deferred.errors = true; } // Verify fields of a synchronized class are not public if (cldec.storage_class & STCsynchronized) { foreach (vd; cldec.fields) { if (!vd.isThisDeclaration() && !vd.prot().isMoreRestrictiveThan(Prot(PROTpublic))) { vd.error("Field members of a synchronized class cannot be %s", protectionToChars(vd.prot().kind)); } } } if (cldec.deferred && !global.gag) { cldec.deferred.semantic2(sc); cldec.deferred.semantic3(sc); } //printf("-ClassDeclaration.dsymbolSemantic(%s), type = %p, sizeok = %d, this = %p\n", toChars(), type, sizeok, this); } override void visit(InterfaceDeclaration idec) { //printf("InterfaceDeclaration.dsymbolSemantic(%s), type = %p\n", toChars(), type); if (idec.semanticRun >= PASSsemanticdone) return; int errors = global.errors; //printf("+InterfaceDeclaration.dsymbolSemantic(%s), type = %p\n", toChars(), type); Scope* scx = null; if (idec._scope) { sc = idec._scope; scx = idec._scope; // save so we don't make redundant copies idec._scope = null; } if (!idec.parent) { assert(sc.parent && sc.func); idec.parent = sc.parent; } assert(idec.parent && !idec.isAnonymous()); if (idec.errors) idec.type = Type.terror; idec.type = idec.type.typeSemantic(idec.loc, sc); if (idec.type.ty == Tclass && (cast(TypeClass)idec.type).sym != idec) { auto ti = (cast(TypeClass)idec.type).sym.isInstantiated(); if (ti && isError(ti)) (cast(TypeClass)idec.type).sym = idec; } // Ungag errors when not speculative Ungag ungag = idec.ungagSpeculative(); if (idec.semanticRun == PASSinit) { idec.protection = sc.protection; idec.storage_class |= sc.stc; if (idec.storage_class & STCdeprecated) idec.isdeprecated = true; idec.userAttribDecl = sc.userAttribDecl; } else if (idec.symtab) { if (idec.sizeok == SIZEOKdone || !scx) { idec.semanticRun = PASSsemanticdone; return; } } idec.semanticRun = PASSsemantic; if (idec.baseok < BASEOKdone) { T resolveBase(T)(lazy T exp) { if (!scx) { scx = sc.copy(); scx.setNoFree(); } static if (!is(T == void)) { idec._scope = scx; auto r = exp(); idec._scope = null; return r; } else { idec._scope = scx; exp(); idec._scope = null; } } idec.baseok = BASEOKin; // Expand any tuples in baseclasses[] for (size_t i = 0; i < idec.baseclasses.dim;) { auto b = (*idec.baseclasses)[i]; b.type = resolveBase(b.type.typeSemantic(idec.loc, sc)); Type tb = b.type.toBasetype(); if (tb.ty == Ttuple) { TypeTuple tup = cast(TypeTuple)tb; idec.baseclasses.remove(i); size_t dim = Parameter.dim(tup.arguments); for (size_t j = 0; j < dim; j++) { Parameter arg = Parameter.getNth(tup.arguments, j); b = new BaseClass(arg.type); idec.baseclasses.insert(i + j, b); } } else i++; } if (idec.baseok >= BASEOKdone) { //printf("%s already semantic analyzed, semanticRun = %d\n", toChars(), semanticRun); if (idec.semanticRun >= PASSsemanticdone) return; goto Lancestorsdone; } if (!idec.baseclasses.dim && sc.linkage == LINKcpp) idec.classKind = ClassKind.cpp; if (sc.linkage == LINKobjc) objc.setObjc(idec); // Check for errors, handle forward references for (size_t i = 0; i < idec.baseclasses.dim;) { BaseClass* b = (*idec.baseclasses)[i]; Type tb = b.type.toBasetype(); TypeClass tc = (tb.ty == Tclass) ? cast(TypeClass)tb : null; if (!tc || !tc.sym.isInterfaceDeclaration()) { if (b.type != Type.terror) idec.error("base type must be interface, not %s", b.type.toChars()); idec.baseclasses.remove(i); continue; } // Check for duplicate interfaces for (size_t j = 0; j < i; j++) { BaseClass* b2 = (*idec.baseclasses)[j]; if (b2.sym == tc.sym) { idec.error("inherits from duplicate interface %s", b2.sym.toChars()); idec.baseclasses.remove(i); continue; } } if (tc.sym == idec || idec.isBaseOf2(tc.sym)) { idec.error("circular inheritance of interface"); idec.baseclasses.remove(i); continue; } if (tc.sym.isDeprecated()) { if (!idec.isDeprecated()) { // Deriving from deprecated class makes this one deprecated too idec.isdeprecated = true; tc.checkDeprecated(idec.loc, sc); } } b.sym = tc.sym; if (tc.sym.baseok < BASEOKdone) resolveBase(tc.sym.dsymbolSemantic(null)); // Try to resolve forward reference if (tc.sym.baseok < BASEOKdone) { //printf("\ttry later, forward reference of base %s\n", tc.sym.toChars()); if (tc.sym._scope) tc.sym._scope._module.addDeferredSemantic(tc.sym); idec.baseok = BASEOKnone; } i++; } if (idec.baseok == BASEOKnone) { // Forward referencee of one or more bases, try again later idec._scope = scx ? scx : sc.copy(); idec._scope.setNoFree(); idec._scope._module.addDeferredSemantic(idec); return; } idec.baseok = BASEOKdone; idec.interfaces = idec.baseclasses.tdata()[0 .. idec.baseclasses.dim]; foreach (b; idec.interfaces) { // If this is an interface, and it derives from a COM interface, // then this is a COM interface too. if (b.sym.isCOMinterface()) idec.com = true; if (b.sym.isCPPinterface()) idec.classKind = ClassKind.cpp; } interfaceSemantic(idec); } Lancestorsdone: if (!idec.members) // if opaque declaration { idec.semanticRun = PASSsemanticdone; return; } if (!idec.symtab) idec.symtab = new DsymbolTable(); for (size_t i = 0; i < idec.baseclasses.dim; i++) { BaseClass* b = (*idec.baseclasses)[i]; Type tb = b.type.toBasetype(); assert(tb.ty == Tclass); TypeClass tc = cast(TypeClass)tb; if (tc.sym.semanticRun < PASSsemanticdone) { // Forward referencee of one or more bases, try again later idec._scope = scx ? scx : sc.copy(); idec._scope.setNoFree(); if (tc.sym._scope) tc.sym._scope._module.addDeferredSemantic(tc.sym); idec._scope._module.addDeferredSemantic(idec); return; } } if (idec.baseok == BASEOKdone) { idec.baseok = BASEOKsemanticdone; // initialize vtbl if (idec.vtblOffset()) idec.vtbl.push(idec); // leave room at vtbl[0] for classinfo // Cat together the vtbl[]'s from base interfaces foreach (i, b; idec.interfaces) { // Skip if b has already appeared for (size_t k = 0; k < i; k++) { if (b == idec.interfaces[k]) goto Lcontinue; } // Copy vtbl[] from base class if (b.sym.vtblOffset()) { size_t d = b.sym.vtbl.dim; if (d > 1) { idec.vtbl.reserve(d - 1); for (size_t j = 1; j < d; j++) idec.vtbl.push(b.sym.vtbl[j]); } } else { idec.vtbl.append(&b.sym.vtbl); } Lcontinue: } } for (size_t i = 0; i < idec.members.dim; i++) { Dsymbol s = (*idec.members)[i]; s.addMember(sc, idec); } auto sc2 = idec.newScope(sc); /* Set scope so if there are forward references, we still might be able to * resolve individual members like enums. */ for (size_t i = 0; i < idec.members.dim; i++) { Dsymbol s = (*idec.members)[i]; //printf("setScope %s %s\n", s.kind(), s.toChars()); s.setScope(sc2); } for (size_t i = 0; i < idec.members.dim; i++) { Dsymbol s = (*idec.members)[i]; s.importAll(sc2); } for (size_t i = 0; i < idec.members.dim; i++) { Dsymbol s = (*idec.members)[i]; s.dsymbolSemantic(sc2); } Module.dprogress++; idec.semanticRun = PASSsemanticdone; //printf("-InterfaceDeclaration.dsymbolSemantic(%s), type = %p\n", toChars(), type); //members.print(); sc2.pop(); if (global.errors != errors) { // The type is no good. idec.type = Type.terror; } version (none) { if (type.ty == Tclass && (cast(TypeClass)idec.type).sym != idec) { printf("this = %p %s\n", idec, idec.toChars()); printf("type = %d sym = %p\n", idec.type.ty, (cast(TypeClass)idec.type).sym); } } assert(idec.type.ty != Tclass || (cast(TypeClass)idec.type).sym == idec); } } void templateInstanceSemantic(TemplateInstance tempinst, Scope* sc, Expressions* fargs) { //printf("[%s] TemplateInstance.dsymbolSemantic('%s', this=%p, gag = %d, sc = %p)\n", loc.toChars(), toChars(), this, global.gag, sc); version (none) { for (Dsymbol s = tempinst; s; s = s.parent) { printf("\t%s\n", s.toChars()); } printf("Scope\n"); for (Scope* scx = sc; scx; scx = scx.enclosing) { printf("\t%s parent %s\n", scx._module ? scx._module.toChars() : "null", scx.parent ? scx.parent.toChars() : "null"); } } static if (LOG) { printf("\n+TemplateInstance.dsymbolSemantic('%s', this=%p)\n", tempinst.toChars(), tempinst); } if (tempinst.inst) // if semantic() was already run { static if (LOG) { printf("-TemplateInstance.dsymbolSemantic('%s', this=%p) already run\n", inst.toChars(), tempinst.inst); } return; } if (tempinst.semanticRun != PASSinit) { static if (LOG) { printf("Recursive template expansion\n"); } auto ungag = Ungag(global.gag); if (!tempinst.gagged) global.gag = 0; tempinst.error(tempinst.loc, "recursive template expansion"); if (tempinst.gagged) tempinst.semanticRun = PASSinit; else tempinst.inst = tempinst; tempinst.errors = true; return; } // Get the enclosing template instance from the scope tinst tempinst.tinst = sc.tinst; // Get the instantiating module from the scope minst tempinst.minst = sc.minst; // https://issues.dlang.org/show_bug.cgi?id=10920 // If the enclosing function is non-root symbol, // this instance should be speculative. if (!tempinst.tinst && sc.func && sc.func.inNonRoot()) { tempinst.minst = null; } tempinst.gagged = (global.gag > 0); tempinst.semanticRun = PASSsemantic; static if (LOG) { printf("\tdo semantic\n"); } /* Find template declaration first, * then run semantic on each argument (place results in tiargs[]), * last find most specialized template from overload list/set. */ if (!tempinst.findTempDecl(sc, null) || !tempinst.semanticTiargs(sc) || !tempinst.findBestMatch(sc, fargs)) { Lerror: if (tempinst.gagged) { // https://issues.dlang.org/show_bug.cgi?id=13220 // Roll back status for later semantic re-running tempinst.semanticRun = PASSinit; } else tempinst.inst = tempinst; tempinst.errors = true; return; } TemplateDeclaration tempdecl = tempinst.tempdecl.isTemplateDeclaration(); assert(tempdecl); // If tempdecl is a mixin, disallow it if (tempdecl.ismixin) { tempinst.error("mixin templates are not regular templates"); goto Lerror; } tempinst.hasNestedArgs(tempinst.tiargs, tempdecl.isstatic); if (tempinst.errors) goto Lerror; /* See if there is an existing TemplateInstantiation that already * implements the typeargs. If so, just refer to that one instead. */ tempinst.inst = tempdecl.findExistingInstance(tempinst, fargs); TemplateInstance errinst = null; if (!tempinst.inst) { // So, we need to implement 'this' instance. } else if (tempinst.inst.gagged && !tempinst.gagged && tempinst.inst.errors) { // If the first instantiation had failed, re-run semantic, // so that error messages are shown. errinst = tempinst.inst; } else { // It's a match tempinst.parent = tempinst.inst.parent; tempinst.errors = tempinst.inst.errors; // If both this and the previous instantiation were gagged, // use the number of errors that happened last time. global.errors += tempinst.errors; global.gaggedErrors += tempinst.errors; // If the first instantiation was gagged, but this is not: if (tempinst.inst.gagged) { // It had succeeded, mark it is a non-gagged instantiation, // and reuse it. tempinst.inst.gagged = tempinst.gagged; } tempinst.tnext = tempinst.inst.tnext; tempinst.inst.tnext = tempinst; /* A module can have explicit template instance and its alias * in module scope (e,g, `alias Base64 = Base64Impl!('+', '/');`). * If the first instantiation 'inst' had happened in non-root module, * compiler can assume that its instantiated code would be included * in the separately compiled obj/lib file (e.g. phobos.lib). * * However, if 'this' second instantiation happened in root module, * compiler might need to invoke its codegen * (https://issues.dlang.org/show_bug.cgi?id=2500 & https://issues.dlang.org/show_bug.cgi?id=2644). * But whole import graph is not determined until all semantic pass finished, * so 'inst' should conservatively finish the semantic3 pass for the codegen. */ if (tempinst.minst && tempinst.minst.isRoot() && !(tempinst.inst.minst && tempinst.inst.minst.isRoot())) { /* Swap the position of 'inst' and 'this' in the instantiation graph. * Then, the primary instance `inst` will be changed to a root instance. * * Before: * non-root -> A!() -> B!()[inst] -> C!() * | * root -> D!() -> B!()[this] * * After: * non-root -> A!() -> B!()[this] * | * root -> D!() -> B!()[inst] -> C!() */ Module mi = tempinst.minst; TemplateInstance ti = tempinst.tinst; tempinst.minst = tempinst.inst.minst; tempinst.tinst = tempinst.inst.tinst; tempinst.inst.minst = mi; tempinst.inst.tinst = ti; if (tempinst.minst) // if inst was not speculative { /* Add 'inst' once again to the root module members[], then the * instance members will get codegen chances. */ tempinst.inst.appendToModuleMember(); } } static if (LOG) { printf("\tit's a match with instance %p, %d\n", tempinst.inst, tempinst.inst.semanticRun); } return; } static if (LOG) { printf("\timplement template instance %s '%s'\n", tempdecl.parent.toChars(), tempinst.toChars()); printf("\ttempdecl %s\n", tempdecl.toChars()); } uint errorsave = global.errors; tempinst.inst = tempinst; tempinst.parent = tempinst.enclosing ? tempinst.enclosing : tempdecl.parent; //printf("parent = '%s'\n", parent.kind()); TemplateInstance tempdecl_instance_idx = tempdecl.addInstance(tempinst); //getIdent(); // Store the place we added it to in target_symbol_list(_idx) so we can // remove it later if we encounter an error. Dsymbols* target_symbol_list = tempinst.appendToModuleMember(); size_t target_symbol_list_idx = target_symbol_list ? target_symbol_list.dim - 1 : 0; // Copy the syntax trees from the TemplateDeclaration tempinst.members = Dsymbol.arraySyntaxCopy(tempdecl.members); // resolve TemplateThisParameter for (size_t i = 0; i < tempdecl.parameters.dim; i++) { if ((*tempdecl.parameters)[i].isTemplateThisParameter() is null) continue; Type t = isType((*tempinst.tiargs)[i]); assert(t); if (StorageClass stc = ModToStc(t.mod)) { //printf("t = %s, stc = x%llx\n", t.toChars(), stc); auto s = new Dsymbols(); s.push(new StorageClassDeclaration(stc, tempinst.members)); tempinst.members = s; } break; } // Create our own scope for the template parameters Scope* _scope = tempdecl._scope; if (tempdecl.semanticRun == PASSinit) { tempinst.error("template instantiation %s forward references template declaration %s", tempinst.toChars(), tempdecl.toChars()); return; } static if (LOG) { printf("\tcreate scope for template parameters '%s'\n", tempinst.toChars()); } tempinst.argsym = new ScopeDsymbol(); tempinst.argsym.parent = _scope.parent; _scope = _scope.push(tempinst.argsym); _scope.tinst = tempinst; _scope.minst = tempinst.minst; //scope.stc = 0; // Declare each template parameter as an alias for the argument type Scope* paramscope = _scope.push(); paramscope.stc = 0; paramscope.protection = Prot(PROTpublic); // https://issues.dlang.org/show_bug.cgi?id=14169 // template parameters should be public tempinst.declareParameters(paramscope); paramscope.pop(); // Add members of template instance to template instance symbol table //parent = scope.scopesym; tempinst.symtab = new DsymbolTable(); for (size_t i = 0; i < tempinst.members.dim; i++) { Dsymbol s = (*tempinst.members)[i]; static if (LOG) { printf("\t[%d] adding member '%s' %p kind %s to '%s'\n", i, s.toChars(), s, s.kind(), tempinst.toChars()); } s.addMember(_scope, tempinst); } static if (LOG) { printf("adding members done\n"); } /* See if there is only one member of template instance, and that * member has the same name as the template instance. * If so, this template instance becomes an alias for that member. */ //printf("members.dim = %d\n", members.dim); if (tempinst.members.dim) { Dsymbol s; if (Dsymbol.oneMembers(tempinst.members, &s, tempdecl.ident) && s) { //printf("tempdecl.ident = %s, s = '%s'\n", tempdecl.ident.toChars(), s.kind(), s.toPrettyChars()); //printf("setting aliasdecl\n"); tempinst.aliasdecl = s; } } /* If function template declaration */ if (fargs && tempinst.aliasdecl) { FuncDeclaration fd = tempinst.aliasdecl.isFuncDeclaration(); if (fd) { /* Transmit fargs to type so that TypeFunction.dsymbolSemantic() can * resolve any "auto ref" storage classes. */ TypeFunction tf = cast(TypeFunction)fd.type; if (tf && tf.ty == Tfunction) tf.fargs = fargs; } } // Do semantic() analysis on template instance members static if (LOG) { printf("\tdo semantic() on template instance members '%s'\n", tempinst.toChars()); } Scope* sc2; sc2 = _scope.push(tempinst); //printf("enclosing = %d, sc.parent = %s\n", enclosing, sc.parent.toChars()); sc2.parent = tempinst; sc2.tinst = tempinst; sc2.minst = tempinst.minst; tempinst.tryExpandMembers(sc2); tempinst.semanticRun = PASSsemanticdone; /* ConditionalDeclaration may introduce eponymous declaration, * so we should find it once again after semantic. */ if (tempinst.members.dim) { Dsymbol s; if (Dsymbol.oneMembers(tempinst.members, &s, tempdecl.ident) && s) { if (!tempinst.aliasdecl || tempinst.aliasdecl != s) { //printf("tempdecl.ident = %s, s = '%s'\n", tempdecl.ident.toChars(), s.kind(), s.toPrettyChars()); //printf("setting aliasdecl 2\n"); tempinst.aliasdecl = s; } } } if (global.errors != errorsave) goto Laftersemantic; /* If any of the instantiation members didn't get semantic() run * on them due to forward references, we cannot run semantic2() * or semantic3() yet. */ { bool found_deferred_ad = false; for (size_t i = 0; i < Module.deferred.dim; i++) { Dsymbol sd = Module.deferred[i]; AggregateDeclaration ad = sd.isAggregateDeclaration(); if (ad && ad.parent && ad.parent.isTemplateInstance()) { //printf("deferred template aggregate: %s %s\n", // sd.parent.toChars(), sd.toChars()); found_deferred_ad = true; if (ad.parent == tempinst) { ad.deferred = tempinst; break; } } } if (found_deferred_ad || Module.deferred.dim) goto Laftersemantic; } /* The problem is when to parse the initializer for a variable. * Perhaps VarDeclaration.dsymbolSemantic() should do it like it does * for initializers inside a function. */ //if (sc.parent.isFuncDeclaration()) { /* https://issues.dlang.org/show_bug.cgi?id=782 * this has problems if the classes this depends on * are forward referenced. Find a way to defer semantic() * on this template. */ tempinst.semantic2(sc2); } if (global.errors != errorsave) goto Laftersemantic; if ((sc.func || (sc.flags & SCOPEfullinst)) && !tempinst.tinst) { /* If a template is instantiated inside function, the whole instantiation * should be done at that position. But, immediate running semantic3 of * dependent templates may cause unresolved forward reference. * https://issues.dlang.org/show_bug.cgi?id=9050 * To avoid the issue, don't run semantic3 until semantic and semantic2 done. */ TemplateInstances deferred; tempinst.deferred = &deferred; //printf("Run semantic3 on %s\n", toChars()); tempinst.trySemantic3(sc2); for (size_t i = 0; i < deferred.dim; i++) { //printf("+ run deferred semantic3 on %s\n", deferred[i].toChars()); deferred[i].semantic3(null); } tempinst.deferred = null; } else if (tempinst.tinst) { bool doSemantic3 = false; if (sc.func && tempinst.aliasdecl && tempinst.aliasdecl.toAlias().isFuncDeclaration()) { /* Template function instantiation should run semantic3 immediately * for attribute inference. */ doSemantic3 = true; } else if (sc.func) { /* A lambda function in template arguments might capture the * instantiated scope context. For the correct context inference, * all instantiated functions should run the semantic3 immediately. * See also compilable/test14973.d */ foreach (oarg; tempinst.tdtypes) { auto s = getDsymbol(oarg); if (!s) continue; if (auto td = s.isTemplateDeclaration()) { if (!td.literal) continue; assert(td.members && td.members.dim == 1); s = (*td.members)[0]; } if (auto fld = s.isFuncLiteralDeclaration()) { if (fld.tok == TOKreserved) { doSemantic3 = true; break; } } } //printf("[%s] %s doSemantic3 = %d\n", loc.toChars(), toChars(), doSemantic3); } if (doSemantic3) tempinst.trySemantic3(sc2); TemplateInstance ti = tempinst.tinst; int nest = 0; while (ti && !ti.deferred && ti.tinst) { ti = ti.tinst; if (++nest > 500) { global.gag = 0; // ensure error message gets printed tempinst.error("recursive expansion"); fatal(); } } if (ti && ti.deferred) { //printf("deferred semantic3 of %p %s, ti = %s, ti.deferred = %p\n", this, toChars(), ti.toChars()); for (size_t i = 0;; i++) { if (i == ti.deferred.dim) { ti.deferred.push(tempinst); break; } if ((*ti.deferred)[i] == tempinst) break; } } } if (tempinst.aliasdecl) { /* https://issues.dlang.org/show_bug.cgi?id=13816 * AliasDeclaration tries to resolve forward reference * twice (See inuse check in AliasDeclaration.toAlias()). It's * necessary to resolve mutual references of instantiated symbols, but * it will left a true recursive alias in tuple declaration - an * AliasDeclaration A refers TupleDeclaration B, and B contains A * in its elements. To correctly make it an error, we strictly need to * resolve the alias of eponymous member. */ tempinst.aliasdecl = tempinst.aliasdecl.toAlias2(); } Laftersemantic: sc2.pop(); _scope.pop(); // Give additional context info if error occurred during instantiation if (global.errors != errorsave) { if (!tempinst.errors) { if (!tempdecl.literal) tempinst.error(tempinst.loc, "error instantiating"); if (tempinst.tinst) tempinst.tinst.printInstantiationTrace(); } tempinst.errors = true; if (tempinst.gagged) { // Errors are gagged, so remove the template instance from the // instance/symbol lists we added it to and reset our state to // finish clean and so we can try to instantiate it again later // (see https://issues.dlang.org/show_bug.cgi?id=4302 and https://issues.dlang.org/show_bug.cgi?id=6602). tempdecl.removeInstance(tempdecl_instance_idx); if (target_symbol_list) { // Because we added 'this' in the last position above, we // should be able to remove it without messing other indices up. assert((*target_symbol_list)[target_symbol_list_idx] == tempinst); target_symbol_list.remove(target_symbol_list_idx); tempinst.memberOf = null; // no longer a member } tempinst.semanticRun = PASSinit; tempinst.inst = null; tempinst.symtab = null; } } else if (errinst) { /* https://issues.dlang.org/show_bug.cgi?id=14541 * If the previous gagged instance had failed by * circular references, currrent "error reproduction instantiation" * might succeed, because of the difference of instantiated context. * On such case, the cached error instance needs to be overridden by the * succeeded instance. */ //printf("replaceInstance()\n"); assert(errinst.errors); auto ti1 = TemplateInstanceBox(errinst); tempdecl.instances.remove(ti1); auto ti2 = TemplateInstanceBox(tempinst); tempdecl.instances[ti2] = tempinst; } static if (LOG) { printf("-TemplateInstance.dsymbolSemantic('%s', this=%p)\n", toChars(), this); } } // function used to perform semantic on AliasDeclaration void aliasSemantic(AliasDeclaration ds, Scope* sc) { //printf("AliasDeclaration::semantic() %s\n", toChars()); if (ds.aliassym) { auto fd = ds.aliassym.isFuncLiteralDeclaration(); auto td = ds.aliassym.isTemplateDeclaration(); if (fd || td && td.literal) { if (fd && fd.semanticRun >= PASSsemanticdone) return; Expression e = new FuncExp(ds.loc, ds.aliassym); e = e.expressionSemantic(sc); if (e.op == TOKfunction) { FuncExp fe = cast(FuncExp)e; ds.aliassym = fe.td ? cast(Dsymbol)fe.td : fe.fd; } else { ds.aliassym = null; ds.type = Type.terror; } return; } if (ds.aliassym.isTemplateInstance()) ds.aliassym.dsymbolSemantic(sc); return; } ds.inuse = 1; // Given: // alias foo.bar.abc def; // it is not knowable from the syntax whether this is an alias // for a type or an alias for a symbol. It is up to the semantic() // pass to distinguish. // If it is a type, then type is set and getType() will return that // type. If it is a symbol, then aliassym is set and type is NULL - // toAlias() will return aliasssym. uint errors = global.errors; Type oldtype = ds.type; // Ungag errors when not instantiated DeclDefs scope alias auto ungag = Ungag(global.gag); //printf("%s parent = %s, gag = %d, instantiated = %d\n", toChars(), parent, global.gag, isInstantiated()); if (ds.parent && global.gag && !ds.isInstantiated() && !ds.toParent2().isFuncDeclaration()) { //printf("%s type = %s\n", toPrettyChars(), type.toChars()); global.gag = 0; } /* This section is needed because Type.resolve() will: * const x = 3; * alias y = x; * try to convert identifier x to 3. */ auto s = ds.type.toDsymbol(sc); if (errors != global.errors) { s = null; ds.type = Type.terror; } if (s && s == ds) { ds.error("cannot resolve"); s = null; ds.type = Type.terror; } if (!s || !s.isEnumMember()) { Type t; Expression e; Scope* sc2 = sc; if (ds.storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCdisable)) { // For 'ref' to be attached to function types, and picked // up by Type.resolve(), it has to go into sc. sc2 = sc.push(); sc2.stc |= ds.storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCshared | STCdisable); } ds.type = ds.type.addSTC(ds.storage_class); ds.type.resolve(ds.loc, sc2, &e, &t, &s); if (sc2 != sc) sc2.pop(); if (e) // Try to convert Expression to Dsymbol { s = getDsymbol(e); if (!s) { if (e.op != TOKerror) ds.error("cannot alias an expression %s", e.toChars()); t = Type.terror; } } ds.type = t; } if (s == ds) { assert(global.errors); ds.type = Type.terror; s = null; } if (!s) // it's a type alias { //printf("alias %s resolved to type %s\n", toChars(), type.toChars()); ds.type = ds.type.typeSemantic(ds.loc, sc); ds.aliassym = null; } else // it's a symbolic alias { //printf("alias %s resolved to %s %s\n", toChars(), s.kind(), s.toChars()); ds.type = null; ds.aliassym = s; } if (global.gag && errors != global.errors) { ds.type = oldtype; ds.aliassym = null; } ds.inuse = 0; ds.semanticRun = PASSsemanticdone; if (auto sx = ds.overnext) { ds.overnext = null; if (!ds.overloadInsert(sx)) ScopeDsymbol.multiplyDefined(Loc(), sx, ds); } }
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range; enum P = 1000000007L; void main() { auto N = readln.chomp.to!int; long r = 1, d = 1, c = 1, o; foreach (i; 0..N) { auto a = readln.chomp.to!long; (c += a * d % P) %= P; (d *= 10) %= P; o = (a+o)/10; if (o == 0) { (r *= c) %= P; c = 1; d = 1; } } if (c != 1) (r *= c) %= P; writeln((r-1+P) % P); }
D
/* Copyright (C) 2009-2010 Grame This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ module jack.c.net; public import jack.c.systemdeps; public import jack.c.types; extern (C) { enum DEFAULT_MULTICAST_IP = "225.3.19.154"; enum DEFAULT_PORT = 19000; enum DEFAULT_MTU = 1500; enum MASTER_NAME_SIZE = 256; enum SOCKET_ERROR = -1; enum JackNetEncoder { JackFloatEncoder = 0, // samples are transmitted as float JackIntEncoder = 1, // samples are transmitted as 16 bits integer JackCeltEncoder = 2, // samples are transmitted using CELT codec (http://www.celt-codec.org/) JackOpusEncoder = 3, // samples are transmitted using OPUS codec (http://www.opus-codec.org/) }; struct jack_slave_t { int audio_input; // from master or to slave (-1 to take master audio physical inputs) int audio_output; // to master or from slave (-1 to take master audio physical outputs) int midi_input; // from master or to slave (-1 to take master MIDI physical inputs) int midi_output; // to master or from slave (-1 to take master MIDI physical outputs) int mtu; // network Maximum Transmission Unit int time_out; // in second, -1 means in infinite int encoder; // encoder type (one of JackNetEncoder) int kbps; // KB per second for CELT encoder int latency; // network latency }; struct jack_master_t { int audio_input; // master audio physical outputs (-1 to take slave wanted audio inputs) int audio_output; // master audio physical inputs (-1 to take slave wanted audio outputs) int midi_input; // master MIDI physical outputs (-1 to take slave wanted MIDI inputs) int midi_output; // master MIDI physical inputs (-1 to take slave wanted MIDI outputs) jack_nframes_t buffer_size; // mater buffer size jack_nframes_t sample_rate; // mater sample rate char[MASTER_NAME_SIZE] master_name; // master machine name }; /** * jack_net_slave_t is an opaque type. You may only access it using the * API provided. */ struct jack_net_slave_t; /** * Open a network connection with the master machine. * @param ip the multicast address of the master * @param port the connection port * @param request a connection request structure * @param result a connection result structure * * @return Opaque net handle if successful or NULL in case of error. */ jack_net_slave_t* jack_net_slave_open(const(char)* ip, int port, const(char)* name, jack_slave_t* request, jack_master_t* result); /** * Close the network connection with the master machine. * @param net the network connection to be closed * * @return 0 on success, otherwise a non-zero error code */ int jack_net_slave_close(jack_net_slave_t* net); /** * Prototype for Process callback. * @param nframes buffer size * @param audio_input number of audio inputs * @param audio_input_buffer an array of audio input buffers (from master) * @param midi_input number of MIDI inputs * @param midi_input_buffer an array of MIDI input buffers (from master) * @param audio_output number of audio outputs * @param audio_output_buffer an array of audio output buffers (to master) * @param midi_output number of MIDI outputs * @param midi_output_buffer an array of MIDI output buffers (to master) * @param arg pointer to a client supplied structure supplied by jack_set_net_process_callback() * * @return zero on success, non-zero on error */ alias JackNetSlaveProcessCallback = int function(jack_nframes_t buffer_size, int audio_input, float** audio_input_buffer, int midi_input, void** midi_input_buffer, int audio_output, float** audio_output_buffer, int midi_output, void** midi_output_buffer, void* data); /** * Set network process callback. * @param net the network connection * @param net_callback the process callback * @param arg pointer to a client supplied structure * * @return 0 on success, otherwise a non-zero error code */ int jack_set_net_slave_process_callback(jack_net_slave_t * net, JackNetSlaveProcessCallback net_callback, void *arg); /** * Start processing thread, the net_callback will start to be called. * @param net the network connection * * @return 0 on success, otherwise a non-zero error code */ int jack_net_slave_activate(jack_net_slave_t* net); /** * Stop processing thread. * @param net the network connection * * @return 0 on success, otherwise a non-zero error code */ int jack_net_slave_deactivate(jack_net_slave_t* net); /** * Prototype for BufferSize callback. * @param nframes buffer size * @param arg pointer to a client supplied structure supplied by jack_set_net_buffer_size_callback() * * @return zero on success, non-zero on error */ alias JackNetSlaveBufferSizeCallback = int function(jack_nframes_t nframes, void *arg); /** * Prototype for SampleRate callback. * @param nframes sample rate * @param arg pointer to a client supplied structure supplied by jack_set_net_sample_rate_callback() * * @return zero on success, non-zero on error */ alias JackNetSlaveSampleRateCallback = int function(jack_nframes_t nframes, void *arg); /** * Set network buffer size callback. * @param net the network connection * @param bufsize_callback the buffer size callback * @param arg pointer to a client supplied structure * * @return 0 on success, otherwise a non-zero error code */ int jack_set_net_slave_buffer_size_callback(jack_net_slave_t *net, JackNetSlaveBufferSizeCallback bufsize_callback, void *arg); /** * Set network sample rate callback. * @param net the network connection * @param samplerate_callback the sample rate callback * @param arg pointer to a client supplied structure * * @return 0 on success, otherwise a non-zero error code */ int jack_set_net_slave_sample_rate_callback(jack_net_slave_t *net, JackNetSlaveSampleRateCallback samplerate_callback, void *arg); /** * Prototype for server Shutdown callback (if not set, the client will just restart, waiting for an available master again). * @param arg pointer to a client supplied structure supplied by jack_set_net_shutdown_callback() */ alias JackNetSlaveShutdownCallback = void function(void* data); /** * Set network shutdown callback. * @param net the network connection * @param shutdown_callback the shutdown callback * @param arg pointer to a client supplied structure * * @return 0 on success, otherwise a non-zero error code */ int jack_set_net_slave_shutdown_callback(jack_net_slave_t *net, JackNetSlaveShutdownCallback shutdown_callback, void *arg); /** * jack_net_master_t is an opaque type, you may only access it using the API provided. */ struct jack_net_master_t; /** * Open a network connection with the slave machine. * @param ip the multicast address of the master * @param port the connection port * @param request a connection request structure * @param result a connection result structure * * @return Opaque net handle if successful or NULL in case of error. */ jack_net_master_t* jack_net_master_open(const(char)* ip, int port, const(char)* name, jack_master_t* request, jack_slave_t* result); /** * Close the network connection with the slave machine. * @param net the network connection to be closed * * @return 0 on success, otherwise a non-zero error code */ int jack_net_master_close(jack_net_master_t* net); /** * Receive sync and data from the network. * @param net the network connection * @param audio_input number of audio inputs * @param audio_input_buffer an array of audio input buffers * @param midi_input number of MIDI inputs * @param midi_input_buffer an array of MIDI input buffers * * @return zero on success, non-zero on error */ int jack_net_master_recv(jack_net_master_t* net, int audio_input, float** audio_input_buffer, int midi_input, void** midi_input_buffer); /** * Send sync and data to the network. * @param net the network connection * @param audio_output number of audio outputs * @param audio_output_buffer an array of audio output buffers * @param midi_output number of MIDI ouputs * @param midi_output_buffer an array of MIDI output buffers * * @return zero on success, non-zero on error */ int jack_net_master_send(jack_net_master_t* net, int audio_output, float** audio_output_buffer, int midi_output, void** midi_output_buffer); // Experimental Adapter API /** * jack_adapter_t is an opaque type, you may only access it using the API provided. */ struct jack_adapter_t; /** * Create an adapter. * @param input number of audio inputs * @param output of audio outputs * @param host_buffer_size the host buffer size in frames * @param host_sample_rate the host buffer sample rate * @param adapted_buffer_size the adapted buffer size in frames * @param adapted_sample_rate the adapted buffer sample rate * * @return 0 on success, otherwise a non-zero error code */ jack_adapter_t* jack_create_adapter(int input, int output, jack_nframes_t host_buffer_size, jack_nframes_t host_sample_rate, jack_nframes_t adapted_buffer_size, jack_nframes_t adapted_sample_rate); /** * Destroy an adapter. * @param adapter the adapter to be destroyed * * @return 0 on success, otherwise a non-zero error code */ int jack_destroy_adapter(jack_adapter_t* adapter); /** * Flush internal state of an adapter. * @param adapter the adapter to be flushed * * @return 0 on success, otherwise a non-zero error code */ void jack_flush_adapter(jack_adapter_t* adapter); /** * Push input to and pull output from adapter ringbuffer. * @param adapter the adapter * @param input an array of audio input buffers * @param output an array of audio ouput buffers * @param frames number of frames * * @return 0 on success, otherwise a non-zero error code */ int jack_adapter_push_and_pull(jack_adapter_t* adapter, float** input, float** output, uint frames); /** * Pull input to and push output from adapter ringbuffer. * @param adapter the adapter * @param input an array of audio input buffers * @param output an array of audio ouput buffers * @param frames number of frames * * @return 0 on success, otherwise a non-zero error code */ int jack_adapter_pull_and_push(jack_adapter_t* adapter, float** input, float** output, uint frames); }
D
module symmetry.api.libzfs_core; import core.stdc.config; import core.stdc.stdarg: va_list; static import core.simd; template __from(string moduleName) { mixin("import from = " ~ moduleName ~ ";"); } struct DppOffsetSize{ long offset; long size; } struct Int128 { long lower; long upper; } struct UInt128 { ulong lower; ulong upper; } struct __locale_data { int dummy; } alias _Bool = bool; struct dpp { static bool isEmpty(T)() { return T.tupleof.length == 0; } static struct Move(T) { T* ptr; } static auto move(T)(ref T value) { return Move!T(&value); } mixin template EnumD(string name, T, string prefix) if(is(T == enum)) { private static string _memberMixinStr(string member) { import std.conv: text; import std.array: replace; return text(` `, member.replace(prefix, ""), ` = `, T.stringof, `.`, member, `,`); } private static string _enumMixinStr() { import std.array: join; string[] ret; ret ~= "enum " ~ name ~ "{"; static foreach(member; __traits(allMembers, T)) { ret ~= _memberMixinStr(member); } ret ~= "}"; return ret.join("\n"); } mixin(_enumMixinStr()); } } extern(C) { enum zio_priority { ZIO_PRIORITY_SYNC_READ = 0, ZIO_PRIORITY_SYNC_WRITE = 1, ZIO_PRIORITY_ASYNC_READ = 2, ZIO_PRIORITY_ASYNC_WRITE = 3, ZIO_PRIORITY_SCRUB = 4, ZIO_PRIORITY_REMOVAL = 5, ZIO_PRIORITY_INITIALIZING = 6, ZIO_PRIORITY_TRIM = 7, ZIO_PRIORITY_NUM_QUEUEABLE = 8, ZIO_PRIORITY_NOW = 9, } enum ZIO_PRIORITY_SYNC_READ = zio_priority.ZIO_PRIORITY_SYNC_READ; enum ZIO_PRIORITY_SYNC_WRITE = zio_priority.ZIO_PRIORITY_SYNC_WRITE; enum ZIO_PRIORITY_ASYNC_READ = zio_priority.ZIO_PRIORITY_ASYNC_READ; enum ZIO_PRIORITY_ASYNC_WRITE = zio_priority.ZIO_PRIORITY_ASYNC_WRITE; enum ZIO_PRIORITY_SCRUB = zio_priority.ZIO_PRIORITY_SCRUB; enum ZIO_PRIORITY_REMOVAL = zio_priority.ZIO_PRIORITY_REMOVAL; enum ZIO_PRIORITY_INITIALIZING = zio_priority.ZIO_PRIORITY_INITIALIZING; enum ZIO_PRIORITY_TRIM = zio_priority.ZIO_PRIORITY_TRIM; enum ZIO_PRIORITY_NUM_QUEUEABLE = zio_priority.ZIO_PRIORITY_NUM_QUEUEABLE; enum ZIO_PRIORITY_NOW = zio_priority.ZIO_PRIORITY_NOW; alias zio_priority_t = zio_priority; nvlist* fnvpair_value_nvlist(nvpair*) @nogc nothrow; char* fnvpair_value_string(nvpair*) @nogc nothrow; ulong fnvpair_value_uint64(nvpair*) @nogc nothrow; uint fnvpair_value_uint32(nvpair*) @nogc nothrow; ushort fnvpair_value_uint16(nvpair*) @nogc nothrow; ubyte fnvpair_value_uint8(nvpair*) @nogc nothrow; c_long fnvpair_value_int64(nvpair*) @nogc nothrow; int fnvpair_value_int32(nvpair*) @nogc nothrow; short fnvpair_value_int16(nvpair*) @nogc nothrow; byte fnvpair_value_int8(nvpair*) @nogc nothrow; ubyte fnvpair_value_byte(nvpair*) @nogc nothrow; int fnvpair_value_boolean_value(nvpair*) @nogc nothrow; ulong* fnvlist_lookup_uint64_array(nvlist*, const(char)*, uint*) @nogc nothrow; c_long* fnvlist_lookup_int64_array(nvlist*, const(char)*, uint*) @nogc nothrow; uint* fnvlist_lookup_uint32_array(nvlist*, const(char)*, uint*) @nogc nothrow; int* fnvlist_lookup_int32_array(nvlist*, const(char)*, uint*) @nogc nothrow; ushort* fnvlist_lookup_uint16_array(nvlist*, const(char)*, uint*) @nogc nothrow; short* fnvlist_lookup_int16_array(nvlist*, const(char)*, uint*) @nogc nothrow; ubyte* fnvlist_lookup_uint8_array(nvlist*, const(char)*, uint*) @nogc nothrow; byte* fnvlist_lookup_int8_array(nvlist*, const(char)*, uint*) @nogc nothrow; ubyte* fnvlist_lookup_byte_array(nvlist*, const(char)*, uint*) @nogc nothrow; int* fnvlist_lookup_boolean_array(nvlist*, const(char)*, uint*) @nogc nothrow; nvlist* fnvlist_lookup_nvlist(nvlist*, const(char)*) @nogc nothrow; char* fnvlist_lookup_string(nvlist*, const(char)*) @nogc nothrow; ulong fnvlist_lookup_uint64(nvlist*, const(char)*) @nogc nothrow; uint fnvlist_lookup_uint32(nvlist*, const(char)*) @nogc nothrow; ushort fnvlist_lookup_uint16(nvlist*, const(char)*) @nogc nothrow; ubyte fnvlist_lookup_uint8(nvlist*, const(char)*) @nogc nothrow; c_long fnvlist_lookup_int64(nvlist*, const(char)*) @nogc nothrow; int fnvlist_lookup_int32(nvlist*, const(char)*) @nogc nothrow; short fnvlist_lookup_int16(nvlist*, const(char)*) @nogc nothrow; byte fnvlist_lookup_int8(nvlist*, const(char)*) @nogc nothrow; ubyte fnvlist_lookup_byte(nvlist*, const(char)*) @nogc nothrow; int fnvlist_lookup_boolean_value(nvlist*, const(char)*) @nogc nothrow; int fnvlist_lookup_boolean(nvlist*, const(char)*) @nogc nothrow; nvpair* fnvlist_lookup_nvpair(nvlist*, const(char)*) @nogc nothrow; void fnvlist_remove_nvpair(nvlist*, nvpair*) @nogc nothrow; void fnvlist_remove(nvlist*, const(char)*) @nogc nothrow; void fnvlist_add_nvlist_array(nvlist*, const(char)*, nvlist**, uint) @nogc nothrow; void fnvlist_add_string_array(nvlist*, const(char)*, char**, uint) @nogc nothrow; void fnvlist_add_uint64_array(nvlist*, const(char)*, ulong*, uint) @nogc nothrow; void fnvlist_add_int64_array(nvlist*, const(char)*, c_long*, uint) @nogc nothrow; void fnvlist_add_uint32_array(nvlist*, const(char)*, uint*, uint) @nogc nothrow; void fnvlist_add_int32_array(nvlist*, const(char)*, int*, uint) @nogc nothrow; void fnvlist_add_uint16_array(nvlist*, const(char)*, ushort*, uint) @nogc nothrow; void fnvlist_add_int16_array(nvlist*, const(char)*, short*, uint) @nogc nothrow; void fnvlist_add_uint8_array(nvlist*, const(char)*, ubyte*, uint) @nogc nothrow; void fnvlist_add_int8_array(nvlist*, const(char)*, byte*, uint) @nogc nothrow; void fnvlist_add_byte_array(nvlist*, const(char)*, ubyte*, uint) @nogc nothrow; void fnvlist_add_boolean_array(nvlist*, const(char)*, int*, uint) @nogc nothrow; void fnvlist_add_nvpair(nvlist*, nvpair*) @nogc nothrow; void fnvlist_add_nvlist(nvlist*, const(char)*, nvlist*) @nogc nothrow; void fnvlist_add_string(nvlist*, const(char)*, const(char)*) @nogc nothrow; void fnvlist_add_uint64(nvlist*, const(char)*, ulong) @nogc nothrow; void fnvlist_add_int64(nvlist*, const(char)*, c_long) @nogc nothrow; void fnvlist_add_uint32(nvlist*, const(char)*, uint) @nogc nothrow; void fnvlist_add_int32(nvlist*, const(char)*, int) @nogc nothrow; void fnvlist_add_uint16(nvlist*, const(char)*, ushort) @nogc nothrow; void fnvlist_add_int16(nvlist*, const(char)*, short) @nogc nothrow; void fnvlist_add_uint8(nvlist*, const(char)*, ubyte) @nogc nothrow; void fnvlist_add_int8(nvlist*, const(char)*, byte) @nogc nothrow; void fnvlist_add_byte(nvlist*, const(char)*, ubyte) @nogc nothrow; void fnvlist_add_boolean_value(nvlist*, const(char)*, int) @nogc nothrow; void fnvlist_add_boolean(nvlist*, const(char)*) @nogc nothrow; c_ulong fnvlist_num_pairs(nvlist*) @nogc nothrow; void fnvlist_merge(nvlist*, nvlist*) @nogc nothrow; nvlist* fnvlist_dup(nvlist*) @nogc nothrow; nvlist* fnvlist_unpack(char*, c_ulong) @nogc nothrow; void fnvlist_pack_free(char*, c_ulong) @nogc nothrow; char* fnvlist_pack(nvlist*, c_ulong*) @nogc nothrow; c_ulong fnvlist_size(nvlist*) @nogc nothrow; void fnvlist_free(nvlist*) @nogc nothrow; nvlist* fnvlist_alloc() @nogc nothrow; int nvpair_value_double(nvpair*, double*) @nogc nothrow; int nvpair_value_hrtime(nvpair*, ulong*) @nogc nothrow; int nvpair_value_nvlist_array(nvpair*, nvlist***, uint*) @nogc nothrow; int nvpair_value_string_array(nvpair*, char***, uint*) @nogc nothrow; int nvpair_value_uint64_array(nvpair*, ulong**, uint*) @nogc nothrow; int nvpair_value_int64_array(nvpair*, c_long**, uint*) @nogc nothrow; int nvpair_value_uint32_array(nvpair*, uint**, uint*) @nogc nothrow; int nvpair_value_int32_array(nvpair*, int**, uint*) @nogc nothrow; int nvpair_value_uint16_array(nvpair*, ushort**, uint*) @nogc nothrow; int nvpair_value_int16_array(nvpair*, short**, uint*) @nogc nothrow; int nvpair_value_uint8_array(nvpair*, ubyte**, uint*) @nogc nothrow; int nvpair_value_int8_array(nvpair*, byte**, uint*) @nogc nothrow; int nvpair_value_byte_array(nvpair*, ubyte**, uint*) @nogc nothrow; int nvpair_value_boolean_array(nvpair*, int**, uint*) @nogc nothrow; int nvpair_value_nvlist(nvpair*, nvlist**) @nogc nothrow; int nvpair_value_string(nvpair*, char**) @nogc nothrow; int nvpair_value_uint64(nvpair*, ulong*) @nogc nothrow; int nvpair_value_int64(nvpair*, c_long*) @nogc nothrow; int nvpair_value_uint32(nvpair*, uint*) @nogc nothrow; int nvpair_value_int32(nvpair*, int*) @nogc nothrow; int nvpair_value_uint16(nvpair*, ushort*) @nogc nothrow; int nvpair_value_int16(nvpair*, short*) @nogc nothrow; int nvpair_value_uint8(nvpair*, ubyte*) @nogc nothrow; int nvpair_value_int8(nvpair*, byte*) @nogc nothrow; int nvpair_value_byte(nvpair*, ubyte*) @nogc nothrow; int nvpair_value_boolean_value(nvpair*, int*) @nogc nothrow; int nvpair_type_is_array(nvpair*) @nogc nothrow; data_type_t nvpair_type(nvpair*) @nogc nothrow; char* nvpair_name(nvpair*) @nogc nothrow; nvpair* nvlist_prev_nvpair(nvlist*, nvpair*) @nogc nothrow; nvpair* nvlist_next_nvpair(nvlist*, nvpair*) @nogc nothrow; int nvlist_empty(nvlist*) @nogc nothrow; int nvlist_exists(nvlist*, const(char)*) @nogc nothrow; int nvlist_lookup_nvpair_embedded_index(nvlist*, const(char)*, nvpair**, int*, char**) @nogc nothrow; int nvlist_lookup_nvpair(nvlist*, const(char)*, nvpair**) @nogc nothrow; int nvlist_lookup_double(nvlist*, const(char)*, double*) @nogc nothrow; int nvlist_lookup_pairs(nvlist*, int, ...) @nogc nothrow; int nvlist_lookup_hrtime(nvlist*, const(char)*, ulong*) @nogc nothrow; int nvlist_lookup_nvlist_array(nvlist*, const(char)*, nvlist***, uint*) @nogc nothrow; int nvlist_lookup_string_array(nvlist*, const(char)*, char***, uint*) @nogc nothrow; int nvlist_lookup_uint64_array(nvlist*, const(char)*, ulong**, uint*) @nogc nothrow; int nvlist_lookup_int64_array(nvlist*, const(char)*, c_long**, uint*) @nogc nothrow; int nvlist_lookup_uint32_array(nvlist*, const(char)*, uint**, uint*) @nogc nothrow; int nvlist_lookup_int32_array(nvlist*, const(char)*, int**, uint*) @nogc nothrow; int nvlist_lookup_uint16_array(nvlist*, const(char)*, ushort**, uint*) @nogc nothrow; int nvlist_lookup_int16_array(nvlist*, const(char)*, short**, uint*) @nogc nothrow; int nvlist_lookup_uint8_array(nvlist*, const(char)*, ubyte**, uint*) @nogc nothrow; int nvlist_lookup_int8_array(nvlist*, const(char)*, byte**, uint*) @nogc nothrow; int nvlist_lookup_byte_array(nvlist*, const(char)*, ubyte**, uint*) @nogc nothrow; int nvlist_lookup_boolean_array(nvlist*, const(char)*, int**, uint*) @nogc nothrow; int nvlist_lookup_nvlist(nvlist*, const(char)*, nvlist**) @nogc nothrow; int nvlist_lookup_string(nvlist*, const(char)*, char**) @nogc nothrow; int nvlist_lookup_uint64(nvlist*, const(char)*, ulong*) @nogc nothrow; int nvlist_lookup_int64(nvlist*, const(char)*, c_long*) @nogc nothrow; int nvlist_lookup_uint32(nvlist*, const(char)*, uint*) @nogc nothrow; int nvlist_lookup_int32(nvlist*, const(char)*, int*) @nogc nothrow; int nvlist_lookup_uint16(nvlist*, const(char)*, ushort*) @nogc nothrow; int nvlist_lookup_int16(nvlist*, const(char)*, short*) @nogc nothrow; int nvlist_lookup_uint8(nvlist*, const(char)*, ubyte*) @nogc nothrow; int nvlist_lookup_int8(nvlist*, const(char)*, byte*) @nogc nothrow; int nvlist_lookup_byte(nvlist*, const(char)*, ubyte*) @nogc nothrow; int nvlist_lookup_boolean_value(nvlist*, const(char)*, int*) @nogc nothrow; int nvlist_lookup_boolean(nvlist*, const(char)*) @nogc nothrow; int nvlist_remove_nvpair(nvlist*, nvpair*) @nogc nothrow; int nvlist_remove_all(nvlist*, const(char)*) @nogc nothrow; int nvlist_remove(nvlist*, const(char)*, data_type_t) @nogc nothrow; int nvlist_add_double(nvlist*, const(char)*, double) @nogc nothrow; int nvlist_add_hrtime(nvlist*, const(char)*, ulong) @nogc nothrow; int nvlist_add_nvlist_array(nvlist*, const(char)*, nvlist**, uint) @nogc nothrow; int nvlist_add_string_array(nvlist*, const(char)*, char**, uint) @nogc nothrow; int nvlist_add_uint64_array(nvlist*, const(char)*, ulong*, uint) @nogc nothrow; int nvlist_add_int64_array(nvlist*, const(char)*, c_long*, uint) @nogc nothrow; int nvlist_add_uint32_array(nvlist*, const(char)*, uint*, uint) @nogc nothrow; int nvlist_add_int32_array(nvlist*, const(char)*, int*, uint) @nogc nothrow; int nvlist_add_uint16_array(nvlist*, const(char)*, ushort*, uint) @nogc nothrow; int nvlist_add_int16_array(nvlist*, const(char)*, short*, uint) @nogc nothrow; int nvlist_add_uint8_array(nvlist*, const(char)*, ubyte*, uint) @nogc nothrow; int nvlist_add_int8_array(nvlist*, const(char)*, byte*, uint) @nogc nothrow; int nvlist_add_byte_array(nvlist*, const(char)*, ubyte*, uint) @nogc nothrow; int nvlist_add_boolean_array(nvlist*, const(char)*, int*, uint) @nogc nothrow; int nvlist_add_nvlist(nvlist*, const(char)*, nvlist*) @nogc nothrow; int nvlist_add_string(nvlist*, const(char)*, const(char)*) @nogc nothrow; int nvlist_add_uint64(nvlist*, const(char)*, ulong) @nogc nothrow; int nvlist_add_int64(nvlist*, const(char)*, c_long) @nogc nothrow; int nvlist_add_uint32(nvlist*, const(char)*, uint) @nogc nothrow; int nvlist_add_int32(nvlist*, const(char)*, int) @nogc nothrow; int nvlist_add_uint16(nvlist*, const(char)*, ushort) @nogc nothrow; int nvlist_add_int16(nvlist*, const(char)*, short) @nogc nothrow; int nvlist_add_uint8(nvlist*, const(char)*, ubyte) @nogc nothrow; int nvlist_add_int8(nvlist*, const(char)*, byte) @nogc nothrow; int nvlist_add_byte(nvlist*, const(char)*, ubyte) @nogc nothrow; int nvlist_add_boolean_value(nvlist*, const(char)*, int) @nogc nothrow; int nvlist_add_boolean(nvlist*, const(char)*) @nogc nothrow; int nvlist_add_nvpair(nvlist*, nvpair*) @nogc nothrow; nv_alloc* nvlist_lookup_nv_alloc(nvlist*) @nogc nothrow; int nvlist_xdup(nvlist*, nvlist**, nv_alloc*) @nogc nothrow; int nvlist_xunpack(char*, c_ulong, nvlist**, nv_alloc*) @nogc nothrow; int nvlist_xpack(nvlist*, char**, c_ulong*, int, nv_alloc*) @nogc nothrow; int nvlist_xalloc(nvlist**, uint, nv_alloc*) @nogc nothrow; uint nvlist_nvflag(nvlist*) @nogc nothrow; int nvlist_merge(nvlist*, nvlist*, int) @nogc nothrow; int nvlist_dup(nvlist*, nvlist**, int) @nogc nothrow; int nvlist_unpack(char*, c_ulong, nvlist**, int) @nogc nothrow; int nvlist_pack(nvlist*, char**, c_ulong*, int, int) @nogc nothrow; int nvlist_size(nvlist*, c_ulong*, int) @nogc nothrow; void nvlist_free(nvlist*) @nogc nothrow; int nvlist_alloc(nvlist**, uint, int) @nogc nothrow; void nv_alloc_fini(nv_alloc*) @nogc nothrow; void nv_alloc_reset(nv_alloc*) @nogc nothrow; int nv_alloc_init(nv_alloc*, const(nv_alloc_ops)*, ...) @nogc nothrow; extern __gshared nv_alloc* nv_alloc_nosleep; extern __gshared const(nv_alloc_ops)* nv_fixed_ops; struct nv_alloc { @DppOffsetSize(0,8) const(nv_alloc_ops)* nva_ops; @DppOffsetSize(8,8) void* nva_arg; } alias nv_alloc_t = nv_alloc; struct nv_alloc_ops { @DppOffsetSize(0,8) int function(nv_alloc*, int) nv_ao_init; @DppOffsetSize(8,8) void function(nv_alloc*) nv_ao_fini; @DppOffsetSize(16,8) void* function(nv_alloc*, c_ulong) nv_ao_alloc; @DppOffsetSize(24,8) void function(nv_alloc*, void*, c_ulong) nv_ao_free; @DppOffsetSize(32,8) void function(nv_alloc*) nv_ao_reset; } alias nv_alloc_ops_t = nv_alloc_ops; struct nvlist { @DppOffsetSize(0,4) int nvl_version; @DppOffsetSize(4,4) uint nvl_nvflag; @DppOffsetSize(8,8) ulong nvl_priv; @DppOffsetSize(16,4) uint nvl_flag; @DppOffsetSize(20,4) int nvl_pad; } alias nvlist_t = nvlist; struct nvpair { @DppOffsetSize(0,4) int nvp_size; @DppOffsetSize(4,2) short nvp_name_sz; @DppOffsetSize(6,2) short nvp_reserve; @DppOffsetSize(8,4) int nvp_value_elem; @DppOffsetSize(12,4) data_type_t nvp_type; } alias nvpair_t = nvpair; enum _Anonymous_0 { DATA_TYPE_DONTCARE = -1, DATA_TYPE_UNKNOWN = 0, DATA_TYPE_BOOLEAN = 1, DATA_TYPE_BYTE = 2, DATA_TYPE_INT16 = 3, DATA_TYPE_UINT16 = 4, DATA_TYPE_INT32 = 5, DATA_TYPE_UINT32 = 6, DATA_TYPE_INT64 = 7, DATA_TYPE_UINT64 = 8, DATA_TYPE_STRING = 9, DATA_TYPE_BYTE_ARRAY = 10, DATA_TYPE_INT16_ARRAY = 11, DATA_TYPE_UINT16_ARRAY = 12, DATA_TYPE_INT32_ARRAY = 13, DATA_TYPE_UINT32_ARRAY = 14, DATA_TYPE_INT64_ARRAY = 15, DATA_TYPE_UINT64_ARRAY = 16, DATA_TYPE_STRING_ARRAY = 17, DATA_TYPE_HRTIME = 18, DATA_TYPE_NVLIST = 19, DATA_TYPE_NVLIST_ARRAY = 20, DATA_TYPE_BOOLEAN_VALUE = 21, DATA_TYPE_INT8 = 22, DATA_TYPE_UINT8 = 23, DATA_TYPE_BOOLEAN_ARRAY = 24, DATA_TYPE_INT8_ARRAY = 25, DATA_TYPE_UINT8_ARRAY = 26, DATA_TYPE_DOUBLE = 27, } enum DATA_TYPE_DONTCARE = _Anonymous_0.DATA_TYPE_DONTCARE; enum DATA_TYPE_UNKNOWN = _Anonymous_0.DATA_TYPE_UNKNOWN; enum DATA_TYPE_BOOLEAN = _Anonymous_0.DATA_TYPE_BOOLEAN; enum DATA_TYPE_BYTE = _Anonymous_0.DATA_TYPE_BYTE; enum DATA_TYPE_INT16 = _Anonymous_0.DATA_TYPE_INT16; enum DATA_TYPE_UINT16 = _Anonymous_0.DATA_TYPE_UINT16; enum DATA_TYPE_INT32 = _Anonymous_0.DATA_TYPE_INT32; enum DATA_TYPE_UINT32 = _Anonymous_0.DATA_TYPE_UINT32; enum DATA_TYPE_INT64 = _Anonymous_0.DATA_TYPE_INT64; enum DATA_TYPE_UINT64 = _Anonymous_0.DATA_TYPE_UINT64; enum DATA_TYPE_STRING = _Anonymous_0.DATA_TYPE_STRING; enum DATA_TYPE_BYTE_ARRAY = _Anonymous_0.DATA_TYPE_BYTE_ARRAY; enum DATA_TYPE_INT16_ARRAY = _Anonymous_0.DATA_TYPE_INT16_ARRAY; enum DATA_TYPE_UINT16_ARRAY = _Anonymous_0.DATA_TYPE_UINT16_ARRAY; enum DATA_TYPE_INT32_ARRAY = _Anonymous_0.DATA_TYPE_INT32_ARRAY; enum DATA_TYPE_UINT32_ARRAY = _Anonymous_0.DATA_TYPE_UINT32_ARRAY; enum DATA_TYPE_INT64_ARRAY = _Anonymous_0.DATA_TYPE_INT64_ARRAY; enum DATA_TYPE_UINT64_ARRAY = _Anonymous_0.DATA_TYPE_UINT64_ARRAY; enum DATA_TYPE_STRING_ARRAY = _Anonymous_0.DATA_TYPE_STRING_ARRAY; enum DATA_TYPE_HRTIME = _Anonymous_0.DATA_TYPE_HRTIME; enum DATA_TYPE_NVLIST = _Anonymous_0.DATA_TYPE_NVLIST; enum DATA_TYPE_NVLIST_ARRAY = _Anonymous_0.DATA_TYPE_NVLIST_ARRAY; enum DATA_TYPE_BOOLEAN_VALUE = _Anonymous_0.DATA_TYPE_BOOLEAN_VALUE; enum DATA_TYPE_INT8 = _Anonymous_0.DATA_TYPE_INT8; enum DATA_TYPE_UINT8 = _Anonymous_0.DATA_TYPE_UINT8; enum DATA_TYPE_BOOLEAN_ARRAY = _Anonymous_0.DATA_TYPE_BOOLEAN_ARRAY; enum DATA_TYPE_INT8_ARRAY = _Anonymous_0.DATA_TYPE_INT8_ARRAY; enum DATA_TYPE_UINT8_ARRAY = _Anonymous_0.DATA_TYPE_UINT8_ARRAY; enum DATA_TYPE_DOUBLE = _Anonymous_0.DATA_TYPE_DOUBLE; alias data_type_t = _Anonymous_0; ulong gethrtime() @nogc nothrow; alias hrtime_t = ulong; alias int64_t = c_long; alias int32_t = int; alias int16_t = short; alias uint64_t = ulong; alias uint8_t = ubyte; alias uchar_t = ubyte; alias boolean_t = int; alias uint_t = uint; alias uint32_t = uint; alias uint16_t = ushort; enum _Anonymous_1 { SPA_LOAD_NONE = 0, SPA_LOAD_OPEN = 1, SPA_LOAD_IMPORT = 2, SPA_LOAD_TRYIMPORT = 3, SPA_LOAD_RECOVER = 4, SPA_LOAD_ERROR = 5, SPA_LOAD_CREATE = 6, } enum SPA_LOAD_NONE = _Anonymous_1.SPA_LOAD_NONE; enum SPA_LOAD_OPEN = _Anonymous_1.SPA_LOAD_OPEN; enum SPA_LOAD_IMPORT = _Anonymous_1.SPA_LOAD_IMPORT; enum SPA_LOAD_TRYIMPORT = _Anonymous_1.SPA_LOAD_TRYIMPORT; enum SPA_LOAD_RECOVER = _Anonymous_1.SPA_LOAD_RECOVER; enum SPA_LOAD_ERROR = _Anonymous_1.SPA_LOAD_ERROR; enum SPA_LOAD_CREATE = _Anonymous_1.SPA_LOAD_CREATE; alias spa_load_state_t = _Anonymous_1; enum _Anonymous_2 { ZFS_ERR_CHECKPOINT_EXISTS = 1024, ZFS_ERR_DISCARDING_CHECKPOINT = 1025, ZFS_ERR_NO_CHECKPOINT = 1026, ZFS_ERR_DEVRM_IN_PROGRESS = 1027, ZFS_ERR_VDEV_TOO_BIG = 1028, ZFS_ERR_IOC_CMD_UNAVAIL = 1029, ZFS_ERR_IOC_ARG_UNAVAIL = 1030, ZFS_ERR_IOC_ARG_REQUIRED = 1031, ZFS_ERR_IOC_ARG_BADTYPE = 1032, ZFS_ERR_WRONG_PARENT = 1033, ZFS_ERR_FROM_IVSET_GUID_MISSING = 1034, ZFS_ERR_FROM_IVSET_GUID_MISMATCH = 1035, ZFS_ERR_SPILL_BLOCK_FLAG_MISSING = 1036, } enum ZFS_ERR_CHECKPOINT_EXISTS = _Anonymous_2.ZFS_ERR_CHECKPOINT_EXISTS; enum ZFS_ERR_DISCARDING_CHECKPOINT = _Anonymous_2.ZFS_ERR_DISCARDING_CHECKPOINT; enum ZFS_ERR_NO_CHECKPOINT = _Anonymous_2.ZFS_ERR_NO_CHECKPOINT; enum ZFS_ERR_DEVRM_IN_PROGRESS = _Anonymous_2.ZFS_ERR_DEVRM_IN_PROGRESS; enum ZFS_ERR_VDEV_TOO_BIG = _Anonymous_2.ZFS_ERR_VDEV_TOO_BIG; enum ZFS_ERR_IOC_CMD_UNAVAIL = _Anonymous_2.ZFS_ERR_IOC_CMD_UNAVAIL; enum ZFS_ERR_IOC_ARG_UNAVAIL = _Anonymous_2.ZFS_ERR_IOC_ARG_UNAVAIL; enum ZFS_ERR_IOC_ARG_REQUIRED = _Anonymous_2.ZFS_ERR_IOC_ARG_REQUIRED; enum ZFS_ERR_IOC_ARG_BADTYPE = _Anonymous_2.ZFS_ERR_IOC_ARG_BADTYPE; enum ZFS_ERR_WRONG_PARENT = _Anonymous_2.ZFS_ERR_WRONG_PARENT; enum ZFS_ERR_FROM_IVSET_GUID_MISSING = _Anonymous_2.ZFS_ERR_FROM_IVSET_GUID_MISSING; enum ZFS_ERR_FROM_IVSET_GUID_MISMATCH = _Anonymous_2.ZFS_ERR_FROM_IVSET_GUID_MISMATCH; enum ZFS_ERR_SPILL_BLOCK_FLAG_MISSING = _Anonymous_2.ZFS_ERR_SPILL_BLOCK_FLAG_MISSING; alias zfs_errno_t = _Anonymous_2; enum zfs_ioc { ZFS_IOC_FIRST = 23040, ZFS_IOC = 23040, ZFS_IOC_POOL_CREATE = 23040, ZFS_IOC_POOL_DESTROY = 23041, ZFS_IOC_POOL_IMPORT = 23042, ZFS_IOC_POOL_EXPORT = 23043, ZFS_IOC_POOL_CONFIGS = 23044, ZFS_IOC_POOL_STATS = 23045, ZFS_IOC_POOL_TRYIMPORT = 23046, ZFS_IOC_POOL_SCAN = 23047, ZFS_IOC_POOL_FREEZE = 23048, ZFS_IOC_POOL_UPGRADE = 23049, ZFS_IOC_POOL_GET_HISTORY = 23050, ZFS_IOC_VDEV_ADD = 23051, ZFS_IOC_VDEV_REMOVE = 23052, ZFS_IOC_VDEV_SET_STATE = 23053, ZFS_IOC_VDEV_ATTACH = 23054, ZFS_IOC_VDEV_DETACH = 23055, ZFS_IOC_VDEV_SETPATH = 23056, ZFS_IOC_VDEV_SETFRU = 23057, ZFS_IOC_OBJSET_STATS = 23058, ZFS_IOC_OBJSET_ZPLPROPS = 23059, ZFS_IOC_DATASET_LIST_NEXT = 23060, ZFS_IOC_SNAPSHOT_LIST_NEXT = 23061, ZFS_IOC_SET_PROP = 23062, ZFS_IOC_CREATE = 23063, ZFS_IOC_DESTROY = 23064, ZFS_IOC_ROLLBACK = 23065, ZFS_IOC_RENAME = 23066, ZFS_IOC_RECV = 23067, ZFS_IOC_SEND = 23068, ZFS_IOC_INJECT_FAULT = 23069, ZFS_IOC_CLEAR_FAULT = 23070, ZFS_IOC_INJECT_LIST_NEXT = 23071, ZFS_IOC_ERROR_LOG = 23072, ZFS_IOC_CLEAR = 23073, ZFS_IOC_PROMOTE = 23074, ZFS_IOC_SNAPSHOT = 23075, ZFS_IOC_DSOBJ_TO_DSNAME = 23076, ZFS_IOC_OBJ_TO_PATH = 23077, ZFS_IOC_POOL_SET_PROPS = 23078, ZFS_IOC_POOL_GET_PROPS = 23079, ZFS_IOC_SET_FSACL = 23080, ZFS_IOC_GET_FSACL = 23081, ZFS_IOC_SHARE = 23082, ZFS_IOC_INHERIT_PROP = 23083, ZFS_IOC_SMB_ACL = 23084, ZFS_IOC_USERSPACE_ONE = 23085, ZFS_IOC_USERSPACE_MANY = 23086, ZFS_IOC_USERSPACE_UPGRADE = 23087, ZFS_IOC_HOLD = 23088, ZFS_IOC_RELEASE = 23089, ZFS_IOC_GET_HOLDS = 23090, ZFS_IOC_OBJSET_RECVD_PROPS = 23091, ZFS_IOC_VDEV_SPLIT = 23092, ZFS_IOC_NEXT_OBJ = 23093, ZFS_IOC_DIFF = 23094, ZFS_IOC_TMP_SNAPSHOT = 23095, ZFS_IOC_OBJ_TO_STATS = 23096, ZFS_IOC_SPACE_WRITTEN = 23097, ZFS_IOC_SPACE_SNAPS = 23098, ZFS_IOC_DESTROY_SNAPS = 23099, ZFS_IOC_POOL_REGUID = 23100, ZFS_IOC_POOL_REOPEN = 23101, ZFS_IOC_SEND_PROGRESS = 23102, ZFS_IOC_LOG_HISTORY = 23103, ZFS_IOC_SEND_NEW = 23104, ZFS_IOC_SEND_SPACE = 23105, ZFS_IOC_CLONE = 23106, ZFS_IOC_BOOKMARK = 23107, ZFS_IOC_GET_BOOKMARKS = 23108, ZFS_IOC_DESTROY_BOOKMARKS = 23109, ZFS_IOC_RECV_NEW = 23110, ZFS_IOC_POOL_SYNC = 23111, ZFS_IOC_CHANNEL_PROGRAM = 23112, ZFS_IOC_LOAD_KEY = 23113, ZFS_IOC_UNLOAD_KEY = 23114, ZFS_IOC_CHANGE_KEY = 23115, ZFS_IOC_REMAP = 23116, ZFS_IOC_POOL_CHECKPOINT = 23117, ZFS_IOC_POOL_DISCARD_CHECKPOINT = 23118, ZFS_IOC_POOL_INITIALIZE = 23119, ZFS_IOC_POOL_TRIM = 23120, ZFS_IOC_LINUX = 23168, ZFS_IOC_EVENTS_NEXT = 23169, ZFS_IOC_EVENTS_CLEAR = 23170, ZFS_IOC_EVENTS_SEEK = 23171, ZFS_IOC_FREEBSD = 23232, ZFS_IOC_LAST = 23233, } enum ZFS_IOC_FIRST = zfs_ioc.ZFS_IOC_FIRST; enum ZFS_IOC = zfs_ioc.ZFS_IOC; enum ZFS_IOC_POOL_CREATE = zfs_ioc.ZFS_IOC_POOL_CREATE; enum ZFS_IOC_POOL_DESTROY = zfs_ioc.ZFS_IOC_POOL_DESTROY; enum ZFS_IOC_POOL_IMPORT = zfs_ioc.ZFS_IOC_POOL_IMPORT; enum ZFS_IOC_POOL_EXPORT = zfs_ioc.ZFS_IOC_POOL_EXPORT; enum ZFS_IOC_POOL_CONFIGS = zfs_ioc.ZFS_IOC_POOL_CONFIGS; enum ZFS_IOC_POOL_STATS = zfs_ioc.ZFS_IOC_POOL_STATS; enum ZFS_IOC_POOL_TRYIMPORT = zfs_ioc.ZFS_IOC_POOL_TRYIMPORT; enum ZFS_IOC_POOL_SCAN = zfs_ioc.ZFS_IOC_POOL_SCAN; enum ZFS_IOC_POOL_FREEZE = zfs_ioc.ZFS_IOC_POOL_FREEZE; enum ZFS_IOC_POOL_UPGRADE = zfs_ioc.ZFS_IOC_POOL_UPGRADE; enum ZFS_IOC_POOL_GET_HISTORY = zfs_ioc.ZFS_IOC_POOL_GET_HISTORY; enum ZFS_IOC_VDEV_ADD = zfs_ioc.ZFS_IOC_VDEV_ADD; enum ZFS_IOC_VDEV_REMOVE = zfs_ioc.ZFS_IOC_VDEV_REMOVE; enum ZFS_IOC_VDEV_SET_STATE = zfs_ioc.ZFS_IOC_VDEV_SET_STATE; enum ZFS_IOC_VDEV_ATTACH = zfs_ioc.ZFS_IOC_VDEV_ATTACH; enum ZFS_IOC_VDEV_DETACH = zfs_ioc.ZFS_IOC_VDEV_DETACH; enum ZFS_IOC_VDEV_SETPATH = zfs_ioc.ZFS_IOC_VDEV_SETPATH; enum ZFS_IOC_VDEV_SETFRU = zfs_ioc.ZFS_IOC_VDEV_SETFRU; enum ZFS_IOC_OBJSET_STATS = zfs_ioc.ZFS_IOC_OBJSET_STATS; enum ZFS_IOC_OBJSET_ZPLPROPS = zfs_ioc.ZFS_IOC_OBJSET_ZPLPROPS; enum ZFS_IOC_DATASET_LIST_NEXT = zfs_ioc.ZFS_IOC_DATASET_LIST_NEXT; enum ZFS_IOC_SNAPSHOT_LIST_NEXT = zfs_ioc.ZFS_IOC_SNAPSHOT_LIST_NEXT; enum ZFS_IOC_SET_PROP = zfs_ioc.ZFS_IOC_SET_PROP; enum ZFS_IOC_CREATE = zfs_ioc.ZFS_IOC_CREATE; enum ZFS_IOC_DESTROY = zfs_ioc.ZFS_IOC_DESTROY; enum ZFS_IOC_ROLLBACK = zfs_ioc.ZFS_IOC_ROLLBACK; enum ZFS_IOC_RENAME = zfs_ioc.ZFS_IOC_RENAME; enum ZFS_IOC_RECV = zfs_ioc.ZFS_IOC_RECV; enum ZFS_IOC_SEND = zfs_ioc.ZFS_IOC_SEND; enum ZFS_IOC_INJECT_FAULT = zfs_ioc.ZFS_IOC_INJECT_FAULT; enum ZFS_IOC_CLEAR_FAULT = zfs_ioc.ZFS_IOC_CLEAR_FAULT; enum ZFS_IOC_INJECT_LIST_NEXT = zfs_ioc.ZFS_IOC_INJECT_LIST_NEXT; enum ZFS_IOC_ERROR_LOG = zfs_ioc.ZFS_IOC_ERROR_LOG; enum ZFS_IOC_CLEAR = zfs_ioc.ZFS_IOC_CLEAR; enum ZFS_IOC_PROMOTE = zfs_ioc.ZFS_IOC_PROMOTE; enum ZFS_IOC_SNAPSHOT = zfs_ioc.ZFS_IOC_SNAPSHOT; enum ZFS_IOC_DSOBJ_TO_DSNAME = zfs_ioc.ZFS_IOC_DSOBJ_TO_DSNAME; enum ZFS_IOC_OBJ_TO_PATH = zfs_ioc.ZFS_IOC_OBJ_TO_PATH; enum ZFS_IOC_POOL_SET_PROPS = zfs_ioc.ZFS_IOC_POOL_SET_PROPS; enum ZFS_IOC_POOL_GET_PROPS = zfs_ioc.ZFS_IOC_POOL_GET_PROPS; enum ZFS_IOC_SET_FSACL = zfs_ioc.ZFS_IOC_SET_FSACL; enum ZFS_IOC_GET_FSACL = zfs_ioc.ZFS_IOC_GET_FSACL; enum ZFS_IOC_SHARE = zfs_ioc.ZFS_IOC_SHARE; enum ZFS_IOC_INHERIT_PROP = zfs_ioc.ZFS_IOC_INHERIT_PROP; enum ZFS_IOC_SMB_ACL = zfs_ioc.ZFS_IOC_SMB_ACL; enum ZFS_IOC_USERSPACE_ONE = zfs_ioc.ZFS_IOC_USERSPACE_ONE; enum ZFS_IOC_USERSPACE_MANY = zfs_ioc.ZFS_IOC_USERSPACE_MANY; enum ZFS_IOC_USERSPACE_UPGRADE = zfs_ioc.ZFS_IOC_USERSPACE_UPGRADE; enum ZFS_IOC_HOLD = zfs_ioc.ZFS_IOC_HOLD; enum ZFS_IOC_RELEASE = zfs_ioc.ZFS_IOC_RELEASE; enum ZFS_IOC_GET_HOLDS = zfs_ioc.ZFS_IOC_GET_HOLDS; enum ZFS_IOC_OBJSET_RECVD_PROPS = zfs_ioc.ZFS_IOC_OBJSET_RECVD_PROPS; enum ZFS_IOC_VDEV_SPLIT = zfs_ioc.ZFS_IOC_VDEV_SPLIT; enum ZFS_IOC_NEXT_OBJ = zfs_ioc.ZFS_IOC_NEXT_OBJ; enum ZFS_IOC_DIFF = zfs_ioc.ZFS_IOC_DIFF; enum ZFS_IOC_TMP_SNAPSHOT = zfs_ioc.ZFS_IOC_TMP_SNAPSHOT; enum ZFS_IOC_OBJ_TO_STATS = zfs_ioc.ZFS_IOC_OBJ_TO_STATS; enum ZFS_IOC_SPACE_WRITTEN = zfs_ioc.ZFS_IOC_SPACE_WRITTEN; enum ZFS_IOC_SPACE_SNAPS = zfs_ioc.ZFS_IOC_SPACE_SNAPS; enum ZFS_IOC_DESTROY_SNAPS = zfs_ioc.ZFS_IOC_DESTROY_SNAPS; enum ZFS_IOC_POOL_REGUID = zfs_ioc.ZFS_IOC_POOL_REGUID; enum ZFS_IOC_POOL_REOPEN = zfs_ioc.ZFS_IOC_POOL_REOPEN; enum ZFS_IOC_SEND_PROGRESS = zfs_ioc.ZFS_IOC_SEND_PROGRESS; enum ZFS_IOC_LOG_HISTORY = zfs_ioc.ZFS_IOC_LOG_HISTORY; enum ZFS_IOC_SEND_NEW = zfs_ioc.ZFS_IOC_SEND_NEW; enum ZFS_IOC_SEND_SPACE = zfs_ioc.ZFS_IOC_SEND_SPACE; enum ZFS_IOC_CLONE = zfs_ioc.ZFS_IOC_CLONE; enum ZFS_IOC_BOOKMARK = zfs_ioc.ZFS_IOC_BOOKMARK; enum ZFS_IOC_GET_BOOKMARKS = zfs_ioc.ZFS_IOC_GET_BOOKMARKS; enum ZFS_IOC_DESTROY_BOOKMARKS = zfs_ioc.ZFS_IOC_DESTROY_BOOKMARKS; enum ZFS_IOC_RECV_NEW = zfs_ioc.ZFS_IOC_RECV_NEW; enum ZFS_IOC_POOL_SYNC = zfs_ioc.ZFS_IOC_POOL_SYNC; enum ZFS_IOC_CHANNEL_PROGRAM = zfs_ioc.ZFS_IOC_CHANNEL_PROGRAM; enum ZFS_IOC_LOAD_KEY = zfs_ioc.ZFS_IOC_LOAD_KEY; enum ZFS_IOC_UNLOAD_KEY = zfs_ioc.ZFS_IOC_UNLOAD_KEY; enum ZFS_IOC_CHANGE_KEY = zfs_ioc.ZFS_IOC_CHANGE_KEY; enum ZFS_IOC_REMAP = zfs_ioc.ZFS_IOC_REMAP; enum ZFS_IOC_POOL_CHECKPOINT = zfs_ioc.ZFS_IOC_POOL_CHECKPOINT; enum ZFS_IOC_POOL_DISCARD_CHECKPOINT = zfs_ioc.ZFS_IOC_POOL_DISCARD_CHECKPOINT; enum ZFS_IOC_POOL_INITIALIZE = zfs_ioc.ZFS_IOC_POOL_INITIALIZE; enum ZFS_IOC_POOL_TRIM = zfs_ioc.ZFS_IOC_POOL_TRIM; enum ZFS_IOC_LINUX = zfs_ioc.ZFS_IOC_LINUX; enum ZFS_IOC_EVENTS_NEXT = zfs_ioc.ZFS_IOC_EVENTS_NEXT; enum ZFS_IOC_EVENTS_CLEAR = zfs_ioc.ZFS_IOC_EVENTS_CLEAR; enum ZFS_IOC_EVENTS_SEEK = zfs_ioc.ZFS_IOC_EVENTS_SEEK; enum ZFS_IOC_FREEBSD = zfs_ioc.ZFS_IOC_FREEBSD; enum ZFS_IOC_LAST = zfs_ioc.ZFS_IOC_LAST; alias zfs_ioc_t = zfs_ioc; enum _Anonymous_3 { VDEV_TRIM_NONE = 0, VDEV_TRIM_ACTIVE = 1, VDEV_TRIM_CANCELED = 2, VDEV_TRIM_SUSPENDED = 3, VDEV_TRIM_COMPLETE = 4, } enum VDEV_TRIM_NONE = _Anonymous_3.VDEV_TRIM_NONE; enum VDEV_TRIM_ACTIVE = _Anonymous_3.VDEV_TRIM_ACTIVE; enum VDEV_TRIM_CANCELED = _Anonymous_3.VDEV_TRIM_CANCELED; enum VDEV_TRIM_SUSPENDED = _Anonymous_3.VDEV_TRIM_SUSPENDED; enum VDEV_TRIM_COMPLETE = _Anonymous_3.VDEV_TRIM_COMPLETE; alias vdev_trim_state_t = _Anonymous_3; enum _Anonymous_4 { VDEV_INITIALIZE_NONE = 0, VDEV_INITIALIZE_ACTIVE = 1, VDEV_INITIALIZE_CANCELED = 2, VDEV_INITIALIZE_SUSPENDED = 3, VDEV_INITIALIZE_COMPLETE = 4, } enum VDEV_INITIALIZE_NONE = _Anonymous_4.VDEV_INITIALIZE_NONE; enum VDEV_INITIALIZE_ACTIVE = _Anonymous_4.VDEV_INITIALIZE_ACTIVE; enum VDEV_INITIALIZE_CANCELED = _Anonymous_4.VDEV_INITIALIZE_CANCELED; enum VDEV_INITIALIZE_SUSPENDED = _Anonymous_4.VDEV_INITIALIZE_SUSPENDED; enum VDEV_INITIALIZE_COMPLETE = _Anonymous_4.VDEV_INITIALIZE_COMPLETE; alias vdev_initializing_state_t = _Anonymous_4; struct ddt_histogram { @DppOffsetSize(0,4096) ddt_stat[64] ddh_stat; } alias ddt_histogram_t = ddt_histogram; struct ddt_stat { @DppOffsetSize(0,8) ulong dds_blocks; @DppOffsetSize(8,8) ulong dds_lsize; @DppOffsetSize(16,8) ulong dds_psize; @DppOffsetSize(24,8) ulong dds_dsize; @DppOffsetSize(32,8) ulong dds_ref_blocks; @DppOffsetSize(40,8) ulong dds_ref_lsize; @DppOffsetSize(48,8) ulong dds_ref_psize; @DppOffsetSize(56,8) ulong dds_ref_dsize; } alias ddt_stat_t = ddt_stat; struct ddt_object { @DppOffsetSize(0,8) ulong ddo_count; @DppOffsetSize(8,8) ulong ddo_dspace; @DppOffsetSize(16,8) ulong ddo_mspace; } alias ddt_object_t = ddt_object; enum pool_trim_func { POOL_TRIM_START = 0, POOL_TRIM_CANCEL = 1, POOL_TRIM_SUSPEND = 2, POOL_TRIM_FUNCS = 3, } enum POOL_TRIM_START = pool_trim_func.POOL_TRIM_START; enum POOL_TRIM_CANCEL = pool_trim_func.POOL_TRIM_CANCEL; enum POOL_TRIM_SUSPEND = pool_trim_func.POOL_TRIM_SUSPEND; enum POOL_TRIM_FUNCS = pool_trim_func.POOL_TRIM_FUNCS; alias pool_trim_func_t = pool_trim_func; enum pool_initialize_func { POOL_INITIALIZE_START = 0, POOL_INITIALIZE_CANCEL = 1, POOL_INITIALIZE_SUSPEND = 2, POOL_INITIALIZE_FUNCS = 3, } enum POOL_INITIALIZE_START = pool_initialize_func.POOL_INITIALIZE_START; enum POOL_INITIALIZE_CANCEL = pool_initialize_func.POOL_INITIALIZE_CANCEL; enum POOL_INITIALIZE_SUSPEND = pool_initialize_func.POOL_INITIALIZE_SUSPEND; enum POOL_INITIALIZE_FUNCS = pool_initialize_func.POOL_INITIALIZE_FUNCS; alias pool_initialize_func_t = pool_initialize_func; struct vdev_stat_ex { @DppOffsetSize(0,64) ulong[8] vsx_active_queue; @DppOffsetSize(64,64) ulong[8] vsx_pend_queue; @DppOffsetSize(128,2368) ulong[37][8] vsx_queue_histo; @DppOffsetSize(2496,2072) ulong[37][7] vsx_total_histo; @DppOffsetSize(4568,2072) ulong[37][7] vsx_disk_histo; @DppOffsetSize(6640,1600) ulong[25][8] vsx_ind_histo; @DppOffsetSize(8240,1600) ulong[25][8] vsx_agg_histo; } alias vdev_stat_ex_t = vdev_stat_ex; struct vdev_stat { @DppOffsetSize(0,8) ulong vs_timestamp; @DppOffsetSize(8,8) ulong vs_state; @DppOffsetSize(16,8) ulong vs_aux; @DppOffsetSize(24,8) ulong vs_alloc; @DppOffsetSize(32,8) ulong vs_space; @DppOffsetSize(40,8) ulong vs_dspace; @DppOffsetSize(48,8) ulong vs_rsize; @DppOffsetSize(56,8) ulong vs_esize; @DppOffsetSize(64,48) ulong[6] vs_ops; @DppOffsetSize(112,48) ulong[6] vs_bytes; @DppOffsetSize(160,8) ulong vs_read_errors; @DppOffsetSize(168,8) ulong vs_write_errors; @DppOffsetSize(176,8) ulong vs_checksum_errors; @DppOffsetSize(184,8) ulong vs_initialize_errors; @DppOffsetSize(192,8) ulong vs_self_healed; @DppOffsetSize(200,8) ulong vs_scan_removing; @DppOffsetSize(208,8) ulong vs_scan_processed; @DppOffsetSize(216,8) ulong vs_fragmentation; @DppOffsetSize(224,8) ulong vs_initialize_bytes_done; @DppOffsetSize(232,8) ulong vs_initialize_bytes_est; @DppOffsetSize(240,8) ulong vs_initialize_state; @DppOffsetSize(248,8) ulong vs_initialize_action_time; @DppOffsetSize(256,8) ulong vs_checkpoint_space; @DppOffsetSize(264,8) ulong vs_resilver_deferred; @DppOffsetSize(272,8) ulong vs_slow_ios; @DppOffsetSize(280,8) ulong vs_trim_errors; @DppOffsetSize(288,8) ulong vs_trim_notsup; @DppOffsetSize(296,8) ulong vs_trim_bytes_done; @DppOffsetSize(304,8) ulong vs_trim_bytes_est; @DppOffsetSize(312,8) ulong vs_trim_state; @DppOffsetSize(320,8) ulong vs_trim_action_time; } alias vdev_stat_t = vdev_stat; enum zpool_errata { ZPOOL_ERRATA_NONE = 0, ZPOOL_ERRATA_ZOL_2094_SCRUB = 1, ZPOOL_ERRATA_ZOL_2094_ASYNC_DESTROY = 2, ZPOOL_ERRATA_ZOL_6845_ENCRYPTION = 3, ZPOOL_ERRATA_ZOL_8308_ENCRYPTION = 4, } enum ZPOOL_ERRATA_NONE = zpool_errata.ZPOOL_ERRATA_NONE; enum ZPOOL_ERRATA_ZOL_2094_SCRUB = zpool_errata.ZPOOL_ERRATA_ZOL_2094_SCRUB; enum ZPOOL_ERRATA_ZOL_2094_ASYNC_DESTROY = zpool_errata.ZPOOL_ERRATA_ZOL_2094_ASYNC_DESTROY; enum ZPOOL_ERRATA_ZOL_6845_ENCRYPTION = zpool_errata.ZPOOL_ERRATA_ZOL_6845_ENCRYPTION; enum ZPOOL_ERRATA_ZOL_8308_ENCRYPTION = zpool_errata.ZPOOL_ERRATA_ZOL_8308_ENCRYPTION; alias zpool_errata_t = zpool_errata; enum dsl_scan_state { DSS_NONE = 0, DSS_SCANNING = 1, DSS_FINISHED = 2, DSS_CANCELED = 3, DSS_NUM_STATES = 4, } enum DSS_NONE = dsl_scan_state.DSS_NONE; enum DSS_SCANNING = dsl_scan_state.DSS_SCANNING; enum DSS_FINISHED = dsl_scan_state.DSS_FINISHED; enum DSS_CANCELED = dsl_scan_state.DSS_CANCELED; enum DSS_NUM_STATES = dsl_scan_state.DSS_NUM_STATES; alias dsl_scan_state_t = dsl_scan_state; struct pool_removal_stat { @DppOffsetSize(0,8) ulong prs_state; @DppOffsetSize(8,8) ulong prs_removing_vdev; @DppOffsetSize(16,8) ulong prs_start_time; @DppOffsetSize(24,8) ulong prs_end_time; @DppOffsetSize(32,8) ulong prs_to_copy; @DppOffsetSize(40,8) ulong prs_copied; @DppOffsetSize(48,8) ulong prs_mapping_memory; } alias pool_removal_stat_t = pool_removal_stat; struct pool_scan_stat { @DppOffsetSize(0,8) ulong pss_func; @DppOffsetSize(8,8) ulong pss_state; @DppOffsetSize(16,8) ulong pss_start_time; @DppOffsetSize(24,8) ulong pss_end_time; @DppOffsetSize(32,8) ulong pss_to_examine; @DppOffsetSize(40,8) ulong pss_examined; @DppOffsetSize(48,8) ulong pss_to_process; @DppOffsetSize(56,8) ulong pss_processed; @DppOffsetSize(64,8) ulong pss_errors; @DppOffsetSize(72,8) ulong pss_pass_exam; @DppOffsetSize(80,8) ulong pss_pass_start; @DppOffsetSize(88,8) ulong pss_pass_scrub_pause; @DppOffsetSize(96,8) ulong pss_pass_scrub_spent_paused; @DppOffsetSize(104,8) ulong pss_pass_issued; @DppOffsetSize(112,8) ulong pss_issued; } alias pool_scan_stat_t = pool_scan_stat; enum zio_type { ZIO_TYPE_NULL = 0, ZIO_TYPE_READ = 1, ZIO_TYPE_WRITE = 2, ZIO_TYPE_FREE = 3, ZIO_TYPE_CLAIM = 4, ZIO_TYPE_IOCTL = 5, ZIO_TYPE_TRIM = 6, ZIO_TYPES = 7, } enum ZIO_TYPE_NULL = zio_type.ZIO_TYPE_NULL; enum ZIO_TYPE_READ = zio_type.ZIO_TYPE_READ; enum ZIO_TYPE_WRITE = zio_type.ZIO_TYPE_WRITE; enum ZIO_TYPE_FREE = zio_type.ZIO_TYPE_FREE; enum ZIO_TYPE_CLAIM = zio_type.ZIO_TYPE_CLAIM; enum ZIO_TYPE_IOCTL = zio_type.ZIO_TYPE_IOCTL; enum ZIO_TYPE_TRIM = zio_type.ZIO_TYPE_TRIM; enum ZIO_TYPES = zio_type.ZIO_TYPES; alias zio_type_t = zio_type; struct pool_checkpoint_stat { @DppOffsetSize(0,8) ulong pcs_state; @DppOffsetSize(8,8) ulong pcs_start_time; @DppOffsetSize(16,8) ulong pcs_space; } alias pool_checkpoint_stat_t = pool_checkpoint_stat; enum _Anonymous_5 { CS_NONE = 0, CS_CHECKPOINT_EXISTS = 1, CS_CHECKPOINT_DISCARDING = 2, CS_NUM_STATES = 3, } enum CS_NONE = _Anonymous_5.CS_NONE; enum CS_CHECKPOINT_EXISTS = _Anonymous_5.CS_CHECKPOINT_EXISTS; enum CS_CHECKPOINT_DISCARDING = _Anonymous_5.CS_CHECKPOINT_DISCARDING; enum CS_NUM_STATES = _Anonymous_5.CS_NUM_STATES; alias checkpoint_state_t = _Anonymous_5; enum pool_scrub_cmd { POOL_SCRUB_NORMAL = 0, POOL_SCRUB_PAUSE = 1, POOL_SCRUB_FLAGS_END = 2, } enum POOL_SCRUB_NORMAL = pool_scrub_cmd.POOL_SCRUB_NORMAL; enum POOL_SCRUB_PAUSE = pool_scrub_cmd.POOL_SCRUB_PAUSE; enum POOL_SCRUB_FLAGS_END = pool_scrub_cmd.POOL_SCRUB_FLAGS_END; alias pool_scrub_cmd_t = pool_scrub_cmd; enum pool_scan_func { POOL_SCAN_NONE = 0, POOL_SCAN_SCRUB = 1, POOL_SCAN_RESILVER = 2, POOL_SCAN_FUNCS = 3, } enum POOL_SCAN_NONE = pool_scan_func.POOL_SCAN_NONE; enum POOL_SCAN_SCRUB = pool_scan_func.POOL_SCAN_SCRUB; enum POOL_SCAN_RESILVER = pool_scan_func.POOL_SCAN_RESILVER; enum POOL_SCAN_FUNCS = pool_scan_func.POOL_SCAN_FUNCS; alias pool_scan_func_t = pool_scan_func; enum mmp_state { MMP_STATE_ACTIVE = 0, MMP_STATE_INACTIVE = 1, MMP_STATE_NO_HOSTID = 2, } enum MMP_STATE_ACTIVE = mmp_state.MMP_STATE_ACTIVE; enum MMP_STATE_INACTIVE = mmp_state.MMP_STATE_INACTIVE; enum MMP_STATE_NO_HOSTID = mmp_state.MMP_STATE_NO_HOSTID; alias mmp_state_t = mmp_state; enum pool_state { POOL_STATE_ACTIVE = 0, POOL_STATE_EXPORTED = 1, POOL_STATE_DESTROYED = 2, POOL_STATE_SPARE = 3, POOL_STATE_L2CACHE = 4, POOL_STATE_UNINITIALIZED = 5, POOL_STATE_UNAVAIL = 6, POOL_STATE_POTENTIALLY_ACTIVE = 7, } enum POOL_STATE_ACTIVE = pool_state.POOL_STATE_ACTIVE; enum POOL_STATE_EXPORTED = pool_state.POOL_STATE_EXPORTED; enum POOL_STATE_DESTROYED = pool_state.POOL_STATE_DESTROYED; enum POOL_STATE_SPARE = pool_state.POOL_STATE_SPARE; enum POOL_STATE_L2CACHE = pool_state.POOL_STATE_L2CACHE; enum POOL_STATE_UNINITIALIZED = pool_state.POOL_STATE_UNINITIALIZED; enum POOL_STATE_UNAVAIL = pool_state.POOL_STATE_UNAVAIL; enum POOL_STATE_POTENTIALLY_ACTIVE = pool_state.POOL_STATE_POTENTIALLY_ACTIVE; alias pool_state_t = pool_state; enum vdev_aux { VDEV_AUX_NONE = 0, VDEV_AUX_OPEN_FAILED = 1, VDEV_AUX_CORRUPT_DATA = 2, VDEV_AUX_NO_REPLICAS = 3, VDEV_AUX_BAD_GUID_SUM = 4, VDEV_AUX_TOO_SMALL = 5, VDEV_AUX_BAD_LABEL = 6, VDEV_AUX_VERSION_NEWER = 7, VDEV_AUX_VERSION_OLDER = 8, VDEV_AUX_UNSUP_FEAT = 9, VDEV_AUX_SPARED = 10, VDEV_AUX_ERR_EXCEEDED = 11, VDEV_AUX_IO_FAILURE = 12, VDEV_AUX_BAD_LOG = 13, VDEV_AUX_EXTERNAL = 14, VDEV_AUX_SPLIT_POOL = 15, VDEV_AUX_BAD_ASHIFT = 16, VDEV_AUX_EXTERNAL_PERSIST = 17, VDEV_AUX_ACTIVE = 18, VDEV_AUX_CHILDREN_OFFLINE = 19, } enum VDEV_AUX_NONE = vdev_aux.VDEV_AUX_NONE; enum VDEV_AUX_OPEN_FAILED = vdev_aux.VDEV_AUX_OPEN_FAILED; enum VDEV_AUX_CORRUPT_DATA = vdev_aux.VDEV_AUX_CORRUPT_DATA; enum VDEV_AUX_NO_REPLICAS = vdev_aux.VDEV_AUX_NO_REPLICAS; enum VDEV_AUX_BAD_GUID_SUM = vdev_aux.VDEV_AUX_BAD_GUID_SUM; enum VDEV_AUX_TOO_SMALL = vdev_aux.VDEV_AUX_TOO_SMALL; enum VDEV_AUX_BAD_LABEL = vdev_aux.VDEV_AUX_BAD_LABEL; enum VDEV_AUX_VERSION_NEWER = vdev_aux.VDEV_AUX_VERSION_NEWER; enum VDEV_AUX_VERSION_OLDER = vdev_aux.VDEV_AUX_VERSION_OLDER; enum VDEV_AUX_UNSUP_FEAT = vdev_aux.VDEV_AUX_UNSUP_FEAT; enum VDEV_AUX_SPARED = vdev_aux.VDEV_AUX_SPARED; enum VDEV_AUX_ERR_EXCEEDED = vdev_aux.VDEV_AUX_ERR_EXCEEDED; enum VDEV_AUX_IO_FAILURE = vdev_aux.VDEV_AUX_IO_FAILURE; enum VDEV_AUX_BAD_LOG = vdev_aux.VDEV_AUX_BAD_LOG; enum VDEV_AUX_EXTERNAL = vdev_aux.VDEV_AUX_EXTERNAL; enum VDEV_AUX_SPLIT_POOL = vdev_aux.VDEV_AUX_SPLIT_POOL; enum VDEV_AUX_BAD_ASHIFT = vdev_aux.VDEV_AUX_BAD_ASHIFT; enum VDEV_AUX_EXTERNAL_PERSIST = vdev_aux.VDEV_AUX_EXTERNAL_PERSIST; enum VDEV_AUX_ACTIVE = vdev_aux.VDEV_AUX_ACTIVE; enum VDEV_AUX_CHILDREN_OFFLINE = vdev_aux.VDEV_AUX_CHILDREN_OFFLINE; alias vdev_aux_t = vdev_aux; enum vdev_state { VDEV_STATE_UNKNOWN = 0, VDEV_STATE_CLOSED = 1, VDEV_STATE_OFFLINE = 2, VDEV_STATE_REMOVED = 3, VDEV_STATE_CANT_OPEN = 4, VDEV_STATE_FAULTED = 5, VDEV_STATE_DEGRADED = 6, VDEV_STATE_HEALTHY = 7, } enum VDEV_STATE_UNKNOWN = vdev_state.VDEV_STATE_UNKNOWN; enum VDEV_STATE_CLOSED = vdev_state.VDEV_STATE_CLOSED; enum VDEV_STATE_OFFLINE = vdev_state.VDEV_STATE_OFFLINE; enum VDEV_STATE_REMOVED = vdev_state.VDEV_STATE_REMOVED; enum VDEV_STATE_CANT_OPEN = vdev_state.VDEV_STATE_CANT_OPEN; enum VDEV_STATE_FAULTED = vdev_state.VDEV_STATE_FAULTED; enum VDEV_STATE_DEGRADED = vdev_state.VDEV_STATE_DEGRADED; enum VDEV_STATE_HEALTHY = vdev_state.VDEV_STATE_HEALTHY; alias vdev_state_t = vdev_state; struct zpool_load_policy { @DppOffsetSize(0,4) uint zlp_rewind; @DppOffsetSize(8,8) ulong zlp_maxmeta; @DppOffsetSize(16,8) ulong zlp_maxdata; @DppOffsetSize(24,8) ulong zlp_txg; } alias zpool_load_policy_t = zpool_load_policy; enum zfs_key_location { ZFS_KEYLOCATION_NONE = 0, ZFS_KEYLOCATION_PROMPT = 1, ZFS_KEYLOCATION_URI = 2, ZFS_KEYLOCATION_LOCATIONS = 3, } enum ZFS_KEYLOCATION_NONE = zfs_key_location.ZFS_KEYLOCATION_NONE; enum ZFS_KEYLOCATION_PROMPT = zfs_key_location.ZFS_KEYLOCATION_PROMPT; enum ZFS_KEYLOCATION_URI = zfs_key_location.ZFS_KEYLOCATION_URI; enum ZFS_KEYLOCATION_LOCATIONS = zfs_key_location.ZFS_KEYLOCATION_LOCATIONS; alias zfs_keylocation_t = zfs_key_location; enum zfs_keyformat { ZFS_KEYFORMAT_NONE = 0, ZFS_KEYFORMAT_RAW = 1, ZFS_KEYFORMAT_HEX = 2, ZFS_KEYFORMAT_PASSPHRASE = 3, ZFS_KEYFORMAT_FORMATS = 4, } enum ZFS_KEYFORMAT_NONE = zfs_keyformat.ZFS_KEYFORMAT_NONE; enum ZFS_KEYFORMAT_RAW = zfs_keyformat.ZFS_KEYFORMAT_RAW; enum ZFS_KEYFORMAT_HEX = zfs_keyformat.ZFS_KEYFORMAT_HEX; enum ZFS_KEYFORMAT_PASSPHRASE = zfs_keyformat.ZFS_KEYFORMAT_PASSPHRASE; enum ZFS_KEYFORMAT_FORMATS = zfs_keyformat.ZFS_KEYFORMAT_FORMATS; alias zfs_keyformat_t = zfs_keyformat; enum zfs_keystatus { ZFS_KEYSTATUS_NONE = 0, ZFS_KEYSTATUS_UNAVAILABLE = 1, ZFS_KEYSTATUS_AVAILABLE = 2, } enum ZFS_KEYSTATUS_NONE = zfs_keystatus.ZFS_KEYSTATUS_NONE; enum ZFS_KEYSTATUS_UNAVAILABLE = zfs_keystatus.ZFS_KEYSTATUS_UNAVAILABLE; enum ZFS_KEYSTATUS_AVAILABLE = zfs_keystatus.ZFS_KEYSTATUS_AVAILABLE; alias zfs_keystatus_t = zfs_keystatus; enum _Anonymous_6 { ZFS_VOLMODE_DEFAULT = 0, ZFS_VOLMODE_GEOM = 1, ZFS_VOLMODE_DEV = 2, ZFS_VOLMODE_NONE = 3, } enum ZFS_VOLMODE_DEFAULT = _Anonymous_6.ZFS_VOLMODE_DEFAULT; enum ZFS_VOLMODE_GEOM = _Anonymous_6.ZFS_VOLMODE_GEOM; enum ZFS_VOLMODE_DEV = _Anonymous_6.ZFS_VOLMODE_DEV; enum ZFS_VOLMODE_NONE = _Anonymous_6.ZFS_VOLMODE_NONE; alias zfs_volmode_t = _Anonymous_6; enum _Anonymous_7 { ZFS_REDUNDANT_METADATA_ALL = 0, ZFS_REDUNDANT_METADATA_MOST = 1, } enum ZFS_REDUNDANT_METADATA_ALL = _Anonymous_7.ZFS_REDUNDANT_METADATA_ALL; enum ZFS_REDUNDANT_METADATA_MOST = _Anonymous_7.ZFS_REDUNDANT_METADATA_MOST; alias zfs_redundant_metadata_type_t = _Anonymous_7; enum _Anonymous_8 { ZFS_DNSIZE_LEGACY = 0, ZFS_DNSIZE_AUTO = 1, ZFS_DNSIZE_1K = 1024, ZFS_DNSIZE_2K = 2048, ZFS_DNSIZE_4K = 4096, ZFS_DNSIZE_8K = 8192, ZFS_DNSIZE_16K = 16384, } enum ZFS_DNSIZE_LEGACY = _Anonymous_8.ZFS_DNSIZE_LEGACY; enum ZFS_DNSIZE_AUTO = _Anonymous_8.ZFS_DNSIZE_AUTO; enum ZFS_DNSIZE_1K = _Anonymous_8.ZFS_DNSIZE_1K; enum ZFS_DNSIZE_2K = _Anonymous_8.ZFS_DNSIZE_2K; enum ZFS_DNSIZE_4K = _Anonymous_8.ZFS_DNSIZE_4K; enum ZFS_DNSIZE_8K = _Anonymous_8.ZFS_DNSIZE_8K; enum ZFS_DNSIZE_16K = _Anonymous_8.ZFS_DNSIZE_16K; alias zfs_dnsize_type_t = _Anonymous_8; enum _Anonymous_9 { ZFS_XATTR_OFF = 0, ZFS_XATTR_DIR = 1, ZFS_XATTR_SA = 2, } enum ZFS_XATTR_OFF = _Anonymous_9.ZFS_XATTR_OFF; enum ZFS_XATTR_DIR = _Anonymous_9.ZFS_XATTR_DIR; enum ZFS_XATTR_SA = _Anonymous_9.ZFS_XATTR_SA; alias zfs_xattr_type_t = _Anonymous_9; enum _Anonymous_10 { ZFS_SYNC_STANDARD = 0, ZFS_SYNC_ALWAYS = 1, ZFS_SYNC_DISABLED = 2, } enum ZFS_SYNC_STANDARD = _Anonymous_10.ZFS_SYNC_STANDARD; enum ZFS_SYNC_ALWAYS = _Anonymous_10.ZFS_SYNC_ALWAYS; enum ZFS_SYNC_DISABLED = _Anonymous_10.ZFS_SYNC_DISABLED; alias zfs_sync_type_t = _Anonymous_10; enum zfs_cache_type { ZFS_CACHE_NONE = 0, ZFS_CACHE_METADATA = 1, ZFS_CACHE_ALL = 2, } enum ZFS_CACHE_NONE = zfs_cache_type.ZFS_CACHE_NONE; enum ZFS_CACHE_METADATA = zfs_cache_type.ZFS_CACHE_METADATA; enum ZFS_CACHE_ALL = zfs_cache_type.ZFS_CACHE_ALL; alias zfs_cache_type_t = zfs_cache_type; enum zfs_smb_acl_op { ZFS_SMB_ACL_ADD = 0, ZFS_SMB_ACL_REMOVE = 1, ZFS_SMB_ACL_RENAME = 2, ZFS_SMB_ACL_PURGE = 3, } enum ZFS_SMB_ACL_ADD = zfs_smb_acl_op.ZFS_SMB_ACL_ADD; enum ZFS_SMB_ACL_REMOVE = zfs_smb_acl_op.ZFS_SMB_ACL_REMOVE; enum ZFS_SMB_ACL_RENAME = zfs_smb_acl_op.ZFS_SMB_ACL_RENAME; enum ZFS_SMB_ACL_PURGE = zfs_smb_acl_op.ZFS_SMB_ACL_PURGE; alias zfs_smb_acl_op_t = zfs_smb_acl_op; enum zfs_share_op { ZFS_SHARE_NFS = 0, ZFS_UNSHARE_NFS = 1, ZFS_SHARE_SMB = 2, ZFS_UNSHARE_SMB = 3, } enum ZFS_SHARE_NFS = zfs_share_op.ZFS_SHARE_NFS; enum ZFS_UNSHARE_NFS = zfs_share_op.ZFS_UNSHARE_NFS; enum ZFS_SHARE_SMB = zfs_share_op.ZFS_SHARE_SMB; enum ZFS_UNSHARE_SMB = zfs_share_op.ZFS_UNSHARE_SMB; alias zfs_share_op_t = zfs_share_op; enum _Anonymous_11 { ZFS_LOGBIAS_LATENCY = 0, ZFS_LOGBIAS_THROUGHPUT = 1, } enum ZFS_LOGBIAS_LATENCY = _Anonymous_11.ZFS_LOGBIAS_LATENCY; enum ZFS_LOGBIAS_THROUGHPUT = _Anonymous_11.ZFS_LOGBIAS_THROUGHPUT; alias zfs_logbias_op_t = _Anonymous_11; enum _Anonymous_12 { ZFS_CANMOUNT_OFF = 0, ZFS_CANMOUNT_ON = 1, ZFS_CANMOUNT_NOAUTO = 2, } enum ZFS_CANMOUNT_OFF = _Anonymous_12.ZFS_CANMOUNT_OFF; enum ZFS_CANMOUNT_ON = _Anonymous_12.ZFS_CANMOUNT_ON; enum ZFS_CANMOUNT_NOAUTO = _Anonymous_12.ZFS_CANMOUNT_NOAUTO; alias zfs_canmount_type_t = _Anonymous_12; enum _Anonymous_13 { ZFS_DELEG_NONE = 0, ZFS_DELEG_PERM_LOCAL = 1, ZFS_DELEG_PERM_DESCENDENT = 2, ZFS_DELEG_PERM_LOCALDESCENDENT = 3, ZFS_DELEG_PERM_CREATE = 4, } enum ZFS_DELEG_NONE = _Anonymous_13.ZFS_DELEG_NONE; enum ZFS_DELEG_PERM_LOCAL = _Anonymous_13.ZFS_DELEG_PERM_LOCAL; enum ZFS_DELEG_PERM_DESCENDENT = _Anonymous_13.ZFS_DELEG_PERM_DESCENDENT; enum ZFS_DELEG_PERM_LOCALDESCENDENT = _Anonymous_13.ZFS_DELEG_PERM_LOCALDESCENDENT; enum ZFS_DELEG_PERM_CREATE = _Anonymous_13.ZFS_DELEG_PERM_CREATE; alias zfs_deleg_inherit_t = _Anonymous_13; enum _Anonymous_14 { ZFS_DELEG_WHO_UNKNOWN = 0, ZFS_DELEG_USER = 117, ZFS_DELEG_USER_SETS = 85, ZFS_DELEG_GROUP = 103, ZFS_DELEG_GROUP_SETS = 71, ZFS_DELEG_EVERYONE = 101, ZFS_DELEG_EVERYONE_SETS = 69, ZFS_DELEG_CREATE = 99, ZFS_DELEG_CREATE_SETS = 67, ZFS_DELEG_NAMED_SET = 115, ZFS_DELEG_NAMED_SET_SETS = 83, } enum ZFS_DELEG_WHO_UNKNOWN = _Anonymous_14.ZFS_DELEG_WHO_UNKNOWN; enum ZFS_DELEG_USER = _Anonymous_14.ZFS_DELEG_USER; enum ZFS_DELEG_USER_SETS = _Anonymous_14.ZFS_DELEG_USER_SETS; enum ZFS_DELEG_GROUP = _Anonymous_14.ZFS_DELEG_GROUP; enum ZFS_DELEG_GROUP_SETS = _Anonymous_14.ZFS_DELEG_GROUP_SETS; enum ZFS_DELEG_EVERYONE = _Anonymous_14.ZFS_DELEG_EVERYONE; enum ZFS_DELEG_EVERYONE_SETS = _Anonymous_14.ZFS_DELEG_EVERYONE_SETS; enum ZFS_DELEG_CREATE = _Anonymous_14.ZFS_DELEG_CREATE; enum ZFS_DELEG_CREATE_SETS = _Anonymous_14.ZFS_DELEG_CREATE_SETS; enum ZFS_DELEG_NAMED_SET = _Anonymous_14.ZFS_DELEG_NAMED_SET; enum ZFS_DELEG_NAMED_SET_SETS = _Anonymous_14.ZFS_DELEG_NAMED_SET_SETS; alias zfs_deleg_who_type_t = _Anonymous_14; ulong zpool_prop_random_value(zpool_prop_t, ulong) @nogc nothrow; int zpool_prop_string_to_index(zpool_prop_t, const(char)*, ulong*) @nogc nothrow; int zpool_prop_index_to_string(zpool_prop_t, ulong, const(char)**) @nogc nothrow; int zpool_prop_unsupported(const(char)*) @nogc nothrow; int zpool_prop_feature(const(char)*) @nogc nothrow; int zpool_prop_setonce(zpool_prop_t) @nogc nothrow; int zpool_prop_readonly(zpool_prop_t) @nogc nothrow; ulong zpool_prop_default_numeric(zpool_prop_t) @nogc nothrow; const(char)* zpool_prop_default_string(zpool_prop_t) @nogc nothrow; const(char)* zpool_prop_to_name(zpool_prop_t) @nogc nothrow; zpool_prop_t zpool_name_to_prop(const(char)*) @nogc nothrow; int zfs_prop_valid_for_type(int, zfs_type_t, int) @nogc nothrow; ulong zfs_prop_random_value(zfs_prop_t, ulong) @nogc nothrow; int zfs_prop_string_to_index(zfs_prop_t, const(char)*, ulong*) @nogc nothrow; int zfs_prop_index_to_string(zfs_prop_t, ulong, const(char)**) @nogc nothrow; int zfs_prop_written(const(char)*) @nogc nothrow; int zfs_prop_userquota(const(char)*) @nogc nothrow; int zfs_prop_user(const(char)*) @nogc nothrow; zfs_prop_t zfs_name_to_prop(const(char)*) @nogc nothrow; const(char)* zfs_prop_to_name(zfs_prop_t) @nogc nothrow; int zfs_prop_valid_keylocation(const(char)*, int) @nogc nothrow; int zfs_prop_encryption_key_param(zfs_prop_t) @nogc nothrow; int zfs_prop_setonce(zfs_prop_t) @nogc nothrow; int zfs_prop_inheritable(zfs_prop_t) @nogc nothrow; int zfs_prop_visible(zfs_prop_t) @nogc nothrow; int zfs_prop_readonly(zfs_prop_t) @nogc nothrow; ulong zfs_prop_default_numeric(zfs_prop_t) @nogc nothrow; const(char)* zfs_prop_default_string(zfs_prop_t) @nogc nothrow; alias zprop_func = int function(int, void*); enum _Anonymous_15 { ZPROP_ERR_NOCLEAR = 1, ZPROP_ERR_NORESTORE = 2, } enum ZPROP_ERR_NOCLEAR = _Anonymous_15.ZPROP_ERR_NOCLEAR; enum ZPROP_ERR_NORESTORE = _Anonymous_15.ZPROP_ERR_NORESTORE; alias zprop_errflags_t = _Anonymous_15; enum _Anonymous_16 { ZPROP_SRC_NONE = 1, ZPROP_SRC_DEFAULT = 2, ZPROP_SRC_TEMPORARY = 4, ZPROP_SRC_LOCAL = 8, ZPROP_SRC_INHERITED = 16, ZPROP_SRC_RECEIVED = 32, } enum ZPROP_SRC_NONE = _Anonymous_16.ZPROP_SRC_NONE; enum ZPROP_SRC_DEFAULT = _Anonymous_16.ZPROP_SRC_DEFAULT; enum ZPROP_SRC_TEMPORARY = _Anonymous_16.ZPROP_SRC_TEMPORARY; enum ZPROP_SRC_LOCAL = _Anonymous_16.ZPROP_SRC_LOCAL; enum ZPROP_SRC_INHERITED = _Anonymous_16.ZPROP_SRC_INHERITED; enum ZPROP_SRC_RECEIVED = _Anonymous_16.ZPROP_SRC_RECEIVED; alias zprop_source_t = _Anonymous_16; enum _Anonymous_17 { ZPOOL_PROP_INVAL = -1, ZPOOL_PROP_NAME = 0, ZPOOL_PROP_SIZE = 1, ZPOOL_PROP_CAPACITY = 2, ZPOOL_PROP_ALTROOT = 3, ZPOOL_PROP_HEALTH = 4, ZPOOL_PROP_GUID = 5, ZPOOL_PROP_VERSION = 6, ZPOOL_PROP_BOOTFS = 7, ZPOOL_PROP_DELEGATION = 8, ZPOOL_PROP_AUTOREPLACE = 9, ZPOOL_PROP_CACHEFILE = 10, ZPOOL_PROP_FAILUREMODE = 11, ZPOOL_PROP_LISTSNAPS = 12, ZPOOL_PROP_AUTOEXPAND = 13, ZPOOL_PROP_DEDUPDITTO = 14, ZPOOL_PROP_DEDUPRATIO = 15, ZPOOL_PROP_FREE = 16, ZPOOL_PROP_ALLOCATED = 17, ZPOOL_PROP_READONLY = 18, ZPOOL_PROP_ASHIFT = 19, ZPOOL_PROP_COMMENT = 20, ZPOOL_PROP_EXPANDSZ = 21, ZPOOL_PROP_FREEING = 22, ZPOOL_PROP_FRAGMENTATION = 23, ZPOOL_PROP_LEAKED = 24, ZPOOL_PROP_MAXBLOCKSIZE = 25, ZPOOL_PROP_TNAME = 26, ZPOOL_PROP_MAXDNODESIZE = 27, ZPOOL_PROP_MULTIHOST = 28, ZPOOL_PROP_CHECKPOINT = 29, ZPOOL_PROP_LOAD_GUID = 30, ZPOOL_PROP_AUTOTRIM = 31, ZPOOL_NUM_PROPS = 32, } enum ZPOOL_PROP_INVAL = _Anonymous_17.ZPOOL_PROP_INVAL; enum ZPOOL_PROP_NAME = _Anonymous_17.ZPOOL_PROP_NAME; enum ZPOOL_PROP_SIZE = _Anonymous_17.ZPOOL_PROP_SIZE; enum ZPOOL_PROP_CAPACITY = _Anonymous_17.ZPOOL_PROP_CAPACITY; enum ZPOOL_PROP_ALTROOT = _Anonymous_17.ZPOOL_PROP_ALTROOT; enum ZPOOL_PROP_HEALTH = _Anonymous_17.ZPOOL_PROP_HEALTH; enum ZPOOL_PROP_GUID = _Anonymous_17.ZPOOL_PROP_GUID; enum ZPOOL_PROP_VERSION = _Anonymous_17.ZPOOL_PROP_VERSION; enum ZPOOL_PROP_BOOTFS = _Anonymous_17.ZPOOL_PROP_BOOTFS; enum ZPOOL_PROP_DELEGATION = _Anonymous_17.ZPOOL_PROP_DELEGATION; enum ZPOOL_PROP_AUTOREPLACE = _Anonymous_17.ZPOOL_PROP_AUTOREPLACE; enum ZPOOL_PROP_CACHEFILE = _Anonymous_17.ZPOOL_PROP_CACHEFILE; enum ZPOOL_PROP_FAILUREMODE = _Anonymous_17.ZPOOL_PROP_FAILUREMODE; enum ZPOOL_PROP_LISTSNAPS = _Anonymous_17.ZPOOL_PROP_LISTSNAPS; enum ZPOOL_PROP_AUTOEXPAND = _Anonymous_17.ZPOOL_PROP_AUTOEXPAND; enum ZPOOL_PROP_DEDUPDITTO = _Anonymous_17.ZPOOL_PROP_DEDUPDITTO; enum ZPOOL_PROP_DEDUPRATIO = _Anonymous_17.ZPOOL_PROP_DEDUPRATIO; enum ZPOOL_PROP_FREE = _Anonymous_17.ZPOOL_PROP_FREE; enum ZPOOL_PROP_ALLOCATED = _Anonymous_17.ZPOOL_PROP_ALLOCATED; enum ZPOOL_PROP_READONLY = _Anonymous_17.ZPOOL_PROP_READONLY; enum ZPOOL_PROP_ASHIFT = _Anonymous_17.ZPOOL_PROP_ASHIFT; enum ZPOOL_PROP_COMMENT = _Anonymous_17.ZPOOL_PROP_COMMENT; enum ZPOOL_PROP_EXPANDSZ = _Anonymous_17.ZPOOL_PROP_EXPANDSZ; enum ZPOOL_PROP_FREEING = _Anonymous_17.ZPOOL_PROP_FREEING; enum ZPOOL_PROP_FRAGMENTATION = _Anonymous_17.ZPOOL_PROP_FRAGMENTATION; enum ZPOOL_PROP_LEAKED = _Anonymous_17.ZPOOL_PROP_LEAKED; enum ZPOOL_PROP_MAXBLOCKSIZE = _Anonymous_17.ZPOOL_PROP_MAXBLOCKSIZE; enum ZPOOL_PROP_TNAME = _Anonymous_17.ZPOOL_PROP_TNAME; enum ZPOOL_PROP_MAXDNODESIZE = _Anonymous_17.ZPOOL_PROP_MAXDNODESIZE; enum ZPOOL_PROP_MULTIHOST = _Anonymous_17.ZPOOL_PROP_MULTIHOST; enum ZPOOL_PROP_CHECKPOINT = _Anonymous_17.ZPOOL_PROP_CHECKPOINT; enum ZPOOL_PROP_LOAD_GUID = _Anonymous_17.ZPOOL_PROP_LOAD_GUID; enum ZPOOL_PROP_AUTOTRIM = _Anonymous_17.ZPOOL_PROP_AUTOTRIM; enum ZPOOL_NUM_PROPS = _Anonymous_17.ZPOOL_NUM_PROPS; alias zpool_prop_t = _Anonymous_17; extern __gshared const(char)*[12] zfs_userquota_prop_prefixes; enum _Anonymous_18 { ZFS_PROP_USERUSED = 0, ZFS_PROP_USERQUOTA = 1, ZFS_PROP_GROUPUSED = 2, ZFS_PROP_GROUPQUOTA = 3, ZFS_PROP_USEROBJUSED = 4, ZFS_PROP_USEROBJQUOTA = 5, ZFS_PROP_GROUPOBJUSED = 6, ZFS_PROP_GROUPOBJQUOTA = 7, ZFS_PROP_PROJECTUSED = 8, ZFS_PROP_PROJECTQUOTA = 9, ZFS_PROP_PROJECTOBJUSED = 10, ZFS_PROP_PROJECTOBJQUOTA = 11, ZFS_NUM_USERQUOTA_PROPS = 12, } enum ZFS_PROP_USERUSED = _Anonymous_18.ZFS_PROP_USERUSED; enum ZFS_PROP_USERQUOTA = _Anonymous_18.ZFS_PROP_USERQUOTA; enum ZFS_PROP_GROUPUSED = _Anonymous_18.ZFS_PROP_GROUPUSED; enum ZFS_PROP_GROUPQUOTA = _Anonymous_18.ZFS_PROP_GROUPQUOTA; enum ZFS_PROP_USEROBJUSED = _Anonymous_18.ZFS_PROP_USEROBJUSED; enum ZFS_PROP_USEROBJQUOTA = _Anonymous_18.ZFS_PROP_USEROBJQUOTA; enum ZFS_PROP_GROUPOBJUSED = _Anonymous_18.ZFS_PROP_GROUPOBJUSED; enum ZFS_PROP_GROUPOBJQUOTA = _Anonymous_18.ZFS_PROP_GROUPOBJQUOTA; enum ZFS_PROP_PROJECTUSED = _Anonymous_18.ZFS_PROP_PROJECTUSED; enum ZFS_PROP_PROJECTQUOTA = _Anonymous_18.ZFS_PROP_PROJECTQUOTA; enum ZFS_PROP_PROJECTOBJUSED = _Anonymous_18.ZFS_PROP_PROJECTOBJUSED; enum ZFS_PROP_PROJECTOBJQUOTA = _Anonymous_18.ZFS_PROP_PROJECTOBJQUOTA; enum ZFS_NUM_USERQUOTA_PROPS = _Anonymous_18.ZFS_NUM_USERQUOTA_PROPS; alias zfs_userquota_prop_t = _Anonymous_18; enum _Anonymous_19 { ZPROP_CONT = -2, ZPROP_INVAL = -1, ZFS_PROP_TYPE = 0, ZFS_PROP_CREATION = 1, ZFS_PROP_USED = 2, ZFS_PROP_AVAILABLE = 3, ZFS_PROP_REFERENCED = 4, ZFS_PROP_COMPRESSRATIO = 5, ZFS_PROP_MOUNTED = 6, ZFS_PROP_ORIGIN = 7, ZFS_PROP_QUOTA = 8, ZFS_PROP_RESERVATION = 9, ZFS_PROP_VOLSIZE = 10, ZFS_PROP_VOLBLOCKSIZE = 11, ZFS_PROP_RECORDSIZE = 12, ZFS_PROP_MOUNTPOINT = 13, ZFS_PROP_SHARENFS = 14, ZFS_PROP_CHECKSUM = 15, ZFS_PROP_COMPRESSION = 16, ZFS_PROP_ATIME = 17, ZFS_PROP_DEVICES = 18, ZFS_PROP_EXEC = 19, ZFS_PROP_SETUID = 20, ZFS_PROP_READONLY = 21, ZFS_PROP_ZONED = 22, ZFS_PROP_SNAPDIR = 23, ZFS_PROP_PRIVATE = 24, ZFS_PROP_ACLINHERIT = 25, ZFS_PROP_CREATETXG = 26, ZFS_PROP_NAME = 27, ZFS_PROP_CANMOUNT = 28, ZFS_PROP_ISCSIOPTIONS = 29, ZFS_PROP_XATTR = 30, ZFS_PROP_NUMCLONES = 31, ZFS_PROP_COPIES = 32, ZFS_PROP_VERSION = 33, ZFS_PROP_UTF8ONLY = 34, ZFS_PROP_NORMALIZE = 35, ZFS_PROP_CASE = 36, ZFS_PROP_VSCAN = 37, ZFS_PROP_NBMAND = 38, ZFS_PROP_SHARESMB = 39, ZFS_PROP_REFQUOTA = 40, ZFS_PROP_REFRESERVATION = 41, ZFS_PROP_GUID = 42, ZFS_PROP_PRIMARYCACHE = 43, ZFS_PROP_SECONDARYCACHE = 44, ZFS_PROP_USEDSNAP = 45, ZFS_PROP_USEDDS = 46, ZFS_PROP_USEDCHILD = 47, ZFS_PROP_USEDREFRESERV = 48, ZFS_PROP_USERACCOUNTING = 49, ZFS_PROP_STMF_SHAREINFO = 50, ZFS_PROP_DEFER_DESTROY = 51, ZFS_PROP_USERREFS = 52, ZFS_PROP_LOGBIAS = 53, ZFS_PROP_UNIQUE = 54, ZFS_PROP_OBJSETID = 55, ZFS_PROP_DEDUP = 56, ZFS_PROP_MLSLABEL = 57, ZFS_PROP_SYNC = 58, ZFS_PROP_DNODESIZE = 59, ZFS_PROP_REFRATIO = 60, ZFS_PROP_WRITTEN = 61, ZFS_PROP_CLONES = 62, ZFS_PROP_LOGICALUSED = 63, ZFS_PROP_LOGICALREFERENCED = 64, ZFS_PROP_INCONSISTENT = 65, ZFS_PROP_VOLMODE = 66, ZFS_PROP_FILESYSTEM_LIMIT = 67, ZFS_PROP_SNAPSHOT_LIMIT = 68, ZFS_PROP_FILESYSTEM_COUNT = 69, ZFS_PROP_SNAPSHOT_COUNT = 70, ZFS_PROP_SNAPDEV = 71, ZFS_PROP_ACLTYPE = 72, ZFS_PROP_SELINUX_CONTEXT = 73, ZFS_PROP_SELINUX_FSCONTEXT = 74, ZFS_PROP_SELINUX_DEFCONTEXT = 75, ZFS_PROP_SELINUX_ROOTCONTEXT = 76, ZFS_PROP_RELATIME = 77, ZFS_PROP_REDUNDANT_METADATA = 78, ZFS_PROP_OVERLAY = 79, ZFS_PROP_PREV_SNAP = 80, ZFS_PROP_RECEIVE_RESUME_TOKEN = 81, ZFS_PROP_ENCRYPTION = 82, ZFS_PROP_KEYLOCATION = 83, ZFS_PROP_KEYFORMAT = 84, ZFS_PROP_PBKDF2_SALT = 85, ZFS_PROP_PBKDF2_ITERS = 86, ZFS_PROP_ENCRYPTION_ROOT = 87, ZFS_PROP_KEY_GUID = 88, ZFS_PROP_KEYSTATUS = 89, ZFS_PROP_REMAPTXG = 90, ZFS_PROP_SPECIAL_SMALL_BLOCKS = 91, ZFS_PROP_IVSET_GUID = 92, ZFS_NUM_PROPS = 93, } enum ZPROP_CONT = _Anonymous_19.ZPROP_CONT; enum ZPROP_INVAL = _Anonymous_19.ZPROP_INVAL; enum ZFS_PROP_TYPE = _Anonymous_19.ZFS_PROP_TYPE; enum ZFS_PROP_CREATION = _Anonymous_19.ZFS_PROP_CREATION; enum ZFS_PROP_USED = _Anonymous_19.ZFS_PROP_USED; enum ZFS_PROP_AVAILABLE = _Anonymous_19.ZFS_PROP_AVAILABLE; enum ZFS_PROP_REFERENCED = _Anonymous_19.ZFS_PROP_REFERENCED; enum ZFS_PROP_COMPRESSRATIO = _Anonymous_19.ZFS_PROP_COMPRESSRATIO; enum ZFS_PROP_MOUNTED = _Anonymous_19.ZFS_PROP_MOUNTED; enum ZFS_PROP_ORIGIN = _Anonymous_19.ZFS_PROP_ORIGIN; enum ZFS_PROP_QUOTA = _Anonymous_19.ZFS_PROP_QUOTA; enum ZFS_PROP_RESERVATION = _Anonymous_19.ZFS_PROP_RESERVATION; enum ZFS_PROP_VOLSIZE = _Anonymous_19.ZFS_PROP_VOLSIZE; enum ZFS_PROP_VOLBLOCKSIZE = _Anonymous_19.ZFS_PROP_VOLBLOCKSIZE; enum ZFS_PROP_RECORDSIZE = _Anonymous_19.ZFS_PROP_RECORDSIZE; enum ZFS_PROP_MOUNTPOINT = _Anonymous_19.ZFS_PROP_MOUNTPOINT; enum ZFS_PROP_SHARENFS = _Anonymous_19.ZFS_PROP_SHARENFS; enum ZFS_PROP_CHECKSUM = _Anonymous_19.ZFS_PROP_CHECKSUM; enum ZFS_PROP_COMPRESSION = _Anonymous_19.ZFS_PROP_COMPRESSION; enum ZFS_PROP_ATIME = _Anonymous_19.ZFS_PROP_ATIME; enum ZFS_PROP_DEVICES = _Anonymous_19.ZFS_PROP_DEVICES; enum ZFS_PROP_EXEC = _Anonymous_19.ZFS_PROP_EXEC; enum ZFS_PROP_SETUID = _Anonymous_19.ZFS_PROP_SETUID; enum ZFS_PROP_READONLY = _Anonymous_19.ZFS_PROP_READONLY; enum ZFS_PROP_ZONED = _Anonymous_19.ZFS_PROP_ZONED; enum ZFS_PROP_SNAPDIR = _Anonymous_19.ZFS_PROP_SNAPDIR; enum ZFS_PROP_PRIVATE = _Anonymous_19.ZFS_PROP_PRIVATE; enum ZFS_PROP_ACLINHERIT = _Anonymous_19.ZFS_PROP_ACLINHERIT; enum ZFS_PROP_CREATETXG = _Anonymous_19.ZFS_PROP_CREATETXG; enum ZFS_PROP_NAME = _Anonymous_19.ZFS_PROP_NAME; enum ZFS_PROP_CANMOUNT = _Anonymous_19.ZFS_PROP_CANMOUNT; enum ZFS_PROP_ISCSIOPTIONS = _Anonymous_19.ZFS_PROP_ISCSIOPTIONS; enum ZFS_PROP_XATTR = _Anonymous_19.ZFS_PROP_XATTR; enum ZFS_PROP_NUMCLONES = _Anonymous_19.ZFS_PROP_NUMCLONES; enum ZFS_PROP_COPIES = _Anonymous_19.ZFS_PROP_COPIES; enum ZFS_PROP_VERSION = _Anonymous_19.ZFS_PROP_VERSION; enum ZFS_PROP_UTF8ONLY = _Anonymous_19.ZFS_PROP_UTF8ONLY; enum ZFS_PROP_NORMALIZE = _Anonymous_19.ZFS_PROP_NORMALIZE; enum ZFS_PROP_CASE = _Anonymous_19.ZFS_PROP_CASE; enum ZFS_PROP_VSCAN = _Anonymous_19.ZFS_PROP_VSCAN; enum ZFS_PROP_NBMAND = _Anonymous_19.ZFS_PROP_NBMAND; enum ZFS_PROP_SHARESMB = _Anonymous_19.ZFS_PROP_SHARESMB; enum ZFS_PROP_REFQUOTA = _Anonymous_19.ZFS_PROP_REFQUOTA; enum ZFS_PROP_REFRESERVATION = _Anonymous_19.ZFS_PROP_REFRESERVATION; enum ZFS_PROP_GUID = _Anonymous_19.ZFS_PROP_GUID; enum ZFS_PROP_PRIMARYCACHE = _Anonymous_19.ZFS_PROP_PRIMARYCACHE; enum ZFS_PROP_SECONDARYCACHE = _Anonymous_19.ZFS_PROP_SECONDARYCACHE; enum ZFS_PROP_USEDSNAP = _Anonymous_19.ZFS_PROP_USEDSNAP; enum ZFS_PROP_USEDDS = _Anonymous_19.ZFS_PROP_USEDDS; enum ZFS_PROP_USEDCHILD = _Anonymous_19.ZFS_PROP_USEDCHILD; enum ZFS_PROP_USEDREFRESERV = _Anonymous_19.ZFS_PROP_USEDREFRESERV; enum ZFS_PROP_USERACCOUNTING = _Anonymous_19.ZFS_PROP_USERACCOUNTING; enum ZFS_PROP_STMF_SHAREINFO = _Anonymous_19.ZFS_PROP_STMF_SHAREINFO; enum ZFS_PROP_DEFER_DESTROY = _Anonymous_19.ZFS_PROP_DEFER_DESTROY; enum ZFS_PROP_USERREFS = _Anonymous_19.ZFS_PROP_USERREFS; enum ZFS_PROP_LOGBIAS = _Anonymous_19.ZFS_PROP_LOGBIAS; enum ZFS_PROP_UNIQUE = _Anonymous_19.ZFS_PROP_UNIQUE; enum ZFS_PROP_OBJSETID = _Anonymous_19.ZFS_PROP_OBJSETID; enum ZFS_PROP_DEDUP = _Anonymous_19.ZFS_PROP_DEDUP; enum ZFS_PROP_MLSLABEL = _Anonymous_19.ZFS_PROP_MLSLABEL; enum ZFS_PROP_SYNC = _Anonymous_19.ZFS_PROP_SYNC; enum ZFS_PROP_DNODESIZE = _Anonymous_19.ZFS_PROP_DNODESIZE; enum ZFS_PROP_REFRATIO = _Anonymous_19.ZFS_PROP_REFRATIO; enum ZFS_PROP_WRITTEN = _Anonymous_19.ZFS_PROP_WRITTEN; enum ZFS_PROP_CLONES = _Anonymous_19.ZFS_PROP_CLONES; enum ZFS_PROP_LOGICALUSED = _Anonymous_19.ZFS_PROP_LOGICALUSED; enum ZFS_PROP_LOGICALREFERENCED = _Anonymous_19.ZFS_PROP_LOGICALREFERENCED; enum ZFS_PROP_INCONSISTENT = _Anonymous_19.ZFS_PROP_INCONSISTENT; enum ZFS_PROP_VOLMODE = _Anonymous_19.ZFS_PROP_VOLMODE; enum ZFS_PROP_FILESYSTEM_LIMIT = _Anonymous_19.ZFS_PROP_FILESYSTEM_LIMIT; enum ZFS_PROP_SNAPSHOT_LIMIT = _Anonymous_19.ZFS_PROP_SNAPSHOT_LIMIT; enum ZFS_PROP_FILESYSTEM_COUNT = _Anonymous_19.ZFS_PROP_FILESYSTEM_COUNT; enum ZFS_PROP_SNAPSHOT_COUNT = _Anonymous_19.ZFS_PROP_SNAPSHOT_COUNT; enum ZFS_PROP_SNAPDEV = _Anonymous_19.ZFS_PROP_SNAPDEV; enum ZFS_PROP_ACLTYPE = _Anonymous_19.ZFS_PROP_ACLTYPE; enum ZFS_PROP_SELINUX_CONTEXT = _Anonymous_19.ZFS_PROP_SELINUX_CONTEXT; enum ZFS_PROP_SELINUX_FSCONTEXT = _Anonymous_19.ZFS_PROP_SELINUX_FSCONTEXT; enum ZFS_PROP_SELINUX_DEFCONTEXT = _Anonymous_19.ZFS_PROP_SELINUX_DEFCONTEXT; enum ZFS_PROP_SELINUX_ROOTCONTEXT = _Anonymous_19.ZFS_PROP_SELINUX_ROOTCONTEXT; enum ZFS_PROP_RELATIME = _Anonymous_19.ZFS_PROP_RELATIME; enum ZFS_PROP_REDUNDANT_METADATA = _Anonymous_19.ZFS_PROP_REDUNDANT_METADATA; enum ZFS_PROP_OVERLAY = _Anonymous_19.ZFS_PROP_OVERLAY; enum ZFS_PROP_PREV_SNAP = _Anonymous_19.ZFS_PROP_PREV_SNAP; enum ZFS_PROP_RECEIVE_RESUME_TOKEN = _Anonymous_19.ZFS_PROP_RECEIVE_RESUME_TOKEN; enum ZFS_PROP_ENCRYPTION = _Anonymous_19.ZFS_PROP_ENCRYPTION; enum ZFS_PROP_KEYLOCATION = _Anonymous_19.ZFS_PROP_KEYLOCATION; enum ZFS_PROP_KEYFORMAT = _Anonymous_19.ZFS_PROP_KEYFORMAT; enum ZFS_PROP_PBKDF2_SALT = _Anonymous_19.ZFS_PROP_PBKDF2_SALT; enum ZFS_PROP_PBKDF2_ITERS = _Anonymous_19.ZFS_PROP_PBKDF2_ITERS; enum ZFS_PROP_ENCRYPTION_ROOT = _Anonymous_19.ZFS_PROP_ENCRYPTION_ROOT; enum ZFS_PROP_KEY_GUID = _Anonymous_19.ZFS_PROP_KEY_GUID; enum ZFS_PROP_KEYSTATUS = _Anonymous_19.ZFS_PROP_KEYSTATUS; enum ZFS_PROP_REMAPTXG = _Anonymous_19.ZFS_PROP_REMAPTXG; enum ZFS_PROP_SPECIAL_SMALL_BLOCKS = _Anonymous_19.ZFS_PROP_SPECIAL_SMALL_BLOCKS; enum ZFS_PROP_IVSET_GUID = _Anonymous_19.ZFS_PROP_IVSET_GUID; enum ZFS_NUM_PROPS = _Anonymous_19.ZFS_NUM_PROPS; alias zfs_prop_t = _Anonymous_19; enum dmu_objset_type { DMU_OST_NONE = 0, DMU_OST_META = 1, DMU_OST_ZFS = 2, DMU_OST_ZVOL = 3, DMU_OST_OTHER = 4, DMU_OST_ANY = 5, DMU_OST_NUMTYPES = 6, } enum DMU_OST_NONE = dmu_objset_type.DMU_OST_NONE; enum DMU_OST_META = dmu_objset_type.DMU_OST_META; enum DMU_OST_ZFS = dmu_objset_type.DMU_OST_ZFS; enum DMU_OST_ZVOL = dmu_objset_type.DMU_OST_ZVOL; enum DMU_OST_OTHER = dmu_objset_type.DMU_OST_OTHER; enum DMU_OST_ANY = dmu_objset_type.DMU_OST_ANY; enum DMU_OST_NUMTYPES = dmu_objset_type.DMU_OST_NUMTYPES; alias dmu_objset_type_t = dmu_objset_type; enum _Anonymous_20 { ZFS_TYPE_FILESYSTEM = 1, ZFS_TYPE_SNAPSHOT = 2, ZFS_TYPE_VOLUME = 4, ZFS_TYPE_POOL = 8, ZFS_TYPE_BOOKMARK = 16, } enum ZFS_TYPE_FILESYSTEM = _Anonymous_20.ZFS_TYPE_FILESYSTEM; enum ZFS_TYPE_SNAPSHOT = _Anonymous_20.ZFS_TYPE_SNAPSHOT; enum ZFS_TYPE_VOLUME = _Anonymous_20.ZFS_TYPE_VOLUME; enum ZFS_TYPE_POOL = _Anonymous_20.ZFS_TYPE_POOL; enum ZFS_TYPE_BOOKMARK = _Anonymous_20.ZFS_TYPE_BOOKMARK; alias zfs_type_t = _Anonymous_20; int nvpair_value_match(nvpair*, int, char*, char**) @nogc nothrow; int nvpair_value_match_regex(nvpair*, int, char*, re_pattern_buffer*, char**) @nogc nothrow; void nvlist_print(_IO_FILE*, nvlist*) @nogc nothrow; int nvlist_print_json(_IO_FILE*, nvlist*) @nogc nothrow; void dump_nvlist(nvlist*, int) @nogc nothrow; alias nvlist_prtctl_t = nvlist_prtctl*; struct nvlist_prtctl; enum nvlist_indent_mode { NVLIST_INDENT_ABS = 0, NVLIST_INDENT_TABBED = 1, } enum NVLIST_INDENT_ABS = nvlist_indent_mode.NVLIST_INDENT_ABS; enum NVLIST_INDENT_TABBED = nvlist_indent_mode.NVLIST_INDENT_TABBED; nvlist_prtctl* nvlist_prtctl_alloc() @nogc nothrow; void nvlist_prtctl_free(nvlist_prtctl*) @nogc nothrow; void nvlist_prt(nvlist*, nvlist_prtctl*) @nogc nothrow; void nvlist_prtctl_setdest(nvlist_prtctl*, _IO_FILE*) @nogc nothrow; _IO_FILE* nvlist_prtctl_getdest(nvlist_prtctl*) @nogc nothrow; void nvlist_prtctl_setindent(nvlist_prtctl*, nvlist_indent_mode, int, int) @nogc nothrow; void nvlist_prtctl_doindent(nvlist_prtctl*, int) @nogc nothrow; enum nvlist_prtctl_fmt { NVLIST_FMT_MEMBER_NAME = 0, NVLIST_FMT_MEMBER_POSTAMBLE = 1, NVLIST_FMT_BTWN_ARRAY = 2, } enum NVLIST_FMT_MEMBER_NAME = nvlist_prtctl_fmt.NVLIST_FMT_MEMBER_NAME; enum NVLIST_FMT_MEMBER_POSTAMBLE = nvlist_prtctl_fmt.NVLIST_FMT_MEMBER_POSTAMBLE; enum NVLIST_FMT_BTWN_ARRAY = nvlist_prtctl_fmt.NVLIST_FMT_BTWN_ARRAY; void nvlist_prtctl_setfmt(nvlist_prtctl*, nvlist_prtctl_fmt, const(char)*) @nogc nothrow; void nvlist_prtctl_dofmt(nvlist_prtctl*, nvlist_prtctl_fmt, ...) @nogc nothrow; alias wchar_t = int; void nvlist_prtctlop_boolean(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, int), void*) @nogc nothrow; void nvlist_prtctlop_boolean_value(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, int), void*) @nogc nothrow; void nvlist_prtctlop_byte(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ubyte), void*) @nogc nothrow; void nvlist_prtctlop_int8(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, byte), void*) @nogc nothrow; void nvlist_prtctlop_uint8(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ubyte), void*) @nogc nothrow; void nvlist_prtctlop_int16(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, short), void*) @nogc nothrow; void nvlist_prtctlop_uint16(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ushort), void*) @nogc nothrow; void nvlist_prtctlop_int32(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, int), void*) @nogc nothrow; void nvlist_prtctlop_uint32(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, uint), void*) @nogc nothrow; void nvlist_prtctlop_int64(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, c_long), void*) @nogc nothrow; void nvlist_prtctlop_uint64(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ulong), void*) @nogc nothrow; void nvlist_prtctlop_double(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, double), void*) @nogc nothrow; void nvlist_prtctlop_string(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, char*), void*) @nogc nothrow; void nvlist_prtctlop_hrtime(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ulong), void*) @nogc nothrow; void nvlist_prtctlop_nvlist(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, nvlist*), void*) @nogc nothrow; void nvlist_prtctlop_boolean_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, int*, uint), void*) @nogc nothrow; void nvlist_prtctlop_byte_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ubyte*, uint), void*) @nogc nothrow; void nvlist_prtctlop_int8_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, byte*, uint), void*) @nogc nothrow; void nvlist_prtctlop_uint8_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ubyte*, uint), void*) @nogc nothrow; void nvlist_prtctlop_int16_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, short*, uint), void*) @nogc nothrow; void nvlist_prtctlop_uint16_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ushort*, uint), void*) @nogc nothrow; void nvlist_prtctlop_int32_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, int*, uint), void*) @nogc nothrow; void nvlist_prtctlop_uint32_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, uint*, uint), void*) @nogc nothrow; void nvlist_prtctlop_int64_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, c_long*, uint), void*) @nogc nothrow; void nvlist_prtctlop_uint64_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, ulong*, uint), void*) @nogc nothrow; void nvlist_prtctlop_string_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, char**, uint), void*) @nogc nothrow; void nvlist_prtctlop_nvlist_array(nvlist_prtctl*, int function(nvlist_prtctl*, void*, nvlist*, const(char)*, nvlist**, uint), void*) @nogc nothrow; int libzfs_core_init() @nogc nothrow; void libzfs_core_fini() @nogc nothrow; enum lzc_dataset_type { LZC_DATSET_TYPE_ZFS = 2, LZC_DATSET_TYPE_ZVOL = 3, } enum LZC_DATSET_TYPE_ZFS = lzc_dataset_type.LZC_DATSET_TYPE_ZFS; enum LZC_DATSET_TYPE_ZVOL = lzc_dataset_type.LZC_DATSET_TYPE_ZVOL; int lzc_remap(const(char)*) @nogc nothrow; int lzc_snapshot(nvlist*, nvlist*, nvlist**) @nogc nothrow; int lzc_create(const(char)*, lzc_dataset_type, nvlist*, ubyte*, uint) @nogc nothrow; int lzc_clone(const(char)*, const(char)*, nvlist*) @nogc nothrow; int lzc_promote(const(char)*, char*, int) @nogc nothrow; int lzc_destroy_snaps(nvlist*, int, nvlist**) @nogc nothrow; int lzc_bookmark(nvlist*, nvlist**) @nogc nothrow; int lzc_get_bookmarks(const(char)*, nvlist*, nvlist**) @nogc nothrow; int lzc_destroy_bookmarks(nvlist*, nvlist**) @nogc nothrow; int lzc_load_key(const(char)*, int, ubyte*, uint) @nogc nothrow; int lzc_unload_key(const(char)*) @nogc nothrow; int lzc_change_key(const(char)*, ulong, nvlist*, ubyte*, uint) @nogc nothrow; int lzc_initialize(const(char)*, pool_initialize_func, nvlist*, nvlist**) @nogc nothrow; int lzc_trim(const(char)*, pool_trim_func, ulong, int, nvlist*, nvlist**) @nogc nothrow; int lzc_snaprange_space(const(char)*, const(char)*, ulong*) @nogc nothrow; int lzc_hold(nvlist*, int, nvlist**) @nogc nothrow; int lzc_release(nvlist*, nvlist**) @nogc nothrow; int lzc_get_holds(const(char)*, nvlist**) @nogc nothrow; enum lzc_send_flags { LZC_SEND_FLAG_EMBED_DATA = 1, LZC_SEND_FLAG_LARGE_BLOCK = 2, LZC_SEND_FLAG_COMPRESS = 4, LZC_SEND_FLAG_RAW = 8, } enum LZC_SEND_FLAG_EMBED_DATA = lzc_send_flags.LZC_SEND_FLAG_EMBED_DATA; enum LZC_SEND_FLAG_LARGE_BLOCK = lzc_send_flags.LZC_SEND_FLAG_LARGE_BLOCK; enum LZC_SEND_FLAG_COMPRESS = lzc_send_flags.LZC_SEND_FLAG_COMPRESS; enum LZC_SEND_FLAG_RAW = lzc_send_flags.LZC_SEND_FLAG_RAW; int lzc_send(const(char)*, const(char)*, int, lzc_send_flags) @nogc nothrow; int lzc_send_resume(const(char)*, const(char)*, int, lzc_send_flags, ulong, ulong) @nogc nothrow; int lzc_send_space(const(char)*, const(char)*, lzc_send_flags, ulong*) @nogc nothrow; struct dmu_replay_record; int lzc_receive(const(char)*, nvlist*, const(char)*, int, int, int) @nogc nothrow; int lzc_receive_resumable(const(char)*, nvlist*, const(char)*, int, int, int) @nogc nothrow; int lzc_receive_with_header(const(char)*, nvlist*, const(char)*, int, int, int, int, const(dmu_replay_record)*) @nogc nothrow; int lzc_receive_one(const(char)*, nvlist*, const(char)*, int, int, int, int, const(dmu_replay_record)*, int, ulong*, ulong*, ulong*, nvlist**) @nogc nothrow; int lzc_receive_with_cmdprops(const(char)*, nvlist*, nvlist*, ubyte*, uint, const(char)*, int, int, int, int, const(dmu_replay_record)*, int, ulong*, ulong*, ulong*, nvlist**) @nogc nothrow; int lzc_exists(const(char)*) @nogc nothrow; int lzc_rollback(const(char)*, char*, int) @nogc nothrow; int lzc_rollback_to(const(char)*, const(char)*) @nogc nothrow; int lzc_rename(const(char)*, const(char)*) @nogc nothrow; int lzc_destroy(const(char)*) @nogc nothrow; int lzc_channel_program(const(char)*, const(char)*, ulong, ulong, nvlist*, nvlist**) @nogc nothrow; int lzc_channel_program_nosync(const(char)*, const(char)*, ulong, ulong, nvlist*, nvlist**) @nogc nothrow; int lzc_sync(const(char)*, nvlist*, nvlist**) @nogc nothrow; int lzc_reopen(const(char)*, int) @nogc nothrow; int lzc_pool_checkpoint(const(char)*) @nogc nothrow; int lzc_pool_checkpoint_discard(const(char)*) @nogc nothrow; pragma(mangle, "alloca") void* alloca_(c_ulong) @nogc nothrow; alias size_t = c_ulong; struct ucontext_t { @DppOffsetSize(0,8) c_ulong uc_flags; @DppOffsetSize(8,8) ucontext_t* uc_link; @DppOffsetSize(16,24) stack_t uc_stack; @DppOffsetSize(40,256) mcontext_t uc_mcontext; @DppOffsetSize(296,128) __sigset_t uc_sigmask; @DppOffsetSize(424,512) _libc_fpstate __fpregs_mem; @DppOffsetSize(936,32) ulong[4] __ssp; } struct mcontext_t { @DppOffsetSize(0,184) long[23] gregs; @DppOffsetSize(184,8) _libc_fpstate* fpregs; @DppOffsetSize(192,64) ulong[8] __reserved1; } alias fpregset_t = _libc_fpstate*; struct _libc_fpstate { @DppOffsetSize(0,2) ushort cwd; @DppOffsetSize(2,2) ushort swd; @DppOffsetSize(4,2) ushort ftw; @DppOffsetSize(6,2) ushort fop; @DppOffsetSize(8,8) c_ulong rip; @DppOffsetSize(16,8) c_ulong rdp; @DppOffsetSize(24,4) uint mxcsr; @DppOffsetSize(28,4) uint mxcr_mask; @DppOffsetSize(32,128) _libc_fpxreg[8] _st; @DppOffsetSize(160,256) _libc_xmmreg[16] _xmm; @DppOffsetSize(416,96) uint[24] __glibc_reserved1; } struct _libc_xmmreg { @DppOffsetSize(0,16) uint[4] element; } struct _libc_fpxreg { @DppOffsetSize(0,8) ushort[4] significand; @DppOffsetSize(8,2) ushort exponent; @DppOffsetSize(10,6) ushort[3] __glibc_reserved1; } alias gregset_t = long[23]; alias greg_t = long; alias fsfilcnt_t = c_ulong; alias fsblkcnt_t = c_ulong; alias blkcnt_t = c_long; alias blksize_t = c_long; alias register_t = c_long; alias u_int64_t = c_ulong; alias u_int32_t = uint; alias u_int16_t = ushort; alias u_int8_t = ubyte; alias key_t = int; alias caddr_t = char*; alias daddr_t = int; alias ssize_t = c_long; alias id_t = uint; alias pid_t = int; alias off_t = c_long; alias uid_t = uint; alias nlink_t = c_ulong; alias mode_t = uint; alias gid_t = uint; alias dev_t = c_ulong; alias ino_t = c_ulong; alias loff_t = c_long; alias fsid_t = __fsid_t; alias u_quad_t = c_ulong; alias quad_t = c_long; alias u_long = c_ulong; alias u_int = uint; alias u_short = ushort; alias u_char = ubyte; int futimes(int, const(timeval)*) @nogc nothrow; int lutimes(const(char)*, const(timeval)*) @nogc nothrow; int utimes(const(char)*, const(timeval)*) @nogc nothrow; int setitimer(int, const(itimerval)*, itimerval*) @nogc nothrow; int getitimer(int, itimerval*) @nogc nothrow; alias __itimer_which_t = int; struct itimerval { @DppOffsetSize(0,16) timeval it_interval; @DppOffsetSize(16,16) timeval it_value; } enum __itimer_which { ITIMER_REAL = 0, ITIMER_VIRTUAL = 1, ITIMER_PROF = 2, } enum ITIMER_REAL = __itimer_which.ITIMER_REAL; enum ITIMER_VIRTUAL = __itimer_which.ITIMER_VIRTUAL; enum ITIMER_PROF = __itimer_which.ITIMER_PROF; int adjtime(const(timeval)*, timeval*) @nogc nothrow; int settimeofday(const(timeval)*, const(timezone)*) @nogc nothrow; int gettimeofday(timeval*, timezone*) @nogc nothrow; alias __timezone_ptr_t = timezone*; struct timezone { @DppOffsetSize(0,4) int tz_minuteswest; @DppOffsetSize(4,4) int tz_dsttime; } alias _Float32 = float; alias _Float64 = double; alias _Float32x = double; int pselect(int, fd_set*, fd_set*, fd_set*, const(timespec)*, const(__sigset_t)*) @nogc nothrow; alias _Float64x = real; int select(int, fd_set*, fd_set*, fd_set*, timeval*) @nogc nothrow; alias fd_mask = c_long; struct fd_set { @DppOffsetSize(0,128) c_long[16] __fds_bits; } alias __fd_mask = c_long; alias suseconds_t = c_long; int getloadavg(double*, int) @nogc nothrow; int getsubopt(char**, char**, char**) @nogc nothrow; struct __pthread_rwlock_arch_t { @DppOffsetSize(0,4) uint __readers; @DppOffsetSize(4,4) uint __writers; @DppOffsetSize(8,4) uint __wrphase_futex; @DppOffsetSize(12,4) uint __writers_futex; @DppOffsetSize(16,4) uint __pad3; @DppOffsetSize(20,4) uint __pad4; @DppOffsetSize(24,4) int __cur_writer; @DppOffsetSize(28,4) int __shared; @DppOffsetSize(32,1) byte __rwelision; @DppOffsetSize(33,7) ubyte[7] __pad1; @DppOffsetSize(40,8) c_ulong __pad2; @DppOffsetSize(48,4) uint __flags; } int rpmatch(const(char)*) @nogc nothrow; alias pthread_t = c_ulong; union pthread_mutexattr_t { @DppOffsetSize(0,4) char[4] __size; @DppOffsetSize(0,4) int __align; } union pthread_condattr_t { @DppOffsetSize(0,4) char[4] __size; @DppOffsetSize(0,4) int __align; } alias pthread_key_t = uint; alias pthread_once_t = int; union pthread_attr_t { @DppOffsetSize(0,56) char[56] __size; @DppOffsetSize(0,8) c_long __align; } union pthread_mutex_t { @DppOffsetSize(0,40) __pthread_mutex_s __data; @DppOffsetSize(0,40) char[40] __size; @DppOffsetSize(0,8) c_long __align; } union pthread_cond_t { @DppOffsetSize(0,48) __pthread_cond_s __data; @DppOffsetSize(0,48) char[48] __size; @DppOffsetSize(0,8) long __align; } union pthread_rwlock_t { @DppOffsetSize(0,56) __pthread_rwlock_arch_t __data; @DppOffsetSize(0,56) char[56] __size; @DppOffsetSize(0,8) c_long __align; } union pthread_rwlockattr_t { @DppOffsetSize(0,8) char[8] __size; @DppOffsetSize(0,8) c_long __align; } alias pthread_spinlock_t = int; union pthread_barrier_t { @DppOffsetSize(0,32) char[32] __size; @DppOffsetSize(0,8) c_long __align; } union pthread_barrierattr_t { @DppOffsetSize(0,4) char[4] __size; @DppOffsetSize(0,4) int __align; } c_ulong wcstombs(char*, const(int)*, c_ulong) @nogc nothrow; c_ulong mbstowcs(int*, const(char)*, c_ulong) @nogc nothrow; int wctomb(char*, int) @nogc nothrow; struct sigaction { static union _Anonymous_21 { @DppOffsetSize(0,8) void function(int) sa_handler; @DppOffsetSize(0,8) void function(int, siginfo_t*, void*) sa_sigaction; } @DppOffsetSize(0,8) _Anonymous_21 __sigaction_handler; @DppOffsetSize(8,128) __sigset_t sa_mask; @DppOffsetSize(136,4) int sa_flags; @DppOffsetSize(144,8) void function() sa_restorer; } int mbtowc(int*, const(char)*, c_ulong) @nogc nothrow; int mblen(const(char)*, c_ulong) @nogc nothrow; int qfcvt_r(real, int, int*, int*, char*, c_ulong) @nogc nothrow; int qecvt_r(real, int, int*, int*, char*, c_ulong) @nogc nothrow; int fcvt_r(double, int, int*, int*, char*, c_ulong) @nogc nothrow; int ecvt_r(double, int, int*, int*, char*, c_ulong) @nogc nothrow; char* qgcvt(real, int, char*) @nogc nothrow; struct _fpx_sw_bytes { @DppOffsetSize(0,4) uint magic1; @DppOffsetSize(4,4) uint extended_size; @DppOffsetSize(8,8) c_ulong xstate_bv; @DppOffsetSize(16,4) uint xstate_size; @DppOffsetSize(20,28) uint[7] __glibc_reserved1; } struct _fpreg { @DppOffsetSize(0,8) ushort[4] significand; @DppOffsetSize(8,2) ushort exponent; } struct _fpxreg { @DppOffsetSize(0,8) ushort[4] significand; @DppOffsetSize(8,2) ushort exponent; @DppOffsetSize(10,6) ushort[3] __glibc_reserved1; } struct _xmmreg { @DppOffsetSize(0,16) uint[4] element; } struct _fpstate { @DppOffsetSize(0,2) ushort cwd; @DppOffsetSize(2,2) ushort swd; @DppOffsetSize(4,2) ushort ftw; @DppOffsetSize(6,2) ushort fop; @DppOffsetSize(8,8) c_ulong rip; @DppOffsetSize(16,8) c_ulong rdp; @DppOffsetSize(24,4) uint mxcsr; @DppOffsetSize(28,4) uint mxcr_mask; @DppOffsetSize(32,128) _fpxreg[8] _st; @DppOffsetSize(160,256) _xmmreg[16] _xmm; @DppOffsetSize(416,96) uint[24] __glibc_reserved1; } struct sigcontext { @DppOffsetSize(0,8) c_ulong r8; @DppOffsetSize(8,8) c_ulong r9; @DppOffsetSize(16,8) c_ulong r10; @DppOffsetSize(24,8) c_ulong r11; @DppOffsetSize(32,8) c_ulong r12; @DppOffsetSize(40,8) c_ulong r13; @DppOffsetSize(48,8) c_ulong r14; @DppOffsetSize(56,8) c_ulong r15; @DppOffsetSize(64,8) c_ulong rdi; @DppOffsetSize(72,8) c_ulong rsi; @DppOffsetSize(80,8) c_ulong rbp; @DppOffsetSize(88,8) c_ulong rbx; @DppOffsetSize(96,8) c_ulong rdx; @DppOffsetSize(104,8) c_ulong rax; @DppOffsetSize(112,8) c_ulong rcx; @DppOffsetSize(120,8) c_ulong rsp; @DppOffsetSize(128,8) c_ulong rip; @DppOffsetSize(136,8) c_ulong eflags; @DppOffsetSize(144,2) ushort cs; @DppOffsetSize(146,2) ushort gs; @DppOffsetSize(148,2) ushort fs; @DppOffsetSize(150,2) ushort __pad0; @DppOffsetSize(152,8) c_ulong err; @DppOffsetSize(160,8) c_ulong trapno; @DppOffsetSize(168,8) c_ulong oldmask; @DppOffsetSize(176,8) c_ulong cr2; static union _Anonymous_22 { @DppOffsetSize(0,8) _fpstate* fpstate; @DppOffsetSize(0,8) c_ulong __fpstate_word; } _Anonymous_22 _anonymous_23; auto fpstate() @property @nogc pure nothrow { return _anonymous_23.fpstate; } void fpstate(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_23.fpstate = val; } auto __fpstate_word() @property @nogc pure nothrow { return _anonymous_23.__fpstate_word; } void __fpstate_word(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_23.__fpstate_word = val; } @DppOffsetSize(192,64) c_ulong[8] __reserved1; } struct _xsave_hdr { @DppOffsetSize(0,8) c_ulong xstate_bv; @DppOffsetSize(8,16) c_ulong[2] __glibc_reserved1; @DppOffsetSize(24,40) c_ulong[5] __glibc_reserved2; } struct _ymmh_state { @DppOffsetSize(0,256) uint[64] ymmh_space; } struct _xstate { @DppOffsetSize(0,512) _fpstate fpstate; @DppOffsetSize(512,64) _xsave_hdr xstate_hdr; @DppOffsetSize(576,256) _ymmh_state ymmh; } enum _Anonymous_24 { SIGEV_SIGNAL = 0, SIGEV_NONE = 1, SIGEV_THREAD = 2, SIGEV_THREAD_ID = 4, } enum SIGEV_SIGNAL = _Anonymous_24.SIGEV_SIGNAL; enum SIGEV_NONE = _Anonymous_24.SIGEV_NONE; enum SIGEV_THREAD = _Anonymous_24.SIGEV_THREAD; enum SIGEV_THREAD_ID = _Anonymous_24.SIGEV_THREAD_ID; char* qfcvt(real, int, int*, int*) @nogc nothrow; char* qecvt(real, int, int*, int*) @nogc nothrow; enum _Anonymous_25 { SI_ASYNCNL = -60, SI_DETHREAD = -7, SI_TKILL = -6, SI_SIGIO = -5, SI_ASYNCIO = -4, SI_MESGQ = -3, SI_TIMER = -2, SI_QUEUE = -1, SI_USER = 0, SI_KERNEL = 128, } enum SI_ASYNCNL = _Anonymous_25.SI_ASYNCNL; enum SI_DETHREAD = _Anonymous_25.SI_DETHREAD; enum SI_TKILL = _Anonymous_25.SI_TKILL; enum SI_SIGIO = _Anonymous_25.SI_SIGIO; enum SI_ASYNCIO = _Anonymous_25.SI_ASYNCIO; enum SI_MESGQ = _Anonymous_25.SI_MESGQ; enum SI_TIMER = _Anonymous_25.SI_TIMER; enum SI_QUEUE = _Anonymous_25.SI_QUEUE; enum SI_USER = _Anonymous_25.SI_USER; enum SI_KERNEL = _Anonymous_25.SI_KERNEL; char* gcvt(double, int, char*) @nogc nothrow; char* fcvt(double, int, int*, int*) @nogc nothrow; enum _Anonymous_26 { ILL_ILLOPC = 1, ILL_ILLOPN = 2, ILL_ILLADR = 3, ILL_ILLTRP = 4, ILL_PRVOPC = 5, ILL_PRVREG = 6, ILL_COPROC = 7, ILL_BADSTK = 8, ILL_BADIADDR = 9, } enum ILL_ILLOPC = _Anonymous_26.ILL_ILLOPC; enum ILL_ILLOPN = _Anonymous_26.ILL_ILLOPN; enum ILL_ILLADR = _Anonymous_26.ILL_ILLADR; enum ILL_ILLTRP = _Anonymous_26.ILL_ILLTRP; enum ILL_PRVOPC = _Anonymous_26.ILL_PRVOPC; enum ILL_PRVREG = _Anonymous_26.ILL_PRVREG; enum ILL_COPROC = _Anonymous_26.ILL_COPROC; enum ILL_BADSTK = _Anonymous_26.ILL_BADSTK; enum ILL_BADIADDR = _Anonymous_26.ILL_BADIADDR; char* ecvt(double, int, int*, int*) @nogc nothrow; lldiv_t lldiv(long, long) @nogc nothrow; enum _Anonymous_27 { FPE_INTDIV = 1, FPE_INTOVF = 2, FPE_FLTDIV = 3, FPE_FLTOVF = 4, FPE_FLTUND = 5, FPE_FLTRES = 6, FPE_FLTINV = 7, FPE_FLTSUB = 8, FPE_FLTUNK = 14, FPE_CONDTRAP = 15, } enum FPE_INTDIV = _Anonymous_27.FPE_INTDIV; enum FPE_INTOVF = _Anonymous_27.FPE_INTOVF; enum FPE_FLTDIV = _Anonymous_27.FPE_FLTDIV; enum FPE_FLTOVF = _Anonymous_27.FPE_FLTOVF; enum FPE_FLTUND = _Anonymous_27.FPE_FLTUND; enum FPE_FLTRES = _Anonymous_27.FPE_FLTRES; enum FPE_FLTINV = _Anonymous_27.FPE_FLTINV; enum FPE_FLTSUB = _Anonymous_27.FPE_FLTSUB; enum FPE_FLTUNK = _Anonymous_27.FPE_FLTUNK; enum FPE_CONDTRAP = _Anonymous_27.FPE_CONDTRAP; ldiv_t ldiv(c_long, c_long) @nogc nothrow; div_t div(int, int) @nogc nothrow; long llabs(long) @nogc nothrow; enum _Anonymous_28 { SEGV_MAPERR = 1, SEGV_ACCERR = 2, SEGV_BNDERR = 3, SEGV_PKUERR = 4, SEGV_ACCADI = 5, SEGV_ADIDERR = 6, SEGV_ADIPERR = 7, } enum SEGV_MAPERR = _Anonymous_28.SEGV_MAPERR; enum SEGV_ACCERR = _Anonymous_28.SEGV_ACCERR; enum SEGV_BNDERR = _Anonymous_28.SEGV_BNDERR; enum SEGV_PKUERR = _Anonymous_28.SEGV_PKUERR; enum SEGV_ACCADI = _Anonymous_28.SEGV_ACCADI; enum SEGV_ADIDERR = _Anonymous_28.SEGV_ADIDERR; enum SEGV_ADIPERR = _Anonymous_28.SEGV_ADIPERR; c_long labs(c_long) @nogc nothrow; int abs(int) @nogc nothrow; void qsort(void*, c_ulong, c_ulong, int function(const(void)*, const(void)*)) @nogc nothrow; enum _Anonymous_29 { BUS_ADRALN = 1, BUS_ADRERR = 2, BUS_OBJERR = 3, BUS_MCEERR_AR = 4, BUS_MCEERR_AO = 5, } enum BUS_ADRALN = _Anonymous_29.BUS_ADRALN; enum BUS_ADRERR = _Anonymous_29.BUS_ADRERR; enum BUS_OBJERR = _Anonymous_29.BUS_OBJERR; enum BUS_MCEERR_AR = _Anonymous_29.BUS_MCEERR_AR; enum BUS_MCEERR_AO = _Anonymous_29.BUS_MCEERR_AO; void* bsearch(const(void)*, const(void)*, c_ulong, c_ulong, int function(const(void)*, const(void)*)) @nogc nothrow; alias __compar_fn_t = int function(const(void)*, const(void)*); enum _Anonymous_30 { CLD_EXITED = 1, CLD_KILLED = 2, CLD_DUMPED = 3, CLD_TRAPPED = 4, CLD_STOPPED = 5, CLD_CONTINUED = 6, } enum CLD_EXITED = _Anonymous_30.CLD_EXITED; enum CLD_KILLED = _Anonymous_30.CLD_KILLED; enum CLD_DUMPED = _Anonymous_30.CLD_DUMPED; enum CLD_TRAPPED = _Anonymous_30.CLD_TRAPPED; enum CLD_STOPPED = _Anonymous_30.CLD_STOPPED; enum CLD_CONTINUED = _Anonymous_30.CLD_CONTINUED; char* realpath(const(char)*, char*) @nogc nothrow; int system(const(char)*) @nogc nothrow; enum _Anonymous_31 { POLL_IN = 1, POLL_OUT = 2, POLL_MSG = 3, POLL_ERR = 4, POLL_PRI = 5, POLL_HUP = 6, } enum POLL_IN = _Anonymous_31.POLL_IN; enum POLL_OUT = _Anonymous_31.POLL_OUT; enum POLL_MSG = _Anonymous_31.POLL_MSG; enum POLL_ERR = _Anonymous_31.POLL_ERR; enum POLL_PRI = _Anonymous_31.POLL_PRI; enum POLL_HUP = _Anonymous_31.POLL_HUP; char* mkdtemp(char*) @nogc nothrow; int mkstemps(char*, int) @nogc nothrow; int mkstemp(char*) @nogc nothrow; char* mktemp(char*) @nogc nothrow; int clearenv() @nogc nothrow; int unsetenv(const(char)*) @nogc nothrow; int setenv(const(char)*, const(char)*, int) @nogc nothrow; int putenv(char*) @nogc nothrow; char* getenv(const(char)*) @nogc nothrow; void _Exit(int) @nogc nothrow; void quick_exit(int) @nogc nothrow; void exit(int) @nogc nothrow; int on_exit(void function(int, void*), void*) @nogc nothrow; int at_quick_exit(void function()) @nogc nothrow; int atexit(void function()) @nogc nothrow; void abort() @nogc nothrow; void* aligned_alloc(c_ulong, c_ulong) @nogc nothrow; int pthread_sigmask(int, const(__sigset_t)*, __sigset_t*) @nogc nothrow; int pthread_kill(c_ulong, int) @nogc nothrow; enum _Anonymous_32 { SS_ONSTACK = 1, SS_DISABLE = 2, } enum SS_ONSTACK = _Anonymous_32.SS_ONSTACK; enum SS_DISABLE = _Anonymous_32.SS_DISABLE; int posix_memalign(void**, c_ulong, c_ulong) @nogc nothrow; alias int8_t = byte; void* valloc(c_ulong) @nogc nothrow; extern __gshared int sys_nerr; extern __gshared const(const(char)*)[0] sys_errlist; alias __pthread_list_t = __pthread_internal_list; struct __pthread_internal_list { @DppOffsetSize(0,8) __pthread_internal_list* __prev; @DppOffsetSize(8,8) __pthread_internal_list* __next; } void free(void*) @nogc nothrow; struct __pthread_mutex_s { @DppOffsetSize(0,4) int __lock; @DppOffsetSize(4,4) uint __count; @DppOffsetSize(8,4) int __owner; @DppOffsetSize(12,4) uint __nusers; @DppOffsetSize(16,4) int __kind; @DppOffsetSize(20,2) short __spins; @DppOffsetSize(22,2) short __elision; @DppOffsetSize(24,16) __pthread_internal_list __list; } struct __pthread_cond_s { static union _Anonymous_33 { @DppOffsetSize(0,8) ulong __wseq; static struct _Anonymous_34 { @DppOffsetSize(0,4) uint __low; @DppOffsetSize(4,4) uint __high; } @DppOffsetSize(0,8) _Anonymous_34 __wseq32; } _Anonymous_33 _anonymous_35; auto __wseq() @property @nogc pure nothrow { return _anonymous_35.__wseq; } void __wseq(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_35.__wseq = val; } auto __wseq32() @property @nogc pure nothrow { return _anonymous_35.__wseq32; } void __wseq32(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_35.__wseq32 = val; } static union _Anonymous_36 { @DppOffsetSize(0,8) ulong __g1_start; static struct _Anonymous_37 { @DppOffsetSize(0,4) uint __low; @DppOffsetSize(4,4) uint __high; } @DppOffsetSize(0,8) _Anonymous_37 __g1_start32; } _Anonymous_36 _anonymous_38; auto __g1_start() @property @nogc pure nothrow { return _anonymous_38.__g1_start; } void __g1_start(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_38.__g1_start = val; } auto __g1_start32() @property @nogc pure nothrow { return _anonymous_38.__g1_start32; } void __g1_start32(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_38.__g1_start32 = val; } @DppOffsetSize(16,8) uint[2] __g_refs; @DppOffsetSize(24,8) uint[2] __g_size; @DppOffsetSize(32,4) uint __g1_orig_size; @DppOffsetSize(36,4) uint __wrefs; @DppOffsetSize(40,8) uint[2] __g_signals; } void* reallocarray(void*, c_ulong, c_ulong) @nogc nothrow; alias __u_char = ubyte; alias __u_short = ushort; alias __u_int = uint; alias __u_long = c_ulong; alias __int8_t = byte; alias __uint8_t = ubyte; alias __int16_t = short; alias __uint16_t = ushort; alias __int32_t = int; alias __uint32_t = uint; alias __int64_t = c_long; alias __uint64_t = c_ulong; alias __int_least8_t = byte; alias __uint_least8_t = ubyte; alias __int_least16_t = short; alias __uint_least16_t = ushort; alias __int_least32_t = int; alias __uint_least32_t = uint; alias __int_least64_t = c_long; alias __uint_least64_t = c_ulong; alias __quad_t = c_long; alias __u_quad_t = c_ulong; alias __intmax_t = c_long; alias __uintmax_t = c_ulong; void* realloc(void*, c_ulong) @nogc nothrow; void* calloc(c_ulong, c_ulong) @nogc nothrow; void* malloc(c_ulong) @nogc nothrow; int lcong48_r(ushort*, drand48_data*) @nogc nothrow; alias __dev_t = c_ulong; alias __uid_t = uint; alias __gid_t = uint; alias __ino_t = c_ulong; alias __ino64_t = c_ulong; alias __mode_t = uint; alias __nlink_t = c_ulong; alias __off_t = c_long; alias __off64_t = c_long; alias __pid_t = int; struct __fsid_t { @DppOffsetSize(0,8) int[2] __val; } alias __clock_t = c_long; alias __rlim_t = c_ulong; alias __rlim64_t = c_ulong; alias __id_t = uint; alias __time_t = c_long; alias __useconds_t = uint; alias __suseconds_t = c_long; alias __daddr_t = int; alias __key_t = int; alias __clockid_t = int; alias __timer_t = void*; alias __blksize_t = c_long; alias __blkcnt_t = c_long; alias __blkcnt64_t = c_long; alias __fsblkcnt_t = c_ulong; alias __fsblkcnt64_t = c_ulong; alias __fsfilcnt_t = c_ulong; alias __fsfilcnt64_t = c_ulong; alias __fsword_t = c_long; alias __ssize_t = c_long; alias __syscall_slong_t = c_long; alias __syscall_ulong_t = c_ulong; alias __loff_t = c_long; alias __caddr_t = char*; alias __intptr_t = c_long; alias __socklen_t = uint; alias __sig_atomic_t = int; int seed48_r(ushort*, drand48_data*) @nogc nothrow; alias FILE = _IO_FILE; struct _IO_FILE { @DppOffsetSize(0,4) int _flags; @DppOffsetSize(8,8) char* _IO_read_ptr; @DppOffsetSize(16,8) char* _IO_read_end; @DppOffsetSize(24,8) char* _IO_read_base; @DppOffsetSize(32,8) char* _IO_write_base; @DppOffsetSize(40,8) char* _IO_write_ptr; @DppOffsetSize(48,8) char* _IO_write_end; @DppOffsetSize(56,8) char* _IO_buf_base; @DppOffsetSize(64,8) char* _IO_buf_end; @DppOffsetSize(72,8) char* _IO_save_base; @DppOffsetSize(80,8) char* _IO_backup_base; @DppOffsetSize(88,8) char* _IO_save_end; @DppOffsetSize(96,8) _IO_marker* _markers; @DppOffsetSize(104,8) _IO_FILE* _chain; @DppOffsetSize(112,4) int _fileno; @DppOffsetSize(116,4) int _flags2; @DppOffsetSize(120,8) c_long _old_offset; @DppOffsetSize(128,2) ushort _cur_column; @DppOffsetSize(130,1) byte _vtable_offset; @DppOffsetSize(131,1) char[1] _shortbuf; @DppOffsetSize(136,8) void* _lock; @DppOffsetSize(144,8) c_long _offset; @DppOffsetSize(152,8) _IO_codecvt* _codecvt; @DppOffsetSize(160,8) _IO_wide_data* _wide_data; @DppOffsetSize(168,8) _IO_FILE* _freeres_list; @DppOffsetSize(176,8) void* _freeres_buf; @DppOffsetSize(184,8) c_ulong __pad5; @DppOffsetSize(192,4) int _mode; @DppOffsetSize(196,20) char[20] _unused2; } alias __FILE = _IO_FILE; int srand48_r(c_long, drand48_data*) @nogc nothrow; alias __fpos64_t = _G_fpos64_t; struct _G_fpos64_t { @DppOffsetSize(0,8) c_long __pos; @DppOffsetSize(8,8) __mbstate_t __state; } alias __fpos_t = _G_fpos_t; struct _G_fpos_t { @DppOffsetSize(0,8) c_long __pos; @DppOffsetSize(8,8) __mbstate_t __state; } struct __mbstate_t { @DppOffsetSize(0,4) int __count; static union _Anonymous_39 { @DppOffsetSize(0,4) uint __wch; @DppOffsetSize(0,4) char[4] __wchb; } @DppOffsetSize(4,4) _Anonymous_39 __value; } int jrand48_r(ushort*, drand48_data*, c_long*) @nogc nothrow; struct __sigset_t { @DppOffsetSize(0,128) c_ulong[16] __val; } union sigval { @DppOffsetSize(0,4) int sival_int; @DppOffsetSize(0,8) void* sival_ptr; } alias __sigval_t = sigval; int mrand48_r(drand48_data*, c_long*) @nogc nothrow; alias clock_t = c_long; alias clockid_t = int; alias sig_atomic_t = int; int nrand48_r(ushort*, drand48_data*, c_long*) @nogc nothrow; alias sigevent_t = sigevent; struct sigevent { @DppOffsetSize(0,8) sigval sigev_value; @DppOffsetSize(8,4) int sigev_signo; @DppOffsetSize(12,4) int sigev_notify; static union _Anonymous_40 { @DppOffsetSize(0,48) int[12] _pad; @DppOffsetSize(0,4) int _tid; static struct _Anonymous_41 { @DppOffsetSize(0,8) void function(sigval) _function; @DppOffsetSize(8,8) pthread_attr_t* _attribute; } @DppOffsetSize(0,16) _Anonymous_41 _sigev_thread; } @DppOffsetSize(16,48) _Anonymous_40 _sigev_un; } int lrand48_r(drand48_data*, c_long*) @nogc nothrow; int erand48_r(ushort*, drand48_data*, double*) @nogc nothrow; int drand48_r(drand48_data*, double*) @nogc nothrow; struct drand48_data { @DppOffsetSize(0,6) ushort[3] __x; @DppOffsetSize(6,6) ushort[3] __old_x; @DppOffsetSize(12,2) ushort __c; @DppOffsetSize(14,2) ushort __init; @DppOffsetSize(16,8) ulong __a; } struct siginfo_t { @DppOffsetSize(0,4) int si_signo; @DppOffsetSize(4,4) int si_errno; @DppOffsetSize(8,4) int si_code; @DppOffsetSize(12,4) int __pad0; static union _Anonymous_42 { @DppOffsetSize(0,112) int[28] _pad; static struct _Anonymous_43 { @DppOffsetSize(0,4) int si_pid; @DppOffsetSize(4,4) uint si_uid; } @DppOffsetSize(0,8) _Anonymous_43 _kill; static struct _Anonymous_44 { @DppOffsetSize(0,4) int si_tid; @DppOffsetSize(4,4) int si_overrun; @DppOffsetSize(8,8) sigval si_sigval; } @DppOffsetSize(0,16) _Anonymous_44 _timer; static struct _Anonymous_45 { @DppOffsetSize(0,4) int si_pid; @DppOffsetSize(4,4) uint si_uid; @DppOffsetSize(8,8) sigval si_sigval; } @DppOffsetSize(0,16) _Anonymous_45 _rt; static struct _Anonymous_46 { @DppOffsetSize(0,4) int si_pid; @DppOffsetSize(4,4) uint si_uid; @DppOffsetSize(8,4) int si_status; @DppOffsetSize(16,8) c_long si_utime; @DppOffsetSize(24,8) c_long si_stime; } @DppOffsetSize(0,32) _Anonymous_46 _sigchld; static struct _Anonymous_47 { @DppOffsetSize(0,8) void* si_addr; @DppOffsetSize(8,2) short si_addr_lsb; static union _Anonymous_48 { static struct _Anonymous_49 { @DppOffsetSize(0,8) void* _lower; @DppOffsetSize(8,8) void* _upper; } @DppOffsetSize(0,16) _Anonymous_49 _addr_bnd; @DppOffsetSize(0,4) uint _pkey; } @DppOffsetSize(16,16) _Anonymous_48 _bounds; } @DppOffsetSize(0,32) _Anonymous_47 _sigfault; static struct _Anonymous_50 { @DppOffsetSize(0,8) c_long si_band; @DppOffsetSize(8,4) int si_fd; } @DppOffsetSize(0,16) _Anonymous_50 _sigpoll; static struct _Anonymous_51 { @DppOffsetSize(0,8) void* _call_addr; @DppOffsetSize(8,4) int _syscall; @DppOffsetSize(12,4) uint _arch; } @DppOffsetSize(0,16) _Anonymous_51 _sigsys; } @DppOffsetSize(16,112) _Anonymous_42 _sifields; } void lcong48(ushort*) @nogc nothrow; ushort* seed48(ushort*) @nogc nothrow; void srand48(c_long) @nogc nothrow; c_long jrand48(ushort*) @nogc nothrow; c_long mrand48() @nogc nothrow; c_long nrand48(ushort*) @nogc nothrow; c_long lrand48() @nogc nothrow; double erand48(ushort*) @nogc nothrow; double drand48() @nogc nothrow; alias sigset_t = __sigset_t; alias sigval_t = sigval; int rand_r(uint*) @nogc nothrow; struct stack_t { @DppOffsetSize(0,8) void* ss_sp; @DppOffsetSize(8,4) int ss_flags; @DppOffsetSize(16,8) c_ulong ss_size; } struct _IO_marker; struct _IO_codecvt; struct _IO_wide_data; alias _IO_lock_t = void; void srand(uint) @nogc nothrow; int rand() @nogc nothrow; int setstate_r(char*, random_data*) @nogc nothrow; struct sigstack { @DppOffsetSize(0,8) void* ss_sp; @DppOffsetSize(8,4) int ss_onstack; } struct timespec { @DppOffsetSize(0,8) c_long tv_sec; @DppOffsetSize(8,8) c_long tv_nsec; } int initstate_r(uint, char*, c_ulong, random_data*) @nogc nothrow; struct timeval { @DppOffsetSize(0,8) c_long tv_sec; @DppOffsetSize(8,8) c_long tv_usec; } alias time_t = c_long; alias timer_t = void*; int srandom_r(uint, random_data*) @nogc nothrow; int random_r(random_data*, int*) @nogc nothrow; struct random_data { @DppOffsetSize(0,8) int* fptr; @DppOffsetSize(8,8) int* rptr; @DppOffsetSize(16,8) int* state; @DppOffsetSize(24,4) int rand_type; @DppOffsetSize(28,4) int rand_deg; @DppOffsetSize(32,4) int rand_sep; @DppOffsetSize(40,8) int* end_ptr; } char* setstate(char*) @nogc nothrow; char* initstate(uint, char*, c_ulong) @nogc nothrow; void srandom(uint) @nogc nothrow; c_long random() @nogc nothrow; c_long a64l(const(char)*) @nogc nothrow; char* l64a(c_long) @nogc nothrow; ulong strtoull(const(char)*, char**, int) @nogc nothrow; long strtoll(const(char)*, char**, int) @nogc nothrow; ulong strtouq(const(char)*, char**, int) @nogc nothrow; long strtoq(const(char)*, char**, int) @nogc nothrow; c_ulong strtoul(const(char)*, char**, int) @nogc nothrow; c_long strtol(const(char)*, char**, int) @nogc nothrow; real strtold(const(char)*, char**) @nogc nothrow; float strtof(const(char)*, char**) @nogc nothrow; double strtod(const(char)*, char**) @nogc nothrow; long atoll(const(char)*) @nogc nothrow; c_long atol(const(char)*) @nogc nothrow; int atoi(const(char)*) @nogc nothrow; int* __errno_location() @nogc nothrow; double atof(const(char)*) @nogc nothrow; c_ulong __ctype_get_mb_cur_max() @nogc nothrow; struct lldiv_t { @DppOffsetSize(0,8) long quot; @DppOffsetSize(8,8) long rem; } struct ldiv_t { @DppOffsetSize(0,8) c_long quot; @DppOffsetSize(8,8) c_long rem; } struct div_t { @DppOffsetSize(0,4) int quot; @DppOffsetSize(4,4) int rem; } int __overflow(_IO_FILE*, int) @nogc nothrow; int __uflow(_IO_FILE*) @nogc nothrow; void funlockfile(_IO_FILE*) @nogc nothrow; int ftrylockfile(_IO_FILE*) @nogc nothrow; void flockfile(_IO_FILE*) @nogc nothrow; char* ctermid(char*) @nogc nothrow; int pclose(_IO_FILE*) @nogc nothrow; _IO_FILE* popen(const(char)*, const(char)*) @nogc nothrow; int fileno_unlocked(_IO_FILE*) @nogc nothrow; int fileno(_IO_FILE*) @nogc nothrow; void perror(const(char)*) @nogc nothrow; int ferror_unlocked(_IO_FILE*) @nogc nothrow; int feof_unlocked(_IO_FILE*) @nogc nothrow; void clearerr_unlocked(_IO_FILE*) @nogc nothrow; int ferror(_IO_FILE*) @nogc nothrow; int feof(_IO_FILE*) @nogc nothrow; alias __re_size_t = uint; alias __re_long_size_t = c_ulong; alias s_reg_t = c_long; alias active_reg_t = c_ulong; alias reg_syntax_t = c_ulong; extern __gshared c_ulong re_syntax_options; void clearerr(_IO_FILE*) @nogc nothrow; int fsetpos(_IO_FILE*, const(_G_fpos_t)*) @nogc nothrow; int fgetpos(_IO_FILE*, _G_fpos_t*) @nogc nothrow; c_long ftello(_IO_FILE*) @nogc nothrow; int fseeko(_IO_FILE*, c_long, int) @nogc nothrow; alias reg_errcode_t = _Anonymous_52; enum _Anonymous_52 { _REG_ENOSYS = -1, _REG_NOERROR = 0, _REG_NOMATCH = 1, _REG_BADPAT = 2, _REG_ECOLLATE = 3, _REG_ECTYPE = 4, _REG_EESCAPE = 5, _REG_ESUBREG = 6, _REG_EBRACK = 7, _REG_EPAREN = 8, _REG_EBRACE = 9, _REG_BADBR = 10, _REG_ERANGE = 11, _REG_ESPACE = 12, _REG_BADRPT = 13, _REG_EEND = 14, _REG_ESIZE = 15, _REG_ERPAREN = 16, } enum _REG_ENOSYS = _Anonymous_52._REG_ENOSYS; enum _REG_NOERROR = _Anonymous_52._REG_NOERROR; enum _REG_NOMATCH = _Anonymous_52._REG_NOMATCH; enum _REG_BADPAT = _Anonymous_52._REG_BADPAT; enum _REG_ECOLLATE = _Anonymous_52._REG_ECOLLATE; enum _REG_ECTYPE = _Anonymous_52._REG_ECTYPE; enum _REG_EESCAPE = _Anonymous_52._REG_EESCAPE; enum _REG_ESUBREG = _Anonymous_52._REG_ESUBREG; enum _REG_EBRACK = _Anonymous_52._REG_EBRACK; enum _REG_EPAREN = _Anonymous_52._REG_EPAREN; enum _REG_EBRACE = _Anonymous_52._REG_EBRACE; enum _REG_BADBR = _Anonymous_52._REG_BADBR; enum _REG_ERANGE = _Anonymous_52._REG_ERANGE; enum _REG_ESPACE = _Anonymous_52._REG_ESPACE; enum _REG_BADRPT = _Anonymous_52._REG_BADRPT; enum _REG_EEND = _Anonymous_52._REG_EEND; enum _REG_ESIZE = _Anonymous_52._REG_ESIZE; enum _REG_ERPAREN = _Anonymous_52._REG_ERPAREN; void rewind(_IO_FILE*) @nogc nothrow; c_long ftell(_IO_FILE*) @nogc nothrow; int fseek(_IO_FILE*, c_long, int) @nogc nothrow; c_ulong fwrite_unlocked(const(void)*, c_ulong, c_ulong, _IO_FILE*) @nogc nothrow; c_ulong fread_unlocked(void*, c_ulong, c_ulong, _IO_FILE*) @nogc nothrow; c_ulong fwrite(const(void)*, c_ulong, c_ulong, _IO_FILE*) @nogc nothrow; c_ulong fread(void*, c_ulong, c_ulong, _IO_FILE*) @nogc nothrow; int ungetc(int, _IO_FILE*) @nogc nothrow; int puts(const(char)*) @nogc nothrow; int fputs(const(char)*, _IO_FILE*) @nogc nothrow; c_long getline(char**, c_ulong*, _IO_FILE*) @nogc nothrow; c_long getdelim(char**, c_ulong*, int, _IO_FILE*) @nogc nothrow; struct re_pattern_buffer { import std.bitmanip: bitfields; align(4): @DppOffsetSize(0,8) re_dfa_t* __buffer; @DppOffsetSize(8,8) c_ulong __allocated; @DppOffsetSize(16,8) c_ulong __used; @DppOffsetSize(24,8) c_ulong __syntax; @DppOffsetSize(32,8) char* __fastmap; @DppOffsetSize(40,8) ubyte* __translate; @DppOffsetSize(48,8) c_ulong re_nsub; mixin(bitfields!( uint, "__can_be_null", 1, uint, "__regs_allocated", 2, uint, "__fastmap_accurate", 1, uint, "__no_sub", 1, uint, "__not_bol", 1, uint, "__not_eol", 1, uint, "__newline_anchor", 1, )); } alias regex_t = re_pattern_buffer; alias regoff_t = int; struct regmatch_t { @DppOffsetSize(0,4) int rm_so; @DppOffsetSize(4,4) int rm_eo; } c_long __getdelim(char**, c_ulong*, int, _IO_FILE*) @nogc nothrow; int regcomp(re_pattern_buffer*, const(char)*, int) @nogc nothrow; int regexec(const(re_pattern_buffer)*, const(char)*, c_ulong, regmatch_t*, int) @nogc nothrow; c_ulong regerror(int, const(re_pattern_buffer)*, char*, c_ulong) @nogc nothrow; void regfree(re_pattern_buffer*) @nogc nothrow; alias __sighandler_t = void function(int); void function(int) __sysv_signal(int, void function(int)) @nogc nothrow; void function(int) signal(int, void function(int)) @nogc nothrow; int kill(int, int) @nogc nothrow; int killpg(int, int) @nogc nothrow; int raise(int) @nogc nothrow; void function(int) ssignal(int, void function(int)) @nogc nothrow; int gsignal(int) @nogc nothrow; void psignal(int, const(char)*) @nogc nothrow; void psiginfo(const(siginfo_t)*, const(char)*) @nogc nothrow; int sigblock(int) @nogc nothrow; int sigsetmask(int) @nogc nothrow; int siggetmask() @nogc nothrow; alias sig_t = void function(); int sigemptyset(__sigset_t*) @nogc nothrow; int sigfillset(__sigset_t*) @nogc nothrow; int sigaddset(__sigset_t*, int) @nogc nothrow; int sigdelset(__sigset_t*, int) @nogc nothrow; int sigismember(const(__sigset_t)*, int) @nogc nothrow; int sigprocmask(int, const(__sigset_t)*, __sigset_t*) @nogc nothrow; int sigsuspend(const(__sigset_t)*) @nogc nothrow; pragma(mangle, "sigaction") int sigaction_(int, const(sigaction)*, sigaction*) @nogc nothrow; int sigpending(__sigset_t*) @nogc nothrow; int sigwait(const(__sigset_t)*, int*) @nogc nothrow; int sigwaitinfo(const(__sigset_t)*, siginfo_t*) @nogc nothrow; int sigtimedwait(const(__sigset_t)*, siginfo_t*, const(timespec)*) @nogc nothrow; int sigqueue(int, int, const(sigval)) @nogc nothrow; extern __gshared const(const(char)*)[65] _sys_siglist; extern __gshared const(const(char)*)[65] sys_siglist; int sigreturn(sigcontext*) @nogc nothrow; char* fgets(char*, int, _IO_FILE*) @nogc nothrow; int siginterrupt(int, int) @nogc nothrow; int sigaltstack(const(stack_t)*, stack_t*) @nogc nothrow; pragma(mangle, "sigstack") int sigstack_(sigstack*, sigstack*) @nogc nothrow; int __libc_current_sigrtmin() @nogc nothrow; int __libc_current_sigrtmax() @nogc nothrow; int putw(int, _IO_FILE*) @nogc nothrow; int getw(_IO_FILE*) @nogc nothrow; int putchar_unlocked(int) @nogc nothrow; int putc_unlocked(int, _IO_FILE*) @nogc nothrow; int fputc_unlocked(int, _IO_FILE*) @nogc nothrow; int putchar(int) @nogc nothrow; int putc(int, _IO_FILE*) @nogc nothrow; int fputc(int, _IO_FILE*) @nogc nothrow; alias fpos_t = _G_fpos_t; int fgetc_unlocked(_IO_FILE*) @nogc nothrow; int getchar_unlocked() @nogc nothrow; int getc_unlocked(_IO_FILE*) @nogc nothrow; int getchar() @nogc nothrow; int getc(_IO_FILE*) @nogc nothrow; int fgetc(_IO_FILE*) @nogc nothrow; extern __gshared _IO_FILE* stdin; extern __gshared _IO_FILE* stdout; extern __gshared _IO_FILE* stderr; int remove(const(char)*) @nogc nothrow; int rename(const(char)*, const(char)*) @nogc nothrow; int renameat(int, const(char)*, int, const(char)*) @nogc nothrow; _IO_FILE* tmpfile() @nogc nothrow; char* tmpnam(char*) @nogc nothrow; char* tmpnam_r(char*) @nogc nothrow; char* tempnam(const(char)*, const(char)*) @nogc nothrow; int fclose(_IO_FILE*) @nogc nothrow; int fflush(_IO_FILE*) @nogc nothrow; int fflush_unlocked(_IO_FILE*) @nogc nothrow; _IO_FILE* fopen(const(char)*, const(char)*) @nogc nothrow; _IO_FILE* freopen(const(char)*, const(char)*, _IO_FILE*) @nogc nothrow; _IO_FILE* fdopen(int, const(char)*) @nogc nothrow; _IO_FILE* fmemopen(void*, c_ulong, const(char)*) @nogc nothrow; _IO_FILE* open_memstream(char**, c_ulong*) @nogc nothrow; void setbuf(_IO_FILE*, char*) @nogc nothrow; int setvbuf(_IO_FILE*, char*, int, c_ulong) @nogc nothrow; void setbuffer(_IO_FILE*, char*, c_ulong) @nogc nothrow; void setlinebuf(_IO_FILE*) @nogc nothrow; int fprintf(_IO_FILE*, const(char)*, ...) @nogc nothrow; int printf(const(char)*, ...) @nogc nothrow; int sprintf(char*, const(char)*, ...) @nogc nothrow; int vfprintf(_IO_FILE*, const(char)*, va_list*) @nogc nothrow; int vprintf(const(char)*, va_list*) @nogc nothrow; int vsprintf(char*, const(char)*, va_list*) @nogc nothrow; int snprintf(char*, c_ulong, const(char)*, ...) @nogc nothrow; int vsnprintf(char*, c_ulong, const(char)*, va_list*) @nogc nothrow; int vdprintf(int, const(char)*, va_list*) @nogc nothrow; int dprintf(int, const(char)*, ...) @nogc nothrow; int fscanf(_IO_FILE*, const(char)*, ...) @nogc nothrow; int scanf(const(char)*, ...) @nogc nothrow; int sscanf(const(char)*, const(char)*, ...) @nogc nothrow; int vfscanf(_IO_FILE*, const(char)*, va_list*) @nogc nothrow; int vscanf(const(char)*, va_list*) @nogc nothrow; int vsscanf(const(char)*, const(char)*, va_list*) @nogc nothrow; enum DPP_ENUM_SEEK_END = 2; enum DPP_ENUM_SEEK_CUR = 1; enum DPP_ENUM_SEEK_SET = 0; enum DPP_ENUM_BUFSIZ = 8192; enum DPP_ENUM__IONBF = 2; enum DPP_ENUM__IOLBF = 1; enum DPP_ENUM__IOFBF = 0; enum DPP_ENUM__STDIO_H = 1; enum DPP_ENUM__STDC_PREDEF_H = 1; enum DPP_ENUM_REG_NOTBOL = 1; enum DPP_ENUM_REG_EXTENDED = 1; enum DPP_ENUM__REGEX_H = 1; enum DPP_ENUM_RTSIG_MAX = 32; enum DPP_ENUM_XATTR_LIST_MAX = 65536; enum DPP_ENUM_XATTR_SIZE_MAX = 65536; enum DPP_ENUM_XATTR_NAME_MAX = 255; enum DPP_ENUM_PIPE_BUF = 4096; enum DPP_ENUM_PATH_MAX = 4096; enum DPP_ENUM_NAME_MAX = 255; enum DPP_ENUM_MAX_INPUT = 255; enum DPP_ENUM_MAX_CANON = 255; enum DPP_ENUM_LINK_MAX = 127; enum DPP_ENUM_ARG_MAX = 131072; enum DPP_ENUM_NGROUPS_MAX = 65536; enum DPP_ENUM_NR_OPEN = 1024; enum DPP_ENUM_MB_LEN_MAX = 16; enum DPP_ENUM__LIBC_LIMITS_H_ = 1; enum DPP_ENUM___GLIBC_MINOR__ = 29; enum DPP_ENUM___GLIBC__ = 2; enum DPP_ENUM___GNU_LIBRARY__ = 6; enum DPP_ENUM___GLIBC_USE_DEPRECATED_SCANF = 0; enum DPP_ENUM___GLIBC_USE_DEPRECATED_GETS = 0; enum DPP_ENUM___USE_FORTIFY_LEVEL = 0; enum DPP_ENUM___USE_ATFILE = 1; enum DPP_ENUM___USE_MISC = 1; enum DPP_ENUM__ATFILE_SOURCE = 1; enum DPP_ENUM___USE_XOPEN2K8 = 1; enum DPP_ENUM___USE_ISOC99 = 1; enum DPP_ENUM___USE_ISOC95 = 1; enum DPP_ENUM___USE_XOPEN2K = 1; enum DPP_ENUM__STDLIB_H = 1; enum DPP_ENUM___USE_POSIX199506 = 1; enum DPP_ENUM___USE_POSIX199309 = 1; enum DPP_ENUM___USE_POSIX2 = 1; enum DPP_ENUM___USE_POSIX = 1; enum DPP_ENUM__POSIX_SOURCE = 1; enum DPP_ENUM___USE_POSIX_IMPLICITLY = 1; enum DPP_ENUM___ldiv_t_defined = 1; enum DPP_ENUM___USE_ISOC11 = 1; enum DPP_ENUM__DEFAULT_SOURCE = 1; enum DPP_ENUM___lldiv_t_defined = 1; enum DPP_ENUM_RAND_MAX = 2147483647; enum DPP_ENUM_EXIT_FAILURE = 1; enum DPP_ENUM_EXIT_SUCCESS = 0; enum DPP_ENUM__FEATURES_H = 1; enum DPP_ENUM__ERRNO_H = 1; enum DPP_ENUM___PDP_ENDIAN = 3412; enum DPP_ENUM___BIG_ENDIAN = 4321; enum DPP_ENUM___LITTLE_ENDIAN = 1234; enum DPP_ENUM__ENDIAN_H = 1; enum DPP_ENUM___SYSCALL_WORDSIZE = 64; enum DPP_ENUM___WORDSIZE_TIME64_COMPAT32 = 1; enum DPP_ENUM___WORDSIZE = 64; enum DPP_ENUM_WCONTINUED = 8; enum DPP_ENUM_WEXITED = 4; enum DPP_ENUM_WSTOPPED = 2; enum DPP_ENUM_WUNTRACED = 2; enum DPP_ENUM_WNOHANG = 1; enum DPP_ENUM__BITS_UINTN_IDENTITY_H = 1; enum DPP_ENUM___FD_SETSIZE = 1024; enum DPP_ENUM___RLIM_T_MATCHES_RLIM64_T = 1; enum DPP_ENUM___INO_T_MATCHES_INO64_T = 1; enum DPP_ENUM___OFF_T_MATCHES_OFF64_T = 1; enum DPP_ENUM__BITS_TYPESIZES_H = 1; enum DPP_ENUM___timer_t_defined = 1; enum DPP_ENUM___time_t_defined = 1; enum DPP_ENUM___timeval_defined = 1; enum DPP_ENUM__STRUCT_TIMESPEC = 1; enum DPP_ENUM___sigstack_defined = 1; enum DPP_ENUM___struct_FILE_defined = 1; enum DPP_ENUM___stack_t_defined = 1; enum DPP_ENUM___sigset_t_defined = 1; enum DPP_ENUM___SI_HAVE_SIGSYS = 1; enum DPP_ENUM___SI_ERRNO_THEN_CODE = 1; enum DPP_ENUM___SI_MAX_SIZE = 128; enum DPP_ENUM___siginfo_t_defined = 1; enum DPP_ENUM___SIGEV_MAX_SIZE = 64; enum DPP_ENUM___sigevent_t_defined = 1; enum DPP_ENUM___sig_atomic_t_defined = 1; enum DPP_ENUM___clockid_t_defined = 1; enum DPP_ENUM___clock_t_defined = 1; enum DPP_ENUM_____mbstate_t_defined = 1; enum DPP_ENUM______fpos_t_defined = 1; enum DPP_ENUM______fpos64_t_defined = 1; enum DPP_ENUM_____FILE_defined = 1; enum DPP_ENUM___FILE_defined = 1; enum DPP_ENUM__BITS_TYPES_H = 1; enum DPP_ENUM__BITS_TIME64_H = 1; enum DPP_ENUM___PTHREAD_MUTEX_HAVE_PREV = 1; enum DPP_ENUM__THREAD_SHARED_TYPES_H = 1; enum DPP_ENUM_FOPEN_MAX = 16; enum DPP_ENUM_L_ctermid = 9; enum DPP_ENUM_FILENAME_MAX = 4096; enum DPP_ENUM_TMP_MAX = 238328; enum DPP_ENUM_L_tmpnam = 20; enum DPP_ENUM__BITS_STDIO_LIM_H = 1; enum DPP_ENUM__BITS_STDINT_INTN_H = 1; enum DPP_ENUM__BITS_SS_FLAGS_H = 1; enum DPP_ENUM__BITS_SIGTHREAD_H = 1; enum DPP_ENUM_SIGSTKSZ = 8192; enum DPP_ENUM_MINSIGSTKSZ = 2048; enum DPP_ENUM__BITS_SIGSTACK_H = 1; enum DPP_ENUM___SIGRTMAX = 64; enum DPP_ENUM_SIGSYS = 31; enum DPP_ENUM_SIGPOLL = 29; enum DPP_ENUM_SIGURG = 23; enum DPP_ENUM_SIGTSTP = 20; enum DPP_ENUM_SIGSTOP = 19; enum DPP_ENUM_SIGCONT = 18; enum DPP_ENUM_SIGCHLD = 17; enum DPP_ENUM_SIGUSR2 = 12; enum DPP_ENUM_SIGUSR1 = 10; enum DPP_ENUM_SIGBUS = 7; enum DPP_ENUM_SIGPWR = 30; enum DPP_ENUM_SIGSTKFLT = 16; enum DPP_ENUM__BITS_SIGNUM_H = 1; enum DPP_ENUM___SIGRTMIN = 32; enum DPP_ENUM_SIGWINCH = 28; enum DPP_ENUM_SIGPROF = 27; enum DPP_ENUM_SIGVTALRM = 26; enum DPP_ENUM_SIGXFSZ = 25; enum DPP_ENUM_SIGXCPU = 24; enum DPP_ENUM_SIGTTOU = 22; enum DPP_ENUM_SIGTTIN = 21; enum DPP_ENUM_SIGALRM = 14; enum DPP_ENUM_SIGPIPE = 13; enum DPP_ENUM_SIGKILL = 9; enum DPP_ENUM_SIGTRAP = 5; enum DPP_ENUM_SIGQUIT = 3; enum DPP_ENUM_SIGHUP = 1; enum DPP_ENUM_SIGTERM = 15; enum DPP_ENUM_SIGSEGV = 11; enum DPP_ENUM_SIGFPE = 8; enum DPP_ENUM_SIGABRT = 6; enum DPP_ENUM_SIGILL = 4; enum DPP_ENUM_SIGINT = 2; enum DPP_ENUM__BITS_SIGNUM_GENERIC_H = 1; enum DPP_ENUM___SI_ASYNCIO_AFTER_SIGIO = 1; enum DPP_ENUM__BITS_SIGINFO_CONSTS_H = 1; enum DPP_ENUM__BITS_SIGINFO_ARCH_H = 1; enum DPP_ENUM__BITS_SIGEVENT_CONSTS_H = 1; enum DPP_ENUM__BITS_SIGCONTEXT_H = 1; enum DPP_ENUM_SIG_SETMASK = 2; enum DPP_ENUM_SIG_UNBLOCK = 1; enum DPP_ENUM_SIG_BLOCK = 0; enum DPP_ENUM_SA_SIGINFO = 4; enum DPP_ENUM_SA_NOCLDWAIT = 2; enum DPP_ENUM_SA_NOCLDSTOP = 1; enum DPP_ENUM__BITS_SIGACTION_H = 1; enum DPP_ENUM___have_pthread_attr_t = 1; enum DPP_ENUM__BITS_PTHREADTYPES_COMMON_H = 1; enum DPP_ENUM___PTHREAD_RWLOCK_INT_FLAGS_SHARED = 1; enum DPP_ENUM___PTHREAD_MUTEX_USE_UNION = 0; enum DPP_ENUM___PTHREAD_MUTEX_NUSERS_AFTER_KIND = 0; enum DPP_ENUM___PTHREAD_MUTEX_LOCK_ELISION = 1; enum DPP_ENUM___SIZEOF_PTHREAD_BARRIERATTR_T = 4; enum DPP_ENUM___SIZEOF_PTHREAD_RWLOCKATTR_T = 8; enum DPP_ENUM___SIZEOF_PTHREAD_CONDATTR_T = 4; enum DPP_ENUM___SIZEOF_PTHREAD_COND_T = 48; enum DPP_ENUM___SIZEOF_PTHREAD_MUTEXATTR_T = 4; enum DPP_ENUM___SIZEOF_PTHREAD_BARRIER_T = 32; enum DPP_ENUM___SIZEOF_PTHREAD_RWLOCK_T = 56; enum DPP_ENUM___SIZEOF_PTHREAD_MUTEX_T = 40; enum DPP_ENUM___SIZEOF_PTHREAD_ATTR_T = 56; enum DPP_ENUM__SYS_CDEFS_H = 1; enum DPP_ENUM__BITS_PTHREADTYPES_ARCH_H = 1; enum DPP_ENUM_CHARCLASS_NAME_MAX = 2048; enum DPP_ENUM_COLL_WEIGHTS_MAX = 255; enum DPP_ENUM___glibc_c99_flexarr_available = 1; enum DPP_ENUM__POSIX2_CHARCLASS_NAME_MAX = 14; enum DPP_ENUM__POSIX2_RE_DUP_MAX = 255; enum DPP_ENUM__POSIX2_LINE_MAX = 2048; enum DPP_ENUM__POSIX2_EXPR_NEST_MAX = 32; enum DPP_ENUM__POSIX2_COLL_WEIGHTS_MAX = 2; enum DPP_ENUM__POSIX2_BC_STRING_MAX = 1000; enum DPP_ENUM__POSIX2_BC_SCALE_MAX = 99; enum DPP_ENUM__POSIX2_BC_DIM_MAX = 2048; enum DPP_ENUM__POSIX2_BC_BASE_MAX = 99; enum DPP_ENUM__BITS_POSIX2_LIM_H = 1; enum DPP_ENUM__POSIX_CLOCKRES_MIN = 20000000; enum DPP_ENUM__POSIX_TZNAME_MAX = 6; enum DPP_ENUM__POSIX_TTY_NAME_MAX = 9; enum DPP_ENUM__POSIX_TIMER_MAX = 32; enum DPP_ENUM__POSIX_SYMLOOP_MAX = 8; enum DPP_ENUM__POSIX_SYMLINK_MAX = 255; enum DPP_ENUM__POSIX_STREAM_MAX = 8; enum DPP_ENUM__POSIX_SSIZE_MAX = 32767; enum DPP_ENUM__POSIX_SIGQUEUE_MAX = 32; enum DPP_ENUM__POSIX_SEM_VALUE_MAX = 32767; enum DPP_ENUM__POSIX_SEM_NSEMS_MAX = 256; enum DPP_ENUM__POSIX_RTSIG_MAX = 8; enum DPP_ENUM__POSIX_RE_DUP_MAX = 255; enum DPP_ENUM__POSIX_PIPE_BUF = 512; enum DPP_ENUM__POSIX_PATH_MAX = 256; enum DPP_ENUM__POSIX_OPEN_MAX = 20; enum DPP_ENUM__POSIX_NGROUPS_MAX = 8; enum DPP_ENUM__POSIX_NAME_MAX = 14; enum DPP_ENUM__POSIX_MQ_PRIO_MAX = 32; enum DPP_ENUM__POSIX_MQ_OPEN_MAX = 8; enum DPP_ENUM__POSIX_MAX_INPUT = 255; enum DPP_ENUM__POSIX_MAX_CANON = 255; enum DPP_ENUM__POSIX_LOGIN_NAME_MAX = 9; enum DPP_ENUM__POSIX_LINK_MAX = 8; enum DPP_ENUM__POSIX_HOST_NAME_MAX = 255; enum DPP_ENUM__POSIX_DELAYTIMER_MAX = 32; enum DPP_ENUM__POSIX_CHILD_MAX = 25; enum DPP_ENUM__POSIX_ARG_MAX = 4096; enum DPP_ENUM__POSIX_AIO_MAX = 1; enum DPP_ENUM__POSIX_AIO_LISTIO_MAX = 2; enum DPP_ENUM__BITS_POSIX1_LIM_H = 1; enum DPP_ENUM_NCARGS = 131072; enum DPP_ENUM_NOFILE = 256; enum DPP_ENUM_MAXSYMLINKS = 20; enum DPP_ENUM_MQ_PRIO_MAX = 32768; enum DPP_ENUM_HOST_NAME_MAX = 64; enum DPP_ENUM___HAVE_GENERIC_SELECTION = 1; enum DPP_ENUM_LOGIN_NAME_MAX = 256; enum DPP_ENUM__SYS_PARAM_H = 1; enum DPP_ENUM_TTY_NAME_MAX = 32; enum DPP_ENUM_DELAYTIMER_MAX = 2147483647; enum DPP_ENUM_PTHREAD_STACK_MIN = 16384; enum DPP_ENUM_AIO_PRIO_DELTA_MAX = 20; enum DPP_ENUM__POSIX_THREAD_THREADS_MAX = 64; enum DPP_ENUM__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4; enum DPP_ENUM_PTHREAD_KEYS_MAX = 1024; enum DPP_ENUM__POSIX_THREAD_KEYS_MAX = 128; enum DPP_ENUM___GLIBC_USE_IEC_60559_TYPES_EXT = 0; enum DPP_ENUM_DEV_BSIZE = 512; enum DPP_ENUM__SYS_SELECT_H = 1; enum DPP_ENUM___GLIBC_USE_IEC_60559_FUNCS_EXT = 0; enum DPP_ENUM___GLIBC_USE_IEC_60559_BFP_EXT = 0; enum DPP_ENUM___GLIBC_USE_LIB_EXT2 = 0; enum DPP_ENUM___HAVE_FLOAT64X_LONG_DOUBLE = 1; enum DPP_ENUM___HAVE_FLOAT64X = 1; enum DPP_ENUM___HAVE_DISTINCT_FLOAT128 = 0; enum DPP_ENUM___HAVE_FLOAT128 = 0; enum DPP_ENUM__SYS_TIME_H = 1; enum DPP_ENUM___HAVE_FLOATN_NOT_TYPEDEF = 0; enum DPP_ENUM___HAVE_DISTINCT_FLOAT64X = 0; enum DPP_ENUM___HAVE_DISTINCT_FLOAT32X = 0; enum DPP_ENUM___HAVE_DISTINCT_FLOAT64 = 0; enum DPP_ENUM___HAVE_DISTINCT_FLOAT32 = 0; enum DPP_ENUM___HAVE_FLOAT128X = 0; enum DPP_ENUM___HAVE_FLOAT32X = 1; enum DPP_ENUM___HAVE_FLOAT64 = 1; enum DPP_ENUM___HAVE_FLOAT32 = 1; enum DPP_ENUM___HAVE_FLOAT16 = 0; enum DPP_ENUM__BITS_ERRNO_H = 1; enum DPP_ENUM__BITS_BYTESWAP_H = 1; enum DPP_ENUM__SYS_TYPES_H = 1; enum DPP_ENUM_MAXHOSTNAMELEN = 64; enum DPP_ENUM_EXEC_PAGESIZE = 4096; enum DPP_ENUM_HZ = 100; enum DPP_ENUM_EHWPOISON = 133; enum DPP_ENUM_ERFKILL = 132; enum DPP_ENUM_ENOTRECOVERABLE = 131; enum DPP_ENUM_EOWNERDEAD = 130; enum DPP_ENUM_EKEYREJECTED = 129; enum DPP_ENUM_EKEYREVOKED = 128; enum DPP_ENUM_EKEYEXPIRED = 127; enum DPP_ENUM_ENOKEY = 126; enum DPP_ENUM_ECANCELED = 125; enum DPP_ENUM_EMEDIUMTYPE = 124; enum DPP_ENUM_ENOMEDIUM = 123; enum DPP_ENUM_EDQUOT = 122; enum DPP_ENUM_EREMOTEIO = 121; enum DPP_ENUM_EISNAM = 120; enum DPP_ENUM_ENAVAIL = 119; enum DPP_ENUM_ENOTNAM = 118; enum DPP_ENUM_EUCLEAN = 117; enum DPP_ENUM_ESTALE = 116; enum DPP_ENUM_EINPROGRESS = 115; enum DPP_ENUM_EALREADY = 114; enum DPP_ENUM_EHOSTUNREACH = 113; enum DPP_ENUM_EHOSTDOWN = 112; enum DPP_ENUM_ECONNREFUSED = 111; enum DPP_ENUM_ETIMEDOUT = 110; enum DPP_ENUM_ETOOMANYREFS = 109; enum DPP_ENUM_ESHUTDOWN = 108; enum DPP_ENUM_ENOTCONN = 107; enum DPP_ENUM_EISCONN = 106; enum DPP_ENUM_ENOBUFS = 105; enum DPP_ENUM_ECONNRESET = 104; enum DPP_ENUM_ECONNABORTED = 103; enum DPP_ENUM_ENETRESET = 102; enum DPP_ENUM_ENETUNREACH = 101; enum DPP_ENUM_ENETDOWN = 100; enum DPP_ENUM_EADDRNOTAVAIL = 99; enum DPP_ENUM_EADDRINUSE = 98; enum DPP_ENUM_EAFNOSUPPORT = 97; enum DPP_ENUM_EPFNOSUPPORT = 96; enum DPP_ENUM_EOPNOTSUPP = 95; enum DPP_ENUM_ESOCKTNOSUPPORT = 94; enum DPP_ENUM_EPROTONOSUPPORT = 93; enum DPP_ENUM_ENOPROTOOPT = 92; enum DPP_ENUM_EPROTOTYPE = 91; enum DPP_ENUM_EMSGSIZE = 90; enum DPP_ENUM___BIT_TYPES_DEFINED__ = 1; enum DPP_ENUM_EDESTADDRREQ = 89; enum DPP_ENUM_ENOTSOCK = 88; enum DPP_ENUM_EUSERS = 87; enum DPP_ENUM_ESTRPIPE = 86; enum DPP_ENUM_ERESTART = 85; enum DPP_ENUM_EILSEQ = 84; enum DPP_ENUM_ELIBEXEC = 83; enum DPP_ENUM_ELIBMAX = 82; enum DPP_ENUM_ELIBSCN = 81; enum DPP_ENUM_ELIBBAD = 80; enum DPP_ENUM_ELIBACC = 79; enum DPP_ENUM__SYS_UCONTEXT_H = 1; enum DPP_ENUM_EREMCHG = 78; enum DPP_ENUM_EBADFD = 77; enum DPP_ENUM_ENOTUNIQ = 76; enum DPP_ENUM_EOVERFLOW = 75; enum DPP_ENUM_EBADMSG = 74; enum DPP_ENUM_EDOTDOT = 73; enum DPP_ENUM_EMULTIHOP = 72; enum DPP_ENUM___NGREG = 23; enum DPP_ENUM_EPROTO = 71; enum DPP_ENUM_ECOMM = 70; enum DPP_ENUM_ESRMNT = 69; enum DPP_ENUM_EADV = 68; enum DPP_ENUM_ENOLINK = 67; enum DPP_ENUM_EREMOTE = 66; enum DPP_ENUM_ENOPKG = 65; enum DPP_ENUM_ENONET = 64; enum DPP_ENUM_ENOSR = 63; enum DPP_ENUM_ETIME = 62; enum DPP_ENUM_ENODATA = 61; enum DPP_ENUM_ENOSTR = 60; enum DPP_ENUM_EBFONT = 59; enum DPP_ENUM_EBADSLT = 57; enum DPP_ENUM_EBADRQC = 56; enum DPP_ENUM_ENOANO = 55; enum DPP_ENUM_EXFULL = 54; enum DPP_ENUM_EBADR = 53; enum DPP_ENUM_EBADE = 52; enum DPP_ENUM_EL2HLT = 51; enum DPP_ENUM_ENOCSI = 50; enum DPP_ENUM_EUNATCH = 49; enum DPP_ENUM_ELNRNG = 48; enum DPP_ENUM_EL3RST = 47; enum DPP_ENUM_EL3HLT = 46; enum DPP_ENUM_EL2NSYNC = 45; enum DPP_ENUM_ECHRNG = 44; enum DPP_ENUM_EIDRM = 43; enum DPP_ENUM_ENOMSG = 42; enum DPP_ENUM_ELOOP = 40; enum DPP_ENUM_ENOTEMPTY = 39; enum DPP_ENUM_ENOSYS = 38; enum DPP_ENUM___GNUC_VA_LIST = 1; enum DPP_ENUM_ENOLCK = 37; enum DPP_ENUM_ENAMETOOLONG = 36; enum DPP_ENUM_EDEADLK = 35; enum DPP_ENUM_ERANGE = 34; enum DPP_ENUM_EDOM = 33; enum DPP_ENUM_EPIPE = 32; enum DPP_ENUM_EMLINK = 31; enum DPP_ENUM_EROFS = 30; enum DPP_ENUM_ESPIPE = 29; enum DPP_ENUM_ENOSPC = 28; enum DPP_ENUM_EFBIG = 27; enum DPP_ENUM_ETXTBSY = 26; enum DPP_ENUM_ENOTTY = 25; enum DPP_ENUM_EMFILE = 24; enum DPP_ENUM_ENFILE = 23; enum DPP_ENUM_EINVAL = 22; enum DPP_ENUM_EISDIR = 21; enum DPP_ENUM_ENOTDIR = 20; enum DPP_ENUM_ENODEV = 19; enum DPP_ENUM_EXDEV = 18; enum DPP_ENUM_EEXIST = 17; enum DPP_ENUM_EBUSY = 16; enum DPP_ENUM_ENOTBLK = 15; enum DPP_ENUM_EFAULT = 14; enum DPP_ENUM_EACCES = 13; enum DPP_ENUM_ENOMEM = 12; enum DPP_ENUM_EAGAIN = 11; enum DPP_ENUM_ECHILD = 10; enum DPP_ENUM_EBADF = 9; enum DPP_ENUM_ENOEXEC = 8; enum DPP_ENUM_E2BIG = 7; enum DPP_ENUM_ENXIO = 6; enum DPP_ENUM_EIO = 5; enum DPP_ENUM_EINTR = 4; enum DPP_ENUM_ESRCH = 3; enum DPP_ENUM_ENOENT = 2; enum DPP_ENUM_EPERM = 1; enum DPP_ENUM__ALLOCA_H = 1; enum DPP_ENUM_ZAP_MAXNAMELEN = 256; enum DPP_ENUM_ZAP_OLDMAXVALUELEN = 1024; enum DPP_ENUM_ZFS_MAX_DATASET_NAME_LEN = 256; enum DPP_ENUM_ZPROP_MAX_COMMENT = 32; enum DPP_ENUM_ZFS_WRITTEN_PROP_PREFIX_LEN = 8; enum DPP_ENUM_DEFAULT_PBKDF2_ITERATIONS = 350000; enum DPP_ENUM_MIN_PBKDF2_ITERATIONS = 100000; enum DPP_ENUM_ZPOOL_NO_REWIND = 1; enum DPP_ENUM_ZPOOL_NEVER_REWIND = 2; enum DPP_ENUM_ZPOOL_TRY_REWIND = 4; enum DPP_ENUM_ZPOOL_DO_REWIND = 8; enum DPP_ENUM_ZPOOL_EXTREME_REWIND = 16; enum DPP_ENUM_ZPOOL_REWIND_MASK = 28; enum DPP_ENUM_ZPOOL_REWIND_POLICIES = 31; enum DPP_ENUM_VS_ZIO_TYPES = 6; enum DPP_ENUM_VDEV_L_HISTO_BUCKETS = 37; enum DPP_ENUM_VDEV_RQ_HISTO_BUCKETS = 25; enum DPP_ENUM_ZVOL_MAJOR = 230; enum DPP_ENUM_ZVOL_MINOR_BITS = 4; enum DPP_ENUM_ZVOL_DEFAULT_BLOCKSIZE = 8192; enum DPP_ENUM_NV_VERSION = 0; enum DPP_ENUM_NV_ENCODE_NATIVE = 0; enum DPP_ENUM_NV_ENCODE_XDR = 1; } struct re_dfa_t; /+ work towards Dlang wrapper for libzfs-core +/ import std.socket:Socket; import std.string:toStringz, fromStringz; import std.exception; import taggedalgebraic; import std.conv:to; import std.typecons:tuple; alias toCString = toStringz; alias fromCString = fromStringz; struct SILdoc {string value; } extern(C) __gshared int g_fd, g_refcount; enum DatasetType { zfs = LZC_DATSET_TYPE_ZFS, zvol = LZC_DATSET_TYPE_ZVOL, } enum VdevType { root, mirror, replacing, raidz, disk, file, missing, hole, spare, log, l2cache, } enum PoolStatus { corruptCache, missingDevR, missingDevNr, corruptLabelR, corruptLabelNr, badGUIDSum, corruptPool, corruptData, failingDev, versionNewer, hostidMismatch, hosidActive, hostidRequired, ioFailureWait, ioFailureContinue, ioFailureMap, badLog, errata, unsupFeatRead, unsupFeatWrite, faultedDevR, faultedDevNr, versionOlder, featDisabled, resilvering, offlineDev, removedDev, ok, } enum PoolState { active, exported, destroyed, spare, l2cache, uninitialized, unavail, potentiallyActive } enum PoolProperty { cont, inval, name, size, capacity, altroot, health, guid, version_, bootfs, delegation, autoReplace, cacheFile, failureMode, listSnaps, autoExpand, dedupDitto, dedupRatio, free, allocated, readOnly, ashift, comment, expandSize, freeing, fragmentation, leaked, maxBlockSize, tName, maxNodeSize, multiHost, poolNumProps, } enum DatasetProperty { cont, bad, type, creation, used, available, referenced, compressRatio, mounted, origin, quota, reservation, volSize, volBlockSize, recordsize, mountpoint, sharenfs, checksum, compression, atime, devices, exec, setuid, readonly, zoned, snapdir, private_, aclinherit, createTXG, name, canmount, iscsioptions, xattr, numclones, copies, version_, utf8only, normalize, case_, vscan, nbmand, sharesmb, refquota, refreservation, guid, primarycache, secondarycache, usedsnap, usedds, usedchild, usedrefreserv, useraccounting, stmfShareinfo, deferDestroy, userrefs, logbias, unique, objsetid, dedup, mlslabel, sync, dnodeSize, refratio, written, clones, logicalused, logicalreferenced, inconsistent, volmode, filesystemLimit, snapshotLimit, filesystemCount, snapshotCount, snapdev, acltype, selinuxContext, selinuxFsContext, selinuxDefContext, selinuxRootContext, relatime, redundantMetadata, overlay, prevSnap, receiveResumeToken, encryption, keyLocation, keyFormat, pBKDF2Salt, pBKDF2Iters, encryptionRoot, keyGUID, keyStatus, remapTXG, datasetNumProps, } enum ZfsError { success = 0, nomem = 2000 , badprop, propreadonly, proptype, propnoninherit, propspace, badtype, busy, exists, noent, badstream, dsreadonly, voltoobig, invalidname, badrestore, badbackup, badtarget, nodevice, baddev, noreplicas, resilvering, badversion, poolunavail, devoverflow, badpath, crosstarget, zoned, mountfailed, umountfailed, unsharenfsfailed, sharenfsfailed, perm, nospc, fault, io, intr, isspare, invalconfig, recursive, nohistory, poolprops, poolNotsup, poolInvalarg, nametoolong, openfailed, nocap, labelfailed, badwho, badperm, badpermset, nodelegation, unsharesmbfailed, sharesmbfailed, badcache, isl2CACHE, vdevnotsup, notsup, activeSpare, unplayedLogs, reftagRele, reftagHold, tagtoolong, pipefailed, threadcreatefailed, postsplitOnline, scrubbing, noScrub, diff, diffdata, poolreadonly, unknown, } enum VdevState { unknown, closed, offline, removed, cantOpen, faulted, degraded, healthy, } enum VdevAux { none, openFailed, corruptData, noReplicas, badGUIDSum, tooSmall, badLabel, versionNewer, versionOlder, unsupFeat, spared, errExceeded, ioFailure, badLog, external, splitPool, } struct ZfsErrorResult { int num; string text; } shared static this() { enforce(libzfs_core_init() == 0, "Error initialising ZFS"); } shared static ~this() { libzfs_core_fini(); } version(None) { auto toList(string[string] args) { nvlist_t** pNvList = nvlist_alloc(nvlistp,1,0); enforce(pNvList !is null, "nvlist_alloca failed"); scope(exit) nvlist_free(pNvList); return dictToNvList(args,pNvList); } auto asDict(nv_list* list) { string[string] ret; pair = nvlist_next_nvpair(list,null); while (pair !is null) { auto name = nvpair_name(pair).fromCString; auto id = type(pair); } } auto type(nvpair* pair) { auto id = nvpair_typie(pair); } } enum NvType { unknown = DATA_TYPE_UNKNOWN, boolean = DATA_TYPE_BOOLEAN, byte_ = DATA_TYPE_BYTE, short_ = DATA_TYPE_INT16, ushort_ = DATA_TYPE_UINT16, int_ = DATA_TYPE_INT32, uint_ = DATA_TYPE_UINT32, long_ = DATA_TYPE_INT64, ulong_ = DATA_TYPE_UINT64, string_ = DATA_TYPE_STRING, byteArray = DATA_TYPE_BYTE_ARRAY, shortArray = DATA_TYPE_INT16_ARRAY, ushortArray = DATA_TYPE_UINT16_ARRAY, intArray = DATA_TYPE_INT32_ARRAY, uintArray = DATA_TYPE_UINT32_ARRAY, longArray = DATA_TYPE_INT64_ARRAY, ulongArray = DATA_TYPE_UINT64_ARRAY, stringArray = DATA_TYPE_STRING_ARRAY, hrTime = DATA_TYPE_HRTIME, nvList = DATA_TYPE_NVLIST, nvListArray = DATA_TYPE_NVLIST_ARRAY, booleanValue = DATA_TYPE_BOOLEAN_VALUE, int8 = DATA_TYPE_INT8, uint8 = DATA_TYPE_UINT8, booleanArray = DATA_TYPE_BOOLEAN_ARRAY, int8Array = DATA_TYPE_INT8_ARRAY, uint8Array = DATA_TYPE_UINT8_ARRAY, double_ = DATA_TYPE_DOUBLE } union ZfsValueUnion { bool boolean; byte byte_; char int8Value; ubyte ubyteValue; short short_; ushort ushort_; int int_; uint uint_; long long_; ulong ulong_; string string_; bool[] booleanArray; char[] charArray; ubyte[] ubyteArray; short[] shortArray; ushort[] ushortArray; int[] intArray; uint[] uintArray; long[] longArray; ulong[] ulongArray; string[] stringArray; double double_; ZfsValueUnion[] valueArray; ZfsValueUnion[string] valueDict; } alias ZfsValue = TaggedAlgebraic!ZfsValueUnion; /+ nvlist_t* asList(ZfsValue[string] values) { foreach(entry;values.byKeyValue) { final switch(entry.value.kind) { case ZfsValue.Kind.valueDict: nvlist_add_nvlist(list,entry.key.toCString,entry.value.asCValue); break; case ZfsValue.Kind.valueArray: nvlist_add_array(list,entry.key.toCString,entry.value.asCValue); break; case ZfsValue. +/ string[string] zfsIoctl(zfs_ioc_t ioc, string name, string[string] args) { import std.format:format; auto props = getProperties(args); scope(exit) nvlistFree(props); nvlist_t* resultp; auto ret = lzc_ioctl(ioc,name.toCString, props,&resultp); enforce(ret == 0, format!"error calling lzc_ioctl: %s"(ret)); return resultp.asDict; } extern(C) size_t strlcpy ( char * dest, const(char) * src, size_t size); struct zfs_cmd_t { char[4096] zc_name; ulong zc_nvlist_src; ulong zc_nvlist_src_size; ulong zc_nvlist_dst; ulong zc_nvlist_dst_size; boolean_t zc_nvlist_dst_filled; int zc_pad2; ulong zc_history; char[4096 * 2] zc_value; ulong zc_guid; ulong zc_nvlist_conf; ulong zc_nvlist_conf_size; ulong zc_cookie; ulong zc_objset_type; ulong zc_perm_action; ulong zc_history_len; ulong zc_history_offset; ulong zc_obj; ulong zc_iflags; uint zc_defer_destroy; uint zc_flags; ulong zc_action_handle; int zc_cleanup_fd; ubyte zc_simple; ubyte[3] zc_pad; ulong zc_sendobj; ulong zc_fromobj; ulong zc_createtxg; } int lzc_ioctl(zfs_ioc_t ioc, const(char)* name, nvlist_t* source, nvlist_t** resultp) { import std.algorithm:max; import core.sys.posix.sys.ioctl; zfs_cmd_t zc = {zc_name:"\0"}; int error = 0; char *packed = null; size_t size = 0; version(ZFS_DEBUG) { if (ioc == fail_ioc_cmd) return (fail_ioc_err); } if (name !is null) cast (void) strlcpy(zc.zc_name.ptr, name, zc.zc_name.sizeof); if (source !is null) { packed = fnvlist_pack(source, &size); zc.zc_nvlist_src = cast(ulong)cast(uint*)packed; zc.zc_nvlist_src_size = size; } if (resultp !is null) { *resultp = null; if (ioc == ZFS_IOC_CHANNEL_PROGRAM) { zc.zc_nvlist_dst_size = fnvlist_lookup_uint64(source, "memlimit"); } else { zc.zc_nvlist_dst_size = max(size * 2, 128 * 1024); } zc.zc_nvlist_dst = cast(ulong)cast(uint*) malloc(zc.zc_nvlist_dst_size); if (zc.zc_nvlist_dst == 0UL) { error = 12; goto out_; } } while (ioctl(g_fd, ioc, &zc) != 0) { if ((*__errno_location ()) == 12 && resultp !is null && ioc != ZFS_IOC_CHANNEL_PROGRAM) { free(cast(void *)cast(uint*)zc.zc_nvlist_dst); zc.zc_nvlist_dst_size *= 2; zc.zc_nvlist_dst = cast(ulong)cast(uint*)malloc(zc.zc_nvlist_dst_size); if (zc.zc_nvlist_dst == 0UL) { error = 12; goto out_; } } else { error = (*__errno_location ()); break; } } if (zc.zc_nvlist_dst_filled) { *resultp = fnvlist_unpack(cast(char*)cast(uint*)zc.zc_nvlist_dst, zc.zc_nvlist_dst_size); } out_: if (packed !is null) fnvlist_pack_free(packed, size); free(cast(void *)cast(uint*)zc.zc_nvlist_dst); return (error); } string[string] datasetListNext(string name, string[string] args) { return zfsIoctl(ZFS_IOC_DATASET_LIST_NEXT,name,args); } string[string] snapshotListNext(string name, string[string] args) { return zfsIoctl(ZFS_IOC_SNAPSHOT_LIST_NEXT,name,args); } string[string] zfsInheritProperties(string name, string[string] args) { return zfsIoctl(ZFS_IOC_SNAPSHOT_LIST_NEXT,name,args); } @SILdoc(`Create a ZFS filesystem or a ZFS volume (zvol) Params: string name - name of the dataset to be created DataSetType datasetType - dataset type (either zfs for a filesystem or zvol for a volume string[string] properties - a dictionary od ZFS dataset property name-value pairs ubyte[] encryptionKey - dataset encryption key data Errors: FilesystemExists - if a dataset with the given name already exists ParentNotFound - if a parent dataset of the requested dataset does not exist PropertyInvalid - if one or more of specified properties does not exist or has an invalid type or value NameInvalid - if the name is not a valid dataset name NameTooLong - if the name is too long WrongParent - if the parent dataset of the requested dataset is not a filesystem eg zvol `) void create(string name, DatasetType dataSetType, string[string] properties = (string[string]).init, ubyte[] encryptionKey =[]) { import std.format:format; auto props = getProperties(properties); scope(exit) nvlistFree(props); auto result = lzc_create(name.toCString, cast(lzc_dataset_type) dataSetType, props,encryptionKey.ptr,encryptionKey.length.to!uint_t); enforce(result==0, format!"zfs create: %s"(result)); } @SILdoc(`Clone a ZFS filesystem or a ZFS volume ("zvol") from a given snapshot. Params: string name: a name of the dataset to be created. string origin: a name of the origin snapshot. string[string] properties: ZFS dataset property name-value pairs Errors: FilesystemExists: if a dataset with the given name already exists. DatasetNotFound: if either a parent dataset of the requested dataset or the origin snapshot does not exist. PropertyInvalid: if one or more of the specified properties is invalid or has an invalid type or value. FilesystemNameInvalid: if the name is not a valid dataset name. SnapshotNameInvalid: if the origin is not a valid snapshot name. NameTooLsource/symmetry/api/libzfs_core.d.tmp:6490:67: warning: missing terminating ' character NameTooLong: if the dataset name is too longor if the dataset's origin has a snapshot that, if transferred to the dataset, would get a too long name. ^ source/symmetry/api/libzfs_core.d.tmp:6493:98: warning: missing terminating ' character SnapshotExists: if the dataset already has a snapshot with the same name as one of the origin's snapshots. ^ source/symmetry/api/libzfs_core.d.tmp:6513:38: warning: missing terminating ' character FilesystemNotFound: if the target's parent does not exist. ^ ong: if the name or the origin name is too long. PoolsDiffer: if the clone and the origin have different pool names. Note: Because of a deficiency of the underlying C interface DatasetNotFound can mean that either a parent filesystem of the target or the origin snapshot does not exist. It is currently impossible to distinguish between the cases. lzc_hold can be used to check that the snapshot exists and ensure that it is not destroyed before cloning. `) void clone(string name, string origin, string[string] properties = (string[string]).init) { auto props = getProperties(properties); scope(exit) nvlistFree(props); auto result = lzc_clone(name.toCString,origin.toCString,props); enforce(result==0,"something went wrong"); } @SILdoc(`Promotes the ZFS dataset. Params: string name: the name of the dataset to promote. Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too longor if the dataset's origin has a snapshot that, if transferred to the dataset, would get a too long name. NotClone: if the dataset is not a clone. FilesystemNotFound: if the dataset does not exist. SnapshotExists: if the dataset already has a snapshot with the same name as one of the origin's snapshots. `) string promote(string name) { char[16384] buf; auto result = lzc_promote(name.toCString,buf.ptr, buf.length); enforce(result==0,"something went wrong"); return buf.ptr.fromCString.idup; } @SILdoc(`Rename the ZFS dataset. Params: string from: the current name of the dataset to rename. string to: the new name of the dataset. Errors: NameInvalid: if either the source or target name is invalid. NameTooLong: if either the source or target name is too long. NameTooLong: if a snapshot of the source would get a too long name after renaming. FilesystemNotFound: if the source does not exist. FilesystemNotFound: if the target's parent does not exist. FilesystemExists: if the target already exists. PoolsDiffer: if the source and target belong to different pools. `) void rename(string from, string to) { auto result = lzc_rename(from.toCString, to.toCString); enforce(result==0,"something went wrong"); } @SILdoc(`Remaps the ZFS dataset. Params: string name: the name of the dataset to remap. Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. DatasetNotFound: if the dataset does not exist. FeatureNotSupported: if the pool containing the dataset does not have the *obsolete_counts* feature enabled. `) void remap(string filesystem) { auto result = lzc_remap(filesystem.toCString); enforce(result==0,"something went wrong"); } @SILdoc(`Calculate a size of data referenced by snapshots in the inclusive range between the firstsnap and the lastsnap and not shared with any other datasets. Params: string firstSnap: the name of the first snapshot in the range. string lastSnap: the name of the last snapshot in the range. Returns: ulong: the calculated stream size, in bytes. Errors: SnapshotNotFound: if either of the snapshots does not exist. NameInvalid: if the name of either snapshot is invalid. NameTooLong: if the name of either snapshot is too long. SnapshotMismatch: if fromsnap is not an ancestor snapshot of snapname PoolsDiffer: if the snapshots belong to different pools. snapRangeSpace calculates total size of blocks that exist because they are referenced only by one or more snapshots in the given range but no other dataset. In other words, this is the set of blocks that were born after the snap before firstsnap, and died before the snap after the last snap. Yet another interpretation is that the result of snapRangeSpace is the size of the space that would be freed if the snapshots in the range are destroyed. If the same snapshot is given as both the firstSnap and the lastSnap then snapRangeSpace calculates space used by the snapshot. `) ulong snapRangeSpace(string firstSnap, string lastSnap) { ulong ret; auto result = lzc_snaprange_space(firstSnap.toCString, lastSnap.toCString,&ret); enforce(result>=0, "zfs error"); return ret; } @SILdoc(` Forces all in-core dirty data to be written to the primary pool storage and not the ZIL. Params: string poolname: the name of the pool. bool force: whether to force uberblock update even if there is no dirty data. `) auto poolSync(string poolName, bool force) { import std.format: format; nvlist_t* outnvl; auto innvl = nvlistAlloc(0x1, 0); if (force) nvlistAddBoolean(innvl,"force"); auto result = lzc_sync(poolName.toCString,innvl,&outnvl); enforce(result ==0, format!"error during pool sync: %s"(result)); } @SILdoc(`Create user holds on snapshots. If there is a hold on a snapshot, the snapshot can not be destroyed. (However, it can be marked for deletion by destroySnaps{defer:true} ). Parameters: string[string] holds: the dictionary of names of the snapshots to hold mapped to the hold names. int fileDescriptor: result of opening file Returns: string[] : list of snapshots that do not exist Errors: HoldFailure: if a hold was impossible on one or more of the snapshots. BadHoldCleanupFD: if fd is not a valid file descriptor associated with /dev/zfs The snapshots must all be in the same pool. If cleanupFd is set, then when the Fd is closed (including on process termination), the holds will be released. If the system is shut down uncleanly, the holds will be released when the pool is next opened or imported. Holds for snapshots which dont exist will be skipped and have an entry added to the return value, but will not cause an overall failure. No exceptions is raised if all holds, for snapshots that existed, were succesfully created. `) void holdSnapshot(string[string] holdsMap, int cleanupFd = -1) { import std.format:format; nvlist_t* errlist; auto holds = getProperties(holdsMap); auto result = lzc_hold(holds, cleanupFd, &errlist); enforce(result ==0, format!"error during holdsnaps: %s / %s"(result,processErrorList(errlist))); } @SILdoc(`Release user holds on snapshots. If the snapshot has been marked for deferred destroy (by destroySnapshots({defer:true}), it does not have any clones, and all the user holds are removed, then the snapshot will be destroyed. The snapshots must all be in the same pool. Params: string[string] holdsMap: a map where keys are snapshot names and values are lists of hold tags to remove. Returns: an array of any snapshots that do not exist and of any tags that do not exist for existing snapshots. Such tags are qualified with a corresponding snapshot name using the following format :file:{pool}/{fs}@{snap}#{tag} Errors: HoldReleaseFailure: if one or more existing holds could not be released. Holds which failed to release because they didnt exist will have an entry added to errlist, but will not cause an overall failure. This call is success if holds was empty or all holds that existed, were successfully removed. Otherwise an exception will be raised. `) void releaseSnapshot(string[string] holdsMap) { import std.format:format; nvlist_t* errlist; auto holds = getProperties(holdsMap); auto result = lzc_release(holds, &errlist); enforce(result ==0, format!"error during unholdsnaps: %s / %s"(result,processErrorList(errlist))); } @SILdoc(`Retrieve list of *user holds* on the specified snapshot. Params: string snapName: the name of the snapshot Returns: ulong[string] holds on the snapshots along with their creation times in seconds since the epoch `) ulong[string] getHeldSnapshots(string snapName) { import std.format:format; nvlist_t* holdsp; auto result = lzc_get_holds(snapName.toCString, &holdsp); enforce(result ==0, format!"error during getHeldSnapshots: %s"(result)); return holdsp.processNvlist!(ulong[string]); } enum SendFlag { largeBlock = LZC_SEND_FLAG_LARGE_BLOCK, embedData = LZC_SEND_FLAG_EMBED_DATA, compress = LZC_SEND_FLAG_COMPRESS, raw = LZC_SEND_FLAG_RAW } @SILdoc(`Generate a zfs send stream for the specified snapshot and write it to the specified file descriptor. Params: string snapname: the name of the snapshot to send. string fromsnap: if not empty the name of the starting snapshot for the incremental stream. int fileDescriptor: the file descriptor to write the send stream to. SendFlag[] flags: the flags that control what enhanced features can be used in the stream. Errors: SnapshotNotFound: if either the starting snapshot is set and does not exist, or if the ending snapshot does not exist. NameInvalid: if the name of either snapshot is invalid. NameTooLong: if the name of either snapshot is too long. SnapshotMismatch: if fromsnap is not an ancestor snapshot of snapname PoolsDiffer: if the snapshots belong to different pools. IOError: if an input / output error occurs while writing to fd UnknownStreamFeature: if the flags contain an unknown flag name. If fromsnap is empty, a full (non-incremental) stream will be sent. If fromsnap is not empty, it must be the full name of a snapshot or bookmark to send an incremental from, e.g. :file:{pool}/{fs}@{earlier_snap} or :file:{pool}/{fs}#{earlier_bmark}. The specified snapshot or bookmark must represent an earlier point in the history of snapname. It can be an earlier snapshot in the same filesystem or zvol as snapname, or it can be the origin of snapnames filesystem, or an earlier snapshot in the origin, etc. fromsnap must be strictly an earlier snapshot, specifying the same snapshot as both fromsnap and snapname is an error. If flags contains *"large_blocks"*, the stream is permitted to contain DRR_WRITE records with drr_length > 128K, and DRR_OBJECT records with drr_blksz > 128K. If flags contains *"embedded_data"*, the stream is permitted to contain DRR_WRITE_EMBEDDED records with drr_etype == BP_EMBEDDED_TYPE_DATA, which the receiving system must support (as indicated by support for the *embedded_data* feature). If flags contains *"compress"*, the stream is generated by using compressed WRITE records for blocks which are compressed on disk and in memory. If the *lz4_compress* feature is active on the sending system, then the receiving system must have that feature enabled as well. If flags contains *"raw"*, the stream is generated, for encrypted datasets, by sending data exactly as it exists on disk. This allows backups to be taken even if encryption keys are not currently loaded. note: lzc_send can actually accept a filesystem name as the snapname. In that case lzc_send acts as if a temporary snapshot was created after the start of the call and before the stream starts being produced. lzc_send does not return until all of the stream is written to fd. lzc_send does *not* close fd upon returning. `) void sendSnapshot(string snapshotName, Socket socket, SendFlag[] flags=[], string fromSnapshot="") { import std.algorithm:fold; auto lzcFlags = flags.fold!((a,b) => a| b)(cast(SendFlag)0).to!lzc_send_flags; auto result = lzc_send(snapshotName.toCString, fromSnapshot.toCString,cast(int)socket.handle,lzcFlags); enforce(result == 0, "zfs error"); } @SILdoc(`Resume a previously interrupted send operation generating a zfs send stream for the specified snapshot and writing it to the specified file descriptor. Params: string snapname: the name of the snapshot to send. string fromsnap: if set the name of the starting snapshot for the incremental stream. int fd: the file descriptor to write the send stream to. SendFlag[] flags: the flags that control what enhanced features can be used in the stream. ulong resumeobj: the object number where this send stream should resume from. ulong resumeoff: the offset where this send stream should resume from. Errors: SnapshotNotFound: if either the starting snapshot is set and does not exist, or if the ending snapshot does not exist. NameInvalid: if the name of either snapshot is invalid. NameTooLong: if the name of either snapshot is too long. SnapshotMismatch: if fromsnap is not an ancestor snapshot of snapname PoolsDiffer: if the snapshots belong to different pools. IOError: if an input / output error occurs while writing to fd UnknownStreamFeature: if the flags contain an unknown flag name. note: See sendSnapshot for more information `) auto sendResume(string snapshotName, Socket socket, string fromSnapshot="", SendFlag[] flags=[], ulong resumeObj=0UL, ulong resumeOff=0UL) { import std.algorithm:fold; auto lzcFlags = flags.fold!((a,b) => a| b)(cast(SendFlag)0).to!lzc_send_flags; auto result = lzc_send_resume(snapshotName.toCString, fromSnapshot.toCString, cast(int)socket.handle, lzcFlags, resumeObj, resumeOff); enforce(result == 0, "zfs error"); } @SILdoc(` "from" can be null, a snapshot, or a bookmark. If from is null, a full (non-incremental) stream will be estimated. This is calculated very efficiently. If from is a snapshot, lzc_send_space uses the deadlists attached to each snapshot to efficiently estimate the stream size. If from is a bookmark, the indirect blocks in the destination snapshot are traversed, looking for blocks with a birth time since the creation TXG of the snapshot this bookmark was created from. This will result in significantly more I/O and be less efficient than a send space estimation on an equivalent snapshot. `) auto sendSpace(string snapshotName, string from, SendFlag[] flags) { import std.algorithm:fold; auto lzcFlags = flags.fold!((a,b) => a| b)(cast(SendFlag)0).to!lzc_send_flags; ulong retSpace; auto result = lzc_send_space(snapshotName.toCString, from.toCString, lzcFlags,&retSpace); enforce(result == 0, "zfs error"); return retSpace; } /+ * * Linux adds ZFS_IOC_RECV_NEW for resumable and raw streams and preserves the * legacy ZFS_IOC_RECV user/kernel interface. The new interface supports all * stream options but is currently only used for resumable streams. This way * updated user space utilities will interoperate with older kernel modules. * * Non-Linux OpenZFS platforms have opted to modify the legacy interface. */ int recv_impl(const char *snapname, nvlist_t *recvdprops, nvlist_t *localprops, ubyte *wkeydata, uint_t wkeylen, const char *origin, boolean_t force, boolean_t resumable, boolean_t raw, int input_fd, const dmu_replay_record *begin_record, int cleanup_fd, ulong *read_bytes, ulong *errflags, ulong *action_handle, nvlist_t **errors) +/ @SILdoc(`zfs receive: The simplest receive case: receive from the specified fd, creating the specified snapshot. Apply the specified properties as "received" properties (which can be overridden by locally-set properties). If the stream is a clone, its origin snapshot must be specified by origin. The 'force' flag will cause the target filesystem to be rolled back or destroyed if necessary to receive. Return 0 on success or an (*__errno_location ()) on failure. Note: this interface does not work on dedupd streams (those with DMU_BACKUP_FEATURE_DEDUP). resumable: Like lzc_receive, but if the receive fails due to premature stream termination, the intermediate state will be preserved on disk. In this case, ECKSUM will be returned. The receive may subsequently be resumed with a resuming send stream generated by lzc_send_resume(). `) void receive(string snapName, Socket socket, string origin="", bool force=false, bool raw=false, string[string] properties = (string[string]).init, bool resumable = false) { import std.format:format; auto props = getProperties(properties); scope(exit) nvlistFree(props); auto result = resumable ? lzc_receive(snapName.toCString, props,origin.toCString, force? 1:0, raw?1:0, cast(int)socket.handle) : lzc_receive_resumable(snapName.toCString, props,origin.toCString, force?1:0, raw? 1:0, cast(int)socket.handle); enforce(result == 0, format!"zfs error: %s"(result)); } @SILdoc(`zfsReceiveWithHeader Like lzc_receive, but allows the caller to read the begin record and then to pass it in. That could be useful if the caller wants to derive, for example, the snapname or the origin parameters based on the information contained in the begin record. The begin record must be in its original form as read from the stream, in other words, it should not be byteswapped. The 'resumable' parameter allows to obtain the same behavior as with lzc_receive_resumable. `) void receiveWithHeader(string snapName, Socket socket, string origin="", bool force=false, bool raw=false, string[string] properties=string[string].init, bool resumable=true, dmu_replay_record* beginRecord=null) { auto props = getProperties(properties); scope(exit) nvlistFree(props); auto result = lzc_receive_with_header(snapName.toCString, props, origin.toCString, force ? 1 :0, resumable ? 1 : 0, raw ? 1 :0, cast(int)socket.handle, beginRecord); enforce(result == 0); } @SILdoc(`zfsReceiveOne Like lzc_receive, but allows the caller to pass all supported arguments and retrieve all values returned. The only additional input parameter is 'cleanup_fd' which is used to set a cleanup-on-exit file descriptor. The following parameters all provide return values. Several may be set in the failure case and will contain additional information. The 'read_bytes' value will be set to the total number of bytes read. The 'errflags' value will contain zprop_errflags_t flags which are used to describe any failures. The 'action_handle' is used to pass the handle for this guid/ds mapping. It should be set to zero on first call and will contain an updated handle on success, it should be passed in subsequent calls. The 'errors' nvlist contains an entry for each unapplied received property. Callers are responsible for freeing this nvlist. `) auto receiveOne(string snapName, Socket socket, string origin="", bool force=false, bool resumable=true, bool raw=false, string[string] properties=string[string].init, dmu_replay_record* beginRecord=null, int cleanupFileDescriptor=-1, ulong actionHandle = 0UL) { ulong readBytes; ulong errorFlags; nvlist_t* errorList; auto props = getProperties(properties); scope(exit) nvlistFree(props); auto result = lzc_receive_one(snapName.toCString, props, origin.toCString, force ? 1 : 0, resumable ? 1 :0, raw ? 1 : 0, cast(int)socket.handle, beginRecord, cleanupFileDescriptor, &readBytes, &errorFlags, &actionHandle,&errorList); enforce(result == 0); return tuple(readBytes,actionHandle,errorFlags,errorList.processErrorList); } @SILdoc(`Like lzc_receive_one, but allows the caller to pass an additional 'cmdprops' argument. The 'cmdprops' nvlist contains both override ('zfs receive -o') and exclude ('zfs receive -x') properties. Callers are responsible for freeing this nvlist `) auto receiveWithCommandProperties(string snapName, string[string] properties, string[string] commandProperties, ubyte[] keyData, string origin, bool force, bool resumable, bool raw, int inputFileDescriptor, dmu_replay_record* beginRecord, int cleanupFileDescriptor,ulong actionHandle = 0UL) { import std.format:format; ulong readBytes; ulong errorFlags; nvlist_t* errors; auto props = getProperties(properties); scope(exit) nvlistFree(props); auto cmdProps = getProperties(commandProperties); scope(exit) nvlistFree(cmdProps); auto result = lzc_receive_with_cmdprops(snapName.toCString, props, cmdProps, keyData.ptr, keyData.length.to!uint, origin.toCString, force ? 1 :0, resumable ? 1 :0, raw ? 1 : 0, inputFileDescriptor, beginRecord, cleanupFileDescriptor, &readBytes, &errorFlags, &actionHandle, &errors); enforce(result == 0, format!"zfs error %s"(result)); return tuple(readBytes,actionHandle,errorFlags,errors.processErrorList); } @SILdoc(`Roll back this filesystem or volume to its most recent snapshot returns the name of the most recent snapshot. Note that the latest snapshot may change if a new one is concurrently created or the current one is destroyed. lzc_rollback_to can be used to roll back to a specific latest snapshot.`) string rollback(string fsname) { import std.format:format; char[16384] buf; auto result = lzc_rollback(fsname.toCString, buf.ptr, buf.length.to!int); enforce(result ==0, format!"libzfs_core error %s rolling back on %s"(result,fsname)); return buf.ptr.fromCString.idup; } @SILdoc(`Roll back this filesystem or volume to the specified snapshot, if possible`) void rollbackTo(string fsName, string snapName) { import std.format:format; auto result = lzc_rollback_to(fsName.toCString, snapName.toCString); enforce(result == 0, format!"zfs error: %s"(result)); } @SILdoc(`Creates bookmarks. The bookmarks nvlist maps from name of the bookmark (e.g. "pool/fs#bmark") to the name of the snapshot (e.g. "pool/fs@snap"). All the bookmarks and snapshots must be in the same pool. The returned results nvlist will have an entry for each bookmark that failed. The value will be the (int32) error code. The return value will be 0 if all bookmarks were created, otherwise it will be the (*__errno_location ()) of a (undetermined) bookmarks that failed. `) auto createBookmarks(string[string] bookmarks) { import std.format:format; nvlist_t* errlist; auto list = getProperties(bookmarks); scope(exit) nvlistFree(list); auto result = lzc_bookmark(list, &errlist); enforce(result == 0, format!" zfs error: %s"(result)); } @SILdoc(` Retrieve bookmarks. Retrieve the list of bookmarks for the given file system. The props parameter is an nvlist of property names (with no values) that will be returned for each bookmark. The following are valid properties on bookmarks, all of which are numbers (represented as uint64 in the nvlist) "guid" - globally unique identifier of the snapshot it refers to "createtxg" - txg when the snapshot it refers to was created "creation" - timestamp when the snapshot it refers to was created The format of the returned nvlist as follows: <short name of bookmark> . { <name of property> . { "value" . uint64 } } `) ulong[string][string] getBookmarks(string fsName, string[] properties) { nvlist_t* bmarks; auto props = getList(properties); scope(exit) nvlistFree(props); auto result = lzc_get_bookmarks(fsName.toStringz, props,&bmarks); enforce(result == 0, "ZFS error"); return bmarks.processNvlist!(ulong[string][string]); } @SILdoc(`Destroys bookmarks The keys in the bmarks nvlist are the bookmarks to be destroyed. They must all be in the same pool. Bookmarks are specified as <fs>#<bmark>. Bookmarks that do not exist will be silently ignored. The return value will be 0 if all bookmarks that existed were destroyed. Otherwise the return value will be the (*__errno_location ()) of a (undetermined) bookmark that failed, no bookmarks will be destroyed, and the errlist will have an entry for each bookmarks that failed. The value in the errlist will be the (int32) error code. `) auto destroyBookmarks(string[] bookmarks) { nvlist_t* errlist; auto list = getList(bookmarks); scope(exit) nvlistFree(list); auto result = lzc_destroy_bookmarks(list,&errlist); enforce(result == 0, "zfs error"); return 0; } @SILdoc(`Executes a channel program If this function returns 0 the channel program was successfully loaded and ran without failing. Note that individual commands the channel program ran may have failed and the channel program is responsible for reporting such errors through outnvl if they are important. This method may also return: 22 The program contains syntax errors, or an invalid memory or time limit was given. No part of the channel program was executed. If caused by syntax errors, 'outnvl' contains information about the errors. 44 The program was executed, but encountered a runtime error, such as calling a function with incorrect arguments, invoking the error() function directly, failing an assert() command, etc. Some portion of the channel program may have executed and committed changes. Information about the failure can be found in 'outnvl'. 12 The program fully executed, but the output buffer was not large enough to store the returned value. No output is returned through 'outnvl'. 28 The program was terminated because it exceeded its memory usage limit. Some portion of the channel program may have executed and committed changes to disk. No output is returned through 'outnvl'. 62 The program was terminated because it exceeded its Lua instruction limit. Some portion of the channel program may have executed and committed changes to disk. No output is returned through 'outnvl'. `) void executeChannelProgram(string pool, string program, string[string] parameters, ulong instrLimit = (10 * 1000 * 1000), ulong memLimit=(10 * 1024 * 1024)) { import std.format: format; auto params = getProperties(parameters); scope(exit) nvlistFree(params); nvlist_t* outnvl; auto result = lzc_channel_program(pool.toCString, program.toCString, instrLimit, memLimit, params,&outnvl); enforce(result == 0, format!"zfs error: %s"(result)); } @SILdoc(`Creates a checkpoint for the specified pool. If this function returns 0 the pool was successfully checkpointed. This method may also return: ZFS_ERR_CHECKPOINT_EXISTS The pool already has a checkpoint. A pools can only have one checkpoint at most, at any given time. ZFS_ERR_DISCARDING_CHECKPOINT ZFS is in the middle of discarding a checkpoint for this pool. The pool can be checkpointed again once the discard is done. ZFS_DEVRM_IN_PROGRESS A vdev is currently being removed. The pool cannot be checkpointed until the device removal is done. ZFS_VDEV_TOO_BIG One or more top-level vdevs exceed the maximum vdev size supported for this feature. `) void createCheckpoint(string pool) { import std.format:format; auto result = lzc_pool_checkpoint(pool.toCString); enforce(result == 0, format!"zfs error: %s"(result)); } @SILdoc(`Discard the checkpoint from the specified pool`) void discardCheckpoint(string pool) { auto result = lzc_pool_checkpoint_discard(pool.toCString); enforce(result != ZFS_ERR_NO_CHECKPOINT, "The pool does not have a checkpoint."); enforce(result != ZFS_ERR_DISCARDING_CHECKPOINT, "ZFS is already in the middle of discarding the checkpoint."); enforce(result != ZFS_ERR_CHECKPOINT_EXISTS, "ZFS checkpoint already exists"); } @SILdoc(` Executes a read-only channel program. A read-only channel program works programmatically the same way as a normal channel program executed with lzc_channel_program(). The only difference is it runs exclusively in open-context and therefore can return faster. The downside to that, is that the program cannot change on-disk state by calling functions from the zfs.sync submodule. The return values of this function (and their meaning) are exactly the same as the ones described in lzc_channel_program(). `) void executeChannelProgramNoSync(string pool, string program, string[string] parameters, ulong instrLimit = (10 * 1000 * 1000), ulong memLimit=(10 * 1024 * 1024)) { import std.format: format; auto params = getProperties(parameters); scope(exit) nvlistFree(params); nvlist_t* outnvl; auto result = lzc_channel_program_nosync(pool.toCString, program.toCString, instrLimit, memLimit, params, &outnvl); enforce(result == 0, format!"zfs error: %s"(result)); } @SILdoc(`Load or verify encryption key on the specified dataset. Params: string fsName: the name of the dataset bool noOp: if true the encryption key will only be verified, not loaded string encryptionKey: dataset encryption key data Errors: FilesystemNotFound: if the dataset does not exist. EncryptionKeyAlreadyLoaded: if the encryption key is already loaded. EncryptionKeyInvalid: if the encryption key provided is incorrect. `) auto loadKey(string fsName, bool noOp, string encryptionKey) { import std.format:format; auto result = lzc_load_key(fsName.toCString, noOp ? 1 : 0, cast(ubyte*)encryptionKey.ptr, encryptionKey.length.to!uint); enforce(result ==0, format!"loadkey failed with %s"(result)); } @SILdoc(`Unload encryption key from the specified dataset. Params: string fsName: the name of the dataset. Errors: FilesystemNotFound: if the dataset does not exist. DatasetBusy: if the encryption key is still being used. This usually occurs when the dataset is mounted. EncryptionKeyNotLoaded: if the encryption key is not currently loaded. `) void unloadKey(string fsName) { import std.format:format; auto result = lzc_unload_key(fsName.toCString); enforce(result ==0, format!"unLoadkey failed with %s"(result)); } enum DCP_CMD_NEW_KEY = 0; enum DCP_CMD_INHERIT = 1; enum DCP_CMD_FORCE_NEW_KEY = 2; enum DCP_CMD_FORCE_INHERIT = 3; enum EncryptionCommand { newKey = DCP_CMD_NEW_KEY, inherit = DCP_CMD_INHERIT, forceNewKey = DCP_CMD_FORCE_NEW_KEY, forceInherit = DCP_CMD_FORCE_INHERIT, } @SILdoc(`Change encryption key on the specified dataset. Params: string fsName: the name of the dataset. EncryptionCommand cryptCommand: the encryption "command" to be executed, currently supported values are "new_key", "inherit", "force_new_key" and "force_inherit" string[string] properties: a dictionary of encryption-related property name-value pairs; only "keyformat", "keylocation" and "pbkdf2iters" are supported (empty by default). string[] encryptionKey: dataset encryption key data (empty by default). Errors: PropertyInvalid: if props contains invalid values. FilesystemNotFound: if the dataset does not exist. UnknownCryptCommand: if cryptCommand is invalid. EncryptionKeyNotLoaded: if the encryption key is not currently loaded and therefore cannot be changed. `) auto changeKey(string fsName, EncryptionCommand cryptCommand, string encryptionKey, string[string] properties = (string[string]).init) { import std.format:format; auto props = getProperties(properties); scope(exit) nvlistFree(props); auto result = lzc_change_key(fsName.toCString, cryptCommand.to!ulong, props,cast(ubyte*)encryptionKey.ptr, encryptionKey.length.to!uint); enforce(result ==0, format!"changeKey failed with %s"(result)); } @SILdoc(`Reopen a pool Params: string pool: the name of the pool. bool restartScrub: whether to restart an in-progress scrub operation. Errors: PoolNotFound: if the pool does not exist `) void reopen(string pool, bool restartScrub = false) { import std.format:format; auto result = lzc_reopen(pool.toCString, restartScrub ? 1 : 0); enforce(result ==0, format!"reopen failed with %s"(result)); } string zfsVersion() { import std.process: executeShell; import std.string: splitLines, startsWith, strip, join,split; import std.algorithm: filter; import std.format:format; import std.range:back; auto result = executeShell("modinfo zfs"); enforce(result.status == 0, result.output); auto lines = result.output.splitLines.filter!(line => line.startsWith("version:")); return lines.front.strip.split.back; } @SILdoc(`Check if a dataset (a filesystem, or a volume, or a snapshot) with the given name exists. Params: string path: the dataset name to check Returns: true if the dataset exists, false otherwise Note: datasetExists cannot be used to check for existence of bookmarks. `) bool datasetExists(string path) { return lzc_exists(path.toCString) !=0; } @SILdoc(`Create snapshots. All snapshots must be in the same pool. Optionally snapshot properties can be set on all snapshots. Currently only user properties (prefixed with "user:") are supported. Either all snapshots are successfully created or none are created if an exception is raised. Params: snapshotNames: a list of names of snapshots to be created. string[string] properties: ZFS dataset property name-value pairs (empty by default). Errors: SnapshotFailure: if one or more snapshots could not be created. warning: The underlying implementation reports an individual, per-snapshot error only for SnapshotExists condition and *sometimes* for NameTooLong. In all other cases a single error is reported without connection to any specific snapshot name(s). This has the following implications: * if multiple error conditions are encountered only one of them is reported * unless only one snapshot is requested then it is impossible to tell how many snapshots are problematic and what they are * only if there are no other error conditions :exc:.SnapshotExists is reported for all affected snapshots * :exc:.NameTooLong can behave either in the same way as :exc:.SnapshotExists or as all other exceptions. The former is the case where the full snapshot name exceeds the maximum allowed length but the short snapshot name (after '@') is within the limit. The latter is the case when the short name alone exceeds the maximum allowed length. `) void snapshot(string[] snapshotNames, string[string] properties = (string[string]).init) { import std.format:format; import std.string: join; auto snapshots = getList(snapshotNames); scope(exit) nvlistFree(snapshots); auto props = getProperties(properties); scope(exit) nvlistFree(props); nvlist_t* errList; auto result = lzc_snapshot(snapshots, props, &errList); if (result != 0) { auto ret2 = processErrorList(errList); enforce(ret2.length ==0, format!" failed libzfs_core snapshot: %s, %s"(snapshotNames,ret2.join(","))); } } @SILdoc(`Destroy snapshots. They must all be in the same pool. Snapshots that do not exist will be silently ignored. If defer is not set, and a snapshot has user holds or clones, the destroy operation will fail and none of the snapshots will be destroyed. If defer is set, and a snapshot has user holds or clones, it will be marked for deferred destruction, and will be destroyed when the last hold or clone is removed/destroyed. The operation succeeds if all snapshots were destroyed (or marked for later destruction if defer is set) or didnt exist to begin with. Params: string[] snapshotNames: a list of names of snapshots to be destroyed. bool defer: whether to mark busy snapshots for deferred destruction rather than immediately failing. Errors: SnapshotDestructionFailure: if one or more snapshots could not be created. note: SnapshotDestructionFailure is a compound exception that provides at least one detailed error object in SnapshotDestructionFailure.errors list. Typical error is SnapshotIsCloned if defer is False. The snapshot names are validated quite loosely and invalid names are typically ignored as nonexisiting snapshots. A snapshot name referring to a filesystem that doesnt exist is ignored. However, non-existent pool name causes PoolNotFound. `) void destroySnapshots(string[] snapshotNames, bool deferDelete) { import std.format:format; import std.string:join; auto snapshots = getList(snapshotNames); scope(exit) nvlistFree(snapshots); nvlist_t* errList; boolean_t cdeferDelete = (deferDelete) ? 1 : 0; auto result = lzc_destroy_snaps(snapshots, cdeferDelete, &errList); if (result != 0) { auto ret2 = processErrorList(errList); enforce(ret2.length ==0, format!"failed libzfs_core snapshot: %s, %s"(snapshotNames,ret2.join(","))); } } /+ @SILdoc(`Destroy the ZFS dataset. Params: string datasetName: the name of the dataset to destroy. Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. FilesystemNotFound: if the dataset does not exist. `) void destroyDataset(string datasetName) { import std.string:join; import std.format:format; nvlist_t* errList; auto result = lzc_destroy_one(datasetName.toCString,null); if (result != 0) { auto ret2 = processErrorList(errList); enforce(ret2.length ==0, format!"failed libzfs_core snapshot: %s, %s"(datasetName,ret2.join(","))); } } +/ @SILdoc(`Inherit properties from a parent dataset of the given ZFS dataset. Params: string name: the name of the dataset. string prop: the name of the property to inherit. Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. DatasetNotFound: if the dataset does not exist. PropertyInvalid: if one or more of the specified properties is invalid or has an invalid type or value. Inheriting a property actually resets it to its default value or removes it if its a user property, so that the property could be inherited if its inheritable. If the property is not inheritable then it would just have its default value. This function can be used on snapshots to inherit user defined properties. `) void inheritProperties(string name, string property, bool recursive=false, bool useSudo = true) { import std.algorithm:each,map; import std.format:format; import std.string:join,splitLines,split; import std.array:Appender; Appender!string props; import std.format:format; import std.process: executeShell; DatasetPropertiesResult ret; auto commandString = format!"%s inherit %s %s %s"(useSudo ? "sudo ":"", recursive ? "-r ":"", property,name); auto result = executeShell(commandString); enforce(result.status==0, result.output); } @SILdoc(`Set properties of the ZFS dataset. Params: string name: the name of the dataset. string[string]: properties Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. DatasetNotFound: if the dataset does not exist. NoSpace: if the property controls a quota and the values is too small for that quota. PropertyInvalid: if one or more of the specified properties is invalid or has an invalid type or value. This function can be used on snapshots to set user defined properties. note: An attempt to set a readonly / statistic property is ignored without reporting any error. `) void setDatasetProperties(string name, string[string] properties, bool useSudo = true) { import std.format:format; import std.string:join; import std.array:Appender; import std.process: executeShell; Appender!string props; foreach(prop;properties.byKeyValue) { props.put(prop.key); props.put("="); props.put(prop.value); props.put(" "); } auto commandString = format!"%s zfs set %s %s"(useSudo ? "sudo ":"", props.data, name); auto result = executeShell(commandString); enforce(result.status==0, result.output); } struct PipePair { int read; int write; } @SILdoc(`List subordinate elements of the given dataset. This function can be used to list child datasets and snapshots of the given dataset. The listed elements can be filtered by their type and by their depth relative to the starting dataset. :param bytes name: the name of the dataset to be listed, could be a snapshot or a dataset. Params: options: a dict of the options that control the listing behavior. Returns: PipePair - a pair of file descriptors the first of which can be used to read the listing. Errors: DatasetNotFound: if the dataset does not exist. Two options are currently available: recurse : integer or None specifies depth of the recursive listing. If None the depth is not limited. Absence of this option means that only the given dataset is listed. type : dict of bytes:None specifies dataset types to include into the listing. Currently allowed keys are "filesystem", "volume", "snapshot". Absence of this option implies all types. The first of the returned file descriptors can be used to read the listing in a binary encounded format. The data is a series of variable sized records each starting with a fixed size header, the header is followed by a serialized nvlist. Each record describes a single element and contains the elements name as well as its properties. The file descriptor must be closed after reading from it. The second file descriptor represents a pipe end to which the kernel driver is writing information. It should not be closed until all interesting information has been read and it must be explicitly closed afterwards. `) auto listImpl(string name, string[string] options) { import core.sys.posix.unistd: pipe; import core.sys.posix.fcntl; import std.format:format; int[2] pipefd; enforce(pipe(pipefd) !=-1, "pipe error"); fcntl(pipefd[0], F_SETFD, FD_CLOEXEC); fcntl(pipefd[1], F_SETFD, FD_CLOEXEC); options["fd"] = pipefd[1].to!string; auto copts = getProperties(options); /+ auto result = lzc_list(name.toCString,copts); if (result == 3) return PipePair(-1,-1); +/ return PipePair(pipefd[0],pipefd[1]); } struct PipeRecord { uint size; ubyte val1; ubyte err; ubyte val2; ubyte val3; } @SILdoc(`A wrapper for listImpl that hides details of working with the file descriptors and provides data in an easy to consume format. Params: string name: the name of the dataset to be listed, could be a snapshot, a volume or a filesystem. int recurse: specifies depth of the recursive listing. If -1 the depth is not limited. string[] types: specifies dataset types to include into the listing. Currently allowed keys are "filesystem", "volume", "snapshot". no types is equivalent to specifying the type of the dataset named by name. Returns: string[string][] with each dictionary each describing a single listed element. `) auto list(string name, int recurse = -1, string[] types=[]) { import std.format:format; import std.algorithm:map; import std.string:join; import core.sys.posix.unistd: pipe, read, close; string[string][] ret; string[string] options; if (types.length > 0) options["type"] = types.map!(type => type.to!string).join(","); if (recurse > -1) options["recurse"] = recurse.to!string; auto pipes = listImpl(name,options); if (pipes.read == -1) return ret; scope(exit) { close(pipes.write); close(pipes.read); } while(true) { ubyte[PipeRecord.sizeof] recordBytes; auto numBytes= read(pipes.read, cast(void*) recordBytes.ptr,PipeRecord.sizeof); if (numBytes != recordBytes.length) break; auto record= cast(PipeRecord)(recordBytes); if (record.err == 3) break; if (record.size == 0) break; ubyte[] dataBytes; dataBytes.length = record.size; numBytes= read(pipes.read, cast(void*) dataBytes.ptr,record.size); enforce(numBytes == dataBytes.length); auto entry = processNvlist!(string[string])(cast(nvlist_t*)dataBytes.ptr); ret ~= entry.dup; } return ret; } struct DatasetPropertiesResult { string[string] values; string[string] sources; } @SILdoc(`Get properties of the ZFS dataset. Params: string name: the name of the dataset Errors: DatasetNotFound: if the dataset does not exist. NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. Returns: string[string] mapping the property names to their values. note: The value of clones property is a list of clone names as strings. warning: The returned dictionary does not contain entries for properties with default values. One exception is the mountpoint property for which the default value is derived from the dataset name. `) DatasetPropertiesResult[string] getDatasetProperties(string name,bool recursive = true, bool useSudo = true) { import std.algorithm:each,map; import std.format:format; import std.string:join,splitLines,split,replace; import std.array:Appender; Appender!string props; import std.format:format; import std.process: executeShell; import std.range:dropOne,front; DatasetPropertiesResult[string] ret; auto commandString = format!"%s zfs get all %s %s"(useSudo ? "sudo ":"", recursive ? "-r ":"", name); auto result = executeShell(commandString); enforce(result.status==0, result.output); auto lines = result.output.splitLines; auto colNums = lines.front.getColumns(); auto results = lines.dropOne.map!(line => line.makeColumns(colNums)); foreach(entry;results) { if(entry.length>2) { auto r = ret.get(entry[0],DatasetPropertiesResult.init); r.values[entry[1]] = entry[2]; if(entry.length >3) r.sources[entry[1]] = entry[3]; ret[entry[0]] = r; } } return ret; } @SILdoc(`List the children of the ZFS dataset. Params: string name: the name of the dataset Returns: string[]: the names of the children. Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. DatasetNotFound: if the dataset does not exist. warning: If the dataset does not exist, then the returned iterator would produce no results and no error is reported. That case is indistinguishable from the dataset having no children. An attempt to list children of a snapshot is silently ignored as well. `) string[] listChildren(string name,bool useSudo = true) { import std.format:format; import std.algorithm:each,map; import std.string:join,splitLines,split; import std.array:Appender,array; Appender!string props; import std.range:dropOne,front; import std.process: executeShell; auto commandString = format!"%s zfs list -r %s"(useSudo ? "sudo ":"", name); auto result = executeShell(commandString); enforce(result.status==0, result.output); return result.output .splitLines .dropOne .map!(line => line.split(' ').front) .array; } @SILdoc(`List the snapshots of the ZFS dataset. Params: string datasetName: the name of the dataset Returns: string[] the names of the snapshots Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. DatasetNotFound: if the dataset does not exist. warning: If the dataset does not exist, then the returned iterator would produce no results and no error is reported. That case is indistinguishable from the dataset having no snapshots. An attempt to list snapshots of a snapshot is silently ignored as well. `) string[] listSnapshots(string datasetName, bool recursive = false, bool useSudo = true) { import std.format:format; import std.algorithm:each,map; import std.string:join,splitLines,split; import std.array:Appender,array; Appender!string props; import std.range:dropOne,front; import std.process: executeShell; auto commandString = format!"%s zfs list %s -t snapshot %s"(useSudo ? "sudo ":"", recursive ? "-r ":"",datasetName); auto result = executeShell(commandString); enforce(result.status==0, result.output); return result.output .splitLines .dropOne .map!(line => line.split(' ').front) .array; } nvlist_t* nvlistAlloc(uint nvflag, int kmflag) { nvlist_t* cnvlist; auto result = nvlist_alloc(&cnvlist, nvflag, kmflag); enforce(result ==0, "failed to allocate nvlist"); return cnvlist; } void nvlistFree(nvlist_t* cnvlist) { nvlist_free(cnvlist); } @SILdoc(` Destroy the ZFS dataset. Params: string name: the name of the dataset to destroy Errors: NameInvalid: if the dataset name is invalid. NameTooLong: if the dataset name is too long. FilesystemNotFound: if the dataset does not exist. `) ZfsResult destroyDataset(string name) { import std.format:format; auto result = lzc_destroy(name.toCString); return zfsResult(result==0, ZfsError.noent, format!"failed to destroy %s: %s"(name,result)); } string[] processErrorList(nvlist_t* errList) { import std.format:format; string[] ret; if (isNvlistEmpty(errList)) { return ret; } scope(exit) nvlistFree(errList); int errNum; nvpair_t* elem = nextNvPair(errList); while(elem !is null) { auto s = nvpair_name(elem).fromCString.idup; nvpair_value_int32(elem, &errNum); ret ~= format!"Failed Snapshot '%s':%s"(s,errNum); elem = nvlist_next_nvpair(errList, elem); } return ret; } ulong[string] processNvlist(T)(nvlist_t* list) if (is(T==ulong[string])) { ulong[string] ret; nvpair_t* elem; nvpair_value_nvlist(elem,&list); nvpair_t* listElem = nextNvPair(list); ulong[string] dictEntry; while(listElem !is null) { auto listElemKey = nvpair_name(listElem).fromCString.idup; ulong val; nvpair_value_uint64(listElem,&val); ret[listElemKey] = val; } return ret; } ulong[string][string] processNvlist(T)(nvlist_t* bookmarks) if (is(T==ulong[string][string])) { ulong[string][string] ret; if (isNvlistEmpty(bookmarks)) { return ret; } scope(exit) nvlistFree(bookmarks); nvpair_t* elem = nextNvPair(bookmarks); while(elem !is null) { auto s = nvpair_name(elem).fromCString.idup; nvlist_t* list; nvpair_value_nvlist(elem,&list); ret[s] = processNvlist!(ulong[string])(list).dup; elem = nextNvPair(bookmarks); } return ret; } string[string] processNvlist(T)(nvlist_t* list) if (is(T == string[string])) { string[string] ret; auto pair = nextNvPair(list,null); while( pair !is null) { auto name = nvpair_name(pair).fromCString.idup; char* val; auto result = nvpair_value_string(pair, &val); enforce(result ==0); ret[name] = val.fromCString.idup; pair = nvlist_next_nvpair(list,pair); } return ret; } alias asDict = processNvlist!(string[string]); nvpair_t* nextNvPair(nvlist_t* list, nvpair_t* elemArg = null) { nvpair_t* elem; if (elemArg !is null) elem = elemArg; elem = nvlist_next_nvpair(list, elem); return elem; } nvlist_t* getProperties(string[string] properties) { nvlist_t* ret = nvlistAlloc(0x1,0); foreach(entry;properties.byKeyValue) { enforce(nvlist_add_string(ret,entry.key.toCString,entry.value.toCString)==0, "allocating properties"); } return ret; } nvlist_t* getList(string[] values) { nvlist_t* ret = nvlistAlloc(0x1,0); foreach(value;values) { nvlistAddBoolean(ret,value); } return ret; } void nvlistAddBoolean(nvlist_t* nvlist, string name) { import std.format:format; auto errnoResult = nvlist_add_boolean(nvlist, name.toCString); enforce(errnoResult ==0, format!"Failed to add boolean: %s"(errnoResult)); } bool isNvlistEmpty(nvlist_t* cnvlist) { return (nvlist_empty(cnvlist) !=0); } @SILdoc(`Create a ZFS filesystem Params: string name - name of the dataset to be created string[string] properties - a dictionary od ZFS dataset property name-value pairs ubyte[] encryptionKey - dataset encryption key data Errors: FilesystemExists - if a dataset with the given name already exists ParentNotFound - if a parent dataset of the requested dataset does not exist PropertyInvalid - if one or more of specified properties does not exist or has an invalid type or value NameInvalid - if the name is not a valid dataset name NameTooLong - if the name is too long WrongParent - if the parent dataset of the requested dataset is not a filesystem eg zvol `) void createFileSystem(string path, string[string] properties = (string[string]).init, string encryptionKey=null) { import std.format:format; auto props = getProperties(properties); enforce(props !is null, "alloc failure for props for "~path ); scope(exit) nvlistFree(props); auto cpath = path.toCString; auto result = lzc_create(cpath, LZC_DATSET_TYPE_ZFS, props,cast(ubyte*)encryptionKey.ptr,encryptionKey.length.to!uint); enforce(result ==0, format!"Failed libzfs_core create: %s"(result)); } ZfsResult validate(string zpool) { import std.file:exists; import std.process:executeShell; import std.exception; import std.format:format; auto result = executeShell("modprobe zfs"); enforce(result.status==0, "ZFS Kernel module not found"); return zfsResult(exists("/" ~ zpool), ZfsError.noent, format!"pool %s not found"(zpool)); } struct ZfsResult { ZfsError status; string message; } auto zfsResult(bool success, ZfsError status, string message) { return success ? ZfsResult(ZfsError.success,"") : ZfsResult(status,message); } @("libzfs_core") unittest { import std.stdio; auto testSnap = ["tank3/shared/kaleidic@snapfoo"]; snapshot(testSnap); writeln("success creating"); destroySnapshots(testSnap,false); writeln("success destroying"); create("tank3/shared/foo",DatasetType.zfs); writeln("success creating tank3/shared/foo"); destroy("tank3/shared/foo"); writeln("success destroying tank3/shared/foo"); } int[] getColumns(string header) { import std.array:Appender; import std.ascii: isWhite; Appender!(int[]) ret; if (header.length==0) return ret.data; int i = 0; bool newColumn = true; while(i<header.length) { bool isWhiteSpace = header[i].isWhite; if (!isWhiteSpace && newColumn) { ret.put(i++); newColumn = false; } else { i++; if(isWhiteSpace) newColumn = true; } } return ret.data; } string[] makeColumns(string line, int[] columns) { import std.array:Appender; import std.algorithm:min; import std.string:strip; Appender!(string[]) ret; foreach(i;1..columns.length) { auto start = columns[i-1]; auto end = columns[i]; if (start > line.length) break; end = min(line.length,end); ret.put(line[start..end].strip); } return ret.data; }
D
module RuleTokenTest; import RuleTranslatorLexer; import RuleTranslatorParser: RuleTranslatorParser; import RuleTranslatorBaseListener; import antlr.v4.runtime.ANTLRInputStream; import antlr.v4.runtime.CommonToken; import antlr.v4.runtime.CommonTokenFactory; import antlr.v4.runtime.TokenFactory; import antlr.v4.runtime.CommonTokenStream; import antlr.v4.runtime.TokenStream; import antlr.v4.runtime.tree.TerminalNode; import antlr.v4.runtime.CharStream; import antlr.v4.runtime.Token; import antlr.v4.runtime.TokenSource; import antlr.v4.runtime.TokenStreamRewriter : TokenStreamRewriter; import antlr.v4.runtime.atn.ParserATNSimulator; import antlr.v4.runtime.tree.ParseTreeWalker; import dshould : be, equal, not, should; import dshould.thrown; import std.conv : to; import std.stdio : File, writefln; import std.file; import unit_threaded; import std.typecons; import std.variant; class ResultTokenFactory : CommonTokenFactory { this(CharStream input) { } override ResultToken create(int type, Variant text) { return new ResultToken(type, text); } override ResultToken create(TokenFactorySourcePair source, int type, Variant text, int channel, int start, int stop, int line, int charPositionInLine ) { auto t = new ResultToken(source, type, channel, start, stop); t.setLine(line); t.setCharPositionInLine(charPositionInLine); return t; } } /** * A Token source with Result as additional attribute */ alias TokenFactorySourcePair = Tuple!(TokenSource, "a", CharStream, "b"); struct Result { ushort indent; string text;} ushort indent = 1; // 0 reserved for space class ResultToken : CommonToken { public Result[] res; this (int type, Variant text) { super(type, text); } this( TokenFactorySourcePair source, int type, int channel, int start, int stop) { super(source, type, channel, start, stop); Result r; r.indent = 1; r.text = super.getText.to!string; res ~= r; } override string toString() { import std.format : format; return format("%s", res); } override Variant getText() { Variant r = res; return r; } } public class ResultListener : RuleTranslatorBaseListener { private TokenStreamRewriter rewriter; private bool nextOfNewline = false; ushort indentText = 1; this(TokenStream tokens) { rewriter = new TokenStreamRewriter(tokens); } /** * <p>The default implementation does nothing.</p> */ override public void enterFile_input(RuleTranslatorParser.File_inputContext ctx) { } /** * * <p>The default implementation does nothing.</p> */ override public void enterFunct_stmt(RuleTranslatorParser.Funct_stmtContext ctx) { Result[] newText; Result r; r. indent = 2; r. text = `zug_function_number 3`; newText ~= r; r. indent = 3; r. text = `"von"`; newText ~= r; r. indent = 2; r. text = `"nach"`; newText ~= r; Variant v = newText; rewriter.replace(ctx.start, ctx.stop, v); } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ override public void visitTerminal(TerminalNode node) { debug (TokenStreamRewriter) { writefln("\nvisitTerminal -> \"%s\", node.symbol -> %s, indentText = %s", node.getText, node.getSymbol, indentText ); } switch (node.getSymbol.getType) { case RuleTranslatorParser.INDENT: indentText++; break; case RuleTranslatorParser.DEDENT: indentText--; auto r = node.getText.get!(Result[]); r[0].text = ""; break; case RuleTranslatorParser.NEWLINE: nextOfNewline = true; import std.array : join; Result r; r.indent = indentText; break; case RuleTranslatorParser.EOF: debug(TokenStreamRewriter) { import std.stdio : writeln; writeln("\n+++ EOF +++"); } break; default: debug(TokenStreamRewriter) writefln("\ndefault: node.getText.type = %s", node.getText.type); if (nextOfNewline) { auto r = node.getText.get!(Result[]); r[0].indent = indentText; } nextOfNewline = false; break; } } } @Tags("CustomerToken", "tt") @("using result struct") unittest { auto expected = `rule Delay as DELAY de base de . Phrases if a : "Information" "zu" "Zug" zug_function_number 3 "von" "nach" "Berlin" `; auto antlrInput = new ANTLRInputStream(File("unittest/complex/rule.rul", "r")); auto lexer = new RuleTranslatorLexer(antlrInput); auto factory = new ResultTokenFactory(antlrInput); lexer.tokenFactory(factory); auto ln = lexer.getGrammarFileName; auto cts = new CommonTokenStream(lexer); cts.fill; auto parser = new RuleTranslatorParser(cts); parser.tokenFactory(factory); // Specify entry point auto rootContext = parser.file_input; parser.numberOfSyntaxErrors.should.be.equal(0); auto extractor = new ResultListener(cts); auto walker = new ParseTreeWalker; walker.walk(extractor, rootContext); import std.array : appender; auto buf = appender!(string); import std.stdio; auto r = extractor.rewriter.getText.get!(Result[]); bool firstOnLine = true; foreach (i, el; r) { import std.string : strip; writefln("i = %s, el = %s", i, el); if (!i) continue; if (el.text == "\n") { firstOnLine = true; buf.put("\n"); continue; } if (el.indent >1) { buf.put("\n"); while (--el.indent) buf.put(" "); buf.put(el.text); } else { if (firstOnLine) { if (el.text.strip.length) { buf.put(el.text); } else { // DEDENT firstOnLine = true; continue; } firstOnLine = false; } else { if (el.text.strip.length) buf.put(" " ~ el.text.strip); } } } buf.data.should.equal(expected); }
D
a pedal that controls the throttle valve a valve that regulates the supply of fuel to the engine (chemistry) a substance that initiates or accelerates a chemical reaction without itself being affected a scientific instrument that increases the kinetic energy of charged particles
D
/** * Defines declarations of various attributes. * * The term 'attribute' refers to things that can apply to a larger scope than a single declaration. * Among them are: * - Alignment (`align(8)`) * - User defined attributes (`@UDA`) * - Function Attributes (`@safe`) * - Storage classes (`static`, `__gshared`) * - Mixin declarations (`mixin("int x;")`) * - Conditional compilation (`static if`, `static foreach`) * - Linkage (`extern(C)`) * - Anonymous structs / unions * - Protection (`private`, `public`) * - Deprecated declarations (`@deprecated`) * * Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/attrib.d, _attrib.d) * Documentation: https://dlang.org/phobos/dmd_attrib.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/attrib.d */ module dmd.attrib; import dmd.aggregate; import dmd.arraytypes; import dmd.cond; import dmd.declaration; import dmd.dmodule; import dmd.dscope; import dmd.dsymbol; import dmd.dsymbolsem : dsymbolSemantic; import dmd.expression; import dmd.expressionsem : arrayExpressionSemantic; import dmd.func; import dmd.globals; import dmd.hdrgen : protectionToBuffer; import dmd.id; import dmd.identifier; import dmd.mtype; import dmd.objc; // for objc.addSymbols import dmd.root.outbuffer; import dmd.target; // for target.systemLinkage import dmd.tokens; import dmd.visitor; /*********************************************************** * Abstract attribute applied to Dsymbol's used as a common * ancestor for storage classes (StorageClassDeclaration), * linkage (LinkageDeclaration) and others. */ extern (C++) abstract class AttribDeclaration : Dsymbol { Dsymbols* decl; /// Dsymbol's affected by this AttribDeclaration extern (D) this(Dsymbols* decl) { this.decl = decl; } extern (D) this(const ref Loc loc, Identifier ident, Dsymbols* decl) { super(loc, ident); this.decl = decl; } Dsymbols* include(Scope* sc) { if (errors) return null; return decl; } /**************************************** * Create a new scope if one or more given attributes * are different from the sc's. * If the returned scope != sc, the caller should pop * the scope after it used. */ extern (D) static Scope* createNewScope(Scope* sc, StorageClass stc, LINK linkage, CPPMANGLE cppmangle, Prot protection, int explicitProtection, AlignDeclaration aligndecl, PINLINE inlining) { Scope* sc2 = sc; if (stc != sc.stc || linkage != sc.linkage || cppmangle != sc.cppmangle || !protection.isSubsetOf(sc.protection) || explicitProtection != sc.explicitProtection || aligndecl !is sc.aligndecl || inlining != sc.inlining) { // create new one for changes sc2 = sc.copy(); sc2.stc = stc; sc2.linkage = linkage; sc2.cppmangle = cppmangle; sc2.protection = protection; sc2.explicitProtection = explicitProtection; sc2.aligndecl = aligndecl; sc2.inlining = inlining; } return sc2; } /**************************************** * A hook point to supply scope for members. * addMember, setScope, importAll, semantic, semantic2 and semantic3 will use this. */ Scope* newScope(Scope* sc) { return sc; } override void addMember(Scope* sc, ScopeDsymbol sds) { Dsymbols* d = include(sc); if (d) { Scope* sc2 = newScope(sc); d.foreachDsymbol( s => s.addMember(sc2, sds) ); if (sc2 != sc) sc2.pop(); } } override void setScope(Scope* sc) { Dsymbols* d = include(sc); //printf("\tAttribDeclaration::setScope '%s', d = %p\n",toChars(), d); if (d) { Scope* sc2 = newScope(sc); d.foreachDsymbol( s => s.setScope(sc2) ); if (sc2 != sc) sc2.pop(); } } override void importAll(Scope* sc) { Dsymbols* d = include(sc); //printf("\tAttribDeclaration::importAll '%s', d = %p\n", toChars(), d); if (d) { Scope* sc2 = newScope(sc); d.foreachDsymbol( s => s.importAll(sc2) ); if (sc2 != sc) sc2.pop(); } } override void addComment(const(char)* comment) { //printf("AttribDeclaration::addComment %s\n", comment); if (comment) { include(null).foreachDsymbol( s => s.addComment(comment) ); } } override const(char)* kind() const { return "attribute"; } override bool oneMember(Dsymbol* ps, Identifier ident) { Dsymbols* d = include(null); return Dsymbol.oneMembers(d, ps, ident); } override void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion) { include(null).foreachDsymbol( s => s.setFieldOffset(ad, poffset, isunion) ); } override final bool hasPointers() { return include(null).foreachDsymbol( (s) { return s.hasPointers(); } ) != 0; } override final bool hasStaticCtorOrDtor() { return include(null).foreachDsymbol( (s) { return s.hasStaticCtorOrDtor(); } ) != 0; } override final void checkCtorConstInit() { include(null).foreachDsymbol( s => s.checkCtorConstInit() ); } /**************************************** */ override final void addLocalClass(ClassDeclarations* aclasses) { include(null).foreachDsymbol( s => s.addLocalClass(aclasses) ); } override final void addObjcSymbols(ClassDeclarations* classes, ClassDeclarations* categories) { objc.addSymbols(this, classes, categories); } override final inout(AttribDeclaration) isAttribDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Storage classes applied to Dsymbols, e.g. `const int i;` * * <stc> <decl...> */ extern (C++) class StorageClassDeclaration : AttribDeclaration { StorageClass stc; extern (D) this(StorageClass stc, Dsymbols* decl) { super(decl); this.stc = stc; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new StorageClassDeclaration(stc, Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { StorageClass scstc = sc.stc; /* These sets of storage classes are mutually exclusive, * so choose the innermost or most recent one. */ if (stc & (STC.auto_ | STC.scope_ | STC.static_ | STC.extern_ | STC.manifest)) scstc &= ~(STC.auto_ | STC.scope_ | STC.static_ | STC.extern_ | STC.manifest); if (stc & (STC.auto_ | STC.scope_ | STC.static_ | STC.tls | STC.manifest | STC.gshared)) scstc &= ~(STC.auto_ | STC.scope_ | STC.static_ | STC.tls | STC.manifest | STC.gshared); if (stc & (STC.const_ | STC.immutable_ | STC.manifest)) scstc &= ~(STC.const_ | STC.immutable_ | STC.manifest); if (stc & (STC.gshared | STC.shared_ | STC.tls)) scstc &= ~(STC.gshared | STC.shared_ | STC.tls); if (stc & (STC.safe | STC.trusted | STC.system)) scstc &= ~(STC.safe | STC.trusted | STC.system); scstc |= stc; //printf("scstc = x%llx\n", scstc); return createNewScope(sc, scstc, sc.linkage, sc.cppmangle, sc.protection, sc.explicitProtection, sc.aligndecl, sc.inlining); } override final bool oneMember(Dsymbol* ps, Identifier ident) { bool t = Dsymbol.oneMembers(decl, ps, ident); if (t && *ps) { /* This is to deal with the following case: * struct Tick { * template to(T) { const T to() { ... } } * } * For eponymous function templates, the 'const' needs to get attached to 'to' * before the semantic analysis of 'to', so that template overloading based on the * 'this' pointer can be successful. */ FuncDeclaration fd = (*ps).isFuncDeclaration(); if (fd) { /* Use storage_class2 instead of storage_class otherwise when we do .di generation * we'll wind up with 'const const' rather than 'const'. */ /* Don't think we need to worry about mutually exclusive storage classes here */ fd.storage_class2 |= stc; } } return t; } override void addMember(Scope* sc, ScopeDsymbol sds) { Dsymbols* d = include(sc); if (d) { Scope* sc2 = newScope(sc); d.foreachDsymbol( (s) { //printf("\taddMember %s to %s\n", s.toChars(), sds.toChars()); // STC.local needs to be attached before the member is added to the scope (because it influences the parent symbol) if (auto decl = s.isDeclaration()) { decl.storage_class |= stc & STC.local; if (auto sdecl = s.isStorageClassDeclaration()) // TODO: why is this not enough to deal with the nested case? { sdecl.stc |= stc & STC.local; } } s.addMember(sc2, sds); }); if (sc2 != sc) sc2.pop(); } } override inout(StorageClassDeclaration) isStorageClassDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Deprecation with an additional message applied to Dsymbols, * e.g. `deprecated("Superseeded by foo") int bar;`. * (Note that `deprecated int bar;` is currently represented as a * StorageClassDeclaration with STC.deprecated_) * * `deprecated(<msg>) <decl...>` */ extern (C++) final class DeprecatedDeclaration : StorageClassDeclaration { Expression msg; /// deprecation message const(char)* msgstr; /// cached string representation of msg extern (D) this(Expression msg, Dsymbols* decl) { super(STC.deprecated_, decl); this.msg = msg; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new DeprecatedDeclaration(msg.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl)); } /** * Provides a new scope with `STC.deprecated_` and `Scope.depdecl` set * * Calls `StorageClassDeclaration.newScope` (as it must be called or copied * in any function overriding `newScope`), then set the `Scope`'s depdecl. * * Returns: * Always a new scope, to use for this `DeprecatedDeclaration`'s members. */ override Scope* newScope(Scope* sc) { auto scx = super.newScope(sc); // The enclosing scope is deprecated as well if (scx == sc) scx = sc.push(); scx.depdecl = this; return scx; } override void setScope(Scope* sc) { //printf("DeprecatedDeclaration::setScope() %p\n", this); if (decl) Dsymbol.setScope(sc); // for forward reference return AttribDeclaration.setScope(sc); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Linkage attribute applied to Dsymbols, e.g. * `extern(C) void foo()`. * * `extern(<linkage>) <decl...>` */ extern (C++) final class LinkDeclaration : AttribDeclaration { LINK linkage; /// either explicitly set or `default_` extern (D) this(LINK linkage, Dsymbols* decl) { super(decl); //printf("LinkDeclaration(linkage = %d, decl = %p)\n", linkage, decl); this.linkage = (linkage == LINK.system) ? target.systemLinkage() : linkage; } static LinkDeclaration create(LINK p, Dsymbols* decl) { return new LinkDeclaration(p, decl); } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new LinkDeclaration(linkage, Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { return createNewScope(sc, sc.stc, this.linkage, sc.cppmangle, sc.protection, sc.explicitProtection, sc.aligndecl, sc.inlining); } override const(char)* toChars() const { return toString().ptr; } extern(D) override const(char)[] toString() const { return "extern ()"; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Attribute declaring whether an external aggregate should be mangled as * a struct or class in C++, e.g. `extern(C++, struct) class C { ... }`. * This is required for correct name mangling on MSVC targets, * see cppmanglewin.d for details. * * `extern(C++, <cppmangle>) <decl...>` */ extern (C++) final class CPPMangleDeclaration : AttribDeclaration { CPPMANGLE cppmangle; extern (D) this(CPPMANGLE cppmangle, Dsymbols* decl) { super(decl); //printf("CPPMangleDeclaration(cppmangle = %d, decl = %p)\n", cppmangle, decl); this.cppmangle = cppmangle; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new CPPMangleDeclaration(cppmangle, Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { return createNewScope(sc, sc.stc, LINK.cpp, cppmangle, sc.protection, sc.explicitProtection, sc.aligndecl, sc.inlining); } override void setScope(Scope* sc) { if (decl) Dsymbol.setScope(sc); // for forward reference return AttribDeclaration.setScope(sc); } override const(char)* toChars() const { return toString().ptr; } extern(D) override const(char)[] toString() const { return "extern ()"; } override void accept(Visitor v) { v.visit(this); } } /** * A node to represent an `extern(C++)` namespace attribute * * There are two ways to declarate a symbol as member of a namespace: * `Nspace` and `CPPNamespaceDeclaration`. * The former creates a scope for the symbol, and inject them in the * parent scope at the same time. * The later, this class, has no semantic implications and is only * used for mangling. * Additionally, this class allows one to use reserved identifiers * (D keywords) in the namespace. * * A `CPPNamespaceDeclaration` can be created from an `Identifier` * (already resolved) or from an `Expression`, which is CTFE-ed * and can be either a `TupleExp`, in which can additional * `CPPNamespaceDeclaration` nodes are created, or a `StringExp`. * * Note that this class, like `Nspace`, matches only one identifier * part of a namespace. For the namespace `"foo::bar"`, * the will be a `CPPNamespaceDeclaration` with its `ident` * set to `"bar"`, and its `namespace` field pointing to another * `CPPNamespaceDeclaration` with its `ident` set to `"foo"`. */ extern (C++) final class CPPNamespaceDeclaration : AttribDeclaration { /// CTFE-able expression, resolving to `TupleExp` or `StringExp` Expression exp; extern (D) this(Identifier ident, Dsymbols* decl) { super(decl); this.ident = ident; } extern (D) this(Expression exp, Dsymbols* decl) { super(decl); this.exp = exp; } extern (D) this(Identifier ident, Expression exp, Dsymbols* decl, CPPNamespaceDeclaration parent) { super(decl); this.ident = ident; this.exp = exp; this.cppnamespace = parent; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new CPPNamespaceDeclaration( this.ident, this.exp, Dsymbol.arraySyntaxCopy(this.decl), this.cppnamespace); } /** * Returns: * A copy of the parent scope, with `this` as `namespace` and C++ linkage */ override Scope* newScope(Scope* sc) { auto scx = sc.copy(); scx.linkage = LINK.cpp; scx.namespace = this; return scx; } override const(char)* toChars() const { return toString().ptr; } extern(D) override const(char)[] toString() const { return "extern (C++, `namespace`)"; } override void accept(Visitor v) { v.visit(this); } override inout(CPPNamespaceDeclaration) isCPPNamespaceDeclaration() inout { return this; } } /*********************************************************** * Visibility declaration for Dsymbols, e.g. `public int i;` * * `<protection> <decl...>` or * `package(<pkg_identifiers>) <decl...>` if `pkg_identifiers !is null` */ extern (C++) final class ProtDeclaration : AttribDeclaration { Prot protection; /// the visibility Identifiers* pkg_identifiers; /// identifiers for `package(foo.bar)` or null /** * Params: * loc = source location of attribute token * protection = protection attribute data * decl = declarations which are affected by this protection attribute */ extern (D) this(const ref Loc loc, Prot protection, Dsymbols* decl) { super(loc, null, decl); this.protection = protection; //printf("decl = %p\n", decl); } /** * Params: * loc = source location of attribute token * pkg_identifiers = list of identifiers for a qualified package name * decl = declarations which are affected by this protection attribute */ extern (D) this(const ref Loc loc, Identifiers* pkg_identifiers, Dsymbols* decl) { super(loc, null, decl); this.protection.kind = Prot.Kind.package_; this.pkg_identifiers = pkg_identifiers; if (pkg_identifiers !is null && pkg_identifiers.dim > 0) { Dsymbol tmp; Package.resolve(pkg_identifiers, &tmp, null); protection.pkg = tmp ? tmp.isPackage() : null; } } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); if (protection.kind == Prot.Kind.package_) return new ProtDeclaration(this.loc, pkg_identifiers, Dsymbol.arraySyntaxCopy(decl)); else return new ProtDeclaration(this.loc, protection, Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { if (pkg_identifiers) dsymbolSemantic(this, sc); return createNewScope(sc, sc.stc, sc.linkage, sc.cppmangle, this.protection, 1, sc.aligndecl, sc.inlining); } override void addMember(Scope* sc, ScopeDsymbol sds) { if (pkg_identifiers) { Dsymbol tmp; Package.resolve(pkg_identifiers, &tmp, null); protection.pkg = tmp ? tmp.isPackage() : null; pkg_identifiers = null; } if (protection.kind == Prot.Kind.package_ && protection.pkg && sc._module) { Module m = sc._module; // While isAncestorPackageOf does an equality check, the fix for issue 17441 adds a check to see if // each package's .isModule() properites are equal. // // Properties generated from `package(foo)` i.e. protection.pkg have .isModule() == null. // This breaks package declarations of the package in question if they are declared in // the same package.d file, which _do_ have a module associated with them, and hence a non-null // isModule() if (!m.isPackage() || !protection.pkg.ident.equals(m.isPackage().ident)) { Package pkg = m.parent ? m.parent.isPackage() : null; if (!pkg || !protection.pkg.isAncestorPackageOf(pkg)) error("does not bind to one of ancestor packages of module `%s`", m.toPrettyChars(true)); } } return AttribDeclaration.addMember(sc, sds); } override const(char)* kind() const { return "protection attribute"; } override const(char)* toPrettyChars(bool) { assert(protection.kind > Prot.Kind.undefined); OutBuffer buf; protectionToBuffer(&buf, protection); return buf.extractChars(); } override inout(ProtDeclaration) isProtDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Alignment attribute for aggregates, members and variables. * * `align(<ealign>) <decl...>` or * `align <decl...>` if `ealign` is null */ extern (C++) final class AlignDeclaration : AttribDeclaration { Expression ealign; /// expression yielding the actual alignment enum structalign_t UNKNOWN = 0; /// alignment not yet computed static assert(STRUCTALIGN_DEFAULT != UNKNOWN); /// the actual alignment, `UNKNOWN` until it's either set to the value of `ealign` /// or `STRUCTALIGN_DEFAULT` if `ealign` is null ( / an error ocurred) structalign_t salign = UNKNOWN; extern (D) this(const ref Loc loc, Expression ealign, Dsymbols* decl) { super(loc, null, decl); this.ealign = ealign; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new AlignDeclaration(loc, ealign ? ealign.syntaxCopy() : null, Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { return createNewScope(sc, sc.stc, sc.linkage, sc.cppmangle, sc.protection, sc.explicitProtection, this, sc.inlining); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * An anonymous struct/union (defined by `isunion`). */ extern (C++) final class AnonDeclaration : AttribDeclaration { bool isunion; /// whether it's a union int sem; /// 1 if successful semantic() uint anonoffset; /// offset of anonymous struct uint anonstructsize; /// size of anonymous struct uint anonalignsize; /// size of anonymous struct for alignment purposes extern (D) this(const ref Loc loc, bool isunion, Dsymbols* decl) { super(loc, null, decl); this.isunion = isunion; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new AnonDeclaration(loc, isunion, Dsymbol.arraySyntaxCopy(decl)); } override void setScope(Scope* sc) { if (decl) Dsymbol.setScope(sc); return AttribDeclaration.setScope(sc); } override void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion) { //printf("\tAnonDeclaration::setFieldOffset %s %p\n", isunion ? "union" : "struct", this); if (decl) { /* This works by treating an AnonDeclaration as an aggregate 'member', * so in order to place that member we need to compute the member's * size and alignment. */ size_t fieldstart = ad.fields.dim; /* Hackishly hijack ad's structsize and alignsize fields * for use in our fake anon aggregate member. */ uint savestructsize = ad.structsize; uint savealignsize = ad.alignsize; ad.structsize = 0; ad.alignsize = 0; uint offset = 0; decl.foreachDsymbol( (s) { s.setFieldOffset(ad, &offset, this.isunion); if (this.isunion) offset = 0; }); /* https://issues.dlang.org/show_bug.cgi?id=13613 * If the fields in this.members had been already * added in ad.fields, just update *poffset for the subsequent * field offset calculation. */ if (fieldstart == ad.fields.dim) { ad.structsize = savestructsize; ad.alignsize = savealignsize; *poffset = ad.structsize; return; } anonstructsize = ad.structsize; anonalignsize = ad.alignsize; ad.structsize = savestructsize; ad.alignsize = savealignsize; // 0 sized structs are set to 1 byte if (anonstructsize == 0) { anonstructsize = 1; anonalignsize = 1; } assert(_scope); auto alignment = _scope.alignment(); /* Given the anon 'member's size and alignment, * go ahead and place it. */ anonoffset = AggregateDeclaration.placeField( poffset, anonstructsize, anonalignsize, alignment, &ad.structsize, &ad.alignsize, isunion); // Add to the anon fields the base offset of this anonymous aggregate //printf("anon fields, anonoffset = %d\n", anonoffset); foreach (const i; fieldstart .. ad.fields.dim) { VarDeclaration v = ad.fields[i]; //printf("\t[%d] %s %d\n", i, v.toChars(), v.offset); v.offset += anonoffset; } } } override const(char)* kind() const { return (isunion ? "anonymous union" : "anonymous struct"); } override inout(AnonDeclaration) isAnonDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Pragma applied to Dsymbols, e.g. `pragma(inline, true) void foo`, * but not PragmaStatement's like `pragma(msg, "hello");`. * * pragma(<ident>, <args>) */ extern (C++) final class PragmaDeclaration : AttribDeclaration { Expressions* args; /// parameters of this pragma extern (D) this(const ref Loc loc, Identifier ident, Expressions* args, Dsymbols* decl) { super(loc, ident, decl); this.args = args; } override Dsymbol syntaxCopy(Dsymbol s) { //printf("PragmaDeclaration::syntaxCopy(%s)\n", toChars()); assert(!s); return new PragmaDeclaration(loc, ident, Expression.arraySyntaxCopy(args), Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { if (ident == Id.Pinline) { PINLINE inlining = PINLINE.default_; if (!args || args.dim == 0) inlining = PINLINE.default_; else if (args.dim != 1) { error("one boolean expression expected for `pragma(inline)`, not %llu", cast(ulong) args.dim); args.setDim(1); (*args)[0] = ErrorExp.get(); } else { Expression e = (*args)[0]; if (e.op != TOK.int64 || !e.type.equals(Type.tbool)) { if (e.op != TOK.error) { error("pragma(`inline`, `true` or `false`) expected, not `%s`", e.toChars()); (*args)[0] = ErrorExp.get(); } } else if (e.isBool(true)) inlining = PINLINE.always; else if (e.isBool(false)) inlining = PINLINE.never; } return createNewScope(sc, sc.stc, sc.linkage, sc.cppmangle, sc.protection, sc.explicitProtection, sc.aligndecl, inlining); } if (ident == Id.printf || ident == Id.scanf) { auto sc2 = sc.push(); if (ident == Id.printf) // Override previous setting, never let both be set sc2.flags = (sc2.flags & ~SCOPE.scanf) | SCOPE.printf; else sc2.flags = (sc2.flags & ~SCOPE.printf) | SCOPE.scanf; return sc2; } return sc; } override const(char)* kind() const { return "pragma"; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * A conditional compilation declaration, used for `version` * / `debug` and specialized for `static if`. * * <condition> { <decl...> } else { <elsedecl> } */ extern (C++) class ConditionalDeclaration : AttribDeclaration { Condition condition; /// condition deciding whether decl or elsedecl applies Dsymbols* elsedecl; /// array of Dsymbol's for else block extern (D) this(Condition condition, Dsymbols* decl, Dsymbols* elsedecl) { super(decl); //printf("ConditionalDeclaration::ConditionalDeclaration()\n"); this.condition = condition; this.elsedecl = elsedecl; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new ConditionalDeclaration(condition.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl), Dsymbol.arraySyntaxCopy(elsedecl)); } override final bool oneMember(Dsymbol* ps, Identifier ident) { //printf("ConditionalDeclaration::oneMember(), inc = %d\n", condition.inc); if (condition.inc != Include.notComputed) { Dsymbols* d = condition.include(null) ? decl : elsedecl; return Dsymbol.oneMembers(d, ps, ident); } else { bool res = (Dsymbol.oneMembers(decl, ps, ident) && *ps is null && Dsymbol.oneMembers(elsedecl, ps, ident) && *ps is null); *ps = null; return res; } } // Decide if 'then' or 'else' code should be included override Dsymbols* include(Scope* sc) { //printf("ConditionalDeclaration::include(sc = %p) scope = %p\n", sc, scope); if (errors) return null; assert(condition); return condition.include(_scope ? _scope : sc) ? decl : elsedecl; } override final void addComment(const(char)* comment) { /* Because addComment is called by the parser, if we called * include() it would define a version before it was used. * But it's no problem to drill down to both decl and elsedecl, * so that's the workaround. */ if (comment) { decl .foreachDsymbol( s => s.addComment(comment) ); elsedecl.foreachDsymbol( s => s.addComment(comment) ); } } override void setScope(Scope* sc) { include(sc).foreachDsymbol( s => s.setScope(sc) ); } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * `<scopesym> { * static if (<condition>) { <decl> } else { <elsedecl> } * }` */ extern (C++) final class StaticIfDeclaration : ConditionalDeclaration { ScopeDsymbol scopesym; /// enclosing symbol (e.g. module) where symbols will be inserted private bool addisdone = false; /// true if members have been added to scope private bool onStack = false; /// true if a call to `include` is currently active extern (D) this(Condition condition, Dsymbols* decl, Dsymbols* elsedecl) { super(condition, decl, elsedecl); //printf("StaticIfDeclaration::StaticIfDeclaration()\n"); } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new StaticIfDeclaration(condition.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl), Dsymbol.arraySyntaxCopy(elsedecl)); } /**************************************** * Different from other AttribDeclaration subclasses, include() call requires * the completion of addMember and setScope phases. */ override Dsymbols* include(Scope* sc) { //printf("StaticIfDeclaration::include(sc = %p) scope = %p\n", sc, scope); if (errors || onStack) return null; onStack = true; scope(exit) onStack = false; if (sc && condition.inc == Include.notComputed) { assert(scopesym); // addMember is already done assert(_scope); // setScope is already done Dsymbols* d = ConditionalDeclaration.include(_scope); if (d && !addisdone) { // Add members lazily. d.foreachDsymbol( s => s.addMember(_scope, scopesym) ); // Set the member scopes lazily. d.foreachDsymbol( s => s.setScope(_scope) ); addisdone = true; } return d; } else { return ConditionalDeclaration.include(sc); } } override void addMember(Scope* sc, ScopeDsymbol sds) { //printf("StaticIfDeclaration::addMember() '%s'\n", toChars()); /* This is deferred until the condition evaluated later (by the include() call), * so that expressions in the condition can refer to declarations * in the same scope, such as: * * template Foo(int i) * { * const int j = i + 1; * static if (j == 3) * const int k; * } */ this.scopesym = sds; } override void setScope(Scope* sc) { // do not evaluate condition before semantic pass // But do set the scope, in case we need it for forward referencing Dsymbol.setScope(sc); } override void importAll(Scope* sc) { // do not evaluate condition before semantic pass } override const(char)* kind() const { return "static if"; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Static foreach at declaration scope, like: * static foreach (i; [0, 1, 2]){ } */ extern (C++) final class StaticForeachDeclaration : AttribDeclaration { StaticForeach sfe; /// contains `static foreach` expansion logic ScopeDsymbol scopesym; /// cached enclosing scope (mimics `static if` declaration) /++ `include` can be called multiple times, but a `static foreach` should be expanded at most once. Achieved by caching the result of the first call. We need both `cached` and `cache`, because `null` is a valid value for `cache`. +/ bool onStack = false; bool cached = false; Dsymbols* cache = null; extern (D) this(StaticForeach sfe, Dsymbols* decl) { super(decl); this.sfe = sfe; } override Dsymbol syntaxCopy(Dsymbol s) { assert(!s); return new StaticForeachDeclaration( sfe.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl)); } override bool oneMember(Dsymbol* ps, Identifier ident) { // Required to support IFTI on a template that contains a // `static foreach` declaration. `super.oneMember` calls // include with a `null` scope. As `static foreach` requires // the scope for expansion, `oneMember` can only return a // precise result once `static foreach` has been expanded. if (cached) { return super.oneMember(ps, ident); } *ps = null; // a `static foreach` declaration may in general expand to multiple symbols return false; } override Dsymbols* include(Scope* sc) { if (errors || onStack) return null; if (cached) { assert(!onStack); return cache; } onStack = true; scope(exit) onStack = false; if (_scope) { sfe.prepare(_scope); // lower static foreach aggregate } if (!sfe.ready()) { return null; // TODO: ok? } // expand static foreach import dmd.statementsem: makeTupleForeach; Dsymbols* d = makeTupleForeach!(true,true)(_scope, sfe.aggrfe, decl, sfe.needExpansion); if (d) // process generated declarations { // Add members lazily. d.foreachDsymbol( s => s.addMember(_scope, scopesym) ); // Set the member scopes lazily. d.foreachDsymbol( s => s.setScope(_scope) ); } cached = true; cache = d; return d; } override void addMember(Scope* sc, ScopeDsymbol sds) { // used only for caching the enclosing symbol this.scopesym = sds; } override void addComment(const(char)* comment) { // do nothing // change this to give semantics to documentation comments on static foreach declarations } override void setScope(Scope* sc) { // do not evaluate condition before semantic pass // But do set the scope, in case we need it for forward referencing Dsymbol.setScope(sc); } override void importAll(Scope* sc) { // do not evaluate aggregate before semantic pass } override const(char)* kind() const { return "static foreach"; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Collection of declarations that stores foreach index variables in a * local symbol table. Other symbols declared within are forwarded to * another scope, like: * * static foreach (i; 0 .. 10) // loop variables for different indices do not conflict. * { // this body is expanded into 10 ForwardingAttribDeclarations, where `i` has storage class STC.local * mixin("enum x" ~ to!string(i) ~ " = i"); // ok, can access current loop variable * } * * static foreach (i; 0.. 10) * { * pragma(msg, mixin("x" ~ to!string(i))); // ok, all 10 symbols are visible as they were forwarded to the global scope * } * * static assert (!is(typeof(i))); // loop index variable is not visible outside of the static foreach loop * * A StaticForeachDeclaration generates one * ForwardingAttribDeclaration for each expansion of its body. The * AST of the ForwardingAttribDeclaration contains both the `static * foreach` variables and the respective copy of the `static foreach` * body. The functionality is achieved by using a * ForwardingScopeDsymbol as the parent symbol for the generated * declarations. */ extern(C++) final class ForwardingAttribDeclaration: AttribDeclaration { ForwardingScopeDsymbol sym = null; this(Dsymbols* decl) { super(decl); sym = new ForwardingScopeDsymbol(null); sym.symtab = new DsymbolTable(); } /************************************** * Use the ForwardingScopeDsymbol as the parent symbol for members. */ override Scope* newScope(Scope* sc) { return sc.push(sym); } /*************************************** * Lazily initializes the scope to forward to. */ override void addMember(Scope* sc, ScopeDsymbol sds) { parent = sym.parent = sym.forward = sds; return super.addMember(sc, sym); } override inout(ForwardingAttribDeclaration) isForwardingAttribDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * Mixin declarations, like: * mixin("int x"); * https://dlang.org/spec/module.html#mixin-declaration */ extern (C++) final class CompileDeclaration : AttribDeclaration { Expressions* exps; ScopeDsymbol scopesym; bool compiled; extern (D) this(const ref Loc loc, Expressions* exps) { super(loc, null, null); //printf("CompileDeclaration(loc = %d)\n", loc.linnum); this.exps = exps; } override Dsymbol syntaxCopy(Dsymbol s) { //printf("CompileDeclaration::syntaxCopy('%s')\n", toChars()); return new CompileDeclaration(loc, Expression.arraySyntaxCopy(exps)); } override void addMember(Scope* sc, ScopeDsymbol sds) { //printf("CompileDeclaration::addMember(sc = %p, sds = %p, memnum = %d)\n", sc, sds, memnum); this.scopesym = sds; } override void setScope(Scope* sc) { Dsymbol.setScope(sc); } override const(char)* kind() const { return "mixin"; } override inout(CompileDeclaration) isCompileDeclaration() inout { return this; } override void accept(Visitor v) { v.visit(this); } } /*********************************************************** * User defined attributes look like: * @foo(args, ...) * @(args, ...) */ extern (C++) final class UserAttributeDeclaration : AttribDeclaration { Expressions* atts; extern (D) this(Expressions* atts, Dsymbols* decl) { super(decl); //printf("UserAttributeDeclaration()\n"); this.atts = atts; } override Dsymbol syntaxCopy(Dsymbol s) { //printf("UserAttributeDeclaration::syntaxCopy('%s')\n", toChars()); assert(!s); return new UserAttributeDeclaration(Expression.arraySyntaxCopy(this.atts), Dsymbol.arraySyntaxCopy(decl)); } override Scope* newScope(Scope* sc) { Scope* sc2 = sc; if (atts && atts.dim) { // create new one for changes sc2 = sc.copy(); sc2.userAttribDecl = this; } return sc2; } override void setScope(Scope* sc) { //printf("UserAttributeDeclaration::setScope() %p\n", this); if (decl) Dsymbol.setScope(sc); // for forward reference of UDAs return AttribDeclaration.setScope(sc); } extern (D) static Expressions* concat(Expressions* udas1, Expressions* udas2) { Expressions* udas; if (!udas1 || udas1.dim == 0) udas = udas2; else if (!udas2 || udas2.dim == 0) udas = udas1; else { /* Create a new tuple that combines them * (do not append to left operand, as this is a copy-on-write operation) */ udas = new Expressions(2); (*udas)[0] = new TupleExp(Loc.initial, udas1); (*udas)[1] = new TupleExp(Loc.initial, udas2); } return udas; } Expressions* getAttributes() { if (auto sc = _scope) { _scope = null; arrayExpressionSemantic(atts, sc); } auto exps = new Expressions(); if (userAttribDecl) exps.push(new TupleExp(Loc.initial, userAttribDecl.getAttributes())); if (atts && atts.dim) exps.push(new TupleExp(Loc.initial, atts)); return exps; } override const(char)* kind() const { return "UserAttribute"; } override void accept(Visitor v) { v.visit(this); } /** * Check if the provided expression references `core.attribute.gnuAbiTag` * * This should be called after semantic has been run on the expression. * Semantic on UDA happens in semantic2 (see `dmd.semantic2`). * * Params: * e = Expression to check (usually from `UserAttributeDeclaration.atts`) * * Returns: * `true` if the expression references the compiler-recognized `gnuAbiTag` */ static bool isGNUABITag(Expression e) { if (global.params.cplusplus < CppStdRevision.cpp11) return false; auto ts = e.type ? e.type.isTypeStruct() : null; if (!ts) return false; if (ts.sym.ident != Id.udaGNUAbiTag || !ts.sym.parent) return false; // Can only be defined in druntime Module m = ts.sym.parent.isModule(); if (!m || !m.isCoreModule(Id.attribute)) return false; return true; } /** * Called from a symbol's semantic to check if `gnuAbiTag` UDA * can be applied to them * * Directly emits an error if the UDA doesn't work with this symbol * * Params: * sym = symbol to check for `gnuAbiTag` * linkage = Linkage of the symbol (Declaration.link or sc.link) */ static void checkGNUABITag(Dsymbol sym, LINK linkage) { if (global.params.cplusplus < CppStdRevision.cpp11) return; // Avoid `if` at the call site if (sym.userAttribDecl is null || sym.userAttribDecl.atts is null) return; foreach (exp; *sym.userAttribDecl.atts) { if (isGNUABITag(exp)) { if (sym.isCPPNamespaceDeclaration() || sym.isNspace()) { exp.error("`@%s` cannot be applied to namespaces", Id.udaGNUAbiTag.toChars()); sym.errors = true; } else if (linkage != LINK.cpp) { exp.error("`@%s` can only apply to C++ symbols", Id.udaGNUAbiTag.toChars()); sym.errors = true; } // Only one `@gnuAbiTag` is allowed by semantic2 return; } } } }
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/Client/Commands/Redis+List.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Channel/RedisChannelData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Basic.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisDataConvertible.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase+KeyedCacheSupporting.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Hash.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/ByteBuffer+peek.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+Channel.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataDecoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RequestResponseHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Strings.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+connect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Set.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+SortedSet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+List.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/Client/Commands/Redis+List~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Channel/RedisChannelData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Basic.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisDataConvertible.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase+KeyedCacheSupporting.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Hash.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/ByteBuffer+peek.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+Channel.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataDecoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RequestResponseHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Strings.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+connect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Set.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+SortedSet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+List.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/Client/Commands/Redis+List~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Channel/RedisChannelData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Basic.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisDataConvertible.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase+KeyedCacheSupporting.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Hash.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/ByteBuffer+peek.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+Channel.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataDecoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RequestResponseHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Strings.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+connect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Set.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+SortedSet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+List.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/Client/Commands/Redis+List~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Channel/RedisChannelData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Basic.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Data/RedisDataConvertible.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Database/RedisDatabase+KeyedCacheSupporting.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Hash.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/ByteBuffer+peek.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+Channel.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataDecoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Coders/RedisDataEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RequestResponseHandler.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/RedisError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Strings.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient+connect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+Set.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+SortedSet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/RedisClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/redis/Sources/Redis/Client/Commands/Redis+List.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/Users/aligame/work/rust_repository/rutils/target/x86_64-unknown-linux-musl/release/rutils: /Users/aligame/work/rust_repository/rutils/src/main.rs
D
instance BAU_960_Bengar(Npc_Default) { name[0] = "Бенгар"; guild = GIL_BAU; id = 960; voice = 10; flags = 0; npcType = npctype_main; B_SetAttributesToChapter(self,2); level = 1; fight_tactic = FAI_HUMAN_STRONG; EquipItem(self,ItMw_1h_Bau_Axe); EquipItem(self,ItRw_Sld_Bow); CreateInvItems(self,ItRw_Arrow,10); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_N_Normal_Olli_Kahn,BodyTex_N,ITAR_Bau_M_Ext); Mdl_SetModelFatness(self,0); Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,25); daily_routine = Rtn_Start_960; }; func void Rtn_Start_960() { TA_Stand_Guarding(8,0,11,0,"NW_FARM3_BENGAR"); TA_Study_WP(11,0,14,0,"NW_FARM3_BENGAR_TEMP_01"); TA_Stand_ArmsCrossed(14,0,16,0,"NW_FARM3_BENGAR_TEMP_02"); TA_Stand_Eating(16,0,20,0,"NW_FARM3_BENGAR"); TA_Sleep(20,0,8,0,"NW_FARM3_HOUSE_IN_BED"); }; func void Rtn_MilComing_960() { TA_Smalltalk(8,0,22,0,"NW_FARM3_BENGAR"); TA_Smalltalk(22,0,8,0,"NW_FARM3_BENGAR"); };
D
module logic.game.state; interface IState { // ... }
D
/* TEST_OUTPUT: --- fail_compilation/diag1730.d(38): Error: mutable method `diag1730.S.func` is not callable using a `inout` object fail_compilation/diag1730.d(40): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `inout` object fail_compilation/diag1730.d(41): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a non-shared `inout` object fail_compilation/diag1730.d(42): Error: `shared` `const` method `diag1730.S.scFunc` is not callable using a non-shared `inout` object fail_compilation/diag1730.d(57): Error: `immutable` method `diag1730.S.iFunc` is not callable using a mutable object fail_compilation/diag1730.d(58): Error: `shared` method `diag1730.S.sFunc` is not callable using a non-shared object fail_compilation/diag1730.d(59): Error: `shared` `const` method `diag1730.S.scFunc` is not callable using a non-shared mutable object fail_compilation/diag1730.d(62): Error: mutable method `diag1730.S.func` is not callable using a `const` object fail_compilation/diag1730.d(64): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `const` object fail_compilation/diag1730.d(65): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a non-shared `const` object fail_compilation/diag1730.d(66): Error: `shared` `const` method `diag1730.S.scFunc` is not callable using a non-shared `const` object fail_compilation/diag1730.d(69): Error: mutable method `diag1730.S.func` is not callable using a `immutable` object fail_compilation/diag1730.d(72): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a `immutable` object fail_compilation/diag1730.d(76): Error: non-shared method `diag1730.S.func` is not callable using a `shared` object fail_compilation/diag1730.d(77): Error: non-shared `const` method `diag1730.S.cFunc` is not callable using a `shared` mutable object fail_compilation/diag1730.d(78): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `shared` mutable object fail_compilation/diag1730.d(81): Error: non-shared `inout` method `diag1730.S.wFunc` is not callable using a `shared` mutable object fail_compilation/diag1730.d(83): Error: non-shared mutable method `diag1730.S.func` is not callable using a `shared` `const` object fail_compilation/diag1730.d(84): Error: non-shared `const` method `diag1730.S.cFunc` is not callable using a `shared` `const` object fail_compilation/diag1730.d(85): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `shared` `const` object fail_compilation/diag1730.d(86): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a `shared` `const` object fail_compilation/diag1730.d(88): Error: non-shared `inout` method `diag1730.S.wFunc` is not callable using a `shared` `const` object --- */ struct S { void func() { } void cFunc() const { } void iFunc() immutable { } void sFunc() shared { } void scFunc() shared const { } void wFunc() inout { } static void test(inout(S) s) { s.func(); // ng s.cFunc(); s.iFunc(); // ng s.sFunc(); // ng s.scFunc(); // ng s.wFunc(); } } void main() { S obj; const(S) cObj; immutable(S) iObj; shared(S) sObj; shared(const(S)) scObj; obj.func(); obj.cFunc(); obj.iFunc(); // ng obj.sFunc(); // ng obj.scFunc(); // ng obj.wFunc(); cObj.func(); // ng cObj.cFunc(); cObj.iFunc(); // ng cObj.sFunc(); // ng cObj.scFunc(); // ng cObj.wFunc(); iObj.func(); // ng iObj.cFunc(); iObj.iFunc(); iObj.sFunc(); // ng iObj.scFunc(); iObj.wFunc(); sObj.func(); // ng sObj.cFunc(); // ng sObj.iFunc(); // ng sObj.sFunc(); sObj.scFunc(); sObj.wFunc(); // ng scObj.func(); // ng scObj.cFunc(); // ng scObj.iFunc(); // ng scObj.sFunc(); // ng scObj.scFunc(); scObj.wFunc(); // ng }
D
/++ $(SCRIPT inhibitQuickIndex = 1;) This is a submodule of $(LINK2 mir_ndslice.html, mir.ndslice). License: $(LINK2 http://boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Ilya Yaroshenko +/ module mir.glas.trsm; import std.typecons: Flag; import std.traits; import mir.internal.utility; import mir.glas.common; @fastmath: package: pragma(inline, false) void trsm_micro_kernel ( size_t P, size_t N, size_t M, V, F, ) ( F[P] alpha, ref V[N][P][M] c, scope const(V[N][P])* a, const(F[P][M])* b, size_t length, ) if (is(V == F) || isSIMDVector!V) { V[N][P][M] reg = void; reg.load(c); reg.scale_nano_kernel(alpha), ab = gemm_nano_kernel!(Multiplication.sub)(reg, a, b, length); trsm_nano_kernel!(P, M, N, V, F)(reg, * cast(F[P][M][M]*) ab[1]); c.load(reg); } //llvmAttr("unsafe-fp-math", "true") pragma(inline, true) void trsm_nano_kernel ( size_t P, size_t M, size_t N, V, F, ) ( ref V[N][P][M] b, ref F[P][M][M] a, ) if (is(V == F) || isSIMDVector!V) { V[N][P][M] reg = void; reg.load(b); foreach (m; Iota!M) { foreach (i; Iota!m) { V[P] s = void; foreach (p; Iota!P) s[p].load(a[i][m][p]); foreach (n; Iota!N) { static if (P == 1) { reg[m][0][n] -= s[0] * reg[i][0][n]; } else { reg[m][0][n] -= s[0] * reg[i][0][n]; reg[m][0][n] -= s[1] * reg[i][1][n]; reg[m][1][n] += s[0] * reg[i][1][n]; reg[m][1][n] -= s[1] * reg[i][0][n]; } } } V[P] s = void; foreach (p; Iota!P) s[p].load(a[m][m][p]); foreach (n; Iota!N) { static if (P == 1) { reg[m][0][n] *= s[0]; } else { auto re = s[0] * reg[m][0][n]; auto im = s[0] * reg[m][1][n]; re -= s[1] * reg[m][1][n]; im += s[1] * reg[m][0][n]; reg[m][0][n] = re; reg[m][1][n] = im; } } } b.load(reg); }
D
/// module std.experimental.allocator.building_blocks.quantizer; import std.experimental.allocator.common; /** This allocator sits on top of $(D ParentAllocator) and quantizes allocation sizes, usually from arbitrary positive numbers to a small set of round numbers (e.g. powers of two, page sizes etc). This technique is commonly used to: $(UL $(LI Preallocate more memory than requested such that later on, when reallocation is needed (e.g. to grow an array), expansion can be done quickly in place. Reallocation to smaller sizes is also fast (in-place) when the new size requested is within the same quantum as the existing size. Code that's reallocation-heavy can therefore benefit from fronting a generic allocator with a $(D Quantizer). These advantages are present even if $(D ParentAllocator) does not support reallocation at all.) $(LI Improve behavior of allocators sensitive to allocation sizes, such as $(D FreeList) and $(D FreeTree). Rounding allocation requests up makes for smaller free lists/trees at the cost of slack memory (internal fragmentation).) ) The following methods are forwarded to the parent allocator if present: $(D allocateAll), $(D owns), $(D deallocateAll), $(D empty). Preconditions: $(D roundingFunction) must satisfy three constraints. These are not enforced (save for the use of $(D assert)) for the sake of efficiency. $(OL $(LI $(D roundingFunction(n) >= n) for all $(D n) of type $(D size_t);) $(LI $(D roundingFunction) must be monotonically increasing, i.e. $(D roundingFunction(n1) <= roundingFunction(n2)) for all $(D n1 < n2);) $(LI $(D roundingFunction) must be $(D pure), i.e. always return the same value for a given $(D n).) ) */ struct Quantizer(ParentAllocator, alias roundingFunction) { import std.traits : hasMember; /** The parent allocator. Depending on whether $(D ParentAllocator) holds state or not, this is a member variable or an alias for `ParentAllocator.instance`. */ static if (stateSize!ParentAllocator) { ParentAllocator parent; } else { alias parent = ParentAllocator.instance; static __gshared Quantizer instance; } /** Returns $(D roundingFunction(n)). */ size_t goodAllocSize(size_t n) { auto result = roundingFunction(n); assert(result >= n); return result; } /** Alignment is identical to that of the parent. */ enum alignment = ParentAllocator.alignment; /** Gets a larger buffer $(D buf) by calling $(D parent.allocate(goodAllocSize(n))). If $(D buf) is $(D null), returns $(D null). Otherwise, returns $(D buf[0 .. n]). */ void[] allocate(size_t n) { auto result = parent.allocate(goodAllocSize(n)); return result.ptr ? result.ptr[0 .. n] : null; } /** Defined only if $(D parent.alignedAllocate) exists and works similarly to $(D allocate) by forwarding to $(D parent.alignedAllocate(goodAllocSize(n), a)). */ static if (hasMember!(ParentAllocator, "alignedAllocate")) void[] alignedAllocate(size_t n, uint) { auto result = parent.alignedAllocate(goodAllocSize(n)); return result.ptr ? result.ptr[0 .. n] : null; } /** First checks whether there's enough slack memory preallocated for $(D b) by evaluating $(D b.length + delta <= goodAllocSize(b.length)). If that's the case, expands $(D b) in place. Otherwise, attempts to use $(D parent.expand) appropriately if present. */ bool expand(ref void[] b, size_t delta) { if (!b.ptr) return delta == 0; immutable allocated = goodAllocSize(b.length), needed = b.length + delta, neededAllocation = goodAllocSize(needed); assert(b.length <= allocated); assert(needed <= neededAllocation); assert(allocated <= neededAllocation); // Second test needed because expand must work for null pointers, too. if (allocated == neededAllocation) { // Nice! b = b.ptr[0 .. needed]; return true; } // Hail Mary static if (hasMember!(ParentAllocator, "expand")) { // Expand to the appropriate quantum auto original = b.ptr[0 .. allocated]; assert(goodAllocSize(needed) >= allocated); if (!parent.expand(original, neededAllocation - allocated)) return false; // Dial back the size b = original.ptr[0 .. needed]; return true; } else { return false; } } /** Expands or shrinks allocated block to an allocated size of $(D goodAllocSize(s)). Expansion occurs in place under the conditions required by $(D expand). Shrinking occurs in place if $(D goodAllocSize(b.length) == goodAllocSize(s)). */ bool reallocate(ref void[] b, size_t s) { if (!b.ptr) { b = allocate(s); return b.length == s; } if (s >= b.length && expand(b, s - b.length)) return true; immutable toAllocate = goodAllocSize(s), allocated = goodAllocSize(b.length); // Are the lengths within the same quantum? if (allocated == toAllocate) { // Reallocation (whether up or down) will be done in place b = b.ptr[0 .. s]; return true; } // Defer to parent (or global) with quantized size auto original = b.ptr[0 .. allocated]; if (!parent.reallocate(original, toAllocate)) return false; b = original.ptr[0 .. s]; return true; } /** Defined only if $(D ParentAllocator.alignedAllocate) exists. Expansion occurs in place under the conditions required by $(D expand). Shrinking occurs in place if $(D goodAllocSize(b.length) == goodAllocSize(s)). */ static if (hasMember!(ParentAllocator, "alignedAllocate")) bool alignedReallocate(ref void[] b, size_t s, uint a) { if (!b.ptr) { b = alignedAllocate(s); return b.length == s; } if (s >= b.length && expand(b, s - b.length)) return true; immutable toAllocate = goodAllocSize(s), allocated = goodAllocSize(b.length); // Are the lengths within the same quantum? if (allocated == toAllocate) { assert(b.ptr); // code above must have caught this // Reallocation (whether up or down) will be done in place b = b.ptr[0 .. s]; return true; } // Defer to parent (or global) with quantized size auto original = b.ptr[0 .. allocated]; if (!parent.alignedReallocate(original, toAllocate, a)) return false; b = original.ptr[0 .. s]; return true; } /** Defined if $(D ParentAllocator.deallocate) exists and forwards to $(D parent.deallocate(b.ptr[0 .. goodAllocSize(b.length)])). */ static if (hasMember!(ParentAllocator, "deallocate")) bool deallocate(void[] b) { if (!b.ptr) return true; return parent.deallocate(b.ptr[0 .. goodAllocSize(b.length)]); } // Forwarding methods mixin(forwardToMember("parent", "allocateAll", "owns", "deallocateAll", "empty")); } /// @system unittest { import std.experimental.allocator.building_blocks.free_tree : FreeTree; import std.experimental.allocator.gc_allocator : GCAllocator; import std.experimental.allocator.common : roundUpToMultipleOf; // Quantize small allocations to a multiple of cache line, large ones to a // multiple of page size alias MyAlloc = Quantizer!( FreeTree!GCAllocator, n => n.roundUpToMultipleOf(n <= 16_384 ? 64 : 4096)); MyAlloc alloc; const buf = alloc.allocate(256); assert(buf.ptr); } @system unittest { import std.experimental.allocator.gc_allocator : GCAllocator; alias MyAlloc = Quantizer!(GCAllocator, (size_t n) => n.roundUpToMultipleOf(64)); testAllocator!(() => MyAlloc()); }
D
// Written in the D programming language // License: http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0 module ast.error; import std.stdio; import std.string, std.range, std.array, std.uni; import ast.lexer, util, options; abstract class ErrorHandler{ //string source; //string code; int nerrors=0; private int tabsize=8; void error(lazy string err, Location loc)in{assert(loc.line>=1&&loc.rep);}body{nerrors++;} // in{assert(loc.rep);}body void note(lazy string note, Location loc)in{assert(loc.rep);}body{}; void message(string msg){ stderr.write(msg); } bool showsEffect(){ return true; } int getTabsize(){ return tabsize; } this(){ tabsize=getTabSize(); } void finalize(){} } class SimpleErrorHandler: ErrorHandler{ override void error(lazy string err, Location loc){ if(loc.line == 0){ // just here for robustness stderr.writeln("(location missing): "~err); return; } nerrors++; stderr.writeln(loc.source.name,'(',loc.line,"): error: ",err); } } class NullErrorHandler: ErrorHandler{ override void error(lazy string err, Location loc){ // nop } } enum underlineArrow = "^"; enum underlineStroke = "─"; ErrorHandler makeErrorHandler(ErrorFormat format){ final switch(format) with(ErrorFormat){ case default_: return new FormattingErrorHandler(); case json: return new JSONErrorHandler(); } } import std.json; class JSONErrorHandler: ErrorHandler{ alias JSONValue JS; JS[] result=[]; this(){ tabsize=1; } private JS makeJS(string error, Location loc, string severity, bool addRelated){ auto source=loc.source.name; auto start=getStart!wchar(loc,1); auto end=getEnd!wchar(loc,1); auto sourceJS=JS(source); auto startJS=JS(["line": JS(start.line), "column": JS(start.column)]); auto endJS=JS(["line": JS(end.line), "column": JS(end.column)]); auto messageJS=JS(error); auto severityJS=JS(severity); auto diagnosticJS=JS(["source": sourceJS, "start": startJS, "end": endJS, "message": messageJS, "severity": severityJS]); if(addRelated){ auto relatedInformationJS=JS((JS[]).init); diagnosticJS["relatedInformation"]=relatedInformationJS; } return diagnosticJS; } override void error(lazy string error, Location loc){ if(!loc.line) return; nerrors++; result~=makeJS(error,loc,"error",true); } override void note(lazy string note, Location loc){ if(!loc.line) return; result[$-1]["relatedInformation"]~=[makeJS(note,loc,"note",false)]; } override void finalize(){ stderr.writeln(result); } } // TODO: remove code duplication class VerboseErrorHandler: ErrorHandler{ override void error(lazy string err, Location loc){ nerrors++; impl(err, loc, false); } override void note(lazy string err, Location loc){ impl(err, loc, true); } private void impl(lazy string err, Location loc, bool isNote){ if(loc.line == 0||!loc.rep.length){ // just here for robustness stderr.writeln("(location missing): "~err); return; } auto src = loc.source; auto source = src.name; auto line = src.getLineOf(loc.rep); if(loc.rep.ptr<line.ptr) loc.rep=loc.rep[line.ptr-loc.rep.ptr..$]; auto column=getColumn(loc,tabsize); write(source, loc.line, column, err, isNote); if(line.length&&line[0]){ display(line); highlight(column,column-getColumn(loc,tabsize-1), loc.rep); } } protected: void write(string source, int line, int column, string error, bool isNote = false){ stderr.writeln(source,':',line," :",column,isNote?": note: ":": error: ",error); } void display(string line){ stderr.writeln(line); } void highlight(int column, int ntabs, string rep){ foreach(i;0..column-ntabs*(getTabsize()-1)) stderr.write(i<ntabs?"\t":" "); stderr.write(underlineArrow); rep.popFront(); foreach(dchar x;rep){if(isNewLine(x)) break; stderr.write(underlineStroke);} stderr.writeln(); } } import util.terminal; class FormattingErrorHandler: VerboseErrorHandler{ protected: override void write(string source, int line, int column, string error, bool isNote = false){ if(isATTy(stderr)){ if(isNote) stderr.writeln(BOLD,source,':',line,":",column,": ",BLACK,"note:",RESET,BOLD," ",error,RESET); else stderr.writeln(BOLD,source,':',line,":",column,": ",RED,"error:",RESET,BOLD," ",error,RESET); }else super.write(source, line, column, error, isNote); } override void highlight(int column, int ntabs, string rep){ if(isATTy(stderr)){ foreach(i;0..column-ntabs*(getTabsize()-1)) stderr.write(i<ntabs?"\t":" "); //stderr.write(CSI~"A",GREEN,";",CSI~"D",CSI~"B"); stderr.write(BOLD,GREEN,underlineArrow); rep.popFront(); foreach(dchar x;rep){if(isNewLine(x)) break; stderr.write(underlineStroke);} stderr.writeln(RESET); }else super.highlight(column, ntabs, rep); } } string formatError(string msg,Location loc){ import std.conv; return text(loc.line,": ",msg); // TODO: column }
D
instance DIA_IdolKadar_EXIT(DIA_Proto_End) { npc = PC_IdolKadar; }; //===================================================== var int DIA_IdolKadar_Hallo_Once; instance DIA_IdolKadar_Hallo(C_INFO) { npc = PC_IdolKadar; nr = 1; condition = DIA_IdolKadar_Hallo_cond; information = DIA_IdolKadar_Hallo_info; important = TRUE; permanent = TRUE; }; func int DIA_IdolKadar_Hallo_cond() { if (!DIA_IdolKadar_Hallo_Once || DIA_WhenAsked_cond()) { return TRUE; }; }; func void DIA_IdolKadar_Hallo_info() { if (!DIA_IdolKadar_Hallo_Once) { DIA_IdolKadar_Hallo_Once = TRUE; CreateInvItem(self, ItAr_Guru_M); AI_EquipArmor(self, ItAr_Guru_M); CreateInvItem(self,ItMW_Addon_Stab02); AI_EquipBestMeleeWeapon(self); B_GiveAchievement_SnowStudio(); B_StartOtherRoutine(self, "REST"); B_LogNote(TOPIC_SnowStudio, TOPIC_SnowStudio_IdolKadar); }; AI_Output(self,other,"DIA_IdolKadar_Hallo"); //Смертный! Запомни: чтобы найти грибы, ты должен действовать как гриб, ты должен думать как гриб, ты должен СТАТЬ грибом! Теперь ступай! AI_StopProcessInfos(self); };
D
module android.java.android.bluetooth.BluetoothClass_Device; public import android.java.android.bluetooth.BluetoothClass_Device_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!BluetoothClass_Device; import import0 = android.java.java.lang.Class;
D
instance DIA_PAL_9168_NATAN_EXIT(C_Info) { npc = pal_9168_natan; nr = 999; condition = dia_pal_9168_natan_exit_condition; information = dia_pal_9168_natan_exit_info; permanent = TRUE; description = Dialog_Ende; }; func int dia_pal_9168_natan_exit_condition() { return TRUE; }; func void dia_pal_9168_natan_exit_info() { AI_StopProcessInfos(self); }; instance DIA_PAL_9168_NATAN_PICKPOCKET(C_Info) { npc = pal_9168_natan; nr = 900; condition = dia_pal_9168_natan_pickpocket_condition; information = dia_pal_9168_natan_pickpocket_info; permanent = TRUE; description = PICKPOCKET_COMM; }; func int dia_pal_9168_natan_pickpocket_condition() { return C_Beklauen(100,150); }; func void dia_pal_9168_natan_pickpocket_info() { Info_ClearChoices(dia_pal_9168_natan_pickpocket); Info_AddChoice(dia_pal_9168_natan_pickpocket,Dialog_Back,dia_pal_9168_natan_pickpocket_back); Info_AddChoice(dia_pal_9168_natan_pickpocket,DIALOG_PICKPOCKET,dia_pal_9168_natan_pickpocket_doit); }; func void dia_pal_9168_natan_pickpocket_doit() { B_Beklauen(); Info_ClearChoices(dia_pal_9168_natan_pickpocket); }; func void dia_pal_9168_natan_pickpocket_back() { Info_ClearChoices(dia_pal_9168_natan_pickpocket); }; instance DIA_PAL_9168_NATAN_RESCUEGAROND(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_rescuegarond_condition; information = dia_pal_9168_natan_rescuegarond_info; permanent = FALSE; important = TRUE; }; func int dia_pal_9168_natan_rescuegarond_condition() { if((MIS_ORсGREATWAR == LOG_Running) && (ALLAWAYFROMCASTLE == FALSE)) { return TRUE; }; }; func void dia_pal_9168_natan_rescuegarond_info() { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_01_01"); //СТОЙ! Ни шагу дальше! AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_01_03"); //Впереди - позиции орков! AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_01_04"); //И если самоубийство не входит в твои планы, то самый подходящий маневр для тебя - это разворот с последующей ретировкой. AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_01_05"); //Да и потом, я тебя не знаю... Кто ты и что здесь делаешь?! MEETNATAN = TRUE; Info_ClearChoices(dia_pal_9168_natan_rescuegarond); if((MIS_RESCUEGAROND == LOG_Running) || (MIS_RESCUEGAROND == LOG_SUCCESS)) { Info_AddChoice(dia_pal_9168_natan_rescuegarond,"Я здесь по поручению лорда Хагена.",dia_pal_9168_natan_rescuegarond_hagen); } else { Info_AddChoice(dia_pal_9168_natan_rescuegarond,"А ты догадайся!",dia_pal_9168_natan_rescuegarond_cantsee); }; }; func void dia_pal_9168_natan_rescuegarond_cantsee() { AI_Output(other,self,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_01"); //А ты догадайся! if(other.guild == GIL_PAL) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_02"); //Бравурная самоуверенность и воинственность выдают в тебе нашего брата - паладина. }; if(other.guild == GIL_MIL) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_03"); //Твоя дерзость превышает допустимую норму для ополченца, разговаривающего с паладином. Но сейчас не об этом. } else if(other.guild == GIL_KDF) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_04"); //Гордый, благостный взгляд с оттенком укора. Маг огня! } else if(other.guild == GIL_KDW) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_05"); //Для мага огня недостаточно холен, для паладина - хиловат, но в глазах знание и, как и у названных ранее, благородство. Маг воды! } else if(other.guild == GIL_KDM) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_06"); //Паладин нутром чувствует прихвостня Белиара. } else if(other.guild == GIL_DJG) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_07"); //Неплохая экипировка, много битв позади, в глазах - отсутствие приверженности богам, алчность. Преданность в прямой зависимости от предложенной суммы. Наемник! } else if((other.guild == GIL_TPL) || (other.guild == GIL_GUR)) { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_08"); //Шмотье вонью болотника пропитано, лицо блаженно и бессмысленно. Сектант. } else { AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_09"); //Небрежный вид, зловоние. Ты простой бродяга. Ну, не в этом суть. }; AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_10"); //Это понятно. Меня интересует другой вопрос - что ты тут забыл? Или ты не слышал, что вся эта долина просто кишмя кишит орками? AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_12"); //Вообще, только безумец мог просто так прийти сюда! AI_Output(other,self,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_13"); //Раньше мне это многие говорили. Но как видишь, я все еще жив. AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_14"); //Эх, ладно... Не буду с тобой спорить! Это твое личное дело. AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_15"); //В конце концов, еще один человек, кем бы он ни был, нам здесь не помешает. AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_CantSee_01_16"); //Ведь тут практически и так никого не осталось из людей - всех остальных перебили орки. Info_ClearChoices(dia_pal_9168_natan_rescuegarond); }; func void dia_pal_9168_natan_rescuegarond_hagen() { AI_Output(other,self,"DIA_Pal_9168_Natan_RescueGarond_Hagen_01_01"); //Я здесь по поручению лорда Хагена. AI_Output(other,self,"DIA_Pal_9168_Natan_RescueGarond_Hagen_01_02"); //Мне необходимо выяснить, какова на данный момент обстановка в Долине Рудников. AI_Output(other,self,"DIA_Pal_9168_Natan_RescueGarond_Hagen_01_03"); //Но самое главное, он хочет знать - что стало с его людьми! AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_Hagen_01_04"); //Так тебя прислал сам лорд Хаген? Что же, тогда мы, похоже, в одной упряжке, приятель. AI_Output(self,other,"DIA_Pal_9168_Natan_RescueGarond_Hagen_01_05"); //Я тоже здесь по его приказу! Info_ClearChoices(dia_pal_9168_natan_rescuegarond); }; instance DIA_PAL_9168_NATAN_WHOYOU(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_whoyou_condition; information = dia_pal_9168_natan_whoyou_info; permanent = FALSE; description = "Кто ты?"; }; func int dia_pal_9168_natan_whoyou_condition() { if(MIS_ORсGREATWAR == LOG_Running) { return TRUE; }; }; func void dia_pal_9168_natan_whoyou_info() { AI_Output(other,self,"DIA_Pal_9168_Natan_WhoYou_01_01"); //Кто ты? AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_02"); //Мое имя Натан. И как ты уже наверняка понял, я - паладин короля и верный слуга Инноса! if(Npc_KnowsInfo(other,dia_pal_2000_hagen_rescuegarondothers)) { B_GivePlayerXP(200); AI_Output(other,self,"DIA_Pal_9168_Natan_WhoYou_01_03"); //Ах да! Кажется, лорд Хаген мне уже рассказывал про тебя. AI_Output(other,self,"DIA_Pal_9168_Natan_WhoYou_01_04"); //Ты ведь один из тех парней, что добровольно согласились отправиться с ним в эту экспедицию. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_10"); //Это все из-за паладина Удара. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_13"); //Несколько лет назад в одном из походов в снежный Нордмар этот парень спас мне жизнь! AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_14"); //После чего я и дал священный обет Инносу, что обязательно верну ему этот долг чести. AI_Output(other,self,"DIA_Pal_9168_Natan_WhoYou_01_15"); //Значит, он спас тебе жизнь. И как это произошло? AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_16"); //Дело было так: наш передовой отряд, отправленный на разведку в одно из ущелий, попал в засаду к оркам...(вспоминает) Эти твари окружили нас со всех сторон! AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_21"); //Когда завязался бой, Удар своим арбалетом разил орков направо и налево до тех пор, пока его запас железных болтов не иссяк. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_22"); //После того, как это случилось, он сменил спусковой крючок на рукоять меча и бросился в самую гущу врагов, обрушив на них всю ярость своей атаки...(восхищенно) AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_25"); //В итоге наш отряд вышел из окружения, хотя и понес значительные потери. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_26"); //Потом мы стали отступать в сторону расположения наших основных сил... AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_27"); //...но вдруг один из болтов, выпущенный орками вдогонку, угодил мне прямо в ногу. Я упал как подкошенный! AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_28"); //Удар увидел это и кинулся мне на выручку, несмотря на то, что эти твари уже наступали нам на пятки. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_29"); //Он вынес меня, раненого, с поля боя, не оставил на растерзание этим кровожадным обезьянам! AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_30"); //Я безмерно благодарен ему за им совершенное. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_31"); //По этой причине я, собственно, и вызвался добровольцем для отправки в эту экспедицию, когда узнал, что Удар также принимает в ней участие. AI_Output(self,other,"DIA_Pal_9168_Natan_WhoYou_01_32"); //Возможно, здесь мне представится шанс отплатить ему. AI_Output(other,self,"DIA_Pal_9168_Natan_WhoYou_01_33"); //М-да... ну и история. Я и не знал, что он на такое способен. if(!Npc_IsDead(PAL_268_Udar)) { MIS_NATANDOLG = LOG_Running; Log_CreateTopic(TOPIC_NATANDOLG,LOG_MISSION); Log_SetTopicStatus(TOPIC_NATANDOLG,LOG_Running); B_LogEntry(TOPIC_NATANDOLG,"Паладин Натан рассказал мне историю о том, как однажды его боевой товарищ по имени Удар спас ему жизнь. Теперь он хочет вернуть долг чести Удару, для чего добровольно вызвался участвовать в экспедиции лорда Хагена."); }; } else { AI_Output(other,self,"DIA_Pal_9168_Natan_WhoYou_01_36"); //Ну да, это я уже понял. }; }; instance DIA_PAL_9168_NATAN_ZAMOK(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_zamok_condition; information = dia_pal_9168_natan_zamok_info; permanent = FALSE; description = "Почему вы не в крепости?"; }; func int dia_pal_9168_natan_zamok_condition() { if((MIS_ORсGREATWAR == LOG_Running) && (CASTLEISFREE == FALSE) && (PALADINCASTELFREE == FALSE) && (CASTLEISDOWN == FALSE) && (KNOWABOUTGAROND == FALSE)) { return TRUE; }; }; func void dia_pal_9168_natan_zamok_info() { B_GivePlayerXP(250); AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_01_01"); //Почему вы не в крепости? AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_01_02"); //Потому что с орками там тесно. AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_01_03"); //Так значит, замок все-таки пал? AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_01_04"); //Да, к сожалению это так... Несколько дней назад орки вновь пошли на штурм, и в этот раз мы не смогли их сдержать. AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_01_05"); //А что с Гарондом и его людьми? AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_01_06"); //Я точно не знаю, но скорее всего все они погибли. Глупо полагаться на то, что зеленокожие кого-либо пощадили! AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_01_07"); //Думаю, что нам стоит это выяснить. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_01_08"); //Серьезно? А каким образом? Может быть, спросить у самих орков?! AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_01_09"); //Они порубят меня на куски еще до того, как я подойду к крепости! CASTLEISDOWN = TRUE; NATATELLZAMOK = TRUE; if(MIS_RESCUEGAROND == LOG_Running) { B_LogEntry(TOPIC_RESCUEGAROND,"Замок в Долине Рудников пал! Оркам все-таки удалось взять его штурмом. Не думаю, что подобная весть сильно обрадует лорда Хагена. О судьбе самих защитников замка пока что ничего неизвестно."); }; Info_ClearChoices(dia_pal_9168_natan_zamok); Info_AddChoice(dia_pal_9168_natan_zamok,"Тогда это сделаю я!",dia_pal_9168_natan_zamok_ulumulu); Info_AddChoice(dia_pal_9168_natan_zamok,"Тогда надо попытаться отбить у них крепость обратно!",dia_pal_9168_natan_zamok_noway); }; func void dia_pal_9168_natan_zamok_ulumulu() { AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_UluMulu_01_01"); //Тогда это сделаю я! AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_UluMulu_01_04"); //Хм. Ну ладно! Твоя жизнь мне все-таки менее дорога, чем своя собственная. Действуй! AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_UluMulu_01_05"); //Правда, не думаю, что из этой затеи выйдет хоть какой-нибудь толк. MIS_NEWSSURVIVERS = LOG_Running; Log_CreateTopic(TOPIC_NEWSSURVIVERS,LOG_MISSION); Log_SetTopicStatus(TOPIC_NEWSSURVIVERS,LOG_Running); B_LogEntry(TOPIC_NEWSSURVIVERS,"Недалеко от прохода, ведущего из Долины Рудников, я повстречал небольшую группу паладинов. Их возглавляет человек по имени Натан. Он рассказал мне о том, что недавно орки вновь штурмовали замок и на сей раз им этот удалось - крепость пала!"); Log_AddEntry(TOPIC_NEWSSURVIVERS,"Натан полагает, что все защитники замка погибли, но я решил наведаться в крепость, чтобы разузнать о судьбе Гаронда и его людей."); AI_StopProcessInfos(self); }; func void dia_pal_9168_natan_zamok_noway() { AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_01"); //Нужно попытаться отбить у них крепость обратно! AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_02"); //Честно говоря, мы и сами уже подумывали об этом. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_03"); //Однако нас слишком мало, чтобы воевать против целой армии орков. AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_06"); //И что ты предлагаешь? AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_07"); //Хммм...(задумчиво) Я слышал, что в долине еще остался небольшой отряд охотников на драконов. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_08"); //Вот если бы мы объединились с ними, то успех был бы в большей степени гарантирован. if((ALLDRGHUNTERSISDEAD == TRUE) || (DRGHUNTER01ISDEAD == TRUE)) { if(DRGHUNTER01ISDEAD == TRUE) { AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_17"); //Навряд ли из этого получится что-то хорошее. AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_18"); //Их лидер мертв! А без него они лишь всего кучка ни на что не способных слабаков. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_19"); //Откуда тебе это известно? B_KillNpc(DJG_708_Kurgan); B_KillNpc(DJG_710_Kjorn); B_KillNpc(DJG_711_Godar); B_KillNpc(DJG_712_Hokurn); B_KillNpc(DJG_713_Biff); B_KillNpc(DJG_702_Rod); B_KillNpc(DJG_703_Cipher); if(MEETKURGANAFTER == TRUE) { Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_2"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_3"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_4"); Wld_InsertNpc(OrcWarrior_Roam,"FP_STAND_OW_DJG_VORPOSTEN_BIFFS"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_1"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_BLACKGOBBO_NEARCAVE1_2"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_1"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_2"); Wld_InsertNpc(orkelite_addon2,"FP_ROAM_OW_ORCOND_CAVE1_3"); }; } else { AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_09"); //Боюсь, что они уже все мертвы. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_10"); //Откуда тебе это известно? }; AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_11"); //Поверь мне, это так. Так что придется сражаться без них. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_12"); //Да, очень жаль. Остается надеяться лишь на самих себя. AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_13"); //Мы готовы к атаке. Дай знать, когда будешь готов ты. AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_14"); //Хорошо. PALADINREADYATTACK = TRUE; MIS_STURMCASTLE = LOG_Running; Log_CreateTopic(TOPIC_STURMCASTLE,LOG_MISSION); Log_SetTopicStatus(TOPIC_STURMCASTLE,LOG_Running); B_LogEntry(TOPIC_STURMCASTLE,"Недалеко от прохода, ведущего из Долины Рудников, я повстречал небольшую группу паладинов. Их возглавляет человек по имени Натан. Он рассказал мне о том, что недавно орки вновь штурмовали замок и на сей раз им этот удалось - крепость пала! Натан полагает, что все защитники замка погибли, однако быть точно уверенным в этом пока нельзя."); Log_AddEntry(TOPIC_STURMCASTLE,"Думаю, лучший способ все выяснить - постараться отбить крепость обратно. Натан, конечно, согласился с моим предложением, но посетовал на то, что для этой затеи у нас слишком мало людей. Он уж было хотел завербовать оставшихся в долине охотников на драконов, но, узнав, что они все мертвы, - согласился начать атаку своими силами."); Info_ClearChoices(dia_pal_9168_natan_zamok); } else { AI_Output(other,self,"DIA_Pal_9168_Natan_Zamok_NoWay_01_15"); //Ладно, я постараюсь найти их. Если, конечно, орки не сделали этого раньше меня! AI_Output(self,other,"DIA_Pal_9168_Natan_Zamok_NoWay_01_16"); //Хорошо! Мы будем ждать на этом же месте. MIS_STURMCASTLE = LOG_Running; Log_CreateTopic(TOPIC_STURMCASTLE,LOG_MISSION); Log_SetTopicStatus(TOPIC_STURMCASTLE,LOG_Running); B_LogEntry(TOPIC_STURMCASTLE,"Недалеко от прохода, ведущего из Долины Рудников, я повстречал небольшую группу паладинов. Их возглавляет человек по имени Натан. Он рассказал мне о том, что недавно орки вновь штурмовали замок и на сей раз им этот удалось - крепость пала! Натан полагает, что все защитники замка погибли, однако быть точно уверенным в этом пока нельзя."); Log_AddEntry(TOPIC_STURMCASTLE,"Думаю, лучший способ все выяснить - постараться отбить крепость обратно. Натан, конечно, согласился с моим предложением, но посетовал на то, что для этой затеи у нас слишком мало людей. Он хочет объединиться с охотниками на драконов. Я должен найти их отряд и убедить присоединиться к нам."); AI_StopProcessInfos(self); }; }; instance DIA_PAL_9168_NATAN_NEWSSURVIVERS(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_newssurvivers_condition; information = dia_pal_9168_natan_newssurvivers_info; permanent = FALSE; description = "Я был в крепости."; }; func int dia_pal_9168_natan_newssurvivers_condition() { if((KNOWABOUTGAROND == TRUE) && (PALADINCASTELFREE == FALSE) && (CASTLEISFREE == FALSE) && (CASTLEISDOWN == TRUE) && (NATATELLZAMOK == TRUE)) { return TRUE; }; }; func void dia_pal_9168_natan_newssurvivers_info() { AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurvivers_01_01"); //Я был в крепости. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_02"); //(напряженно) Правда? И что тебе удалось узнать? AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurvivers_01_03"); //Гаронд и часть паладинов живы! Орки взяли их в плен. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_07"); //Нужно как можно скорее освободить Гаронда и его людей. Нам нельзя терять ни минуты! AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_08"); //Мы не знаем, с чем связано орочье милосердие и как долго оно продлится. if((MIS_NATANDOLG == LOG_Running) && (UDARKNOWSNATAN == TRUE)) { B_GivePlayerXP(200); AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurvivers_01_10"); //Кстати, среди плененных орками паладинов был и твой друг Удар! Он тоже попал к ним в плен. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_11"); //Удар в крепости?! Черт! Он там на волосок от смерти, а я здесь! AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_12"); //Проклятые орки! Если он погибнет, я не найду покоя, пока не перебью их всех! AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurvivers_01_13"); //Думаю, это твой шанс отдать ему свой долг чести. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_14"); //Верно думаешь. При первой же возможности я вытащу его оттуда. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_15"); //Спасибо, что сообщил мне о происходящем внутри. Теперь меня ничто не остановит на пути к замку! B_LogEntry(TOPIC_NATANDOLG,"Узнав, что паладин Удар также находится в плену у орков, Натан пришел в ярость. Кажется, сейчас его не смогла бы остановить и целая армия!"); } else { B_GivePlayerXP(100); }; KNOWSITUATIONCASTLE = TRUE; }; instance DIA_PAL_9168_NATAN_ZAMOKKNOWN(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_zamokknown_condition; information = dia_pal_9168_natan_zamokknown_info; permanent = FALSE; description = "Как обстановка?"; }; func int dia_pal_9168_natan_zamokknown_condition() { if((MIS_ORсGREATWAR == LOG_Running) && (CASTLEISFREE == FALSE) && (PALADINCASTELFREE == FALSE) && (CASTLEISDOWN == TRUE) && (NATATELLZAMOK == FALSE)) { return TRUE; }; }; func void dia_pal_9168_natan_zamokknown_info() { B_GivePlayerXP(250); AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_01_01"); //Как обстановка? AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_02"); //Несколько дней назад орки вновь штурмовали замок, и на сей раз их штурм увенчался успехом. if(KNOWABOUTGAROND == TRUE) { AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_04"); //(напряженно) Что? Ты был там?! И что тебе удалось узнать? AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_01_05"); //Гаронд и часть паладинов живы! Орки взяли их в плен. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_09"); //Нужно как можно скорее освободить Гаронда и его людей. Нам нельзя терять ни минуты! AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_10"); //Мы не знаем, как долго продлиться милосердие у этих кровожадных тварей. KNOWSITUATIONCASTLE = TRUE; if(Npc_KnowsInfo(other,dia_orc_8566_urhan_paladincost)) { if(BOGNARREFUSETALK == TRUE) { Info_ClearChoices(dia_pal_9168_natan_zamokknown); Info_AddChoice(dia_pal_9168_natan_zamokknown,"Надо попытаться отбить у них крепость обратно!",dia_pal_9168_natan_zamokknown_noway); } else { AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_01_11"); //Согласен! Надо поторопиться. }; } else { Info_ClearChoices(dia_pal_9168_natan_zamokknown); Info_AddChoice(dia_pal_9168_natan_zamokknown,"Согласен! Надо поторопиться.",dia_pal_9168_natan_zamokknown_ulumulu); Info_AddChoice(dia_pal_9168_natan_zamokknown,"Надо попытаться отбить у них крепость обратно!",dia_pal_9168_natan_zamokknown_noway); }; } else { AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_12"); //(напряженно) Что? Ты был там?! Кто-нибудь выжил? AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_01_13"); //Пока не знаю. Но думаю, что нам стоит это выяснить. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_14"); //Правда? Хммм. И как же, по-твоему, мне это сделать? AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_01_15"); //Они порубят меня на куски еще до того, как я подойду к крепости! NATATELLZAMOKTWO = TRUE; Info_ClearChoices(dia_pal_9168_natan_zamokknown); Info_AddChoice(dia_pal_9168_natan_zamokknown,"Тогда это сделаю я!.",dia_pal_9168_natan_zamokknown_ulumulu); Info_AddChoice(dia_pal_9168_natan_zamokknown,"Надо попытаться отбить у них крепость обратно!",dia_pal_9168_natan_zamokknown_noway); }; }; func void dia_pal_9168_natan_zamokknown_ulumulu() { AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_UluMulu_01_01"); //Тогда это сделаю я! AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_UluMulu_01_04"); //Хммм...(удивленно) Ну ладно! Если ты так решил - тогда действуй. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_UluMulu_01_05"); //Правда, не думаю, что из этой затеи выйдет хоть какой-нибудь толк. MIS_NEWSSURVIVERS = LOG_Running; Log_CreateTopic(TOPIC_NEWSSURVIVERS,LOG_MISSION); Log_SetTopicStatus(TOPIC_NEWSSURVIVERS,LOG_Running); B_LogEntry(TOPIC_NEWSSURVIVERS,"Недалеко от прохода, ведущего из Долины Рудников, я повстречал небольшую группу паладинов. Их возглавляет человек по имени Натан. Он рассказал мне о том, что недавно орки вновь штурмовали замок и на сей раз им этот удалось - крепость пала!"); Log_AddEntry(TOPIC_NEWSSURVIVERS,"Натан полагает, что все защитники замка погибли, но я решил наведаться в крепость, чтобы разузнать о судьбе Гаронда и его людей."); AI_StopProcessInfos(self); }; func void dia_pal_9168_natan_zamokknown_noway() { AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_01"); //Нужно попытаться отбить у них крепость обратно! AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_02"); //Честно говоря, мы и сами уже подумывали об этом. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_03"); //Однако нас слишком мало, чтобы воевать против целой армии орков. AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_06"); //И что ты предлагаешь? AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_07"); //Хммм...(задумчиво) Я слышал, что в долине еще остался небольшой отряд охотников на драконов. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_08"); //Думаю, что если бы они присоединились к нам, то у нас было бы куда больше шансов выбить орков из крепости! if((ALLDRGHUNTERSISDEAD == TRUE) || (DRGHUNTER01ISDEAD == TRUE)) { if(ALLDRGHUNTERSISDEAD == TRUE) { AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_09"); //Боюсь, что они уже все мертвы. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_10"); //Откуда тебе это известно? } else { AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_11"); //Навряд ли из этого получится что-то хорошее. AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_12"); //Их лидер мертв. А без него они лишь всего кучка ни на что не способных слабаков. Так что орки наверняка уже добрались до них! AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_13"); //Откуда тебе это известно? B_KillNpc(DJG_708_Kurgan); B_KillNpc(DJG_710_Kjorn); B_KillNpc(DJG_711_Godar); B_KillNpc(DJG_712_Hokurn); B_KillNpc(DJG_713_Biff); B_KillNpc(DJG_702_Rod); B_KillNpc(DJG_703_Cipher); if(MEETKURGANAFTER == TRUE) { Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_2"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_3"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_4"); Wld_InsertNpc(OrcWarrior_Roam,"FP_STAND_OW_DJG_VORPOSTEN_BIFFS"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_1"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_BLACKGOBBO_NEARCAVE1_2"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_1"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_2"); Wld_InsertNpc(orkelite_addon2,"FP_ROAM_OW_ORCOND_CAVE1_3"); }; }; AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_14"); //Поверь мне, это так. Так что придется сражаться без них! AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_15"); //Да, очень жаль...(расстроенно) Остается надеяться лишь на самих себя. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_16"); //Думаю, что тогда можно начать нашу атаку. Дай знать, когда будешь готов! AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_17"); //Хорошо. PALADINREADYATTACK = TRUE; MIS_STURMCASTLE = LOG_Running; Log_CreateTopic(TOPIC_STURMCASTLE,LOG_MISSION); Log_SetTopicStatus(TOPIC_STURMCASTLE,LOG_Running); B_LogEntry(TOPIC_STURMCASTLE,"Недалеко от прохода, ведущего из Долины Рудников, я повстречал небольшую группу паладинов. Их возглавляет человек по имени Натан. Он рассказал мне о том, что недавно орки вновь штурмовали замок и на сей раз им этот удалось - крепость пала! Натан полагает, что все защитники замка погибли, однако быть точно уверенным в этом пока нельзя."); Log_AddEntry(TOPIC_STURMCASTLE,"Думаю, лучший способ все выяснить - постараться отбить крепость обратно. Натан, конечно, согласился с моим предложением, но посетовал на то, что для этой затеи у нас слишком мало людей. Он уж было хотел завербовать оставшихся в долине охотников на драконов, но, узнав, что они все мертвы, - согласился начать атаку своими силами."); Info_ClearChoices(dia_pal_9168_natan_zamokknown); } else { AI_Output(other,self,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_18"); //Ладно, я постараюсь найти их. Если, конечно же, орки не сделали этого раньше меня. AI_Output(self,other,"DIA_Pal_9168_Natan_ZamokKnown_NoWay_01_19"); //Хорошо! Мы будем ждать на этом же месте. MIS_STURMCASTLE = LOG_Running; Log_CreateTopic(TOPIC_STURMCASTLE,LOG_MISSION); Log_SetTopicStatus(TOPIC_STURMCASTLE,LOG_Running); B_LogEntry(TOPIC_STURMCASTLE,"Недалеко от прохода, ведущего из Долины Рудников, я повстречал небольшую группу паладинов. Их возглавляет человек по имени Натан. Он рассказал мне о том, что недавно орки вновь штурмовали замок и на сей раз им этот удалось - крепость пала! Натан полагает, что все защитники замка погибли, однако быть точно уверенным в этом пока нельзя."); Log_AddEntry(TOPIC_STURMCASTLE,"Думаю, лучший способ все выяснить - постараться отбить крепость обратно. Натан, конечно, согласился с моим предложением, но посетовал на то, что для этой затеи у нас слишком мало людей. Он хочет объединиться с охотниками на драконов. Я должен найти их отряд и убедить присоединиться к нам."); AI_StopProcessInfos(self); }; }; instance DIA_PAL_9168_NATAN_NEWSSURVIVERSTWO(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_newssurviverstwo_condition; information = dia_pal_9168_natan_newssurviverstwo_info; permanent = FALSE; description = "Я был в крепости."; }; func int dia_pal_9168_natan_newssurviverstwo_condition() { if((KNOWABOUTGAROND == TRUE) && (PALADINCASTELFREE == FALSE) && (CASTLEISFREE == FALSE) && (CASTLEISDOWN == TRUE) && (NATATELLZAMOKTWO == TRUE)) { return TRUE; }; }; func void dia_pal_9168_natan_newssurviverstwo_info() { B_GivePlayerXP(200); AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurvivers_01_01"); //Я был в крепости. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_02"); //(напряженно) Правда? И что тебе удалось узнать? AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurvivers_01_03"); //Гаронд и часть паладинов живы! Орки взяли их в плен. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_07"); //Нужно как можно скорее освободить Гаронда и его людей. Нам нельзя терять ни минуты! AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurvivers_01_08"); //Мы не знаем, с чем связано орочье милосердие и как долго оно продлится. KNOWSITUATIONCASTLE = TRUE; }; instance DIA_PAL_9168_NATAN_NEWSSURVIVERSUDAR(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_newssurviversudar_condition; information = dia_pal_9168_natan_newssurviversudar_info; permanent = FALSE; description = "У меня есть для тебя новость."; }; func int dia_pal_9168_natan_newssurviversudar_condition() { if((MIS_NATANDOLG == LOG_Running) && (UDARKNOWSNATAN == TRUE) && (PALADINCASTELFREE == FALSE) && (CASTLEISFREE == FALSE) && Npc_KnowsInfo(hero,dia_pal_9168_natan_zamokknown)) { return TRUE; }; }; func void dia_pal_9168_natan_newssurviversudar_info() { B_GivePlayerXP(200); AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurviversUdar_01_03"); //Среди плененных орками паладинов был и твой друг Удар! Он тоже попал к ним в плен. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurviversUdar_01_04"); //Удар в крепости?! Черт! Так значит они добрались и до него. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurviversUdar_01_05"); //(грозно) Проклятые орки! Я этого просто так не оставлю. AI_Output(other,self,"DIA_Pal_9168_Natan_NewsSurviversUdar_01_06"); //Думаю, это твой шанс отдать ему свой долг чести. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurviversUdar_01_07"); //И при первой же возможности я это сделаю. AI_Output(self,other,"DIA_Pal_9168_Natan_NewsSurviversUdar_01_08"); //Спасибо, что сообщил мне об этом. Теперь меня ничто не остановит на пути к замку! B_LogEntry(TOPIC_NATANDOLG,"Узнав, что паладин Удар также находится в плену у орков, Натан пришел в ярость. Кажется, сейчас его не смогла бы остановить и целая армия!"); }; instance DIA_PAL_9168_NATAN_HOWAROUND(C_Info) { npc = pal_9168_natan; nr = 2; condition = dia_pal_9168_natan_condition; information = dia_pal_9168_natan_info; permanent = TRUE; description = "Как ситуация?"; }; func int dia_pal_9168_natan_condition() { if((MIS_ORсGREATWAR == LOG_Running) && (Npc_KnowsInfo(hero,dia_pal_9168_natan_zamok) || Npc_KnowsInfo(hero,dia_pal_9168_natan_zamokknown))) { return TRUE; }; }; func void dia_pal_9168_natan_info() { AI_Output(other,self,"DIA_Pal_9168_Natan_01_00"); //Как ситуация? if(MIS_STURMCASTLE == LOG_Running) { if(CASTLEISFREE == TRUE) { AI_Output(self,other,"DIA_Pal_9168_Natan_01_01"); //Мы сделали это! Крепость теперь снова в наших руках! AI_Output(self,other,"DIA_Pal_9168_Natan_01_02"); //Но не стоит ликовать слишком бурно - этот триумф не окончателен. Выдыхать рано. Орки тоже принципиальны, и они тоже теряют на этой войне своих друзей. Захват замка - вновь их цель. AI_StopProcessInfos(self); } else { if(KNOWSITUATIONCASTLE == TRUE) { AI_Output(self,other,"DIA_Pal_9168_Natan_01_04"); //Нам надо как-то вытащить Гаронда и его людей из лап орков! Мы не можем бросить их здесь на произвол судьбы. AI_StopProcessInfos(self); }; if(PALADINREADYATTACK == FALSE) { AI_Output(self,other,"DIA_Pal_9168_Natan_01_06"); //Пока все тихо...(серьезно) Но по мне, это затишье перед бурей! AI_Output(self,other,"DIA_Pal_9168_Natan_01_07"); //Не ровен час, когда сюда пожалуют орки и тогда нам всем не поздоровится. AI_Output(self,other,"DIA_Pal_9168_Natan_01_08"); //Так что тебе необходимо как можно скорее найти этот отряд. Нам нельзя терять времени! AI_Output(other,self,"DIA_Pal_9168_Natan_01_09"); //Хорошо! Уже иду. AI_StopProcessInfos(self); } else { AI_Output(self,other,"DIA_Pal_9168_Natan_01_10"); //Нам надо скорее атаковать крепость, пока орки не заподозрили неладное...(серьезно) Чего ты ждешь?! AI_StopProcessInfos(self); }; }; } else if(MIS_NEWSSURVIVERS == LOG_Running) { if(KNOWSITUATIONCASTLE == FALSE) { AI_Output(self,other,"DIA_Pal_9168_Natan_01_12"); //Пока все тихо...(серьезно) Но по мне это затишье перед бурей! AI_Output(self,other,"DIA_Pal_9168_Natan_01_13"); //Не ровен час, когда сюда пожалуют орки и тогда нам всем не поздоровится. AI_Output(self,other,"DIA_Pal_9168_Natan_01_14"); //Так что тебе необходимо как можно скорее попасть в крепость и узнать, что там происходит. AI_Output(self,other,"DIA_Pal_9168_Natan_01_15"); //Нам нельзя терять ни минуты! AI_StopProcessInfos(self); } else { AI_Output(self,other,"DIA_Pal_9168_Natan_01_17"); //Нам надо как-то вытащить Гаронда и его людей из лап орков! Мы не можем бросить их здесь на произвол судьбы. AI_StopProcessInfos(self); }; } else if(PALADINCASTELFREE == TRUE) { if(MIS_STURMCASTLE == LOG_SUCCESS) { AI_Output(self,other,"DIA_Pal_9168_Natan_01_19"); //Могло быть и лучше. Одно радует - Гаронд и его люди теперь вместе с нами! AI_Output(self,other,"DIA_Pal_9168_Natan_01_20"); //А сейчас уходим, пока орки не пришли в себя. } else if(MIS_NEWSSURVIVERS == LOG_SUCCESS) { AI_Output(self,other,"DIA_Pal_9168_Natan_01_22"); //Могло быть и лучше. Одно радует - Гаронд и его люди теперь вместе с нами! AI_Output(self,other,"DIA_Pal_9168_Natan_01_23"); //А сейчас уходим, пока орки не пришли в себя! } else { AI_Output(self,other,"DIA_Pal_9168_Natan_01_25"); //Могло быть и лучше... }; } else { AI_Output(self,other,"DIA_Pal_9168_Natan_01_26"); //Могло быть и лучше... }; }; instance DIA_PAL_9168_NATAN_CANREADYATTACK(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_canreadyattack_condition; information = dia_pal_9168_natan_canreadyattack_info; permanent = FALSE; description = "Насчет охотников на драконов..."; }; func int dia_pal_9168_natan_canreadyattack_condition() { if((MIS_STURMCASTLE == LOG_Running) && (CASTLEISFREE == FALSE) && (PALADINCASTELFREE == FALSE) && (PALADINREADYATTACK == FALSE) && ((DGJREFUSEPALADIN == TRUE) || (DGJJOINPALADIN == TRUE))) { return TRUE; }; }; func void dia_pal_9168_natan_canreadyattack_info() { AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_01"); //Насчет охотников на драконов... AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_02"); //Да? У тебя есть новости, касаемо этого сбро... наших новых союзников? AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_03"); //Да! Я нашел их отряд и предложил им присоединиться к вам. AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_04"); //И что они ответили? if(DGJJOINPALADIN == TRUE) { B_GivePlayerXP(100); AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_05"); //Они согласны! Они будут сражаться вместе с нами. AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_06"); //Я правда рад этому. В сражении с орками нам понадобится любая помощь! AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_07"); //Думаю, что теперь можно начать нашу атаку. Дай знать, когда будешь готов! AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_08"); //Хорошо. B_LogEntry(TOPIC_STURMCASTLE,"Натан был рад услышать о том, что охотники на драконов согласились принять участие в штурме крепости. Теперь можно начинать нашу атаку."); PALADINREADYATTACK = TRUE; b_readydgjattack(); } else if(DGJREFUSEPALADIN == TRUE) { B_GivePlayerXP(200); AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_09"); //Не думаю, что от них будет много пользы. AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_10"); //Почему ты так считаешь? AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_11"); //Эти трусы наложили в штаны, как только узнали, что именно вы задумали. AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_12"); //Так что придется сражаться без них! AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_13"); //Да, очень жаль...(расстроенно) Остается надеяться лишь на самих себя. AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_14"); //Думаю, что теперь можно начать нашу атаку. Дай знать, когда будешь готов! AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_15"); //Хорошо. B_LogEntry(TOPIC_STURMCASTLE,"Натан был немного расстроен новостью о том, что охотники на драконов отказались принять участие в штурме крепости. Теперь нам придется рассчитывать только на свои силы."); PALADINREADYATTACK = TRUE; } else if((ALLDRGHUNTERSISDEAD == TRUE) || (DRGHUNTER01ISDEAD == TRUE)) { if(ALLDRGHUNTERSISDEAD == TRUE) { AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_16"); //Боюсь, что они уже все мертвы. AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_17"); //Откуда тебе это известно? } else { AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_18"); //Ничего! Их лидер мертв, а без него они лишь всего кучка ни на что не способных слабаков. Так что орки наверняка уже добрались до них! AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_19"); //Откуда тебе это известно? B_KillNpc(DJG_708_Kurgan); B_KillNpc(DJG_710_Kjorn); B_KillNpc(DJG_711_Godar); B_KillNpc(DJG_712_Hokurn); B_KillNpc(DJG_713_Biff); B_KillNpc(DJG_702_Rod); B_KillNpc(DJG_703_Cipher); if(MEETKURGANAFTER == TRUE) { Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_2"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_3"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_4"); Wld_InsertNpc(OrcWarrior_Roam,"FP_STAND_OW_DJG_VORPOSTEN_BIFFS"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_1"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_BLACKGOBBO_NEARCAVE1_2"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_1"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_2"); Wld_InsertNpc(orkelite_addon2,"FP_ROAM_OW_ORCOND_CAVE1_3"); }; }; AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_20"); //Поверь мне, это так. Так что придется сражаться без них! AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_21"); //Да, очень жаль...(расстроенно) Остается надеяться лишь на самих себя. AI_Output(self,other,"DIA_Pal_9168_Natan_CanReadyAttack_01_22"); //Думаю, что теперь можно начать нашу атаку. Дай знать, когда будешь готов! AI_Output(other,self,"DIA_Pal_9168_Natan_CanReadyAttack_01_23"); //Хорошо. B_LogEntry(TOPIC_STURMCASTLE,"Натан был немного расстроен новостью о том, что охотники на драконов не примут участия в штурме крепости. Теперь нам придется рассчитывать только на свои силы."); PALADINREADYATTACK = TRUE; }; }; instance DIA_PAL_9168_NATAN_SURVIVERSFAILED(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_surviversfailed_condition; information = dia_pal_9168_natan_surviversfailed_info; permanent = FALSE; description = "Нам остается только штурмовать замок!"; }; func int dia_pal_9168_natan_surviversfailed_condition() { if((MIS_NEWSSURVIVERS == LOG_Running) && (MIS_STURMCASTLE == FALSE) && (BOGNARREFUSETALK == TRUE) && (CASTLEISFREE == FALSE) && (PALADINCASTELFREE == FALSE)) { return TRUE; }; }; func void dia_pal_9168_natan_surviversfailed_info() { AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_01"); //Нам остается только штурмовать замок! AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_02"); //Честно говоря, мы и сами уже подумывали об этом. AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_03"); //Однако нас слишком мало, чтобы воевать против целой армии орков. AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_06"); //И что ты предлагаешь? AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_07"); //Хммм. Я слышал, что в долине еще остался небольшой отряд охотников на драконов. AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_08"); //Думаю, что если бы они смогли присоединились к нам - то у нас было бы куда больше шансов выбить орков из крепости! if((ALLDRGHUNTERSISDEAD == TRUE) || (DRGHUNTER01ISDEAD == TRUE)) { if(ALLDRGHUNTERSISDEAD == TRUE) { AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_09"); //Боюсь, что они уже все мертвы. AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_10"); //Откуда тебе это известно? } else { AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_17"); //Не думаю, что от них будет много пользы. AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_18"); //Их лидер мертв! А без него они лишь всего кучка ни на что не способных слабаков. Так что орки наверняка уже добрались до них! AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_19"); //Откуда тебе это известно? B_KillNpc(DJG_708_Kurgan); B_KillNpc(DJG_710_Kjorn); B_KillNpc(DJG_711_Godar); B_KillNpc(DJG_712_Hokurn); B_KillNpc(DJG_713_Biff); B_KillNpc(DJG_702_Rod); B_KillNpc(DJG_703_Cipher); if(MEETKURGANAFTER == TRUE) { Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_2"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_3"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_4"); Wld_InsertNpc(OrcWarrior_Roam,"FP_STAND_OW_DJG_VORPOSTEN_BIFFS"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_WARAN_CAVE1_1"); Wld_InsertNpc(OrcWarrior_Roam,"FP_ROAM_OW_BLACKGOBBO_NEARCAVE1_2"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_1"); Wld_InsertNpc(orkelite_addon3,"FP_ROAM_OW_ORCOND_CAVE1_2"); Wld_InsertNpc(orkelite_addon2,"FP_ROAM_OW_ORCOND_CAVE1_3"); }; }; AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_11"); //Поверь мне, это так. Так что придется сражаться без них! AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_12"); //Да, жаль...(расстроенно) Ну ладно! Остается надеяться лишь на самих себя. AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_13"); //Думаю, что тогда можно начать нашу атаку. Дай знать, когда будешь готов! AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_14"); //Хорошо. MIS_NEWSSURVIVERS = LOG_OBSOLETE; Log_SetTopicStatus(TOPIC_NEWSSURVIVERS,LOG_OBSOLETE); PALADINREADYATTACK = TRUE; MIS_STURMCASTLE = LOG_Running; Log_CreateTopic(TOPIC_STURMCASTLE,LOG_MISSION); Log_SetTopicStatus(TOPIC_STURMCASTLE,LOG_Running); B_LogEntry(TOPIC_STURMCASTLE,"Все что нам остается - это постараться отбить крепость обратно. Натан, конечно, согласился с моим предложением, но посетовал на то, что для этой затеи у нас слишком мало людей. Он уж было хотел завербовать оставшихся в долине охотников на драконов, но, узнав, что они все мертвы, - согласился начать атаку своими силами."); } else { AI_Output(other,self,"DIA_Pal_9168_Natan_SurviversFailed_01_15"); //Ладно, я постараюсь найти их. Если, конечно же, орки не сделали этого раньше меня. AI_Output(self,other,"DIA_Pal_9168_Natan_SurviversFailed_01_16"); //Хорошо! Мы будем ждать на этом же месте. MIS_NEWSSURVIVERS = LOG_OBSOLETE; Log_SetTopicStatus(TOPIC_NEWSSURVIVERS,LOG_OBSOLETE); MIS_STURMCASTLE = LOG_Running; Log_CreateTopic(TOPIC_STURMCASTLE,LOG_MISSION); Log_SetTopicStatus(TOPIC_STURMCASTLE,LOG_Running); B_LogEntry(TOPIC_STURMCASTLE,"Все что нам остается - это постараться отбить крепость обратно. Натан, конечно, согласился с моим предложением, но посетовал на то, что для этой затеи у нас слишком мало людей. Он хочет объединиться с охотниками на драконов. Я должен найти их отряд и убедить присоединиться к нам."); AI_StopProcessInfos(self); }; }; instance DIA_PAL_9168_NATAN_READYATTACK(C_Info) { npc = pal_9168_natan; nr = 1; condition = dia_pal_9168_natan_readyattack_condition; information = dia_pal_9168_natan_readyattack_info; permanent = TRUE; description = "Давай начнем атаку!"; }; func int dia_pal_9168_natan_readyattack_condition() { if((MIS_STURMCASTLE == LOG_Running) && (CASTLEISFREE == FALSE) && (PALADINCASTELFREE == FALSE) && (PALADINREADYATTACK == TRUE) && (PALADINATTACK == FALSE)) { return TRUE; }; }; func void dia_pal_9168_natan_readyattack_info() { AI_Output(other,self,"DIA_Pal_9168_Natan_ReadyAttack_01_01"); //Давай начнем атаку! AI_Output(self,other,"DIA_Pal_9168_Natan_ReadyAttack_01_02"); //(серьезно) Хорошо. Ты готов? Info_ClearChoices(dia_pal_9168_natan_readyattack); Info_AddChoice(dia_pal_9168_natan_readyattack,"Нет! Подожди минутку.",dia_pal_9168_natan_readyattack_wait); Info_AddChoice(dia_pal_9168_natan_readyattack,"Я готов.",dia_pal_9168_natan_readyattack_attack); }; func void dia_pal_9168_natan_readyattack_wait() { AI_Output(other,self,"DIA_Pal_9168_Natan_ReadyAttack_Wait_01_01"); //Нет! Подожди минутку. AI_Output(self,other,"DIA_Pal_9168_Natan_ReadyAttack_Wait_01_02"); //Поторопись! Info_ClearChoices(dia_pal_9168_natan_readyattack); }; func void dia_pal_9168_natan_readyattack_attack() { AI_Output(other,self,"DIA_Pal_9168_Natan_ReadyAttack_Attack_01_01"); //Я готов. AI_Output(self,other,"DIA_Pal_9168_Natan_ReadyAttack_Attack_01_02"); //Отлично! Тогда мы немедленно выступаем. AI_Output(self,other,"DIA_Pal_9168_Natan_ReadyAttack_Attack_01_03"); //Кстати, думаю, будет правильным, если именно ты возглавишь атаку. Поскольку я сам, признаться, не очень силен в таких делах. AI_Output(self,other,"DIA_Pal_9168_Natan_ReadyAttack_Attack_01_04"); //Так что мы все целиком и полностью полагаемся на тебя. Не подведи! AI_Output(self,other,"DIA_Pal_9168_Natan_ReadyAttack_Attack_01_05"); //(воинственно) Вперед, за Инноса! PALADINATTACK = TRUE; B_LogEntry(TOPIC_STURMCASTLE,"Штурм крепости начался!..."); Info_ClearChoices(dia_pal_9168_natan_readyattack); Info_AddChoice(dia_pal_9168_natan_readyattack,"Хорошо, вперед!",dia_pal_9168_natan_readyattack_go); }; func void dia_pal_9168_natan_readyattack_go() { AI_Output(other,self,"DIA_Pal_9168_Natan_ReadyAttack_Go_01_01"); //Хорошо, вперед! AI_StopProcessInfos(self); Npc_ExchangeRoutine(self,"Follow"); b_paladinattackcastle(); };
D
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ module vtkPointPlacer; static import vtkd_im; static import core.stdc.config; static import std.conv; static import std.string; static import std.conv; static import std.string; static import vtkObjectBase; static import vtkRenderer; static import SWIGTYPE_p_double; static import vtkObject; class vtkPointPlacer : vtkObject.vtkObject { private void* swigCPtr; public this(void* cObject, bool ownCObject) { super(vtkd_im.vtkPointPlacer_Upcast(cObject), ownCObject); swigCPtr = cObject; } public static void* swigGetCPtr(vtkPointPlacer obj) { return (obj is null) ? null : obj.swigCPtr; } mixin vtkd_im.SwigOperatorDefinitions; public override void dispose() { synchronized(this) { if (swigCPtr !is null) { if (swigCMemOwn) { swigCMemOwn = false; throw new object.Exception("C++ destructor does not have public access"); } swigCPtr = null; super.dispose(); } } } public static vtkPointPlacer New() { void* cPtr = vtkd_im.vtkPointPlacer_New(); vtkPointPlacer ret = (cPtr is null) ? null : new vtkPointPlacer(cPtr, false); return ret; } public static int IsTypeOf(string type) { auto ret = vtkd_im.vtkPointPlacer_IsTypeOf((type ? std.string.toStringz(type) : null)); return ret; } public static vtkPointPlacer SafeDownCast(vtkObjectBase.vtkObjectBase o) { void* cPtr = vtkd_im.vtkPointPlacer_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o)); vtkPointPlacer ret = (cPtr is null) ? null : new vtkPointPlacer(cPtr, false); return ret; } public vtkPointPlacer NewInstance() const { void* cPtr = vtkd_im.vtkPointPlacer_NewInstance(cast(void*)swigCPtr); vtkPointPlacer ret = (cPtr is null) ? null : new vtkPointPlacer(cPtr, false); return ret; } alias vtkObject.vtkObject.NewInstance NewInstance; public int ComputeWorldPosition(vtkRenderer.vtkRenderer ren, SWIGTYPE_p_double.SWIGTYPE_p_double displayPos, SWIGTYPE_p_double.SWIGTYPE_p_double worldPos, SWIGTYPE_p_double.SWIGTYPE_p_double worldOrient) { auto ret = vtkd_im.vtkPointPlacer_ComputeWorldPosition__SWIG_0(cast(void*)swigCPtr, vtkRenderer.vtkRenderer.swigGetCPtr(ren), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(displayPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldOrient)); return ret; } public int ComputeWorldPosition(vtkRenderer.vtkRenderer ren, SWIGTYPE_p_double.SWIGTYPE_p_double displayPos, SWIGTYPE_p_double.SWIGTYPE_p_double refWorldPos, SWIGTYPE_p_double.SWIGTYPE_p_double worldPos, SWIGTYPE_p_double.SWIGTYPE_p_double worldOrient) { auto ret = vtkd_im.vtkPointPlacer_ComputeWorldPosition__SWIG_1(cast(void*)swigCPtr, vtkRenderer.vtkRenderer.swigGetCPtr(ren), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(displayPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(refWorldPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldOrient)); return ret; } public int ValidateWorldPosition(SWIGTYPE_p_double.SWIGTYPE_p_double worldPos) { auto ret = vtkd_im.vtkPointPlacer_ValidateWorldPosition__SWIG_0(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldPos)); return ret; } public int ValidateDisplayPosition(vtkRenderer.vtkRenderer arg0, SWIGTYPE_p_double.SWIGTYPE_p_double displayPos) { auto ret = vtkd_im.vtkPointPlacer_ValidateDisplayPosition(cast(void*)swigCPtr, vtkRenderer.vtkRenderer.swigGetCPtr(arg0), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(displayPos)); return ret; } public int ValidateWorldPosition(SWIGTYPE_p_double.SWIGTYPE_p_double worldPos, SWIGTYPE_p_double.SWIGTYPE_p_double worldOrient) { auto ret = vtkd_im.vtkPointPlacer_ValidateWorldPosition__SWIG_1(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldOrient)); return ret; } public int UpdateWorldPosition(vtkRenderer.vtkRenderer ren, SWIGTYPE_p_double.SWIGTYPE_p_double worldPos, SWIGTYPE_p_double.SWIGTYPE_p_double worldOrient) { auto ret = vtkd_im.vtkPointPlacer_UpdateWorldPosition(cast(void*)swigCPtr, vtkRenderer.vtkRenderer.swigGetCPtr(ren), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldPos), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldOrient)); return ret; } public int UpdateNodeWorldPosition(SWIGTYPE_p_double.SWIGTYPE_p_double worldPos, long nodePointId) { auto ret = vtkd_im.vtkPointPlacer_UpdateNodeWorldPosition(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(worldPos), nodePointId); return ret; } public int UpdateInternalState() { auto ret = vtkd_im.vtkPointPlacer_UpdateInternalState(cast(void*)swigCPtr); return ret; } public void SetPixelTolerance(int _arg) { vtkd_im.vtkPointPlacer_SetPixelTolerance(cast(void*)swigCPtr, _arg); } public int GetPixelToleranceMinValue() { auto ret = vtkd_im.vtkPointPlacer_GetPixelToleranceMinValue(cast(void*)swigCPtr); return ret; } public int GetPixelToleranceMaxValue() { auto ret = vtkd_im.vtkPointPlacer_GetPixelToleranceMaxValue(cast(void*)swigCPtr); return ret; } public int GetPixelTolerance() { auto ret = vtkd_im.vtkPointPlacer_GetPixelTolerance(cast(void*)swigCPtr); return ret; } public void SetWorldTolerance(double _arg) { vtkd_im.vtkPointPlacer_SetWorldTolerance(cast(void*)swigCPtr, _arg); } public double GetWorldToleranceMinValue() { auto ret = vtkd_im.vtkPointPlacer_GetWorldToleranceMinValue(cast(void*)swigCPtr); return ret; } public double GetWorldToleranceMaxValue() { auto ret = vtkd_im.vtkPointPlacer_GetWorldToleranceMaxValue(cast(void*)swigCPtr); return ret; } public double GetWorldTolerance() { auto ret = vtkd_im.vtkPointPlacer_GetWorldTolerance(cast(void*)swigCPtr); return ret; } }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) ?-1998 by Symantec * Copyright (C) 2000-2020 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/elfobj.d, backend/elfobj.d) */ module dmd.backend.elfobj; /**** * Output to ELF object files * http://www.sco.com/developers/gabi/2003-12-17/ch4.sheader.html */ version (SCPP) version = COMPILE; version (MARS) version = COMPILE; version (COMPILE) { import core.stdc.stdio; import core.stdc.stdlib; import core.stdc.string; import dmd.backend.cc; import dmd.backend.cdef; import dmd.backend.code; import dmd.backend.code_x86; import dmd.backend.mem; import dmd.backend.aarray; import dmd.backend.dlist; import dmd.backend.el; import dmd.backend.global; import dmd.backend.obj; import dmd.backend.oper; import dmd.backend.outbuf; import dmd.backend.ty; import dmd.backend.type; extern (C++): nothrow: static if (ELFOBJ) { import dmd.backend.dwarf; import dmd.backend.melf; extern bool symbol_iscomdat2(Symbol* s); static if (TARGET_LINUX) enum ELFOSABI = ELFOSABI_LINUX; else static if (TARGET_FREEBSD) enum ELFOSABI = ELFOSABI_FREEBSD; else static if (TARGET_SOLARIS) enum ELFOSABI = ELFOSABI_SYSV; else static if (TARGET_OPENBSD) enum ELFOSABI = ELFOSABI_OPENBSD; else static if (TARGET_DRAGONFLYBSD) enum ELFOSABI = ELFOSABI_SYSV; else static assert(0, "No ELF OS ABI defined. Please fix"); //#define DEBSYM 0x7E private __gshared Outbuffer *fobjbuf; enum MATCH_SECTION = 1; enum DEST_LEN = (IDMAX + IDOHD + 1); char *obj_mangle2(Symbol *s,char *dest, size_t *destlen); version (MARS) // C++ name mangling is handled by front end const(char)* cpp_mangle2(Symbol* s) { return s.Sident.ptr; } else const(char)* cpp_mangle2(Symbol* s) { return cpp_mangle(s); } void addSegmentToComdat(segidx_t seg, segidx_t comdatseg); /** * If set the compiler requires full druntime support of the new * section registration. */ //version (DMDV2) static if (1) enum DMDV2 = true; else enum DMDV2 = false; enum REQUIRE_DSO_REGISTRY = (DMDV2 && (TARGET_LINUX || TARGET_FREEBSD || TARGET_DRAGONFLYBSD)); /** * If set, produce .init_array/.fini_array instead of legacy .ctors/.dtors . * OpenBSD added the support in Aug 2016. Other supported platforms has * supported .init_array for years. */ enum USE_INIT_ARRAY = !TARGET_OPENBSD; /****** * FreeBSD uses ELF, but the linker crashes with Elf comdats with the following message: * /usr/bin/ld: BFD 2.15 [FreeBSD] 2004-05-23 internal error, aborting at * /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elfcode.h * line 213 in bfd_elf32_swap_symbol_out * For the time being, just stick with Linux. */ enum ELF_COMDAT = TARGET_LINUX; /*************************************************** * Correspondence of relocation types * 386 32 bit in 64 64 in 64 * R_386_32 R_X86_64_32 R_X86_64_64 * R_386_GOTOFF R_X86_64_PC32 R_X86_64_ * R_386_GOTPC R_X86_64_ R_X86_64_ * R_386_GOT32 R_X86_64_ R_X86_64_ * R_386_TLS_GD R_X86_64_TLSGD R_X86_64_ * R_386_TLS_IE R_X86_64_GOTTPOFF R_X86_64_ * R_386_TLS_LE R_X86_64_TPOFF32 R_X86_64_ * R_386_PLT32 R_X86_64_PLT32 R_X86_64_ * R_386_PC32 R_X86_64_PC32 R_X86_64_ */ alias reltype_t = uint; /****************************************** */ private __gshared Symbol *GOTsym; // global offset table reference private Symbol *Obj_getGOTsym() { if (!GOTsym) { GOTsym = symbol_name("_GLOBAL_OFFSET_TABLE_",SCglobal,tspvoid); } return GOTsym; } void Obj_refGOTsym() { if (!GOTsym) { Symbol *s = Obj_getGOTsym(); Obj_external(s); } } //private void objfile_write(FILE *fd, void *buffer, uint len); // The object file is built is several separate pieces // Non-repeatable section types have single output buffers // Pre-allocated buffers are defined for: // Section Names string table // Section Headers table // Symbol table // String table // Notes section // Comment data // Section Names - String table for section names only private __gshared Outbuffer *section_names; enum SEC_NAMES_INIT = 800; enum SEC_NAMES_INC = 400; // Hash table for section_names __gshared AApair *section_names_hashtable; __gshared int jmpseg; /* ======================================================================== */ // String Table - String table for all other names private __gshared Outbuffer *symtab_strings; // Section Headers __gshared Outbuffer *SECbuf; // Buffer to build section table in Elf32_Shdr* SecHdrTab() { return cast(Elf32_Shdr *)SECbuf.buf; } Elf32_Shdr* GET_SECTION(int secidx) { return SecHdrTab() + secidx; } const(char)* GET_SECTION_NAME(int secidx) { return cast(const(char)*)section_names.buf + SecHdrTab[secidx].sh_name; } // The relocation for text and data seems to get lost. // Try matching the order gcc output them // This means defining the sections and then removing them if they are // not used. private __gshared int section_cnt; // Number of sections in table enum { SHN_TEXT = 1, SHN_RELTEXT = 2, SHN_DATA = 3, SHN_RELDATA = 4, SHN_BSS = 5, SHN_RODAT = 6, SHN_STRINGS = 7, SHN_SYMTAB = 8, SHN_SECNAMES = 9, SHN_COM = 10, SHN_NOTE = 11, SHN_GNUSTACK = 12, SHN_CDATAREL = 13, } __gshared IDXSYM *mapsec2sym; enum S2S_INC = 20; Elf32_Sym* SymbolTable() { return cast(Elf32_Sym *)SYMbuf.buf; } Elf64_Sym* SymbolTable64() { return cast(Elf64_Sym *)SYMbuf.buf; } private __gshared int symbol_idx; // Number of symbols in symbol table private __gshared int local_cnt; // Number of symbols with STB_LOCAL enum { STI_FILE = 1, // Where file symbol table entry is STI_TEXT = 2, STI_DATA = 3, STI_BSS = 4, STI_GCC = 5, // Where "gcc2_compiled" symbol is */ STI_RODAT = 6, // Symbol for readonly data STI_NOTE = 7, // Where note symbol table entry is STI_COM = 8, STI_CDATAREL = 9, // Symbol for readonly data with relocations } // NOTE: There seems to be a requirement that the read-only data have the // same symbol table index and section index. Use section NOTE as a place // holder. When a read-only string section is required, swap to NOTE. __gshared { // Symbol Table Outbuffer *SYMbuf; // Buffer to build symbol table in // This should be renamed, even though it is private it conflicts with other reset_symbuf's extern (D) private Outbuffer *reset_symbuf; // Keep pointers to reset symbols // Extended section header indices private Outbuffer *shndx_data; private const IDXSEC secidx_shndx = SHN_HIRESERVE + 1; // Notes data (note currently used) private Outbuffer *note_data; private IDXSEC secidx_note; // Final table index for note data // Comment data for compiler version private Outbuffer *comment_data; // Each compiler segment is an elf section // Predefined compiler segments CODE,DATA,CDATA,UDATA map to indexes // into SegData[] // An additionl index is reserved for comment data // New compiler segments are added to end. // // There doesn't seem to be any way to get reserved data space in the // same section as initialized data or code, so section offsets should // be continuous when adding data. Fix-ups anywhere withing existing data. enum COMD = CDATAREL+1; enum { OB_SEG_SIZ = 10, // initial number of segments supported OB_SEG_INC = 10, // increment for additional segments OB_CODE_STR = 100000, // initial size for code OB_CODE_INC = 100000, // increment for additional code OB_DATA_STR = 100000, // initial size for data OB_DATA_INC = 100000, // increment for additional data OB_CDATA_STR = 1024, // initial size for data OB_CDATA_INC = 1024, // increment for additional data OB_COMD_STR = 256, // initial size for comments // increment as needed OB_XTRA_STR = 250, // initial size for extra segments OB_XTRA_INC = 10000, // increment size } IDXSEC MAP_SEG2SECIDX(int seg) { return SegData[seg].SDshtidx; } extern (D) IDXSYM MAP_SEG2SYMIDX(int seg) { return SegData[seg].SDsymidx; } Elf32_Shdr* MAP_SEG2SEC(int seg) { return &SecHdrTab[MAP_SEG2SECIDX(seg)]; } int MAP_SEG2TYP(int seg) { return MAP_SEG2SEC(seg).sh_flags & SHF_EXECINSTR ? CODE : DATA; } public seg_data **SegData; public int seg_count; int seg_max; int seg_tlsseg = UNKNOWN; int seg_tlsseg_bss = UNKNOWN; } /******************************* * Output a string into a string table * Input: * strtab = string table for entry * str = string to add * * Returns index into the specified string table. */ IDXSTR Obj_addstr(Outbuffer *strtab, const(char)* str) { //dbg_printf("Obj_addstr(strtab = x%x str = '%s')\n",strtab,str); IDXSTR idx = cast(IDXSTR)strtab.length(); // remember starting offset strtab.writeString(str); //dbg_printf("\tidx %d, new size %d\n",idx,strtab.length()); return idx; } /******************************* * Output a mangled string into the symbol string table * Input: * str = string to add * * Returns index into the table. */ private IDXSTR elf_addmangled(Symbol *s) { //printf("elf_addmangled(%s)\n", s.Sident.ptr); char[DEST_LEN] dest = void; IDXSTR namidx = cast(IDXSTR)symtab_strings.length(); size_t len; char *destr = obj_mangle2(s, dest.ptr, &len); const(char)* name = destr; if (CPP && name[0] == '_' && name[1] == '_') { if (strncmp(name,"__ct__",6) == 0) { name += 4; len -= 4; } static if (0) { switch(name[2]) { case 'c': if (strncmp(name,"__ct__",6) == 0) name += 4; break; case 'd': if (strcmp(name,"__dl__FvP") == 0) name = "__builtin_delete"; break; case 'v': //if (strcmp(name,"__vec_delete__FvPiUIPi") == 0) //name = "__builtin_vec_del"; //else //if (strcmp(name,"__vn__FPUI") == 0) //name = "__builtin_vec_new"; break; case 'n': if (strcmp(name,"__nw__FPUI") == 0) name = "__builtin_new"; break; default: break; } } } else if (tyfunc(s.ty()) && s.Sfunc && s.Sfunc.Fredirect) { name = s.Sfunc.Fredirect; len = strlen(name); } symtab_strings.writeString(name); if (destr != dest.ptr) // if we resized result mem_free(destr); //dbg_printf("\telf_addmagled symtab_strings %s namidx %d len %d size %d\n",name, namidx,len,symtab_strings.length()); return namidx; } /******************************* * Output a symbol into the symbol table * Input: * stridx = string table index for name * val = value associated with symbol * sz = symbol size * typ = symbol type * bind = symbol binding * sec = index of section where symbol is defined * visibility = visibility of symbol (STV_xxxx) * * Returns the symbol table index for the symbol */ private IDXSYM elf_addsym(IDXSTR nam, targ_size_t val, uint sz, uint typ, uint bind, IDXSEC sec, ubyte visibility = STV_DEFAULT) { //dbg_printf("elf_addsym(nam %d, val %d, sz %x, typ %x, bind %x, sec %d\n", //nam,val,sz,typ,bind,sec); /* We want globally defined data symbols to have a size because * zero sized symbols break copy relocations for shared libraries. */ if(sz == 0 && (bind == STB_GLOBAL || bind == STB_WEAK) && (typ == STT_OBJECT || typ == STT_TLS) && sec != SHN_UNDEF) sz = 1; // so fake it if it doesn't if (sec > SHN_HIRESERVE) { // If the section index is too big we need to store it as // extended section header index. if (!shndx_data) { shndx_data = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(shndx_data); shndx_data.reserve(50 * (Elf64_Word).sizeof); } // fill with zeros up to symbol_idx const size_t shndx_idx = shndx_data.length() / Elf64_Word.sizeof; shndx_data.writezeros(cast(uint)((symbol_idx - shndx_idx) * Elf64_Word.sizeof)); shndx_data.write32(sec); sec = SHN_XINDEX; } if (I64) { if (!SYMbuf) { SYMbuf = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(SYMbuf); SYMbuf.reserve(100 * Elf64_Sym.sizeof); } Elf64_Sym sym; sym.st_name = nam; sym.st_value = val; sym.st_size = sz; sym.st_info = cast(ubyte)ELF64_ST_INFO(cast(ubyte)bind,cast(ubyte)typ); sym.st_other = visibility; sym.st_shndx = cast(ushort)sec; SYMbuf.write((&sym)[0 .. 1]); } else { if (!SYMbuf) { SYMbuf = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(SYMbuf); SYMbuf.reserve(100 * Elf32_Sym.sizeof); } Elf32_Sym sym; sym.st_name = nam; sym.st_value = cast(uint)val; sym.st_size = sz; sym.st_info = ELF32_ST_INFO(cast(ubyte)bind,cast(ubyte)typ); sym.st_other = visibility; sym.st_shndx = cast(ushort)sec; SYMbuf.write((&sym)[0 .. 1]); } if (bind == STB_LOCAL) local_cnt++; //dbg_printf("\treturning symbol table index %d\n",symbol_idx); return symbol_idx++; } /******************************* * Create a new section header table entry. * * Input: * name = section name * suffix = suffix for name or null * type = type of data in section sh_type * flags = attribute flags sh_flags * Output: * section_cnt = assigned number for this section * Note: Sections will be reordered on output */ private IDXSEC elf_newsection2( Elf32_Word name, Elf32_Word type, Elf32_Word flags, Elf32_Addr addr, Elf32_Off offset, Elf32_Word size, Elf32_Word link, Elf32_Word info, Elf32_Word addralign, Elf32_Word entsize) { Elf32_Shdr sec; sec.sh_name = name; sec.sh_type = type; sec.sh_flags = flags; sec.sh_addr = addr; sec.sh_offset = offset; sec.sh_size = size; sec.sh_link = link; sec.sh_info = info; sec.sh_addralign = addralign; sec.sh_entsize = entsize; if (!SECbuf) { SECbuf = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(SECbuf); SECbuf.reserve(50 * Elf32_Shdr.sizeof); } if (section_cnt == SHN_LORESERVE) { // insert dummy null sections to skip reserved section indices section_cnt = SHN_HIRESERVE + 1; SECbuf.writezeros((SHN_HIRESERVE + 1 - SHN_LORESERVE) * sec.sizeof); // shndx itself becomes the first section with an extended index IDXSTR namidx = Obj_addstr(section_names, ".symtab_shndx"); elf_newsection2(namidx,SHT_SYMTAB_SHNDX,0,0,0,0,SHN_SYMTAB,0,4,4); } SECbuf.write(cast(void *)&sec, sec.sizeof); return section_cnt++; } /** Add a new section name or get the string table index of an existing entry. Params: name = name of section suffix = append to name padded = set to true when entry was newly added Returns: String index of new or existing section name. */ private IDXSTR elf_addsectionname(const(char)* name, const(char)* suffix = null, bool *padded = null) { IDXSTR namidx = cast(IDXSTR)section_names.length(); section_names.writeString(name); if (suffix) { // Append suffix string section_names.setsize(cast(uint)section_names.length() - 1); // back up over terminating 0 section_names.writeString(suffix); } IDXSTR *pidx = section_names_hashtable.get(namidx, cast(uint)section_names.length() - 1); //IDXSTR *pidx = cast(IDXSTR *)section_names_hashtable.get(&namidx); if (*pidx) { // this section name already exists, remove addition section_names.setsize(namidx); return *pidx; } if (padded) *padded = true; return *pidx = namidx; } private IDXSEC elf_newsection(const(char)* name, const(char)* suffix, Elf32_Word type, Elf32_Word flags) { // dbg_printf("elf_newsection(%s,%s,type %d, flags x%x)\n", // name?name:"",suffix?suffix:"",type,flags); bool added = false; IDXSTR namidx = elf_addsectionname(name, suffix, &added); assert(added); return elf_newsection2(namidx,type,flags,0,0,0,0,0,0,0); } /************************** * Ouput read only data and generate a symbol for it. * */ Symbol *Obj_sym_cdata(tym_t ty,char *p,int len) { Symbol *s; static if (0) { if (OPT_IS_SET(OPTfwritable_strings)) { alignOffset(DATA, tysize(ty)); s = symboldata(Offset(DATA), ty); SegData[DATA].SDbuf.write(p,len); s.Sseg = DATA; s.Soffset = Offset(DATA); // Remember its offset into DATA section Offset(DATA) += len; s.Sfl = /*(config.flags3 & CFG3pic) ? FLgotoff :*/ FLextern; return s; } } //printf("Obj_sym_cdata(ty = %x, p = %x, len = %d, Offset(CDATA) = %x)\n", ty, p, len, Offset(CDATA)); alignOffset(CDATA, tysize(ty)); s = symboldata(Offset(CDATA), ty); Obj_bytes(CDATA, Offset(CDATA), len, p); s.Sseg = CDATA; s.Sfl = /*(config.flags3 & CFG3pic) ? FLgotoff :*/ FLextern; return s; } /************************** * Ouput read only data for data. * Output: * *pseg segment of that data * Returns: * offset of that data */ int Obj_data_readonly(char *p, int len, int *pseg) { int oldoff = cast(int)Offset(CDATA); SegData[CDATA].SDbuf.reserve(len); SegData[CDATA].SDbuf.writen(p,len); Offset(CDATA) += len; *pseg = CDATA; return oldoff; } int Obj_data_readonly(char *p, int len) { int pseg; return Obj_data_readonly(p, len, &pseg); } /****************************** * Get segment for readonly string literals. * The linker will pool strings in this section. * Params: * sz = number of bytes per character (1, 2, or 4) * Returns: * segment index */ int Obj_string_literal_segment(uint sz) { /* Elf special sections: * .rodata.strM.N - M is size of character * N is alignment * .rodata.cstN - N fixed size readonly constants N bytes in size, * aligned to the same size */ static immutable char[4][3] name = [ "1.1", "2.2", "4.4" ]; const int i = (sz == 4) ? 2 : sz - 1; const IDXSEC seg = Obj_getsegment(".rodata.str".ptr, name[i].ptr, SHT_PROGBITS, SHF_ALLOC | SHF_MERGE | SHF_STRINGS, sz); return seg; } /****************************** * Perform initialization that applies to all .o output files. * Called before any other obj_xxx routines */ Obj Obj_init(Outbuffer *objbuf, const(char)* filename, const(char)* csegname) { //printf("Obj_init()\n"); Obj obj = cast(Obj)mem_calloc(__traits(classInstanceSize, Obj)); cseg = CODE; fobjbuf = objbuf; mapsec2sym = null; note_data = null; secidx_note = 0; comment_data = null; seg_tlsseg = UNKNOWN; seg_tlsseg_bss = UNKNOWN; GOTsym = null; // Initialize buffers if (symtab_strings) symtab_strings.setsize(1); else { symtab_strings = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(symtab_strings); symtab_strings.reserve(2048); symtab_strings.writeByte(0); } if (SECbuf) SECbuf.reset(); section_cnt = 0; enum NAMIDX : IDXSTR { NONE = 0, SYMTAB = 1, // .symtab STRTAB = 9, // .strtab SHSTRTAB = 17, // .shstrtab TEXT = 27, // .text DATA = 33, // .data BSS = 39, // .bss NOTE = 44, // .note COMMENT = 50, // .comment RODATA = 59, // .rodata GNUSTACK = 67, // .note.GNU-stack CDATAREL = 83, // .data.rel.ro RELTEXT = 96, // .rel.text and .rela.text RELDATA = 106, // .rel.data RELDATA64 = 107, // .rela.data } if (I64) { static immutable char[107 + 12] section_names_init64 = "\0.symtab\0.strtab\0.shstrtab\0.text\0.data\0.bss\0.note" ~ "\0.comment\0.rodata\0.note.GNU-stack\0.data.rel.ro\0.rela.text\0.rela.data"; if (section_names) section_names.setsize(section_names_init64.sizeof); else { section_names = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(section_names); section_names.reserve(1024); section_names.writen(section_names_init64.ptr, section_names_init64.sizeof); } if (section_names_hashtable) AApair.destroy(section_names_hashtable); //delete section_names_hashtable; section_names_hashtable = AApair.create(&section_names.buf); //section_names_hashtable = new AArray(&ti_idxstr, IDXSTR.sizeof); // name,type,flags,addr,offset,size,link,info,addralign,entsize elf_newsection2(0, SHT_NULL, 0, 0,0,0,0,0, 0,0); elf_newsection2(NAMIDX.TEXT,SHT_PROGBITS,SHF_ALLOC|SHF_EXECINSTR,0,0,0,0,0, 4,0); elf_newsection2(NAMIDX.RELTEXT,SHT_RELA, 0,0,0,0,SHN_SYMTAB, SHN_TEXT, 8,0x18); elf_newsection2(NAMIDX.DATA,SHT_PROGBITS,SHF_ALLOC|SHF_WRITE, 0,0,0,0,0, 8,0); elf_newsection2(NAMIDX.RELDATA64,SHT_RELA, 0,0,0,0,SHN_SYMTAB, SHN_DATA, 8,0x18); elf_newsection2(NAMIDX.BSS, SHT_NOBITS,SHF_ALLOC|SHF_WRITE, 0,0,0,0,0, 16,0); elf_newsection2(NAMIDX.RODATA,SHT_PROGBITS,SHF_ALLOC, 0,0,0,0,0, 16,0); elf_newsection2(NAMIDX.STRTAB,SHT_STRTAB, 0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.SYMTAB,SHT_SYMTAB, 0, 0,0,0,0,0, 8,0); elf_newsection2(NAMIDX.SHSTRTAB,SHT_STRTAB, 0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.COMMENT, SHT_PROGBITS,0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.NOTE,SHT_NOTE, 0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.GNUSTACK,SHT_PROGBITS,0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.CDATAREL,SHT_PROGBITS,SHF_ALLOC|SHF_WRITE,0,0,0,0,0, 16,0); foreach (idxname; __traits(allMembers, NAMIDX)[1 .. $]) { NAMIDX idx = mixin("NAMIDX." ~ idxname); *section_names_hashtable.get(idx, cast(uint)section_names_init64.sizeof) = idx; } } else { static immutable char[106 + 12] section_names_init = "\0.symtab\0.strtab\0.shstrtab\0.text\0.data\0.bss\0.note" ~ "\0.comment\0.rodata\0.note.GNU-stack\0.data.rel.ro\0.rel.text\0.rel.data"; if (section_names) section_names.setsize(section_names_init.sizeof); else { section_names = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(section_names); section_names.reserve(100*1024); section_names.writen(section_names_init.ptr, section_names_init.sizeof); } if (section_names_hashtable) AApair.destroy(section_names_hashtable); //delete section_names_hashtable; section_names_hashtable = AApair.create(&section_names.buf); //section_names_hashtable = new AArray(&ti_idxstr, (IDXSTR).sizeof); // name,type,flags,addr,offset,size,link,info,addralign,entsize elf_newsection2(0, SHT_NULL, 0, 0,0,0,0,0, 0,0); elf_newsection2(NAMIDX.TEXT,SHT_PROGBITS,SHF_ALLOC|SHF_EXECINSTR,0,0,0,0,0, 16,0); elf_newsection2(NAMIDX.RELTEXT,SHT_REL, 0,0,0,0,SHN_SYMTAB, SHN_TEXT, 4,8); elf_newsection2(NAMIDX.DATA,SHT_PROGBITS,SHF_ALLOC|SHF_WRITE, 0,0,0,0,0, 4,0); elf_newsection2(NAMIDX.RELDATA,SHT_REL, 0,0,0,0,SHN_SYMTAB, SHN_DATA, 4,8); elf_newsection2(NAMIDX.BSS, SHT_NOBITS,SHF_ALLOC|SHF_WRITE, 0,0,0,0,0, 32,0); elf_newsection2(NAMIDX.RODATA,SHT_PROGBITS,SHF_ALLOC, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.STRTAB,SHT_STRTAB, 0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.SYMTAB,SHT_SYMTAB, 0, 0,0,0,0,0, 4,0); elf_newsection2(NAMIDX.SHSTRTAB,SHT_STRTAB, 0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.COMMENT, SHT_PROGBITS,0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.NOTE,SHT_NOTE, 0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.GNUSTACK,SHT_PROGBITS,0, 0,0,0,0,0, 1,0); elf_newsection2(NAMIDX.CDATAREL,SHT_PROGBITS,SHF_ALLOC|SHF_WRITE,0,0,0,0,0, 1,0); foreach (idxname; __traits(allMembers, NAMIDX)[1 .. $]) { NAMIDX idx = mixin("NAMIDX." ~ idxname); *section_names_hashtable.get(idx, cast(uint)section_names_init.sizeof) = idx; } } if (SYMbuf) SYMbuf.reset(); if (reset_symbuf) { Symbol **p = cast(Symbol **)reset_symbuf.buf; const size_t n = reset_symbuf.length() / (Symbol *).sizeof; for (size_t i = 0; i < n; ++i) symbol_reset(p[i]); reset_symbuf.reset(); } else { reset_symbuf = cast(Outbuffer*) calloc(1, (Outbuffer).sizeof); assert(reset_symbuf); reset_symbuf.reserve(50 * (Symbol*).sizeof); } if (shndx_data) shndx_data.reset(); symbol_idx = 0; local_cnt = 0; // The symbols that every object file has elf_addsym(0, 0, 0, STT_NOTYPE, STB_LOCAL, 0); elf_addsym(0, 0, 0, STT_FILE, STB_LOCAL, SHN_ABS); // STI_FILE elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_TEXT); // STI_TEXT elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_DATA); // STI_DATA elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_BSS); // STI_BSS elf_addsym(0, 0, 0, STT_NOTYPE, STB_LOCAL, SHN_TEXT); // STI_GCC elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_RODAT); // STI_RODAT elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_NOTE); // STI_NOTE elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_COM); // STI_COM elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, SHN_CDATAREL); // STI_CDATAREL // Initialize output buffers for CODE, DATA and COMMENTS // (NOTE not supported, BSS not required) seg_count = 0; elf_addsegment2(SHN_TEXT, STI_TEXT, SHN_RELTEXT); assert(SegData[CODE].SDseg == CODE); elf_addsegment2(SHN_DATA, STI_DATA, SHN_RELDATA); assert(SegData[DATA].SDseg == DATA); elf_addsegment2(SHN_RODAT, STI_RODAT, 0); assert(SegData[CDATA].SDseg == CDATA); elf_addsegment2(SHN_BSS, STI_BSS, 0); assert(SegData[UDATA].SDseg == UDATA); elf_addsegment2(SHN_CDATAREL, STI_CDATAREL, 0); assert(SegData[CDATAREL].SDseg == CDATAREL); elf_addsegment2(SHN_COM, STI_COM, 0); assert(SegData[COMD].SDseg == COMD); dwarf_initfile(filename); return obj; } /************************** * Initialize the start of object output for this particular .o file. * * Input: * filename: Name of source file * csegname: User specified default code segment name */ void Obj_initfile(const(char)* filename, const(char)* csegname, const(char)* modname) { //dbg_printf("Obj_initfile(filename = %s, modname = %s)\n",filename,modname); IDXSTR name = Obj_addstr(symtab_strings, filename); if (I64) SymbolTable64[STI_FILE].st_name = name; else SymbolTable[STI_FILE].st_name = name; static if (0) { // compiler flag for linker if (I64) SymbolTable64[STI_GCC].st_name = Obj_addstr(symtab_strings,"gcc2_compiled."); else SymbolTable[STI_GCC].st_name = Obj_addstr(symtab_strings,"gcc2_compiled."); } if (csegname && *csegname && strcmp(csegname,".text")) { // Define new section and make it the default for cseg segment // NOTE: cseg is initialized to CODE IDXSEC newsecidx; Elf32_Shdr *newtextsec; IDXSYM newsymidx; SegData[cseg].SDshtidx = newsecidx = elf_newsection(csegname,null,SHT_PROGBITS,SHF_ALLOC|SHF_EXECINSTR); newtextsec = &SecHdrTab[newsecidx]; newtextsec.sh_addralign = 4; SegData[cseg].SDsymidx = elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, newsecidx); } if (config.fulltypes) dwarf_initmodule(filename, modname); } /*************************** * Renumber symbols so they are * ordered as locals, weak and then global * Returns: * sorted symbol table, caller must free with util_free() */ void *elf_renumbersyms() { void *symtab; int nextlocal = 0; int nextglobal = local_cnt; SYMIDX *sym_map = cast(SYMIDX *)util_malloc(SYMIDX.sizeof,symbol_idx); if (I64) { Elf64_Sym *oldsymtab = cast(Elf64_Sym *)SYMbuf.buf; Elf64_Sym *symtabend = oldsymtab+symbol_idx; symtab = util_malloc(Elf64_Sym.sizeof,symbol_idx); Elf64_Sym *sl = cast(Elf64_Sym *)symtab; Elf64_Sym *sg = sl + local_cnt; int old_idx = 0; for(Elf64_Sym *s = oldsymtab; s != symtabend; s++) { // reorder symbol and map new #s to old int bind = ELF64_ST_BIND(s.st_info); if (bind == STB_LOCAL) { *sl++ = *s; sym_map[old_idx] = nextlocal++; } else { *sg++ = *s; sym_map[old_idx] = nextglobal++; } old_idx++; } } else { Elf32_Sym *oldsymtab = cast(Elf32_Sym *)SYMbuf.buf; Elf32_Sym *symtabend = oldsymtab+symbol_idx; symtab = util_malloc(Elf32_Sym.sizeof,symbol_idx); Elf32_Sym *sl = cast(Elf32_Sym *)symtab; Elf32_Sym *sg = sl + local_cnt; int old_idx = 0; for(Elf32_Sym *s = oldsymtab; s != symtabend; s++) { // reorder symbol and map new #s to old int bind = ELF32_ST_BIND(s.st_info); if (bind == STB_LOCAL) { *sl++ = *s; sym_map[old_idx] = nextlocal++; } else { *sg++ = *s; sym_map[old_idx] = nextglobal++; } old_idx++; } } // Reorder extended section header indices if (shndx_data && shndx_data.length()) { // fill with zeros up to symbol_idx const size_t shndx_idx = shndx_data.length() / Elf64_Word.sizeof; shndx_data.writezeros(cast(uint)((symbol_idx - shndx_idx) * Elf64_Word.sizeof)); Elf64_Word *old_buf = cast(Elf64_Word *)shndx_data.buf; Elf64_Word *tmp_buf = cast(Elf64_Word *)util_malloc(Elf64_Word.sizeof, symbol_idx); for (SYMIDX old_idx = 0; old_idx < symbol_idx; ++old_idx) { const SYMIDX new_idx = sym_map[old_idx]; tmp_buf[new_idx] = old_buf[old_idx]; } memcpy(old_buf, tmp_buf, Elf64_Word.sizeof * symbol_idx); util_free(tmp_buf); } // Renumber the relocations for (int i = 1; i <= seg_count; i++) { // Map indicies in the segment table seg_data *pseg = SegData[i]; pseg.SDsymidx = sym_map[pseg.SDsymidx]; if (SecHdrTab[pseg.SDshtidx].sh_type == SHT_GROUP) { // map symbol index of group section header uint oidx = SecHdrTab[pseg.SDshtidx].sh_info; assert(oidx < symbol_idx); // we only have one symbol table assert(SecHdrTab[pseg.SDshtidx].sh_link == SHN_SYMTAB); SecHdrTab[pseg.SDshtidx].sh_info = sym_map[oidx]; } if (pseg.SDrel) { if (I64) { Elf64_Rela *rel = cast(Elf64_Rela *) pseg.SDrel.buf; for (int r = 0; r < pseg.SDrelcnt; r++) { uint t = ELF64_R_TYPE(rel.r_info); uint si = ELF64_R_SYM(rel.r_info); assert(si < symbol_idx); rel.r_info = ELF64_R_INFO(sym_map[si],t); rel++; } } else { Elf32_Rel *rel = cast(Elf32_Rel *) pseg.SDrel.buf; assert(pseg.SDrelcnt == pseg.SDrel.length() / Elf32_Rel.sizeof); for (int r = 0; r < pseg.SDrelcnt; r++) { uint t = ELF32_R_TYPE(rel.r_info); uint si = ELF32_R_SYM(rel.r_info); assert(si < symbol_idx); rel.r_info = ELF32_R_INFO(sym_map[si],t); rel++; } } } } return symtab; } /*************************** * Fixup and terminate object file. */ void Obj_termfile() { //dbg_printf("Obj_termfile\n"); if (configv.addlinenumbers) { dwarf_termmodule(); } } /********************************* * Terminate package. */ void Obj_term(const(char)* objfilename) { //printf("Obj_term()\n"); version (SCPP) { if (!errcnt) { outfixlist(); // backpatches } } else { outfixlist(); // backpatches } if (configv.addlinenumbers) { dwarf_termfile(); } version (MARS) { if (config.useModuleInfo) obj_rtinit(); } version (SCPP) { if (errcnt) return; } int foffset; Elf32_Shdr *sechdr; seg_data *seg; void *symtab = elf_renumbersyms(); FILE *fd = null; int hdrsize = (I64 ? Elf64_Ehdr.sizeof : Elf32_Ehdr.sizeof); ushort e_shnum; if (section_cnt < SHN_LORESERVE) e_shnum = cast(ushort)section_cnt; else { e_shnum = SHN_UNDEF; SecHdrTab[0].sh_size = section_cnt; } // uint16_t e_shstrndx = SHN_SECNAMES; fobjbuf.writezeros(hdrsize); // Walk through sections determining size and file offsets // Sections will be output in the following order // Null segment // For each Code/Data Segment // code/data to load // relocations without addens // .bss // notes // comments // section names table // symbol table // strings table foffset = hdrsize; // start after header // section header table at end // // First output individual section data associate with program // code and data // //printf("Setup offsets and sizes foffset %d\n\tsection_cnt %d, seg_count %d\n",foffset,section_cnt,seg_count); for (int i=1; i<= seg_count; i++) { seg_data *pseg = SegData[i]; Elf32_Shdr *sechdr2 = MAP_SEG2SEC(i); // corresponding section if (sechdr2.sh_addralign < pseg.SDalignment) sechdr2.sh_addralign = pseg.SDalignment; foffset = elf_align(sechdr2.sh_addralign,foffset); if (i == UDATA) // 0, BSS never allocated { // but foffset as if it has sechdr2.sh_offset = foffset; sechdr2.sh_size = cast(uint)pseg.SDoffset; // accumulated size continue; } else if (sechdr2.sh_type == SHT_NOBITS) // .tbss never allocated { sechdr2.sh_offset = foffset; sechdr2.sh_size = cast(uint)pseg.SDoffset; // accumulated size continue; } else if (!pseg.SDbuf) continue; // For others leave sh_offset as 0 sechdr2.sh_offset = foffset; //printf("\tsection name %d,",sechdr2.sh_name); if (pseg.SDbuf && pseg.SDbuf.length()) { //printf(" - size %d\n",pseg.SDbuf.length()); const size_t size = pseg.SDbuf.length(); fobjbuf.write(pseg.SDbuf.buf, cast(uint)size); const int nfoffset = elf_align(sechdr2.sh_addralign, cast(uint)(foffset + size)); sechdr2.sh_size = nfoffset - foffset; foffset = nfoffset; } //printf(" assigned offset %d, size %d\n",foffset,sechdr2.sh_size); } // // Next output any notes or comments // if (note_data) { sechdr = &SecHdrTab[secidx_note]; // Notes sechdr.sh_size = cast(uint)note_data.length(); sechdr.sh_offset = foffset; fobjbuf.write(note_data.buf, sechdr.sh_size); foffset += sechdr.sh_size; } if (comment_data) { sechdr = &SecHdrTab[SHN_COM]; // Comments sechdr.sh_size = cast(uint)comment_data.length(); sechdr.sh_offset = foffset; fobjbuf.write(comment_data.buf, sechdr.sh_size); foffset += sechdr.sh_size; } // // Then output string table for section names // sechdr = &SecHdrTab[SHN_SECNAMES]; // Section Names sechdr.sh_size = cast(uint)section_names.length(); sechdr.sh_offset = foffset; //dbg_printf("section names offset %d\n",foffset); fobjbuf.write(section_names.buf, sechdr.sh_size); foffset += sechdr.sh_size; // // Symbol table and string table for symbols next // //dbg_printf("output symbol table size %d\n",SYMbuf.length()); sechdr = &SecHdrTab[SHN_SYMTAB]; // Symbol Table sechdr.sh_size = cast(uint)SYMbuf.length(); sechdr.sh_entsize = I64 ? (Elf64_Sym).sizeof : (Elf32_Sym).sizeof; sechdr.sh_link = SHN_STRINGS; sechdr.sh_info = local_cnt; foffset = elf_align(4,foffset); sechdr.sh_offset = foffset; fobjbuf.write(symtab, sechdr.sh_size); foffset += sechdr.sh_size; util_free(symtab); if (shndx_data && shndx_data.length()) { assert(section_cnt >= secidx_shndx); sechdr = &SecHdrTab[secidx_shndx]; sechdr.sh_size = cast(uint)shndx_data.length(); sechdr.sh_offset = foffset; fobjbuf.write(shndx_data.buf, sechdr.sh_size); foffset += sechdr.sh_size; } //dbg_printf("output section strings size 0x%x,offset 0x%x\n",symtab_strings.length(),foffset); sechdr = &SecHdrTab[SHN_STRINGS]; // Symbol Strings sechdr.sh_size = cast(uint)symtab_strings.length(); sechdr.sh_offset = foffset; fobjbuf.write(symtab_strings.buf, sechdr.sh_size); foffset += sechdr.sh_size; // // Now the relocation data for program code and data sections // foffset = elf_align(4,foffset); //dbg_printf("output relocations size 0x%x, foffset 0x%x\n",section_names.length(),foffset); for (int i=1; i<= seg_count; i++) { seg = SegData[i]; if (!seg.SDbuf) { // sechdr = &SecHdrTab[seg.SDrelidx]; // if (I64 && sechdr.sh_type == SHT_RELA) // sechdr.sh_offset = foffset; continue; // 0, BSS never allocated } if (seg.SDrel && seg.SDrel.length()) { assert(seg.SDrelidx); sechdr = &SecHdrTab[seg.SDrelidx]; sechdr.sh_size = cast(uint)seg.SDrel.length(); sechdr.sh_offset = foffset; if (I64) { assert(seg.SDrelcnt == seg.SDrel.length() / Elf64_Rela.sizeof); debug { for (size_t j = 0; j < seg.SDrelcnt; ++j) { Elf64_Rela *p = (cast(Elf64_Rela *)seg.SDrel.buf) + j; if (ELF64_R_TYPE(p.r_info) == R_X86_64_64) assert(*cast(Elf64_Xword *)(seg.SDbuf.buf + p.r_offset) == 0); } } } else assert(seg.SDrelcnt == seg.SDrel.length() / Elf32_Rel.sizeof); fobjbuf.write(seg.SDrel.buf, sechdr.sh_size); foffset += sechdr.sh_size; } } // // Finish off with the section header table // ulong e_shoff = foffset; // remember location in elf header //dbg_printf("output section header table\n"); // Output the completed Section Header Table if (I64) { // Translate section headers to 64 bits int sz = cast(int)(section_cnt * Elf64_Shdr.sizeof); fobjbuf.reserve(sz); for (int i = 0; i < section_cnt; i++) { Elf32_Shdr *p = SecHdrTab + i; Elf64_Shdr s; s.sh_name = p.sh_name; s.sh_type = p.sh_type; s.sh_flags = p.sh_flags; s.sh_addr = p.sh_addr; s.sh_offset = p.sh_offset; s.sh_size = p.sh_size; s.sh_link = p.sh_link; s.sh_info = p.sh_info; s.sh_addralign = p.sh_addralign; s.sh_entsize = p.sh_entsize; fobjbuf.write((&s)[0 .. 1]); } foffset += sz; } else { fobjbuf.write(SecHdrTab, cast(uint)(section_cnt * Elf32_Shdr.sizeof)); foffset += section_cnt * Elf32_Shdr.sizeof; } // // Now that we have correct offset to section header table, e_shoff, // go back and re-output the elf header // fobjbuf.position(0, hdrsize); if (I64) { __gshared Elf64_Ehdr h64 = { [ ELFMAG0,ELFMAG1,ELFMAG2,ELFMAG3, ELFCLASS64, // EI_CLASS ELFDATA2LSB, // EI_DATA EV_CURRENT, // EI_VERSION ELFOSABI,0, // EI_OSABI,EI_ABIVERSION 0,0,0,0,0,0,0 ], ET_REL, // e_type EM_X86_64, // e_machine EV_CURRENT, // e_version 0, // e_entry 0, // e_phoff 0, // e_shoff 0, // e_flags Elf64_Ehdr.sizeof, // e_ehsize Elf64_Phdr.sizeof, // e_phentsize 0, // e_phnum Elf64_Shdr.sizeof, // e_shentsize 0, // e_shnum SHN_SECNAMES // e_shstrndx }; h64.e_shoff = e_shoff; h64.e_shnum = e_shnum; fobjbuf.write(&h64, hdrsize); } else { __gshared Elf32_Ehdr h32 = { [ ELFMAG0,ELFMAG1,ELFMAG2,ELFMAG3, ELFCLASS32, // EI_CLASS ELFDATA2LSB, // EI_DATA EV_CURRENT, // EI_VERSION ELFOSABI,0, // EI_OSABI,EI_ABIVERSION 0,0,0,0,0,0,0 ], ET_REL, // e_type EM_386, // e_machine EV_CURRENT, // e_version 0, // e_entry 0, // e_phoff 0, // e_shoff 0, // e_flags Elf32_Ehdr.sizeof, // e_ehsize Elf32_Phdr.sizeof, // e_phentsize 0, // e_phnum Elf32_Shdr.sizeof, // e_shentsize 0, // e_shnum SHN_SECNAMES // e_shstrndx }; h32.e_shoff = cast(uint)e_shoff; h32.e_shnum = e_shnum; fobjbuf.write(&h32, hdrsize); } fobjbuf.position(foffset, 0); } /***************************** * Line number support. */ /*************************** * Record file and line number at segment and offset. * The actual .debug_line segment is put out by dwarf_termfile(). * Params: * srcpos = source file position * seg = segment it corresponds to * offset = offset within seg */ void Obj_linnum(Srcpos srcpos, int seg, targ_size_t offset) { if (srcpos.Slinnum == 0) return; static if (0) { printf("Obj_linnum(seg=%d, offset=0x%lx) ", seg, offset); srcpos.print(""); } version (MARS) { if (!srcpos.Sfilename) return; } version (SCPP) { if (!srcpos.Sfilptr) return; sfile_debug(&srcpos_sfile(srcpos)); Sfile *sf = *srcpos.Sfilptr; } size_t i; seg_data *pseg = SegData[seg]; // Find entry i in SDlinnum_data[] that corresponds to srcpos filename for (i = 0; 1; i++) { if (i == pseg.SDlinnum_count) { // Create new entry if (pseg.SDlinnum_count == pseg.SDlinnum_max) { // Enlarge array uint newmax = pseg.SDlinnum_max * 2 + 1; //printf("realloc %d\n", newmax * linnum_data.sizeof); pseg.SDlinnum_data = cast(linnum_data *)mem_realloc( pseg.SDlinnum_data, newmax * linnum_data.sizeof); memset(pseg.SDlinnum_data + pseg.SDlinnum_max, 0, (newmax - pseg.SDlinnum_max) * linnum_data.sizeof); pseg.SDlinnum_max = newmax; } pseg.SDlinnum_count++; version (MARS) pseg.SDlinnum_data[i].filename = srcpos.Sfilename; version (SCPP) pseg.SDlinnum_data[i].filptr = sf; break; } version (MARS) { if (pseg.SDlinnum_data[i].filename == srcpos.Sfilename) break; } version (SCPP) { if (pseg.SDlinnum_data[i].filptr == sf) break; } } linnum_data *ld = &pseg.SDlinnum_data[i]; // printf("i = %d, ld = x%x\n", i, ld); if (ld.linoff_count == ld.linoff_max) { if (!ld.linoff_max) ld.linoff_max = 8; ld.linoff_max *= 2; ld.linoff = cast(uint[2]*)mem_realloc(ld.linoff, ld.linoff_max * uint.sizeof * 2); } ld.linoff[ld.linoff_count][0] = srcpos.Slinnum; ld.linoff[ld.linoff_count][1] = cast(uint)offset; ld.linoff_count++; } /******************************* * Set start address */ void Obj_startaddress(Symbol *s) { //dbg_printf("Obj_startaddress(Symbol *%s)\n",s.Sident.ptr); //obj.startaddress = s; } /******************************* * Output library name. */ bool Obj_includelib(const(char)* name) { //dbg_printf("Obj_includelib(name *%s)\n",name); return false; } /******************************* * Output linker directive. */ bool Obj_linkerdirective(const(char)* name) { return false; } /********************************** * Do we allow zero sized objects? */ bool Obj_allowZeroSize() { return true; } /************************** * Embed string in executable. */ void Obj_exestr(const(char)* p) { //dbg_printf("Obj_exestr(char *%s)\n",p); } /************************** * Embed string in obj. */ void Obj_user(const(char)* p) { //dbg_printf("Obj_user(char *%s)\n",p); } /******************************* * Output a weak extern record. */ void Obj_wkext(Symbol *s1,Symbol *s2) { //dbg_printf("Obj_wkext(Symbol *%s,Symbol *s2)\n",s1.Sident.ptr,s2.Sident.ptr); } /******************************* * Output file name record. * * Currently assumes that obj_filename will not be called * twice for the same file. */ void obj_filename(const(char)* modname) { //dbg_printf("obj_filename(char *%s)\n",modname); uint strtab_idx = Obj_addstr(symtab_strings,modname); elf_addsym(strtab_idx,0,0,STT_FILE,STB_LOCAL,SHN_ABS); } /******************************* * Embed compiler version in .obj file. */ void Obj_compiler() { //dbg_printf("Obj_compiler\n"); comment_data = cast(Outbuffer*) calloc(1, Outbuffer.sizeof); assert(comment_data); enum maxVersionLength = 40; // hope enough to store `git describe --dirty` enum compilerHeader = "\0Digital Mars C/C++ "; enum n = compilerHeader.length; char[n + maxVersionLength] compiler = compilerHeader; assert(config._version.length < maxVersionLength); const newLength = n + config._version.length; compiler[n .. newLength] = config._version; comment_data.write(compiler[0 .. newLength]); //dbg_printf("Comment data size %d\n",comment_data.length()); } /************************************** * Symbol is the function that calls the static constructors. * Put a pointer to it into a special segment that the startup code * looks at. * Input: * s static constructor function * dtor !=0 if leave space for static destructor * seg 1: user * 2: lib * 3: compiler */ void Obj_staticctor(Symbol *s, int, int) { Obj_setModuleCtorDtor(s, true); } /************************************** * Symbol is the function that calls the static destructors. * Put a pointer to it into a special segment that the exit code * looks at. * Input: * s static destructor function */ void Obj_staticdtor(Symbol *s) { Obj_setModuleCtorDtor(s, false); } /*************************************** * Stuff pointer to function in its own segment. * Used for static ctor and dtor lists. */ void Obj_setModuleCtorDtor(Symbol *sfunc, bool isCtor) { IDXSEC seg; static if (USE_INIT_ARRAY) seg = isCtor ? Obj_getsegment(".init_array", null, SHT_INIT_ARRAY, SHF_ALLOC|SHF_WRITE, _tysize[TYnptr]) : Obj_getsegment(".fini_array", null, SHT_FINI_ARRAY, SHF_ALLOC|SHF_WRITE, _tysize[TYnptr]); else seg = Obj_getsegment(isCtor ? ".ctors" : ".dtors", null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE, _tysize[TYnptr]); const reltype_t reltype = I64 ? R_X86_64_64 : R_386_32; const size_t sz = Obj_writerel(seg, cast(uint)SegData[seg].SDoffset, reltype, sfunc.Sxtrnnum, 0); SegData[seg].SDoffset += sz; } /*************************************** * Stuff the following data in a separate segment: * pointer to function * pointer to ehsym * length of function */ void Obj_ehtables(Symbol *sfunc,uint size,Symbol *ehsym) { assert(0); // converted to Dwarf EH debug format } /********************************************* * Don't need to generate section brackets, use __start_SEC/__stop_SEC instead. */ void Obj_ehsections() { obj_tlssections(); } /********************************************* * Put out symbols that define the beginning/end of the thread local storage sections. */ private void obj_tlssections() { const align_ = I64 ? 16 : 4; { const sec = Obj_getsegment(".tdata", null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, align_); Obj_bytes(sec, 0, align_, null); const namidx = Obj_addstr(symtab_strings,"_tlsstart"); elf_addsym(namidx, 0, align_, STT_TLS, STB_GLOBAL, MAP_SEG2SECIDX(sec)); } Obj_getsegment(".tdata.", null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, align_); { const sec = Obj_getsegment(".tcommon", null, SHT_NOBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, align_); const namidx = Obj_addstr(symtab_strings,"_tlsend"); elf_addsym(namidx, 0, align_, STT_TLS, STB_GLOBAL, MAP_SEG2SECIDX(sec)); } } /********************************* * Setup for Symbol s to go into a COMDAT segment. * Output (if s is a function): * cseg segment index of new current code segment * Offset(cseg) starting offset in cseg * Returns: * "segment index" of COMDAT * References: * Section Groups http://www.sco.com/developers/gabi/2003-12-17/ch4.sheader.html#section_groups * COMDAT section groups https://www.airs.com/blog/archives/52 */ private void setup_comdat(Symbol *s) { const(char)* prefix; int type; int flags; int align_ = 4; //printf("Obj_comdat(Symbol *%s\n",s.Sident.ptr); //symbol_print(s); symbol_debug(s); if (tyfunc(s.ty())) { static if (!ELF_COMDAT) { prefix = ".text."; // undocumented, but works type = SHT_PROGBITS; flags = SHF_ALLOC|SHF_EXECINSTR; } else { reset_symbuf.write((&s)[0 .. 1]); const(char)* p = cpp_mangle2(s); bool added = false; const namidx = elf_addsectionname(".text.", p, &added); int groupseg; if (added) { // Create a new COMDAT section group const IDXSTR grpnamidx = elf_addsectionname(".group"); groupseg = elf_addsegment(grpnamidx, SHT_GROUP, 0, (IDXSYM).sizeof); MAP_SEG2SEC(groupseg).sh_link = SHN_SYMTAB; MAP_SEG2SEC(groupseg).sh_entsize = (IDXSYM).sizeof; // Create a new TEXT section for the comdat symbol with the SHF_GROUP bit set s.Sseg = elf_addsegment(namidx, SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR|SHF_GROUP, align_); // add TEXT section to COMDAT section group SegData[groupseg].SDbuf.write32(GRP_COMDAT); SegData[groupseg].SDbuf.write32(MAP_SEG2SECIDX(s.Sseg)); SegData[s.Sseg].SDassocseg = groupseg; } else { /* If the section already existed, we've hit one of the few * occurences of different symbols with identical mangling. This should * not happen, but as a workaround we just use the existing sections. * Also see https://issues.dlang.org/show_bug.cgi?id=17352, * https://issues.dlang.org/show_bug.cgi?id=14831, and * https://issues.dlang.org/show_bug.cgi?id=17339. */ s.Sseg = elf_getsegment(namidx); groupseg = SegData[s.Sseg].SDassocseg; assert(groupseg); } // Create a weak symbol for the comdat const namidxcd = Obj_addstr(symtab_strings, p); s.Sxtrnnum = elf_addsym(namidxcd, 0, 0, STT_FUNC, STB_WEAK, MAP_SEG2SECIDX(s.Sseg)); if (added) { /* Set the weak symbol as comdat group symbol. This symbol determines * whether all or none of the sections in the group get linked. It's * also the only symbol in all group sections that might be referenced * from outside of the group. */ MAP_SEG2SEC(groupseg).sh_info = s.Sxtrnnum; SegData[s.Sseg].SDsym = s; } else { // existing group symbol, and section symbol assert(MAP_SEG2SEC(groupseg).sh_info); assert(MAP_SEG2SEC(groupseg).sh_info == SegData[s.Sseg].SDsym.Sxtrnnum); } if (s.Salignment > align_) SegData[s.Sseg].SDalignment = s.Salignment; return; } } else if ((s.ty() & mTYLINK) == mTYthread) { /* Ensure that ".tdata" precedes any other .tdata. section, as the ld * linker script fails to work right. */ if (I64) align_ = 16; Obj_getsegment(".tdata", null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, align_); s.Sfl = FLtlsdata; prefix = ".tdata."; type = SHT_PROGBITS; flags = SHF_ALLOC|SHF_WRITE|SHF_TLS; } else { if (I64) align_ = 16; s.Sfl = FLdata; //prefix = ".gnu.linkonce.d."; prefix = ".data."; type = SHT_PROGBITS; flags = SHF_ALLOC|SHF_WRITE; } s.Sseg = Obj_getsegment(prefix, cpp_mangle2(s), type, flags, align_); // find or create new segment if (s.Salignment > align_) SegData[s.Sseg].SDalignment = s.Salignment; SegData[s.Sseg].SDsym = s; } int Obj_comdat(Symbol *s) { setup_comdat(s); if (s.Sfl == FLdata || s.Sfl == FLtlsdata) { Obj_pubdef(s.Sseg,s,0); searchfixlist(s); // backpatch any refs to this symbol } return s.Sseg; } int Obj_comdatsize(Symbol *s, targ_size_t symsize) { setup_comdat(s); if (s.Sfl == FLdata || s.Sfl == FLtlsdata) { Obj_pubdefsize(s.Sseg,s,0,symsize); searchfixlist(s); // backpatch any refs to this symbol } s.Soffset = 0; return s.Sseg; } int Obj_readonly_comdat(Symbol *s) { assert(0); } int Obj_jmpTableSegment(Symbol *s) { segidx_t seg = jmpseg; if (seg) // memoize the jmpseg on a per-function basis return seg; if (config.flags & CFGromable) seg = cseg; else { seg_data *pseg = SegData[s.Sseg]; if (pseg.SDassocseg) { /* `s` is in a COMDAT, so the jmp table segment must also * go into its own segment in the same group. */ seg = Obj_getsegment(".rodata.", s.Sident.ptr, SHT_PROGBITS, SHF_ALLOC|SHF_GROUP, _tysize[TYnptr]); addSegmentToComdat(seg, s.Sseg); } else seg = CDATA; } jmpseg = seg; return seg; } /**************************************** * If `comdatseg` has a group, add `secidx` to the group. * Params: * secidx = section to add to the group * comdatseg = comdat that started the group */ private void addSectionToComdat(IDXSEC secidx, segidx_t comdatseg) { seg_data *pseg = SegData[comdatseg]; segidx_t groupseg = pseg.SDassocseg; if (groupseg) { seg_data *pgroupseg = SegData[groupseg]; /* Don't write it if it is already there */ Outbuffer *buf = pgroupseg.SDbuf; assert(int.sizeof == 4); // loop depends on this for (size_t i = buf.length(); i > 4;) { /* A linear search, but shouldn't be more than 4 items * in it. */ i -= 4; if (*cast(int*)(buf.buf + i) == secidx) return; } buf.write32(secidx); } } /*********************************** * Returns: * jump table segment for function s */ void addSegmentToComdat(segidx_t seg, segidx_t comdatseg) { addSectionToComdat(SegData[seg].SDshtidx, comdatseg); } private int elf_addsegment2(IDXSEC shtidx, IDXSYM symidx, IDXSEC relidx) { //printf("SegData = %p\n", SegData); int seg = ++seg_count; if (seg_count >= seg_max) { // need more room in segment table seg_max += OB_SEG_INC; SegData = cast(seg_data **)mem_realloc(SegData,seg_max * (seg_data *).sizeof); memset(&SegData[seg_count], 0, (seg_max - seg_count) * (seg_data *).sizeof); } assert(seg_count < seg_max); if (!SegData[seg]) { SegData[seg] = cast(seg_data *)mem_calloc(seg_data.sizeof); //printf("test2: SegData[%d] = %p\n", seg, SegData[seg]); } else memset(SegData[seg], 0, seg_data.sizeof); seg_data *pseg = SegData[seg]; pseg.SDseg = seg; pseg.SDshtidx = shtidx; pseg.SDoffset = 0; if (pseg.SDbuf) pseg.SDbuf.reset(); else { if (SecHdrTab[shtidx].sh_type != SHT_NOBITS) { pseg.SDbuf = cast(Outbuffer*) calloc(1, (Outbuffer).sizeof); assert(pseg.SDbuf); pseg.SDbuf.reserve(1024); } } if (pseg.SDrel) pseg.SDrel.reset(); pseg.SDsymidx = symidx; pseg.SDrelidx = relidx; pseg.SDrelmaxoff = 0; pseg.SDrelindex = 0; pseg.SDrelcnt = 0; pseg.SDshtidxout = 0; pseg.SDsym = null; pseg.SDaranges_offset = 0; pseg.SDlinnum_count = 0; return seg; } /******************************** * Add a new section and get corresponding seg_data entry. * * Input: * nameidx = string index of section name * type = section header type, e.g. SHT_PROGBITS * flags = section header flags, e.g. SHF_ALLOC * align_ = section alignment * Returns: * SegData index of newly created section. */ private int elf_addsegment(IDXSTR namidx, int type, int flags, int align_) { //dbg_printf("\tNew segment - %d size %d\n", seg,SegData[seg].SDbuf); IDXSEC shtidx = elf_newsection2(namidx,type,flags,0,0,0,0,0,0,0); SecHdrTab[shtidx].sh_addralign = align_; IDXSYM symidx = elf_addsym(0, 0, 0, STT_SECTION, STB_LOCAL, shtidx); int seg = elf_addsegment2(shtidx, symidx, 0); //printf("-Obj_getsegment() = %d\n", seg); return seg; } /******************************** * Find corresponding seg_data entry for existing section. * * Input: * nameidx = string index of section name * Returns: * SegData index of found section or 0 if none was found. */ private int elf_getsegment(IDXSTR namidx) { // find existing section for (int seg = CODE; seg <= seg_count; seg++) { // should be in segment table if (MAP_SEG2SEC(seg).sh_name == namidx) { return seg; // found section for segment } } return 0; } /******************************** * Get corresponding seg_data entry for an existing or newly added section. * * Input: * name = name of section * suffix = append to name * type = section header type, e.g. SHT_PROGBITS * flags = section header flags, e.g. SHF_ALLOC * align_ = section alignment * Returns: * SegData index of found or newly created section. */ int Obj_getsegment(const(char)* name, const(char)* suffix, int type, int flags, int align_) { //printf("Obj_getsegment(%s,%s,flags %x, align_ %d)\n",name,suffix,flags,align_); bool added = false; const namidx = elf_addsectionname(name, suffix, &added); if (!added) { const seg = elf_getsegment(namidx); assert(seg); return seg; } return elf_addsegment(namidx, type, flags, align_); } /********************************** * Reset code seg to existing seg. * Used after a COMDAT for a function is done. */ void Obj_setcodeseg(int seg) { cseg = seg; } /******************************** * Define a new code segment. * Input: * name name of segment, if null then revert to default * suffix 0 use name as is * 1 append "_TEXT" to name * Output: * cseg segment index of new current code segment * Offset(cseg) starting offset in cseg * Returns: * segment index of newly created code segment */ int Obj_codeseg(const char *name,int suffix) { int seg; const(char)* sfx; //dbg_printf("Obj_codeseg(%s,%x)\n",name,suffix); sfx = (suffix) ? "_TEXT".ptr : null; if (!name) // returning to default code segment { if (cseg != CODE) // not the current default { SegData[cseg].SDoffset = Offset(cseg); Offset(cseg) = SegData[CODE].SDoffset; cseg = CODE; } return cseg; } seg = Obj_getsegment(name, sfx, SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR, 4); // find or create code segment cseg = seg; // new code segment index Offset(cseg) = 0; return seg; } /********************************* * Define segments for Thread Local Storage. * Here's what the elf tls spec says: * Field .tbss .tdata * sh_name .tbss .tdata * sh_type SHT_NOBITS SHT_PROGBITS * sh_flags SHF_ALLOC|SHF_WRITE| SHF_ALLOC|SHF_WRITE| * SHF_TLS SHF_TLS * sh_addr virtual addr of section virtual addr of section * sh_offset 0 file offset of initialization image * sh_size size of section size of section * sh_link SHN_UNDEF SHN_UNDEF * sh_info 0 0 * sh_addralign alignment of section alignment of section * sh_entsize 0 0 * We want _tlsstart and _tlsend to bracket all the D tls data. * The default linker script (ld -verbose) says: * .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } * .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } * so if we assign names: * _tlsstart .tdata * symbols .tdata. * symbols .tbss * _tlsend .tbss. * this should work. * Don't care about sections emitted by other languages, as we presume they * won't be storing D gc roots in their tls. * Output: * seg_tlsseg set to segment number for TLS segment. * Returns: * segment for TLS segment */ seg_data *Obj_tlsseg() { /* Ensure that ".tdata" precedes any other .tdata. section, as the ld * linker script fails to work right. */ Obj_getsegment(".tdata", null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, 4); static immutable char[8] tlssegname = ".tdata."; //dbg_printf("Obj_tlsseg(\n"); if (seg_tlsseg == UNKNOWN) { seg_tlsseg = Obj_getsegment(tlssegname.ptr, null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, I64 ? 16 : 4); } return SegData[seg_tlsseg]; } /********************************* * Define segments for Thread Local Storage. * Output: * seg_tlsseg_bss set to segment number for TLS segment. * Returns: * segment for TLS segment */ seg_data *Obj_tlsseg_bss() { static immutable char[6] tlssegname = ".tbss"; //dbg_printf("Obj_tlsseg_bss(\n"); if (seg_tlsseg_bss == UNKNOWN) { seg_tlsseg_bss = Obj_getsegment(tlssegname.ptr, null, SHT_NOBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, I64 ? 16 : 4); } return SegData[seg_tlsseg_bss]; } seg_data *Obj_tlsseg_data() { // specific for Mach-O assert(0); } /******************************* * Output an alias definition record. */ void Obj_alias(const(char)* n1,const(char)* n2) { //printf("Obj_alias(%s,%s)\n",n1,n2); assert(0); static if (0) { char *buffer = cast(char *) alloca(strlen(n1) + strlen(n2) + 2 * ONS_OHD); uint len = obj_namestring(buffer,n1); len += obj_namestring(buffer + len,n2); objrecord(ALIAS,buffer,len); } } char *unsstr(uint value) { __gshared char[64] buffer = void; sprintf(buffer.ptr, "%d", value); return buffer.ptr; } /******************************* * Mangle a name. * Returns: * mangled name */ char *obj_mangle2(Symbol *s,char *dest, size_t *destlen) { char *name; //dbg_printf("Obj_mangle('%s'), mangle = x%x\n",s.Sident.ptr,type_mangle(s.Stype)); symbol_debug(s); assert(dest); version (SCPP) name = CPP ? cpp_mangle2(s) : s.Sident.ptr; else version (MARS) // C++ name mangling is handled by front end name = s.Sident.ptr; else name = s.Sident.ptr; size_t len = strlen(name); // # of bytes in name //dbg_printf("len %d\n",len); switch (type_mangle(s.Stype)) { case mTYman_pas: // if upper case case mTYman_for: if (len >= DEST_LEN) dest = cast(char *)mem_malloc(len + 1); memcpy(dest,name,len + 1); // copy in name and ending 0 for (int i = 0; 1; i++) { char c = dest[i]; if (!c) break; if (c >= 'a' && c <= 'z') dest[i] = cast(char)(c + 'A' - 'a'); } break; case mTYman_std: { static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS) bool cond = (tyfunc(s.ty()) && !variadic(s.Stype)); else bool cond = (!(config.flags4 & CFG4oldstdmangle) && config.exe == EX_WIN32 && tyfunc(s.ty()) && !variadic(s.Stype)); if (cond) { char *pstr = unsstr(type_paramsize(s.Stype)); size_t pstrlen = strlen(pstr); size_t dlen = len + 1 + pstrlen; if (dlen >= DEST_LEN) dest = cast(char *)mem_malloc(dlen + 1); memcpy(dest,name,len); dest[len] = '@'; memcpy(dest + 1 + len, pstr, pstrlen + 1); len = dlen; break; } } goto case; case mTYman_cpp: case mTYman_c: case mTYman_d: case mTYman_sys: case 0: if (len >= DEST_LEN) dest = cast(char *)mem_malloc(len + 1); memcpy(dest,name,len+1);// copy in name and trailing 0 break; default: debug { printf("mangling %x\n",type_mangle(s.Stype)); symbol_print(s); } printf("%d\n", type_mangle(s.Stype)); assert(0); } //dbg_printf("\t %s\n",dest); *destlen = len; return dest; } /******************************* * Export a function name. */ void Obj_export_symbol(Symbol *s,uint argsize) { //dbg_printf("Obj_export_symbol(%s,%d)\n",s.Sident.ptr,argsize); } /******************************* * Update data information about symbol * align for output and assign segment * if not already specified. * * Input: * sdata data symbol * datasize output size * seg default seg if not known * Returns: * actual seg */ int Obj_data_start(Symbol *sdata, targ_size_t datasize, int seg) { targ_size_t alignbytes; //printf("Obj_data_start(%s,size %llx,seg %d)\n",sdata.Sident.ptr,datasize,seg); //symbol_print(sdata); if (sdata.Sseg == UNKNOWN) // if we don't know then there sdata.Sseg = seg; // wasn't any segment override else seg = sdata.Sseg; targ_size_t offset = Offset(seg); if (sdata.Salignment > 0) { if (SegData[seg].SDalignment < sdata.Salignment) SegData[seg].SDalignment = sdata.Salignment; alignbytes = ((offset + sdata.Salignment - 1) & ~(sdata.Salignment - 1)) - offset; } else alignbytes = _align(datasize, offset) - offset; if (alignbytes) Obj_lidata(seg, offset, alignbytes); sdata.Soffset = offset + alignbytes; return seg; } /******************************* * Update function info before codgen * * If code for this function is in a different segment * than the current default in cseg, switch cseg to new segment. */ void Obj_func_start(Symbol *sfunc) { //dbg_printf("Obj_func_start(%s)\n",sfunc.Sident.ptr); symbol_debug(sfunc); if ((tybasic(sfunc.ty()) == TYmfunc) && (sfunc.Sclass == SCextern)) { // create a new code segment sfunc.Sseg = Obj_getsegment(".gnu.linkonce.t.", cpp_mangle2(sfunc), SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR,4); } else if (sfunc.Sseg == UNKNOWN) sfunc.Sseg = CODE; //dbg_printf("sfunc.Sseg %d CODE %d cseg %d Coffset %d\n",sfunc.Sseg,CODE,cseg,Offset(cseg)); cseg = sfunc.Sseg; jmpseg = 0; // only 1 jmp seg per function assert(cseg == CODE || cseg > COMD); static if (ELF_COMDAT) { if (!symbol_iscomdat2(sfunc)) { Obj_pubdef(cseg, sfunc, Offset(cseg)); } } else { Obj_pubdef(cseg, sfunc, Offset(cseg)); } sfunc.Soffset = Offset(cseg); dwarf_func_start(sfunc); } /******************************* * Update function info after codgen */ void Obj_func_term(Symbol *sfunc) { //dbg_printf("Obj_func_term(%s) offset %x, Coffset %x symidx %d\n", // sfunc.Sident.ptr, sfunc.Soffset,Offset(cseg),sfunc.Sxtrnnum); // fill in the function size if (I64) SymbolTable64[sfunc.Sxtrnnum].st_size = Offset(cseg) - sfunc.Soffset; else SymbolTable[sfunc.Sxtrnnum].st_size = cast(uint)(Offset(cseg) - sfunc.Soffset); dwarf_func_term(sfunc); } /******************************** * Output a public definition. * Input: * seg = segment index that symbol is defined in * s . symbol * offset = offset of name within segment */ void Obj_pubdef(int seg, Symbol *s, targ_size_t offset) { const targ_size_t symsize= tyfunc(s.ty()) ? Offset(s.Sseg) - offset : type_size(s.Stype); Obj_pubdefsize(seg, s, offset, symsize); } /******************************** * Output a public definition. * Input: * seg = segment index that symbol is defined in * s . symbol * offset = offset of name within segment * symsize size of symbol */ void Obj_pubdefsize(int seg, Symbol *s, targ_size_t offset, targ_size_t symsize) { int bind; ubyte visibility = STV_DEFAULT; switch (s.Sclass) { case SCglobal: case SCinline: bind = STB_GLOBAL; break; case SCcomdat: case SCcomdef: bind = STB_WEAK; break; case SCstatic: if (s.Sflags & SFLhidden) { visibility = STV_HIDDEN; bind = STB_GLOBAL; break; } goto default; default: bind = STB_LOCAL; break; } //printf("\nObj_pubdef(%d,%s,%d)\n",seg,s.Sident.ptr,offset); //symbol_print(s); symbol_debug(s); reset_symbuf.write((&s)[0 .. 1]); const namidx = elf_addmangled(s); //printf("\tnamidx %d,section %d\n",namidx,MAP_SEG2SECIDX(seg)); if (tyfunc(s.ty())) { s.Sxtrnnum = elf_addsym(namidx, offset, cast(uint)symsize, STT_FUNC, bind, MAP_SEG2SECIDX(seg), visibility); } else { const uint typ = (s.ty() & mTYthread) ? STT_TLS : STT_OBJECT; s.Sxtrnnum = elf_addsym(namidx, offset, cast(uint)symsize, typ, bind, MAP_SEG2SECIDX(seg), visibility); } } /******************************* * Output an external symbol for name. * Input: * name Name to do EXTDEF on * (Not to be mangled) * Returns: * Symbol table index of the definition * NOTE: Numbers will not be linear. */ int Obj_external_def(const(char)* name) { //dbg_printf("Obj_external_def('%s')\n",name); assert(name); const namidx = Obj_addstr(symtab_strings,name); const symidx = elf_addsym(namidx, 0, 0, STT_NOTYPE, STB_GLOBAL, SHN_UNDEF); return symidx; } /******************************* * Output an external for existing symbol. * Input: * s Symbol to do EXTDEF on * (Name is to be mangled) * Returns: * Symbol table index of the definition * NOTE: Numbers will not be linear. */ int Obj_external(Symbol *s) { int symtype,sectype; uint size; //dbg_printf("Obj_external('%s') %x\n",s.Sident.ptr,s.Svalue); symbol_debug(s); reset_symbuf.write((&s)[0 .. 1]); const namidx = elf_addmangled(s); version (SCPP) { if (s.Sscope && !tyfunc(s.ty())) { symtype = STT_OBJECT; sectype = SHN_COMMON; size = type_size(s.Stype); } else { symtype = STT_NOTYPE; sectype = SHN_UNDEF; size = 0; } } else { symtype = STT_NOTYPE; sectype = SHN_UNDEF; size = 0; } if (s.ty() & mTYthread) { //printf("Obj_external('%s') %x TLS\n",s.Sident.ptr,s.Svalue); symtype = STT_TLS; } s.Sxtrnnum = elf_addsym(namidx, size, size, symtype, /*(s.ty() & mTYweak) ? STB_WEAK : */STB_GLOBAL, sectype); return s.Sxtrnnum; } /******************************* * Output a common block definition. * Input: * p . external identifier * size size in bytes of each elem * count number of elems * Returns: * Symbol table index for symbol */ int Obj_common_block(Symbol *s,targ_size_t size,targ_size_t count) { //printf("Obj_common_block('%s',%d,%d)\n",s.Sident.ptr,size,count); symbol_debug(s); int align_ = I64 ? 16 : 4; if (s.ty() & mTYthread) { s.Sseg = Obj_getsegment(".tbss.", cpp_mangle2(s), SHT_NOBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, align_); s.Sfl = FLtlsdata; SegData[s.Sseg].SDsym = s; SegData[s.Sseg].SDoffset += size * count; Obj_pubdefsize(s.Sseg, s, 0, size * count); searchfixlist(s); return s.Sseg; } else { s.Sseg = Obj_getsegment(".bss.", cpp_mangle2(s), SHT_NOBITS, SHF_ALLOC|SHF_WRITE, align_); s.Sfl = FLudata; SegData[s.Sseg].SDsym = s; SegData[s.Sseg].SDoffset += size * count; Obj_pubdefsize(s.Sseg, s, 0, size * count); searchfixlist(s); return s.Sseg; } static if (0) { reset_symbuf.write(s); const namidx = elf_addmangled(s); alignOffset(UDATA,size); const symidx = elf_addsym(namidx, SegData[UDATA].SDoffset, size*count, (s.ty() & mTYthread) ? STT_TLS : STT_OBJECT, STB_WEAK, SHN_BSS); //dbg_printf("\tObj_common_block returning symidx %d\n",symidx); s.Sseg = UDATA; s.Sfl = FLudata; SegData[UDATA].SDoffset += size * count; return symidx; } } int Obj_common_block(Symbol *s, int flag, targ_size_t size, targ_size_t count) { return Obj_common_block(s, size, count); } /*************************************** * Append an iterated data block of 0s. * (uninitialized data only) */ void Obj_write_zeros(seg_data *pseg, targ_size_t count) { Obj_lidata(pseg.SDseg, pseg.SDoffset, count); } /*************************************** * Output an iterated data block of 0s. * * For boundary alignment and initialization */ void Obj_lidata(int seg,targ_size_t offset,targ_size_t count) { //printf("Obj_lidata(%d,%x,%d)\n",seg,offset,count); if (seg == UDATA || seg == UNKNOWN) { // Use SDoffset to record size of .BSS section SegData[UDATA].SDoffset += count; } else if (MAP_SEG2SEC(seg).sh_type == SHT_NOBITS) { // Use SDoffset to record size of .TBSS section SegData[seg].SDoffset += count; } else { Obj_bytes(seg, offset, cast(uint)count, null); } } /*********************************** * Append byte to segment. */ void Obj_write_byte(seg_data *pseg, uint byte_) { Obj_byte(pseg.SDseg, pseg.SDoffset, byte_); } /************************************ * Output byte to object file. */ void Obj_byte(int seg,targ_size_t offset,uint byte_) { Outbuffer *buf = SegData[seg].SDbuf; int save = cast(int)buf.length(); //dbg_printf("Obj_byte(seg=%d, offset=x%lx, byte_=x%x)\n",seg,offset,byte_); buf.setsize(cast(uint)offset); buf.writeByte(byte_); if (save > offset+1) buf.setsize(save); else SegData[seg].SDoffset = offset+1; //dbg_printf("\tsize now %d\n",buf.length()); } /*********************************** * Append bytes to segment. */ void Obj_write_bytes(seg_data *pseg, uint nbytes, void *p) { Obj_bytes(pseg.SDseg, pseg.SDoffset, nbytes, p); } /************************************ * Output bytes to object file. * Returns: * nbytes */ uint Obj_bytes(int seg, targ_size_t offset, uint nbytes, void *p) { static if (0) { if (!(seg >= 0 && seg <= seg_count)) { printf("Obj_bytes: seg = %d, seg_count = %d\n", seg, seg_count); *cast(char*)0=0; } } assert(seg >= 0 && seg <= seg_count); Outbuffer *buf = SegData[seg].SDbuf; if (buf == null) { //dbg_printf("Obj_bytes(seg=%d, offset=x%lx, nbytes=%d, p=x%x)\n", seg, offset, nbytes, p); //raise(SIGSEGV); assert(buf != null); } int save = cast(int)buf.length(); //dbg_printf("Obj_bytes(seg=%d, offset=x%lx, nbytes=%d, p=x%x)\n", //seg,offset,nbytes,p); buf.position(cast(size_t)offset, nbytes); if (p) buf.write(p, nbytes); else // Zero out the bytes buf.writezeros(nbytes); if (save > offset+nbytes) buf.setsize(save); else SegData[seg].SDoffset = offset+nbytes; return nbytes; } /******************************* * Output a relocation entry for a segment * Input: * seg = where the address is going * offset = offset within seg * type = ELF relocation type R_ARCH_XXXX * index = Related symbol table index * val = addend or displacement from address */ __gshared int relcnt=0; void Obj_addrel(int seg, targ_size_t offset, uint type, IDXSYM symidx, targ_size_t val) { seg_data *segdata; Outbuffer *buf; IDXSEC secidx; //assert(val == 0); relcnt++; //dbg_printf("%d-Obj_addrel(seg %d,offset x%x,type x%x,symidx %d,val %d)\n", //relcnt,seg, offset, type, symidx,val); assert(seg >= 0 && seg <= seg_count); segdata = SegData[seg]; secidx = MAP_SEG2SECIDX(seg); assert(secidx != 0); if (segdata.SDrel == null) { segdata.SDrel = cast(Outbuffer*) calloc(1, (Outbuffer).sizeof); assert(segdata.SDrel); } if (segdata.SDrel.length() == 0) { IDXSEC relidx; if (secidx == SHN_TEXT) relidx = SHN_RELTEXT; else if (secidx == SHN_DATA) relidx = SHN_RELDATA; else { // Get the section name, and make a copy because // elf_newsection() may reallocate the string buffer. char *section_name = cast(char *)GET_SECTION_NAME(secidx); size_t len = strlen(section_name) + 1; char[20] buf2 = void; char *p = len <= buf2.sizeof ? &buf2[0] : cast(char *)malloc(len); assert(p); memcpy(p, section_name, len); relidx = elf_newsection(I64 ? ".rela" : ".rel", p, I64 ? SHT_RELA : SHT_REL, 0); if (p != &buf2[0]) free(p); segdata.SDrelidx = relidx; addSectionToComdat(relidx,seg); } if (I64) { /* Note that we're using Elf32_Shdr here instead of Elf64_Shdr. This is to make * the code a bit simpler. In Obj_term(), we translate the Elf32_Shdr into the proper * Elf64_Shdr. */ Elf32_Shdr *relsec = &SecHdrTab[relidx]; relsec.sh_link = SHN_SYMTAB; relsec.sh_info = secidx; relsec.sh_entsize = Elf64_Rela.sizeof; relsec.sh_addralign = 8; } else { Elf32_Shdr *relsec = &SecHdrTab[relidx]; relsec.sh_link = SHN_SYMTAB; relsec.sh_info = secidx; relsec.sh_entsize = Elf32_Rel.sizeof; relsec.sh_addralign = 4; } } if (I64) { Elf64_Rela rel; rel.r_offset = offset; // build relocation information rel.r_info = ELF64_R_INFO(symidx,type); rel.r_addend = val; buf = segdata.SDrel; buf.write(&rel,(rel).sizeof); segdata.SDrelcnt++; if (offset >= segdata.SDrelmaxoff) segdata.SDrelmaxoff = offset; else { // insert numerically Elf64_Rela *relbuf = cast(Elf64_Rela *)buf.buf; int i = relbuf[segdata.SDrelindex].r_offset > offset ? 0 : segdata.SDrelindex; while (i < segdata.SDrelcnt) { if (relbuf[i].r_offset > offset) break; i++; } assert(i != segdata.SDrelcnt); // slide greater offsets down memmove(relbuf+i+1,relbuf+i,Elf64_Rela.sizeof * (segdata.SDrelcnt - i - 1)); *(relbuf+i) = rel; // copy to correct location segdata.SDrelindex = i; // next entry usually greater } } else { Elf32_Rel rel; rel.r_offset = cast(uint)offset; // build relocation information rel.r_info = ELF32_R_INFO(symidx,type); buf = segdata.SDrel; buf.write(&rel,rel.sizeof); segdata.SDrelcnt++; if (offset >= segdata.SDrelmaxoff) segdata.SDrelmaxoff = offset; else { // insert numerically Elf32_Rel *relbuf = cast(Elf32_Rel *)buf.buf; int i = relbuf[segdata.SDrelindex].r_offset > offset ? 0 : segdata.SDrelindex; while (i < segdata.SDrelcnt) { if (relbuf[i].r_offset > offset) break; i++; } assert(i != segdata.SDrelcnt); // slide greater offsets down memmove(relbuf+i+1,relbuf+i,Elf32_Rel.sizeof * (segdata.SDrelcnt - i - 1)); *(relbuf+i) = rel; // copy to correct location segdata.SDrelindex = i; // next entry usually greater } } } private size_t relsize64(uint type) { assert(I64); switch (type) { case R_X86_64_NONE: return 0; case R_X86_64_64: return 8; case R_X86_64_PC32: return 4; case R_X86_64_GOT32: return 4; case R_X86_64_PLT32: return 4; case R_X86_64_COPY: return 0; case R_X86_64_GLOB_DAT: return 8; case R_X86_64_JUMP_SLOT: return 8; case R_X86_64_RELATIVE: return 8; case R_X86_64_GOTPCREL: return 4; case R_X86_64_32: return 4; case R_X86_64_32S: return 4; case R_X86_64_16: return 2; case R_X86_64_PC16: return 2; case R_X86_64_8: return 1; case R_X86_64_PC8: return 1; case R_X86_64_DTPMOD64: return 8; case R_X86_64_DTPOFF64: return 8; case R_X86_64_TPOFF64: return 8; case R_X86_64_TLSGD: return 4; case R_X86_64_TLSLD: return 4; case R_X86_64_DTPOFF32: return 4; case R_X86_64_GOTTPOFF: return 4; case R_X86_64_TPOFF32: return 4; case R_X86_64_PC64: return 8; case R_X86_64_GOTOFF64: return 8; case R_X86_64_GOTPC32: return 4; default: assert(0); } } private size_t relsize32(uint type) { assert(I32); switch (type) { case R_386_NONE: return 0; case R_386_32: return 4; case R_386_PC32: return 4; case R_386_GOT32: return 4; case R_386_PLT32: return 4; case R_386_COPY: return 0; case R_386_GLOB_DAT: return 4; case R_386_JMP_SLOT: return 4; case R_386_RELATIVE: return 4; case R_386_GOTOFF: return 4; case R_386_GOTPC: return 4; case R_386_TLS_TPOFF: return 4; case R_386_TLS_IE: return 4; case R_386_TLS_GOTIE: return 4; case R_386_TLS_LE: return 4; case R_386_TLS_GD: return 4; case R_386_TLS_LDM: return 4; case R_386_TLS_GD_32: return 4; case R_386_TLS_GD_PUSH: return 4; case R_386_TLS_GD_CALL: return 4; case R_386_TLS_GD_POP: return 4; case R_386_TLS_LDM_32: return 4; case R_386_TLS_LDM_PUSH: return 4; case R_386_TLS_LDM_CALL: return 4; case R_386_TLS_LDM_POP: return 4; case R_386_TLS_LDO_32: return 4; case R_386_TLS_IE_32: return 4; case R_386_TLS_LE_32: return 4; case R_386_TLS_DTPMOD32: return 4; case R_386_TLS_DTPOFF32: return 4; case R_386_TLS_TPOFF32: return 4; default: assert(0); } } /******************************* * Write/Append a value to the given segment and offset. * targseg = the target segment for the relocation * offset = offset within target segment * val = addend or displacement from symbol * size = number of bytes to write */ private size_t writeaddrval(int targseg, size_t offset, targ_size_t val, size_t size) { assert(targseg >= 0 && targseg <= seg_count); Outbuffer *buf = SegData[targseg].SDbuf; const save = buf.length(); buf.setsize(cast(uint)offset); buf.write(&val, cast(uint)size); // restore Outbuffer position if (save > offset + size) buf.setsize(cast(uint)save); return size; } /******************************* * Write/Append a relocatable value to the given segment and offset. * Input: * targseg = the target segment for the relocation * offset = offset within target segment * reltype = ELF relocation type R_ARCH_XXXX * symidx = symbol base for relocation * val = addend or displacement from symbol */ size_t Obj_writerel(int targseg, size_t offset, reltype_t reltype, IDXSYM symidx, targ_size_t val) { assert(reltype != R_X86_64_NONE); size_t sz; if (I64) { // Elf64_Rela stores addend in Rela.r_addend field sz = relsize64(reltype); writeaddrval(targseg, offset, 0, sz); Obj_addrel(targseg, offset, reltype, symidx, val); } else { assert(I32); // Elf32_Rel stores addend in target location sz = relsize32(reltype); writeaddrval(targseg, offset, val, sz); Obj_addrel(targseg, offset, reltype, symidx, 0); } return sz; } /******************************* * Refer to address that is in the data segment. * Input: * seg = where the address is going * offset = offset within seg * val = displacement from address * targetdatum = DATA, CDATA or UDATA, depending where the address is * flags = CFoff, CFseg, CFoffset64, CFswitch * Example: * int *abc = &def[3]; * to allocate storage: * Obj_reftodatseg(DATA,offset,3 * (int *).sizeof,UDATA); * Note: * For I64 && (flags & CFoffset64) && (flags & CFswitch) * targetdatum is a symidx rather than a segment. */ void Obj_reftodatseg(int seg,targ_size_t offset,targ_size_t val, uint targetdatum,int flags) { static if (0) { printf("Obj_reftodatseg(seg=%d, offset=x%llx, val=x%llx,data %x, flags %x)\n", seg,cast(ulong)offset,cast(ulong)val,targetdatum,flags); } reltype_t relinfo; IDXSYM targetsymidx = STI_RODAT; if (I64) { if (flags & CFoffset64) { relinfo = R_X86_64_64; if (flags & CFswitch) targetsymidx = targetdatum; } else if (flags & CFswitch) { relinfo = R_X86_64_PC32; targetsymidx = MAP_SEG2SYMIDX(targetdatum); } else if (MAP_SEG2TYP(seg) == CODE && config.flags3 & CFG3pic) { relinfo = R_X86_64_PC32; val -= 4; targetsymidx = MAP_SEG2SYMIDX(targetdatum); } else if (MAP_SEG2SEC(targetdatum).sh_flags & SHF_TLS) { if (config.flags3 & CFG3pie) relinfo = R_X86_64_TPOFF32; else relinfo = config.flags3 & CFG3pic ? R_X86_64_TLSGD : R_X86_64_TPOFF32; } else { relinfo = targetdatum == CDATA ? R_X86_64_32 : R_X86_64_32S; targetsymidx = MAP_SEG2SYMIDX(targetdatum); } } else { if (MAP_SEG2TYP(seg) == CODE && config.flags3 & CFG3pic) relinfo = R_386_GOTOFF; else if (MAP_SEG2SEC(targetdatum).sh_flags & SHF_TLS) { if (config.flags3 & CFG3pie) relinfo = R_386_TLS_LE; else relinfo = config.flags3 & CFG3pic ? R_386_TLS_GD : R_386_TLS_LE; } else relinfo = R_386_32; targetsymidx = MAP_SEG2SYMIDX(targetdatum); } Obj_writerel(seg, cast(uint)offset, relinfo, targetsymidx, val); } /******************************* * Refer to address that is in the code segment. * Only offsets are output, regardless of the memory model. * Used to put values in switch address tables. * Input: * seg = where the address is going (CODE or DATA) * offset = offset within seg * val = displacement from start of this module */ void Obj_reftocodeseg(int seg,targ_size_t offset,targ_size_t val) { //dbg_printf("Obj_reftocodeseg(seg=%d, offset=x%lx, val=x%lx )\n",seg,offset,val); reltype_t relinfo; static if (0) { if (MAP_SEG2TYP(seg) == CODE) { relinfo = RI_TYPE_PC32; Obj_writerel(seg, offset, relinfo, funcsym_p.Sxtrnnum, val - funcsym_p.Soffset); return; } } if (I64) relinfo = (config.flags3 & CFG3pic) ? R_X86_64_PC32 : R_X86_64_32; else relinfo = (config.flags3 & CFG3pic) ? R_386_GOTOFF : R_386_32; Obj_writerel(seg, cast(uint)offset, relinfo, funcsym_p.Sxtrnnum, val - funcsym_p.Soffset); } /******************************* * Refer to an identifier. * Input: * segtyp = where the address is going (CODE or DATA) * offset = offset within seg * s = Symbol table entry for identifier * val = displacement from identifier * flags = CFselfrel: self-relative * CFseg: get segment * CFoff: get offset * CFoffset64: 64 bit fixup * CFpc32: I64: PC relative 32 bit fixup * Returns: * number of bytes in reference (4 or 8) */ int Obj_reftoident(int seg, targ_size_t offset, Symbol *s, targ_size_t val, int flags) { bool external = true; Outbuffer *buf; reltype_t relinfo = R_X86_64_NONE; int refseg; const segtyp = MAP_SEG2TYP(seg); //assert(val == 0); int retsize = (flags & CFoffset64) ? 8 : 4; static if (0) { printf("\nObj_reftoident('%s' seg %d, offset x%llx, val x%llx, flags x%x)\n", s.Sident.ptr,seg,offset,val,flags); printf("Sseg = %d, Sxtrnnum = %d, retsize = %d\n",s.Sseg,s.Sxtrnnum,retsize); symbol_print(s); } const tym_t ty = s.ty(); if (s.Sxtrnnum) { // identifier is defined somewhere else if (I64) { if (SymbolTable64[s.Sxtrnnum].st_shndx != SHN_UNDEF) external = false; } else { if (SymbolTable[s.Sxtrnnum].st_shndx != SHN_UNDEF) external = false; } } switch (s.Sclass) { case SClocstat: if (I64) { if (s.Sfl == FLtlsdata) { if (config.flags3 & CFG3pie) relinfo = R_X86_64_TPOFF32; else relinfo = config.flags3 & CFG3pic ? R_X86_64_TLSGD : R_X86_64_TPOFF32; } else { relinfo = config.flags3 & CFG3pic ? R_X86_64_PC32 : R_X86_64_32; if (flags & CFpc32) relinfo = R_X86_64_PC32; } } else { if (s.Sfl == FLtlsdata) { if (config.flags3 & CFG3pie) relinfo = R_386_TLS_LE; else relinfo = config.flags3 & CFG3pic ? R_386_TLS_GD : R_386_TLS_LE; } else relinfo = config.flags3 & CFG3pic ? R_386_GOTOFF : R_386_32; } if (flags & CFoffset64 && relinfo == R_X86_64_32) { relinfo = R_X86_64_64; retsize = 8; } refseg = STI_RODAT; val += s.Soffset; goto outrel; case SCcomdat: case_SCcomdat: case SCstatic: static if (0) { if ((s.Sflags & SFLthunk) && s.Soffset) { // A thunk symbol that has been defined assert(s.Sseg == seg); val = (s.Soffset+val) - (offset+4); goto outaddrval; } } goto case; case SCextern: case SCcomdef: case_extern: case SCglobal: if (!s.Sxtrnnum) { // not in symbol table yet - class might change //printf("\tadding %s to fixlist\n",s.Sident.ptr); size_t numbyteswritten = addtofixlist(s,offset,seg,val,flags); assert(numbyteswritten == retsize); return retsize; } else { refseg = s.Sxtrnnum; // default to name symbol table entry if (flags & CFselfrel) { // only for function references within code segments if (!external && // local definition found s.Sseg == seg && // within same code segment (!(config.flags3 & CFG3pic) || // not position indp code s.Sclass == SCstatic)) // or is pic, but declared static { // Can use PC relative //dbg_printf("\tdoing PC relative\n"); val = (s.Soffset+val) - (offset+4); } else { //dbg_printf("\tadding relocation\n"); if (s.Sclass == SCglobal && config.flags3 & CFG3pie && tyfunc(s.ty())) relinfo = I64 ? R_X86_64_PC32 : R_386_PC32; else if (I64) relinfo = config.flags3 & CFG3pic ? R_X86_64_PLT32 : R_X86_64_PC32; else relinfo = config.flags3 & CFG3pic ? R_386_PLT32 : R_386_PC32; val = -cast(targ_size_t)4; } } else { // code to code code to data, data to code, data to data refs if (s.Sclass == SCstatic) { // offset into .data or .bss seg refseg = MAP_SEG2SYMIDX(s.Sseg); // use segment symbol table entry val += s.Soffset; if (!(config.flags3 & CFG3pic) || // all static refs from normal code segtyp == DATA) // or refs from data from posi indp { if (I64) relinfo = (flags & CFpc32) ? R_X86_64_PC32 : R_X86_64_32; else relinfo = R_386_32; } else { relinfo = I64 ? R_X86_64_PC32 : R_386_GOTOFF; } } else if (config.flags3 & CFG3pic && s == GOTsym) { // relocation for Gbl Offset Tab relinfo = I64 ? R_X86_64_NONE : R_386_GOTPC; } else if (segtyp == DATA) { // relocation from within DATA seg relinfo = I64 ? R_X86_64_32 : R_386_32; if (I64 && flags & CFpc32) relinfo = R_X86_64_PC32; } else { // relocation from within CODE seg if (I64) { if (config.flags3 & CFG3pie && s.Sclass == SCglobal) relinfo = R_X86_64_PC32; else if (config.flags3 & CFG3pic) relinfo = R_X86_64_GOTPCREL; else relinfo = (flags & CFpc32) ? R_X86_64_PC32 : R_X86_64_32; } else { if (config.flags3 & CFG3pie && s.Sclass == SCglobal) relinfo = R_386_GOTOFF; else relinfo = config.flags3 & CFG3pic ? R_386_GOT32 : R_386_32; } } if ((s.ty() & mTYLINK) & mTYthread) { if (I64) { if (config.flags3 & CFG3pie) { if (s.Sclass == SCstatic || s.Sclass == SCglobal) relinfo = R_X86_64_TPOFF32; else relinfo = R_X86_64_GOTTPOFF; } else if (config.flags3 & CFG3pic) { /+if (s.Sclass == SCstatic || s.Sclass == SClocstat) // Could use 'local dynamic (LD)' to optimize multiple local TLS reads relinfo = R_X86_64_TLSGD; else+/ relinfo = R_X86_64_TLSGD; } else { if (s.Sclass == SCstatic || s.Sclass == SClocstat) relinfo = R_X86_64_TPOFF32; else relinfo = R_X86_64_GOTTPOFF; } } else { if (config.flags3 & CFG3pie) { if (s.Sclass == SCstatic || s.Sclass == SCglobal) relinfo = R_386_TLS_LE; else relinfo = R_386_TLS_GOTIE; } else if (config.flags3 & CFG3pic) { /+if (s.Sclass == SCstatic) // Could use 'local dynamic (LD)' to optimize multiple local TLS reads relinfo = R_386_TLS_GD; else+/ relinfo = R_386_TLS_GD; } else { if (s.Sclass == SCstatic) relinfo = R_386_TLS_LE; else relinfo = R_386_TLS_IE; } } } if (flags & CFoffset64 && relinfo == R_X86_64_32) { relinfo = R_X86_64_64; } } if (relinfo == R_X86_64_NONE) { outaddrval: writeaddrval(seg, cast(uint)offset, val, retsize); } else { outrel: //printf("\t\t************* adding relocation\n"); const size_t nbytes = Obj_writerel(seg, cast(uint)offset, relinfo, refseg, val); assert(nbytes == retsize); } } break; case SCsinline: case SCeinline: printf ("Undefined inline value <<fixme>>\n"); //warerr(WM_undefined_inline,s.Sident.ptr); goto case; case SCinline: if (tyfunc(ty)) { s.Sclass = SCextern; goto case_extern; } else if (config.flags2 & CFG2comdat) goto case_SCcomdat; // treat as initialized common block goto default; default: //symbol_print(s); assert(0); } return retsize; } /***************************************** * Generate far16 thunk. * Input: * s Symbol to generate a thunk for */ void Obj_far16thunk(Symbol *s) { //dbg_printf("Obj_far16thunk('%s')\n", s.Sident.ptr); assert(0); } /************************************** * Mark object file as using floating point. */ void Obj_fltused() { //dbg_printf("Obj_fltused()\n"); } /************************************ * Close and delete .OBJ file. */ void objfile_delete() { //remove(fobjname); // delete corrupt output file } /********************************** * Terminate. */ void objfile_term() { static if (TERMCODE) { mem_free(fobjname); fobjname = null; } } /********************************** * Write to the object file */ /+void objfile_write(FILE *fd, void *buffer, uint len) { fobjbuf.write(buffer, len); } +/ int elf_align(targ_size_t size,int foffset) { if (size <= 1) return foffset; int offset = cast(int)((foffset + size - 1) & ~(size - 1)); if (offset > foffset) fobjbuf.writezeros(offset - foffset); return offset; } /*************************************** * Stuff pointer to ModuleInfo into its own section (minfo). */ version (MARS) { void Obj_moduleinfo(Symbol *scc) { const CFflags = I64 ? (CFoffset64 | CFoff) : CFoff; // needs to be writeable for PIC code, see Bugzilla 13117 const shf_flags = SHF_ALLOC | SHF_WRITE; const seg = Obj_getsegment("minfo", null, SHT_PROGBITS, shf_flags, _tysize[TYnptr]); SegData[seg].SDoffset += Obj_reftoident(seg, SegData[seg].SDoffset, scc, 0, CFflags); } /*************************************** * Create startup/shutdown code to register an executable/shared * library (DSO) with druntime. Create one for each object file and * put the sections into a COMDAT group. This will ensure that each * DSO gets registered only once. */ private void obj_rtinit() { // section start/stop symbols are defined by the linker (http://www.airs.com/blog/archives/56) // make the symbols hidden so that each DSO gets it's own brackets IDXSYM minfo_beg, minfo_end, dso_rec; { // needs to be writeable for PIC code, see Bugzilla 13117 const shf_flags = SHF_ALLOC | SHF_WRITE; const namidx = Obj_addstr(symtab_strings,"__start_minfo"); minfo_beg = elf_addsym(namidx, 0, 0, STT_NOTYPE, STB_GLOBAL, SHN_UNDEF, STV_HIDDEN); Obj_getsegment("minfo", null, SHT_PROGBITS, shf_flags, _tysize[TYnptr]); const namidx2 = Obj_addstr(symtab_strings,"__stop_minfo"); minfo_end = elf_addsym(namidx2, 0, 0, STT_NOTYPE, STB_GLOBAL, SHN_UNDEF, STV_HIDDEN); } // Create a COMDAT section group const groupseg = Obj_getsegment(".group.d_dso", null, SHT_GROUP, 0, 0); SegData[groupseg].SDbuf.write32(GRP_COMDAT); { /* * Create an instance of DSORec as global static data in the section .data.d_dso_rec * It is writeable and allows the runtime to store information. * Make it a COMDAT so there's only one per DSO. * * typedef union * { * size_t id; * void *data; * } DSORec; */ const seg = Obj_getsegment(".data.d_dso_rec", null, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_GROUP, _tysize[TYnptr]); dso_rec = MAP_SEG2SYMIDX(seg); Obj_bytes(seg, 0, _tysize[TYnptr], null); // add to section group SegData[groupseg].SDbuf.write32(MAP_SEG2SECIDX(seg)); /* * Create an instance of DSO on the stack: * * typedef struct * { * size_t version; * DSORec *dso_rec; * void *minfo_beg, *minfo_end; * } DSO; * * Generate the following function as a COMDAT so there's only one per DSO: * .text.d_dso_init segment * push EBP * mov EBP,ESP * sub ESP,align * lea RAX,minfo_end[RIP] * push RAX * lea RAX,minfo_beg[RIP] * push RAX * lea RAX,.data.d_dso_rec[RIP] * push RAX * push 1 // version * mov RDI,RSP * call _d_dso_registry@PLT32 * leave * ret * and then put a pointer to that function in .init_array and in .fini_array so it'll * get executed once upon loading and once upon unloading the DSO. */ const codseg = Obj_getsegment(".text.d_dso_init", null, SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR|SHF_GROUP, _tysize[TYnptr]); // add to section group SegData[groupseg].SDbuf.write32(MAP_SEG2SECIDX(codseg)); debug { // adds a local symbol (name) to the code, useful to set a breakpoint const namidx = Obj_addstr(symtab_strings, "__d_dso_init"); elf_addsym(namidx, 0, 0, STT_FUNC, STB_LOCAL, MAP_SEG2SECIDX(codseg)); } Outbuffer *buf = SegData[codseg].SDbuf; assert(!buf.length()); size_t off = 0; // 16-byte align for call const size_t sizeof_dso = 6 * _tysize[TYnptr]; const size_t align_ = I64 ? // return address, RBP, DSO (-(2 * _tysize[TYnptr] + sizeof_dso) & 0xF) : // return address, EBP, EBX, DSO, arg (-(3 * _tysize[TYnptr] + sizeof_dso + _tysize[TYnptr]) & 0xF); // push EBP buf.writeByte(0x50 + BP); off += 1; // mov EBP, ESP if (I64) { buf.writeByte(REX | REX_W); off += 1; } buf.writeByte(0x8B); buf.writeByte(modregrm(3,BP,SP)); off += 2; // sub ESP, align_ if (align_) { if (I64) { buf.writeByte(REX | REX_W); off += 1; } buf.writeByte(0x81); buf.writeByte(modregrm(3,5,SP)); buf.writeByte(align_ & 0xFF); buf.writeByte(align_ >> 8 & 0xFF); buf.writeByte(0); buf.writeByte(0); off += 6; } if (config.flags3 & CFG3pic && I32) { // see cod3_load_got() for reference // push EBX buf.writeByte(0x50 + BX); off += 1; // call L1 buf.writeByte(0xE8); buf.write32(0); // L1: pop EBX (now contains EIP) buf.writeByte(0x58 + BX); off += 6; // add EBX,_GLOBAL_OFFSET_TABLE_+3 buf.writeByte(0x81); buf.writeByte(modregrm(3,0,BX)); off += 2; off += Obj_writerel(codseg, off, R_386_GOTPC, Obj_external(Obj_getGOTsym()), 3); } reltype_t reltype; opcode_t op; if (0 && config.flags3 & CFG3pie) { op = LOD; reltype = I64 ? R_X86_64_GOTPCREL : R_386_GOT32; } else if (config.flags3 & CFG3pic) { op = LEA; reltype = I64 ? R_X86_64_PC32 : R_386_GOTOFF; } else { op = LEA; reltype = I64 ? R_X86_64_32 : R_386_32; } const IDXSYM[3] syms = [dso_rec, minfo_beg, minfo_end]; for (size_t i = (syms).sizeof / (syms[0]).sizeof; i--; ) { const IDXSYM sym = syms[i]; if (config.flags3 & CFG3pic) { if (I64) { // lea RAX, sym[RIP] buf.writeByte(REX | REX_W); buf.writeByte(op); buf.writeByte(modregrm(0,AX,5)); off += 3; off += Obj_writerel(codseg, off, reltype, syms[i], -4); } else { // lea EAX, sym[EBX] buf.writeByte(op); buf.writeByte(modregrm(2,AX,BX)); off += 2; off += Obj_writerel(codseg, off, reltype, syms[i], 0); } } else { // mov EAX, sym buf.writeByte(0xB8 + AX); off += 1; off += Obj_writerel(codseg, off, reltype, syms[i], 0); } // push RAX buf.writeByte(0x50 + AX); off += 1; } buf.writeByte(0x6A); // PUSH 1 buf.writeByte(1); // version flag to simplify future extensions off += 2; if (I64) { // mov RDI, DSO* buf.writeByte(REX | REX_W); buf.writeByte(0x8B); buf.writeByte(modregrm(3,DI,SP)); off += 3; } else { // push DSO* buf.writeByte(0x50 + SP); off += 1; } static if (REQUIRE_DSO_REGISTRY) { const IDXSYM symidx = Obj_external_def("_d_dso_registry"); // call _d_dso_registry@PLT buf.writeByte(0xE8); off += 1; off += Obj_writerel(codseg, off, I64 ? R_X86_64_PLT32 : R_386_PLT32, symidx, -4); } else { // use a weak reference for _d_dso_registry const namidx = Obj_addstr(symtab_strings, "_d_dso_registry"); const IDXSYM symidx = elf_addsym(namidx, 0, 0, STT_NOTYPE, STB_WEAK, SHN_UNDEF); if (config.flags3 & CFG3pic) { if (I64) { // cmp foo@GOT[RIP], 0 buf.writeByte(REX | REX_W); buf.writeByte(0x83); buf.writeByte(modregrm(0,7,5)); off += 3; const reltype = /*config.flags3 & CFG3pie ? R_X86_64_PC32 :*/ R_X86_64_GOTPCREL; off += Obj_writerel(codseg, off, reltype, symidx, -5); buf.writeByte(0); off += 1; } else { // cmp foo[GOT], 0 buf.writeByte(0x81); buf.writeByte(modregrm(2,7,BX)); off += 2; const reltype = /*config.flags3 & CFG3pie ? R_386_GOTOFF :*/ R_386_GOT32; off += Obj_writerel(codseg, off, reltype, symidx, 0); buf.write32(0); off += 4; } // jz +5 buf.writeByte(0x74); buf.writeByte(0x05); off += 2; // call foo@PLT[RIP] buf.writeByte(0xE8); off += 1; off += Obj_writerel(codseg, off, I64 ? R_X86_64_PLT32 : R_386_PLT32, symidx, -4); } else { // mov ECX, offset foo buf.writeByte(0xB8 + CX); off += 1; const reltype = I64 ? R_X86_64_32 : R_386_32; off += Obj_writerel(codseg, off, reltype, symidx, 0); // test ECX, ECX buf.writeByte(0x85); buf.writeByte(modregrm(3,CX,CX)); // jz +5 (skip call) buf.writeByte(0x74); buf.writeByte(0x05); off += 4; // call _d_dso_registry[RIP] buf.writeByte(0xE8); off += 1; off += Obj_writerel(codseg, off, I64 ? R_X86_64_PC32 : R_386_PC32, symidx, -4); } } if (config.flags3 & CFG3pic && I32) { // mov EBX,[EBP-4-align_] buf.writeByte(0x8B); buf.writeByte(modregrm(1,BX,BP)); buf.writeByte(cast(int)(-4-align_)); off += 3; } // leave buf.writeByte(0xC9); // ret buf.writeByte(0xC3); off += 2; Offset(codseg) = off; // put a reference into .init_array/.fini_array each // needs to be writeable for PIC code, see Bugzilla 13117 const int flags = SHF_ALLOC | SHF_WRITE | SHF_GROUP; { enum fini_name = USE_INIT_ARRAY ? ".fini_array.d_dso_dtor" : ".dtors.d_dso_dtor"; enum fini_type = USE_INIT_ARRAY ? SHT_FINI_ARRAY : SHT_PROGBITS; const cdseg = Obj_getsegment(fini_name.ptr, null, fini_type, flags, _tysize[TYnptr]); assert(!SegData[cdseg].SDbuf.length()); // add to section group SegData[groupseg].SDbuf.write32(MAP_SEG2SECIDX(cdseg)); // relocation const reltype2 = I64 ? R_X86_64_64 : R_386_32; SegData[cdseg].SDoffset += Obj_writerel(cdseg, 0, reltype2, MAP_SEG2SYMIDX(codseg), 0); } { enum init_name = USE_INIT_ARRAY ? ".init_array.d_dso_ctor" : ".ctors.d_dso_ctor"; enum init_type = USE_INIT_ARRAY ? SHT_INIT_ARRAY : SHT_PROGBITS; const cdseg = Obj_getsegment(init_name.ptr, null, init_type, flags, _tysize[TYnptr]); assert(!SegData[cdseg].SDbuf.length()); // add to section group SegData[groupseg].SDbuf.write32(MAP_SEG2SECIDX(cdseg)); // relocation const reltype2 = I64 ? R_X86_64_64 : R_386_32; SegData[cdseg].SDoffset += Obj_writerel(cdseg, 0, reltype2, MAP_SEG2SYMIDX(codseg), 0); } } // set group section infos Offset(groupseg) = SegData[groupseg].SDbuf.length(); Elf32_Shdr *p = MAP_SEG2SEC(groupseg); p.sh_link = SHN_SYMTAB; p.sh_info = dso_rec; // set the dso_rec as group symbol p.sh_entsize = IDXSYM.sizeof; p.sh_size = cast(uint)Offset(groupseg); } } /************************************* */ void Obj_gotref(Symbol *s) { //printf("Obj_gotref(%x '%s', %d)\n",s,s.Sident.ptr, s.Sclass); switch(s.Sclass) { case SCstatic: case SClocstat: s.Sfl = FLgotoff; break; case SCextern: case SCglobal: case SCcomdat: case SCcomdef: s.Sfl = FLgot; break; default: break; } } Symbol *Obj_tlv_bootstrap() { // specific for Mach-O assert(0); } void Obj_write_pointerRef(Symbol* s, uint off) { } /****************************************** * Generate fixup specific to .eh_frame and .gcc_except_table sections. * Params: * seg = segment of where to write fixup * offset = offset of where to write fixup * s = fixup is a reference to this Symbol * val = displacement from s * Returns: * number of bytes written at seg:offset */ int dwarf_reftoident(int seg, targ_size_t offset, Symbol *s, targ_size_t val) { if (config.flags3 & CFG3pic) { /* fixup: R_X86_64_PC32 sym="DW.ref.name" * symtab: .weak DW.ref.name,@OBJECT,VALUE=.data.DW.ref.name+0x00,SIZE=8 * Section 13 .data.DW.ref.name PROGBITS,ALLOC,WRITE,SIZE=0x0008(8),OFFSET=0x0138,ALIGN=8 * 0138: 0 0 0 0 0 0 0 0 ........ * Section 14 .rela.data.DW.ref.name RELA,ENTRIES=1,OFFSET=0x0E18,ALIGN=8,LINK=22,INFO=13 * 0 offset=00000000 addend=0000000000000000 type=R_X86_64_64 sym="name" */ if (!s.Sdw_ref_idx) { const dataDWref_seg = Obj_getsegment(".data.DW.ref.", s.Sident.ptr, SHT_PROGBITS, SHF_ALLOC|SHF_WRITE, I64 ? 8 : 4); Outbuffer *buf = SegData[dataDWref_seg].SDbuf; assert(buf.length() == 0); Obj_reftoident(dataDWref_seg, 0, s, 0, I64 ? CFoffset64 : CFoff); // Add "DW.ref." ~ name to the symtab_strings table const namidx = cast(IDXSTR)symtab_strings.length(); symtab_strings.writeString("DW.ref."); symtab_strings.setsize(cast(uint)(symtab_strings.length() - 1)); // back up over terminating 0 symtab_strings.writeString(s.Sident.ptr); s.Sdw_ref_idx = elf_addsym(namidx, val, 8, STT_OBJECT, STB_WEAK, MAP_SEG2SECIDX(dataDWref_seg), STV_HIDDEN); } Obj_writerel(seg, cast(uint)offset, I64 ? R_X86_64_PC32 : R_386_PC32, s.Sdw_ref_idx, 0); } else { Obj_reftoident(seg, offset, s, val, CFoff); //dwarf_addrel(seg, offset, s.Sseg, s.Soffset); //et.write32(s.Soffset); } return 4; } } }
D
/* Copyright (c) 2017-2018 Timur Gafarov Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ module dagon.resource.scene; import std.stdio; import std.math; import std.algorithm; import dlib.core.memory; import dlib.container.array; import dlib.container.dict; import dlib.math.vector; import dlib.math.matrix; import dlib.math.transformation; import dlib.image.color; import derelict.opengl; import dagon.core.ownership; import dagon.core.event; import dagon.core.application; import dagon.resource.asset; import dagon.resource.textasset; import dagon.resource.textureasset; import dagon.resource.fontasset; import dagon.resource.obj; import dagon.resource.iqm; import dagon.resource.packageasset; import dagon.graphics.environment; import dagon.graphics.rc; import dagon.graphics.view; import dagon.graphics.shapes; import dagon.graphics.light; import dagon.graphics.shadow; import dagon.graphics.texture; import dagon.graphics.materials.generic; import dagon.graphics.materials.standard; import dagon.graphics.materials.sky; import dagon.graphics.materials.hud; import dagon.graphics.framebuffer; import dagon.graphics.gbuffer; import dagon.graphics.deferred; import dagon.graphics.postproc; import dagon.graphics.filters.fxaa; import dagon.graphics.filters.lens; import dagon.graphics.filters.hdrprepass; import dagon.graphics.filters.hdr; import dagon.graphics.filters.blur; import dagon.graphics.filters.finalizer; import dagon.logics.entity; class BaseScene: EventListener { SceneManager sceneManager; AssetManager assetManager; bool canRun = false; bool releaseAtNextStep = false; bool needToLoad = true; this(SceneManager smngr) { super(smngr.eventManager, null); sceneManager = smngr; assetManager = New!AssetManager(eventManager); } ~this() { release(); Delete(assetManager); } // Set preload to true if you want to load the asset immediately // before actual loading (e.g., to render a loading screen) Asset addAsset(Asset asset, string filename, bool preload = false) { if (preload) assetManager.preloadAsset(asset, filename); else assetManager.addAsset(asset, filename); return asset; } void onAssetsRequest() { // Add your assets here } void onLoading(float percentage) { // Render your loading screen here } void onAllocate() { // Allocate your objects here } void onRelease() { // Release your objects here } void onStart() { // Do your (re)initialization here } void onEnd() { // Do your finalization here } void onUpdate(double dt) { // Do your animation and logics here } void onRender() { // Do your rendering here } void exitApplication() { generateUserEvent(DagonEvent.Exit); } void load() { if (needToLoad) { onAssetsRequest(); float p = assetManager.nextLoadingPercentage; assetManager.loadThreadSafePart(); while(assetManager.isLoading) { sceneManager.application.beginRender(); onLoading(p); sceneManager.application.endRender(); p = assetManager.nextLoadingPercentage; } bool loaded = assetManager.loadThreadUnsafePart(); if (loaded) { onAllocate(); canRun = true; needToLoad = false; } else { writeln("Exiting due to error while loading assets"); canRun = false; eventManager.running = false; } } else { canRun = true; } } void release() { onRelease(); clearOwnedObjects(); assetManager.releaseAssets(); needToLoad = true; canRun = false; } void start() { if (canRun) onStart(); } void end() { if (canRun) onEnd(); } void update(double dt) { if (canRun) { processEvents(); assetManager.updateMonitor(dt); onUpdate(dt); } if (releaseAtNextStep) { end(); release(); releaseAtNextStep = false; canRun = false; } } void render() { if (canRun) onRender(); } } class SceneManager: Owner { SceneApplication application; Dict!(BaseScene, string) scenesByName; EventManager eventManager; BaseScene currentScene; this(EventManager emngr, SceneApplication app) { super(app); application = app; eventManager = emngr; scenesByName = New!(Dict!(BaseScene, string)); } ~this() { foreach(i, s; scenesByName) { Delete(s); } Delete(scenesByName); } BaseScene addScene(BaseScene scene, string name) { scenesByName[name] = scene; return scene; } void removeScene(string name) { Delete(scenesByName[name]); scenesByName.remove(name); } void goToScene(string name, bool releaseCurrent = true) { if (currentScene && releaseCurrent) { currentScene.releaseAtNextStep = true; } BaseScene scene = scenesByName[name]; writefln("Loading scene \"%s\"", name); scene.load(); currentScene = scene; currentScene.start(); writefln("Running...", name); } void update(double dt) { if (currentScene) { currentScene.update(dt); } } void render() { if (currentScene) { currentScene.render(); } } } class SceneApplication: Application { SceneManager sceneManager; this(uint w, uint h, bool fullscreen, string windowTitle, string[] args) { super(w, h, fullscreen, windowTitle, args); sceneManager = New!SceneManager(eventManager, this); } override void onUpdate(double dt) { sceneManager.update(dt); } override void onRender() { sceneManager.render(); } } class Scene: BaseScene { Environment environment; LightManager lightManager; CascadedShadowMap shadowMap; StandardBackend defaultMaterialBackend; GenericMaterial defaultMaterial3D; SkyBackend skyMaterialBackend; RenderingContext rc3d; RenderingContext rc2d; View view; GBuffer gbuffer; DeferredEnvironmentPass deferredEnvPass; DeferredLightPass deferredLightPass; Framebuffer sceneFramebuffer; PostFilterHDR hdrFilter; Framebuffer hdrPrepassFramebuffer; PostFilterHDRPrepass hdrPrepassFilter; Framebuffer hblurredFramebuffer; Framebuffer vblurredFramebuffer; PostFilterBlur hblur; PostFilterBlur vblur; PostFilterFXAA fxaaFilter; PostFilterLensDistortion lensFilter; PostFilterFinalizer finalizerFilter; struct SSAOSettings { BaseScene3D scene; void enabled(bool mode) @property { scene.deferredEnvPass.enableSSAO = mode; } bool enabled() @property { return scene.deferredEnvPass.enableSSAO; } //TODO: other SSAO parameters } struct HDRSettings { BaseScene3D scene; void tonemapper(Tonemapper f) @property { scene.hdrFilter.tonemapFunction = f; } Tonemapper tonemapper() @property { return scene.hdrFilter.tonemapFunction; } void exposure(float ex) @property { scene.hdrFilter.exposure = ex; } float exposure() @property { return scene.hdrFilter.exposure; } void autoExposure(bool mode) @property { scene.hdrFilter.autoExposure = mode; } bool autoExposure() @property { return scene.hdrFilter.autoExposure; } void minLuminance(float l) @property { scene.hdrFilter.minLuminance = l; } float minLuminance() @property { return scene.hdrFilter.minLuminance; } void maxLuminance(float l) @property { scene.hdrFilter.maxLuminance = l; } float maxLuminance() @property { return scene.hdrFilter.maxLuminance; } void keyValue(float k) @property { scene.hdrFilter.keyValue = k; } float keyValue() @property { return scene.hdrFilter.keyValue; } void adaptationSpeed(float s) @property { scene.hdrFilter.adaptationSpeed = s; } float adaptationSpeed() @property { return scene.hdrFilter.adaptationSpeed; } } struct GlowSettings { BaseScene3D scene; uint radius; void enabled(bool mode) @property { scene.hblur.enabled = mode; scene.vblur.enabled = mode; scene.hdrPrepassFilter.glowEnabled = mode; } bool enabled() @property { return scene.hdrPrepassFilter.glowEnabled; } void brightness(float b) @property { scene.hdrPrepassFilter.glowBrightness = b; } float brightness() @property { return scene.hdrPrepassFilter.glowBrightness; } } struct MotionBlurSettings { BaseScene3D scene; void enabled(bool mode) @property { scene.hdrFilter.mblurEnabled = mode; } bool enabled() @property { return scene.hdrFilter.mblurEnabled; } void samples(uint s) @property { scene.hdrFilter.motionBlurSamples = s; } uint samples() @property { return scene.hdrFilter.motionBlurSamples; } void shutterSpeed(float s) @property { scene.hdrFilter.shutterSpeed = s; scene.hdrFilter.shutterFps = 1.0 / s; } float shutterSpeed() @property { return scene.hdrFilter.shutterSpeed; } } struct LUTSettings { BaseScene3D scene; void texture(Texture tex) @property { scene.hdrFilter.colorTable = tex; } Texture texture() @property { return scene.hdrFilter.colorTable; } } struct VignetteSettings { BaseScene3D scene; void texture(Texture tex) @property { scene.hdrFilter.vignette = tex; } Texture texture() @property { return scene.hdrFilter.vignette; } } struct AASettings { BaseScene3D scene; void enabled(bool mode) @property { scene.fxaaFilter.enabled = mode; } bool enabled() @property { return scene.fxaaFilter.enabled; } } struct LensSettings { BaseScene3D scene; void enabled(bool mode) @property { scene.lensFilter.enabled = mode; } bool enabled() @property { return scene.lensFilter.enabled; } void scale(float s) @property { scene.lensFilter.scale = s; } float scale() @property { return scene.lensFilter.scale; } void dispersion(float d) @property { scene.lensFilter.dispersion = d; } float dispersion() @property { return scene.lensFilter.dispersion; } } SSAOSettings ssao; HDRSettings hdr; MotionBlurSettings motionBlur; GlowSettings glow; LUTSettings lut; VignetteSettings vignette; AASettings antiAliasing; LensSettings lensDistortion; DynamicArray!PostFilter postFilters; DynamicArray!Entity entities3D; DynamicArray!Entity entities2D; ShapeQuad loadingProgressBar; Entity eLoadingProgressBar; HUDMaterialBackend hudMaterialBackend; GenericMaterial mLoadingProgressBar; double timer = 0.0; double fixedTimeStep = 1.0 / 60.0; this(SceneManager smngr) { super(smngr); rc3d.init(eventManager, environment); rc3d.projectionMatrix = perspectiveMatrix(60.0f, eventManager.aspectRatio, 0.1f, 1000.0f); rc2d.init(eventManager, environment); rc2d.projectionMatrix = orthoMatrix(0.0f, eventManager.windowWidth, 0.0f, eventManager.windowHeight, 0.0f, 100.0f); loadingProgressBar = New!ShapeQuad(assetManager); eLoadingProgressBar = New!Entity(eventManager, assetManager); eLoadingProgressBar.drawable = loadingProgressBar; hudMaterialBackend = New!HUDMaterialBackend(assetManager); mLoadingProgressBar = createMaterial(hudMaterialBackend); mLoadingProgressBar.diffuse = Color4f(1, 1, 1, 1); eLoadingProgressBar.material = mLoadingProgressBar; } void sortEntities(ref DynamicArray!Entity entities) { size_t j = 0; Entity tmp; auto edata = entities.data; foreach(i, v; edata) { j = i; size_t k = i; while (k < edata.length) { float b1 = edata[j].layer; float b2 = edata[k].layer; if (b2 < b1) j = k; k++; } tmp = edata[i]; edata[i] = edata[j]; edata[j] = tmp; sortEntities(v.children); } } TextAsset addTextAsset(string filename, bool preload = false) { TextAsset text; if (assetManager.assetExists(filename)) text = cast(TextAsset)assetManager.getAsset(filename); else { text = New!TextAsset(assetManager); addAsset(text, filename, preload); } return text; } TextureAsset addTextureAsset(string filename, bool preload = false) { TextureAsset tex; if (assetManager.assetExists(filename)) tex = cast(TextureAsset)assetManager.getAsset(filename); else { tex = New!TextureAsset(assetManager.imageFactory, assetManager.hdrImageFactory, assetManager); addAsset(tex, filename, preload); } return tex; } FontAsset addFontAsset(string filename, uint height, bool preload = false) { FontAsset font; if (assetManager.assetExists(filename)) font = cast(FontAsset)assetManager.getAsset(filename); else { font = New!FontAsset(height, assetManager); addAsset(font, filename, preload); } return font; } OBJAsset addOBJAsset(string filename, bool preload = false) { OBJAsset obj; if (assetManager.assetExists(filename)) obj = cast(OBJAsset)assetManager.getAsset(filename); else { obj = New!OBJAsset(assetManager); addAsset(obj, filename, preload); } return obj; } IQMAsset addIQMAsset(string filename, bool preload = false) { IQMAsset iqm; if (assetManager.assetExists(filename)) iqm = cast(IQMAsset)assetManager.getAsset(filename); else { iqm = New!IQMAsset(assetManager); addAsset(iqm, filename, preload); } return iqm; } PackageAsset addPackageAsset(string filename, bool preload = false) { PackageAsset pa; if (assetManager.assetExists(filename)) pa = cast(PackageAsset)assetManager.getAsset(filename); else { pa = New!PackageAsset(this, assetManager); addAsset(pa, filename, preload); } return pa; } Entity createEntity2D(Entity parent = null) { Entity e; if (parent) e = New!Entity(parent); else { e = New!Entity(eventManager, assetManager); entities2D.append(e); sortEntities(entities2D); } return e; } Entity createEntity3D(Entity parent = null) { Entity e; if (parent) e = New!Entity(parent); else { e = New!Entity(eventManager, assetManager); entities3D.append(e); sortEntities(entities3D); } e.material = defaultMaterial3D; return e; } Entity addEntity3D(Entity e) { entities3D.append(e); sortEntities(entities3D); return e; } Entity createSky() { auto matSky = createMaterial(skyMaterialBackend); matSky.depthWrite = false; auto eSky = createEntity3D(); eSky.layer = 0; eSky.attach = Attach.Camera; eSky.castShadow = false; eSky.material = matSky; eSky.drawable = New!ShapeSphere(1.0f, 16, 8, true, assetManager); //aSphere.mesh; eSky.scaling = Vector3f(100.0f, 100.0f, 100.0f); sortEntities(entities3D); return eSky; } GenericMaterial createMaterial(GenericMaterialBackend backend = null) { if (backend is null) backend = defaultMaterialBackend; return New!GenericMaterial(backend, assetManager); } LightSource createLight(Vector3f position, Color4f color, float energy, float volumeRadius, float areaRadius = 0.0f) { return lightManager.addLight(position, color, energy, volumeRadius, areaRadius); } override void onAllocate() { environment = New!Environment(assetManager); lightManager = New!LightManager(200.0f, 100, assetManager); defaultMaterialBackend = New!StandardBackend(lightManager, assetManager); skyMaterialBackend = New!SkyBackend(assetManager); shadowMap = New!CascadedShadowMap(1024, this, 10, 30, 200, -100, 100, assetManager); defaultMaterialBackend.shadowMap = shadowMap; defaultMaterial3D = createMaterial(); gbuffer = New!GBuffer(eventManager.windowWidth, eventManager.windowHeight, this, assetManager); deferredEnvPass = New!DeferredEnvironmentPass(gbuffer, shadowMap, assetManager); deferredLightPass = New!DeferredLightPass(gbuffer, lightManager, assetManager); sceneFramebuffer = New!Framebuffer(eventManager.windowWidth, eventManager.windowHeight, true, true, assetManager); ssao.scene = this; hdr.scene = this; motionBlur.scene = this; glow.scene = this; glow.radius = 3; lut.scene = this; vignette.scene = this; antiAliasing.scene = this; lensDistortion.scene = this; hblurredFramebuffer = New!Framebuffer(eventManager.windowWidth / 2, eventManager.windowHeight / 2, true, false, assetManager); hblur = New!PostFilterBlur(true, sceneFramebuffer, hblurredFramebuffer, assetManager); vblurredFramebuffer = New!Framebuffer(eventManager.windowWidth / 2, eventManager.windowHeight / 2, true, false, assetManager); vblur = New!PostFilterBlur(false, hblurredFramebuffer, vblurredFramebuffer, assetManager); hdrPrepassFramebuffer = New!Framebuffer(eventManager.windowWidth, eventManager.windowHeight, true, false, assetManager); hdrPrepassFilter = New!PostFilterHDRPrepass(sceneFramebuffer, hdrPrepassFramebuffer, assetManager); hdrPrepassFilter.blurredTexture = vblurredFramebuffer.colorTexture; postFilters.append(hdrPrepassFilter); hdrFilter = New!PostFilterHDR(hdrPrepassFramebuffer, null, assetManager); hdrFilter.velocityTexture = gbuffer.velocityTexture; //sceneFramebuffer.velocityTexture; postFilters.append(hdrFilter); fxaaFilter = New!PostFilterFXAA(null, null, assetManager); postFilters.append(fxaaFilter); fxaaFilter.enabled = false; lensFilter = New!PostFilterLensDistortion(null, null, assetManager); postFilters.append(lensFilter); lensFilter.enabled = false; finalizerFilter = New!PostFilterFinalizer(null, null, assetManager); } PostFilter addFilter(PostFilter f) { postFilters.append(f); return f; } override void onRelease() { entities3D.free(); entities2D.free(); postFilters.free(); } override void onLoading(float percentage) { glEnable(GL_SCISSOR_TEST); glScissor(0, 0, eventManager.windowWidth, eventManager.windowHeight); glViewport(0, 0, eventManager.windowWidth, eventManager.windowHeight); glClearColor(0, 0, 0, 1); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); float maxWidth = eventManager.windowWidth * 0.33f; float x = (eventManager.windowWidth - maxWidth) * 0.5f; float y = eventManager.windowHeight * 0.5f - 10; float w = percentage * maxWidth; glDisable(GL_DEPTH_TEST); mLoadingProgressBar.diffuse = Color4f(0.1, 0.1, 0.1, 1); eLoadingProgressBar.position = Vector3f(x, y, 0); eLoadingProgressBar.scaling = Vector3f(maxWidth, 10, 1); eLoadingProgressBar.update(1.0/60.0); eLoadingProgressBar.render(&rc2d); mLoadingProgressBar.diffuse = Color4f(1, 1, 1, 1); eLoadingProgressBar.scaling = Vector3f(w, 10, 1); eLoadingProgressBar.update(1.0/60.0); eLoadingProgressBar.render(&rc2d); } override void onStart() { rc3d.initPerspective(eventManager, environment, 60.0f, 0.1f, 1000.0f); rc2d.initOrtho(eventManager, environment, 0.0f, 100.0f); timer = 0.0; } void onLogicsUpdate(double dt) { } override void onUpdate(double dt) { foreach(e; entities3D) e.processEvents(); foreach(e; entities2D) e.processEvents(); timer += dt; if (timer >= fixedTimeStep) { timer -= fixedTimeStep; if (view) { view.update(fixedTimeStep); view.prepareRC(&rc3d); } rc3d.time += fixedTimeStep; rc2d.time += fixedTimeStep; foreach(e; entities3D) e.update(fixedTimeStep); foreach(e; entities2D) e.update(fixedTimeStep); onLogicsUpdate(fixedTimeStep); environment.update(fixedTimeStep); if (view) // TODO: allow to turn this off { Vector3f cameraDirection = -view.invViewMatrix.forward; cameraDirection.y = 0.0f; cameraDirection = cameraDirection.normalized; shadowMap.area1.position = view.cameraPosition + cameraDirection * (shadowMap.projSize1 * 0.5f - 1.0f); shadowMap.area2.position = view.cameraPosition + cameraDirection * shadowMap.projSize2 * 0.5f; shadowMap.area3.position = view.cameraPosition + cameraDirection * shadowMap.projSize3 * 0.5f; } shadowMap.update(&rc3d, fixedTimeStep); //lightManager.update(&rc3d); } } void renderShadows(RenderingContext* rc) { shadowMap.render(rc); } void renderBackgroundEntities3D(RenderingContext* rc) { glEnable(GL_DEPTH_TEST); foreach(e; entities3D) if (e.layer <= 0) e.render(rc); } // TODO: check transparency of children (use context variable) void renderOpaqueEntities3D(RenderingContext* rc) { glEnable(GL_DEPTH_TEST); RenderingContext rcLocal = *rc; rcLocal.ignoreTransparentEntities = true; foreach(e; entities3D) { e.render(&rcLocal); } } // TODO: check transparency of children (use context variable) void renderTransparentEntities3D(RenderingContext* rc) { glEnable(GL_DEPTH_TEST); RenderingContext rcLocal = *rc; rcLocal.ignoreOpaqueEntities = true; foreach(e; entities3D) { e.render(&rcLocal); } } void renderEntities3D(RenderingContext* rc) { glEnable(GL_DEPTH_TEST); foreach(e; entities3D) e.render(rc); } void renderEntities2D(RenderingContext* rc) { glDisable(GL_DEPTH_TEST); foreach(e; entities2D) e.render(rc); } void prepareViewport(Framebuffer b = null) { glEnable(GL_SCISSOR_TEST); if (b) { glScissor(0, 0, b.width, b.height); glViewport(0, 0, b.width, b.height); } else { glScissor(0, 0, eventManager.windowWidth, eventManager.windowHeight); glViewport(0, 0, eventManager.windowWidth, eventManager.windowHeight); } if (environment) glClearColor(environment.backgroundColor.r, environment.backgroundColor.g, environment.backgroundColor.b, 0.0f); } void renderBlur(uint iterations) { RenderingContext rcTmp; foreach(i; 1..iterations+1) { hblur.outputBuffer.bind(); rcTmp.initOrtho(eventManager, environment, hblur.outputBuffer.width, hblur.outputBuffer.height, 0.0f, 100.0f); prepareViewport(hblur.outputBuffer); hblur.radius = i; hblur.render(&rcTmp); hblur.outputBuffer.unbind(); vblur.outputBuffer.bind(); rcTmp.initOrtho(eventManager, environment, vblur.outputBuffer.width, vblur.outputBuffer.height, 0.0f, 100.0f); prepareViewport(vblur.outputBuffer); vblur.radius = i; vblur.render(&rcTmp); vblur.outputBuffer.unbind(); hblur.inputBuffer = vblur.outputBuffer; } hblur.inputBuffer = sceneFramebuffer; } override void onRender() { renderShadows(&rc3d); gbuffer.render(&rc3d); sceneFramebuffer.bind(); RenderingContext rcDeferred; rcDeferred.initOrtho(eventManager, environment, eventManager.windowWidth, eventManager.windowHeight, 0.0f, 100.0f); prepareViewport(); sceneFramebuffer.clearBuffers(); glBindFramebuffer(GL_READ_FRAMEBUFFER, gbuffer.fbo); glBlitFramebuffer(0, 0, gbuffer.width, gbuffer.height, 0, 0, gbuffer.width, gbuffer.height, GL_DEPTH_BUFFER_BIT, GL_NEAREST); glBindFramebuffer(GL_READ_FRAMEBUFFER, 0); renderBackgroundEntities3D(&rc3d); deferredEnvPass.render(&rcDeferred, &rc3d); deferredLightPass.render(&rcDeferred, &rc3d); renderTransparentEntities3D(&rc3d); sceneFramebuffer.unbind(); if (hdrFilter.autoExposure) { sceneFramebuffer.genLuminanceMipmaps(); float lum = sceneFramebuffer.averageLuminance(); if (!isNaN(lum)) { float newExposure = hdrFilter.keyValue * (1.0f / clamp(lum, hdrFilter.minLuminance, hdrFilter.maxLuminance)); float exposureDelta = newExposure - hdrFilter.exposure; hdrFilter.exposure += exposureDelta * hdrFilter.adaptationSpeed * eventManager.deltaTime; } } if (hdrPrepassFilter.glowEnabled) renderBlur(glow.radius); RenderingContext rcTmp; Framebuffer nextInput = sceneFramebuffer; hdrPrepassFilter.perspectiveMatrix = rc3d.projectionMatrix; foreach(i, f; postFilters.data) if (f.enabled) { if (f.outputBuffer is null) f.outputBuffer = New!Framebuffer(eventManager.windowWidth, eventManager.windowHeight, false, false, assetManager); if (f.inputBuffer is null) f.inputBuffer = nextInput; nextInput = f.outputBuffer; f.outputBuffer.bind(); rcTmp.initOrtho(eventManager, environment, f.outputBuffer.width, f.outputBuffer.height, 0.0f, 100.0f); prepareViewport(f.outputBuffer); f.render(&rcTmp); f.outputBuffer.unbind(); } prepareViewport(); finalizerFilter.inputBuffer = nextInput; finalizerFilter.render(&rc2d); renderEntities2D(&rc2d); } } alias Scene BaseScene3D;
D
/Users/GMoran/Desktop/ClassicPlayer/DerivedData/ClassicPlayer/Build/Intermediates/ClassicPlayer.build/Debug-iphonesimulator/ClassicPlayer.build/Objects-normal/x86_64/MusicMenuVC.o : /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/NowPlayingVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AboutScreenVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsVC.swift /Users/GMoran/Desktop/ClassicPlayer/AboutVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MusicMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MainMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AlbumsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/PlaylistsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ArtistsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SongListMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/Array+Shuffle.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AppDelegate.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/C2AClickWheel.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ImageTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MenuTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ViewController.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsScreenViewController.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/StatusBarViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MediaPlayer.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AudioToolbox.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/CoreMedia.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/GMoran/Desktop/ClassicPlayer/DerivedData/ClassicPlayer/Build/Intermediates/ClassicPlayer.build/Debug-iphonesimulator/ClassicPlayer.build/Objects-normal/x86_64/MusicMenuVC~partial.swiftmodule : /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/NowPlayingVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AboutScreenVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsVC.swift /Users/GMoran/Desktop/ClassicPlayer/AboutVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MusicMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MainMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AlbumsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/PlaylistsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ArtistsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SongListMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/Array+Shuffle.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AppDelegate.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/C2AClickWheel.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ImageTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MenuTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ViewController.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsScreenViewController.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/StatusBarViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MediaPlayer.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AudioToolbox.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/CoreMedia.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/GMoran/Desktop/ClassicPlayer/DerivedData/ClassicPlayer/Build/Intermediates/ClassicPlayer.build/Debug-iphonesimulator/ClassicPlayer.build/Objects-normal/x86_64/MusicMenuVC~partial.swiftdoc : /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/NowPlayingVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AboutScreenVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsVC.swift /Users/GMoran/Desktop/ClassicPlayer/AboutVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MusicMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MainMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AlbumsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/PlaylistsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ArtistsMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SongListMenuVC.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/Array+Shuffle.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/AppDelegate.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/C2AClickWheel.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ImageTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/MenuTableCell.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/ViewController.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/SettingsScreenViewController.swift /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/StatusBarViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MediaPlayer.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AudioToolbox.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/CoreMedia.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
int[] array; void foo(int[] a, int x); unittest { foo(array, 3); array.foo(3); // means the same thing }
D
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChevronUpShapeRenderer.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Supporting\ Files/Charts.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /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/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChevronUpShapeRenderer~partial.swiftmodule : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Supporting\ Files/Charts.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /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/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChevronUpShapeRenderer~partial.swiftdoc : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Supporting\ Files/Charts.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /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/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
module biotronic.DCC.controlcontainer; import biotronic.DCC.control; import biotronic.DCC.containercontrol; import std.exception : enforce; struct ControlContainer { public: @disable this(); this(ContainerControl owner) { _owner = owner; } void add(Control value) { if (!value) { return; } if (auto cc = cast(ContainerControl)value) { enforce(!cc.contains(_owner)); } enforce(!value.topLevel); if (value.parent == _owner) { value.sendToBack(); } else { if (value.parent) { value.parent._controls.remove(value); } _list ~= value; value.changeParent(_owner); //owner.onControlAdded(value); } } void remove(Control value) { import std.algorithm : remove; if (!value || value.parent != _owner) { return; } value.changeParent(null); _list.remove!(a => a==value); //owner.onControlRemoved(value); } void moveChild(Control child, int index) { } inout(Control)[] opSlice() inout { return _list; } private: ContainerControl _owner; Control[] _list; }
D