code
stringlengths
3
10M
language
stringclasses
31 values
/Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/Build/Intermediates/FlappyBird.build/Debug-iphonesimulator/FlappyBird.build/Objects-normal/x86_64/SKTEffects.o : /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/GameScene.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGPoint+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTTimingFunctions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTEffects.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKAction+SpecialEffects.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGVector+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKAction+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKColor+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/GameViewController.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/Int+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKNode+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTAudio.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGFloat+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/Vector3.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/Build/Intermediates/FlappyBird.build/Debug-iphonesimulator/FlappyBird.build/Objects-normal/x86_64/SKTEffects~partial.swiftmodule : /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/GameScene.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGPoint+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTTimingFunctions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTEffects.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKAction+SpecialEffects.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGVector+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKAction+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKColor+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/GameViewController.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/Int+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKNode+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTAudio.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGFloat+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/Vector3.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/Build/Intermediates/FlappyBird.build/Debug-iphonesimulator/FlappyBird.build/Objects-normal/x86_64/SKTEffects~partial.swiftdoc : /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/GameScene.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGPoint+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTTimingFunctions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTEffects.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKAction+SpecialEffects.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGVector+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKAction+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKColor+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/GameViewController.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/Int+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKNode+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/SKTAudio.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/CGFloat+Extensions.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/Resources/SKTUtils/Vector3.swift /Users/mizhemin/Code/Others/FlappyBird/mizhemin-Flappy-Bird/FlappyBird-Start/FlappyBird/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
D
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.build/TCP/TCPSocket.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Address/Address+C.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Pipe.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Config.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Buffer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Error.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Descriptor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Types.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Conversions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/SocketOptions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Address/Address.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Select.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/FDSet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Socket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/UDP/UDPSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPEstablishedSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPReadableSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPWriteableSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/InternetSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPInternetSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/RawSocket.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/Darwin.apinotes /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.build/TCPSocket~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Address/Address+C.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Pipe.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Config.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Buffer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Error.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Descriptor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Types.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Conversions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/SocketOptions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Address/Address.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Select.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/FDSet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Socket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/UDP/UDPSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPEstablishedSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPReadableSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPWriteableSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/InternetSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPInternetSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/RawSocket.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/Darwin.apinotes /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.build/TCPSocket~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Address/Address+C.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Pipe.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Config.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Buffer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Error.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Descriptor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Types.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/Conversions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/SocketOptions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Address/Address.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Select.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Core/FDSet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/Socket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/UDP/UDPSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPEstablishedSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPReadableSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPWriteableSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/InternetSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/TCP/TCPInternetSocket.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Sockets/Socket/RawSocket.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/Darwin.apinotes
D
module deimos.cairo.xcb; /* cairo - a vector graphics library with display and print output * * Copyright © 2002 University of Southern California * Copyright © 2009 Intel Corporation * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundation * (the "LGPL") or, at your option, under the terms of the Mozilla * Public License Version 1.1 (the "MPL"). If you do not alter this * notice, a recipient may use your version of this file under either * the MPL or the LGPL. * * You should have received a copy of the LGPL along with this library * in the file COPYING-LGPL-2.1; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA * You should have received a copy of the MPL along with this library * in the file COPYING-MPL-1.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY * OF ANY KIND, either express or implied. See the LGPL or the MPL for * the specific language governing rights and limitations. * * The Original Code is the cairo graphics library. * * The Initial Developer of the Original Code is University of Southern * California. * * Contributor(s): * Carl D. Worth <cworth@cworth.org> * Chris Wilson <chris@chris-wilson.co.uk> */ import deimos.cairo.cairo; import deimos.cairo.features; static if (CairoHasXCBSurface) { static assert(0, "XCB support to be implemented, requires deimos.xcb"); extern(System) { cairo_surface_t * cairo_xcb_surface_create (xcb_connection_t *connection, xcb_drawable_t drawable, xcb_visualtype_t *visual, int width, int height); cairo_surface_t * cairo_xcb_surface_create_for_bitmap (xcb_connection_t *connection, xcb_screen_t *screen, xcb_pixmap_t bitmap, int width, int height); cairo_surface_t * cairo_xcb_surface_create_with_xrender_format (xcb_connection_t *connection, xcb_screen_t *screen, xcb_drawable_t drawable, xcb_render_pictforminfo_t *format, int width, int height); void cairo_xcb_surface_set_size (cairo_surface_t *surface, int width, int height); void cairo_xcb_surface_set_drawable (cairo_surface_t *surface, xcb_drawable_t drawable, int width, int height); xcb_connection_t * cairo_xcb_device_get_connection (cairo_device_t *device); /* debug interface */ void cairo_xcb_device_debug_cap_xshm_version (cairo_device_t *device, int major_version, int minor_version); void cairo_xcb_device_debug_cap_xrender_version (cairo_device_t *device, int major_version, int minor_version); /* * @precision: -1 implies automatically choose based on antialiasing mode, * any other value overrides and sets the corresponding PolyMode. */ void cairo_xcb_device_debug_set_precision (cairo_device_t *device, int precision); int cairo_xcb_device_debug_get_precision (cairo_device_t *device); } } else { static assert(0, "Cairo was not compiled with support for the XCB backend"); }
D
//---------------------------------------------------------------------- // Copyright 2012-2019 Coverify Systems Technology // Copyright 2007-2014 Mentor Graphics Corporation // Copyright 2014 Semifore // Copyright 2010-2014 Synopsys, Inc. // Copyright 2007-2018 Cadence Design Systems, Inc. // Copyright 2010-2012 AMD // Copyright 2014-2015 NVIDIA Corporation // Copyright 2013 Cisco Systems, Inc. // All Rights Reserved Worldwide // // 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 uvm.seq.uvm_sequence; import uvm.meta.misc; import uvm.base.uvm_printer; import uvm.base.uvm_object_globals; import uvm.seq.uvm_sequence_item; import uvm.seq.uvm_sequence_base; import uvm.seq.uvm_sequencer_param_base; import std.string: format; import esdl.rand.misc: rand; //------------------------------------------------------------------------------ // // CLASS -- NODOCS -- uvm_sequence #(REQ,RSP) // // The uvm_sequence class provides the interfaces necessary in order to create // streams of sequence items and/or other sequences. // //------------------------------------------------------------------------------ // @uvm-ieee 1800.2-2017 auto 14.3.1 @rand(false) abstract class uvm_sequence (REQ_T = uvm_sequence_item, RSP_T = REQ_T): uvm_sequence_base { mixin (uvm_sync_string); alias sequencer_t = uvm_sequencer_param_base!(REQ_T, RSP_T); alias REQ = REQ_T; alias RSP = RSP_T; version(UVM_NO_RAND) { @uvm_public_sync private sequencer_t _param_sequencer; } else { @uvm_public_sync @rand(false) private sequencer_t _param_sequencer; } // Variable -- NODOCS -- req // // The sequence contains a field of the request type called req. The user // can use this field, if desired, or create another field to use. The // default ~do_print~ will print this field. version(UVM_NO_RAND) { protected REQ_T req; } else { @rand(false) protected REQ_T req; } // Variable -- NODOCS -- rsp // // The sequence contains a field of the response type called rsp. The user // can use this field, if desired, or create another field to use. The // default ~do_print~ will print this field. version(UVM_NO_RAND) { protected RSP_T rsp; } else { @rand(false) protected RSP_T rsp; } // Function -- NODOCS -- new // // Creates and initializes a new sequence object. // @uvm-ieee 1800.2-2017 auto 14.3.3.1 this(string name = "uvm_sequence") { super(name); } // Function -- NODOCS -- send_request // // This method will send the request item to the sequencer, which will forward // it to the driver. If the rerandomize bit is set, the item will be // randomized before being sent to the driver. The send_request function may // only be called after <uvm_sequence_base::wait_for_grant> returns. final override void send_request(uvm_sequence_item request, bool rerandomize=false) { synchronized (this) { if (m_sequencer is null) { uvm_report_fatal("SSENDREQ", "Null m_sequencer reference", uvm_verbosity.UVM_NONE); } REQ_T m_request = cast (REQ_T) request; if (request is null) { uvm_report_fatal("SSENDREQ", "Failure to cast uvm_sequence_item to request", uvm_verbosity.UVM_NONE); } m_sequencer.send_request(this, m_request, rerandomize); } } // Function -- NODOCS -- get_current_item // // Returns the request item currently being executed by the sequencer. If the // sequencer is not currently executing an item, this method will return ~null~. // // The sequencer is executing an item from the time that get_next_item or peek // is called until the time that get or item_done is called. // // Note that a driver that only calls get will never show a current item, // since the item is completed at the same time as it is requested. // @uvm-ieee 1800.2-2017 auto 14.3.3.2 final REQ_T get_current_item() { synchronized (this) { _param_sequencer = cast (sequencer_t) m_sequencer; if (_param_sequencer is null) { uvm_report_fatal("SGTCURR", "Failure to cast m_sequencer to the" ~ " parameterized sequencer", uvm_verbosity.UVM_NONE); } return (_param_sequencer.get_current_item()); } } // Task -- NODOCS -- get_response // // By default, sequences must retrieve responses by calling get_response. // If no transaction_id is specified, this task will return the next response // sent to this sequence. If no response is available in the response queue, // the method will block until a response is received. // // If a transaction_id is parameter is specified, the task will block until // a response with that transaction_id is received in the response queue. // // The default size of the response queue is 8. The get_response method must // be called soon enough to avoid an overflow of the response queue to prevent // responses from being dropped. // // If a response is dropped in the response queue, an error will be reported // unless the error reporting is disabled via // set_response_queue_error_report_enabled. // task // @uvm-ieee 1800.2-2017 auto 14.3.3.3 void get_response(out RSP_T response, int transaction_id=-1) { uvm_sequence_item rsp; get_base_response(rsp, transaction_id); response = cast (RSP_T) rsp; } // Function- put_response // // Internal method. override void put_response(uvm_sequence_item response_item) { if (response_item is null) { uvm_report_fatal("PUTRSP", "Received a null in response", uvm_verbosity.UVM_NONE); } RSP_T response = cast (RSP_T) response_item; if (response is null) { uvm_report_fatal("PUTRSP", format("Failure to cast response to type %s in put_response", RSP_T.stringof), uvm_verbosity.UVM_NONE); } put_base_response(response_item); } // Function- do_print // override void do_print (uvm_printer printer) { super.do_print(printer); printer.print_object("req", req); printer.print_object("rsp", rsp); } }
D
/* TEST_OUTPUT: --- fail_compilation/fail9537.d(26): Error: `foo(tuple(1, 2))` is not an lvalue and cannot be modified --- */ struct Tuple(T...) { T field; alias field this; } Tuple!T tuple(T...)(T args) { return Tuple!T(args); } auto ref foo(T)(auto ref T t) { return t[0]; // t[0] is deduced to non-ref } void main() { int* p = &foo(tuple(1, 2)); }
D
// Copyright © 2011, Jakob Bornecrantz. All rights reserved. // See copyright notice in src/charge/charge.d (GPLv2 only). module charge.sys.resource; import std.string : format; import charge.sys.logger; abstract class Resource { private: Pool pool; uint refcount; string name; string uri; public: static void reference(void* _oldRes, Resource newRes) { // Stupid D type system auto oldRes = cast(Resource*)_oldRes; assert(oldRes !is null); if (newRes !is null) newRes.incRef(); if (*oldRes !is null) (*oldRes).decRef(); *oldRes = newRes; } this(Pool p, string uri, string name) { this.pool = p; this.name = name; this.uri = uri; this.refcount = 1; if (name !is null) p.resource(uri, name, this); } final string getName() { return name; } private: final void incRef() { if (refcount++ == 0) { assert(name !is null); pool.unmark(uri, name); } assert(refcount > 0); } final void decRef() { if (--refcount == 0) { if (name is null) delete this; else pool.mark(uri, name); } } } class Pool { private: mixin Logging; Pool parent; Entry[string] map; Resource[string] marked; uint dynamic; static Pool instance; static struct Entry { Resource res; uint refcount; }; public: static Pool opCall() { if (instance is null) instance = new Pool(); return instance; } Object resource(string uri, string name) { if (name is null) return null; string full = uri~name; auto e = full in map; if (!e) return null; Resource r = e.res; r.incRef; return r; } void collect() { while (marked.length > 0) { auto values = marked.values.dup; auto keys = marked.keys.dup; marked = null; foreach(k; keys) map.remove(k.dup); foreach(v; values) delete v; } } void clean() { collect(); auto values = map.values; auto keys = map.keys; foreach (k; keys) l.warn("did not properly collect \"%s\"", k); } package: void mark(string uri, string name) { string full = uri~name; auto e = full in map; if (e is null) { l.error("tried to mark \"%s\" but it is not found", full); assert(false); } debug { auto r = full in marked; if (r !is null) { l.error("tried to unmark \"%s\" but it is already in the marked list", full); assert(false); } } marked[full] = e.res; } void unmark(string uri, string name) { string full = uri~name; debug { auto e = full in map; if (e is null) { l.error("tried to unmark \"%s\" but it is not found", full); assert(false); } auto r = full in marked; if (r is null) { l.error("tried to unmark \"%s\" but it is not in the marked list", full); assert(false); } } marked.remove(full); } void resource(string uri, string name, Resource r) { string full = uri~name; assert((full in map) is null); assert(r); map[full] = Entry(r, 1); } }
D
// Written in the D programming language module dparse.parser; import dparse.lexer; import dparse.ast; import dparse.rollback_allocator; import dparse.stack_buffer; import stdx.allocator.mallocator; import stdx.allocator; import std.conv; import std.algorithm; import std.array; import std.string : format; // Uncomment this if you want ALL THE OUTPUT // Caution: generates 180 megabytes of logging for std.datetime //version = dparse_verbose; /** * Prototype for a custom parser message function or delegate. * Parameters passed are a file name, a line, a column, a message and a `bool` * that indicates if the message is a warning (`false`) or a if it's an error (`true`). */ alias MessageFunction = void function(string fileName , size_t line, size_t column, string message, bool isError); /// ditto alias MessageDelegate = void delegate(string, size_t, size_t, string, bool); /** * Parser configuration struct */ struct ParserConfig { /// The tokens parsed by dparse.lexer. const(Token)[] tokens; /// The name of the file being parsed string fileName; /// A pointer to a rollback allocator. RollbackAllocator* allocator; /// An optional function used to handle warnings and errors. MessageFunction messageFunction; /// An optional delegate used to handle warnings and errors. /// Set either this one or messageFunction, not both. MessageDelegate messageDelegate; /// An optional pointer to a variable receiving the error count. uint* errorCount; /// An optional pointer to a variable receiving the warning count. uint* warningCount; } /** * Params: * parserConfig = a parser configuration. * Returns: * The parsed module. */ Module parseModule()(auto ref ParserConfig parserConfig) { auto parser = new Parser(); with (parserConfig) { parser.fileName = fileName; parser.tokens = tokens; parser.messageFunction = messageFunction; parser.messageDelegate = messageDelegate; parser.allocator = allocator; } Module mod = parser.parseModule(); with (parserConfig) { if (warningCount !is null) *warningCount = parser.warningCount; if (errorCount !is null) *errorCount = parser.errorCount; } return mod; } /** * Params: * tokens = The tokens parsed by dparse.lexer. * fileName = The name of the file being parsed. * allocator = A pointer to a rollback allocator. * messageFuncOrDg = Either a function or a delegate that receives the parser messages. * errorCount = An optional pointer to a variable receiving the error count. * warningCount = An optional pointer to a variable receiving the warning count. * Returns: * The parsed module. */ Module parseModule(F)(const(Token)[] tokens, string fileName, RollbackAllocator* allocator, F messageFuncOrDg = null, uint* errorCount = null, uint* warningCount = null) { static if (is(F)) { static if (is(F : MessageFunction)) return ParserConfig(tokens, fileName, allocator, messageFuncOrDg, null, errorCount, warningCount).parseModule(); else static if (is(F : MessageDelegate)) return ParserConfig(tokens, fileName, allocator, null, messageFuncOrDg, errorCount, warningCount).parseModule(); else static assert(0, "F must be a MessageFunction or a MessageDelegate"); } else { return ParserConfig(tokens, fileName, allocator, null, null, null, null).parseModule(); } } /** * D Parser. * * It is sometimes useful to sub-class Parser to skip over things that are not * interesting. For example, DCD skips over function bodies when caching symbols * from imported files. */ class Parser { /** * Parses an AddExpression. * * $(GRAMMAR $(RULEDEF addExpression): * $(RULE mulExpression) * | $(RULE addExpression) $(LPAREN)$(LITERAL '+') | $(LITERAL'-') | $(LITERAL'~')$(RPAREN) $(RULE mulExpression) * ;) */ ExpressionNode parseAddExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AddExpression, MulExpression, tok!"+", tok!"-", tok!"~")(); } /** * Parses an AliasDeclaration. * * $(GRAMMAR $(RULEDEF aliasDeclaration): * $(LITERAL 'alias') $(RULE aliasInitializer) $(LPAREN)$(LITERAL ',') $(RULE aliasInitializer)$(RPAREN)* $(LITERAL ';') * | $(LITERAL 'alias') $(RULE storageClass)* $(RULE type) $(RULE declaratorIdentifierList) $(LITERAL ';') * | $(LITERAL 'alias') $(RULE storageClass)* $(RULE type) $(RULE identifier) $(LITERAL '(') $(RULE parameters) $(LITERAL ')') $(memberFunctionAttribute)* $(LITERAL ';') * ;) */ AliasDeclaration parseAliasDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AliasDeclaration; mixin(tokenCheck!"alias"); node.comment = comment; comment = null; if (startsWith(tok!"identifier", tok!"=") || startsWith(tok!"identifier", tok!"(")) { StackBuffer initializers; do { if (!initializers.put(parseAliasInitializer())) return null; if (currentIs(tok!",")) advance(); else break; } while (moreTokens()); ownArray(node.initializers, initializers); } else { StackBuffer storageClasses; while (moreTokens() && isStorageClass()) if (!storageClasses.put(parseStorageClass())) return null; ownArray(node.storageClasses, storageClasses); mixin (parseNodeQ!(`node.type`, `Type`)); mixin (parseNodeQ!(`node.declaratorIdentifierList`, `DeclaratorIdentifierList`)); if (currentIs(tok!"(")) { mixin(parseNodeQ!(`node.parameters`, `Parameters`)); StackBuffer memberFunctionAttributes; while (moreTokens() && currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, memberFunctionAttributes); } } return attachCommentFromSemicolon(node, startIndex); } /** * Parses an AliasInitializer. * * $(GRAMMAR $(RULEDEF aliasInitializer): * $(LITERAL Identifier) $(RULE templateParameters)? $(LITERAL '=') $(RULE storageClass)* $(RULE type) * | $(LITERAL Identifier) $(RULE templateParameters)? $(LITERAL '=') $(RULE storageClass)* $(RULE type) $(RULE parameters) $(RULE memberFunctionAttribute)* * | $(LITERAL Identifier) $(RULE templateParameters)? $(LITERAL '=') $(RULE functionLiteralExpression) * ;) */ AliasInitializer parseAliasInitializer() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AliasInitializer; mixin (tokenCheck!(`node.name`, "identifier")); if (currentIs(tok!"(")) mixin (parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); mixin(tokenCheck!"="); bool isFunction() { if (currentIsOneOf(tok!"function", tok!"delegate", tok!"{")) return true; if (startsWith(tok!"identifier", tok!"=>")) return true; const b = setBookmark(); scope(exit) goToBookmark(b); if (currentIs(tok!"(") || currentIs(tok!"ref") && peekIs(tok!"(")) { if (currentIs(tok!"ref")) advance(); const t = peekPastParens(); if (t !is null) { if (t.type == tok!"=>" || t.type == tok!"{" || isMemberFunctionAttribute(t.type)) return true; } } return false; } if (isFunction) mixin (parseNodeQ!(`node.functionLiteralExpression`, `FunctionLiteralExpression`)); else { StackBuffer storageClasses; while (moreTokens() && isStorageClass()) if (!storageClasses.put(parseStorageClass())) return null; ownArray(node.storageClasses, storageClasses); mixin (parseNodeQ!(`node.type`, `Type`)); if (currentIs(tok!"(")) { mixin (parseNodeQ!(`node.parameters`, `Parameters`)); StackBuffer memberFunctionAttributes; while (moreTokens() && currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, memberFunctionAttributes); } } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AliasThisDeclaration. * * $(GRAMMAR $(RULEDEF aliasThisDeclaration): * $(LITERAL 'alias') $(LITERAL Identifier) $(LITERAL 'this') $(LITERAL ';') * ;) */ AliasThisDeclaration parseAliasThisDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AliasThisDeclaration; mixin(tokenCheck!"alias"); mixin(tokenCheck!(`node.identifier`, "identifier")); mixin(tokenCheck!"this"); return attachCommentFromSemicolon(node, startIndex); } /** * Parses an AlignAttribute. * * $(GRAMMAR $(RULEDEF alignAttribute): * $(LITERAL 'align') ($(LITERAL '$(LPAREN)') $(RULE assignExpression) $(LITERAL '$(RPAREN)'))? * ;) */ AlignAttribute parseAlignAttribute() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AlignAttribute; expect(tok!"align"); if (currentIs(tok!"(")) { mixin(tokenCheck!"("); mixin(parseNodeQ!("node.assignExpression", "AssignExpression")); mixin(tokenCheck!")"); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AndAndExpression. * * $(GRAMMAR $(RULEDEF andAndExpression): * $(RULE orExpression) * | $(RULE andAndExpression) $(LITERAL '&&') $(RULE orExpression) * ;) */ ExpressionNode parseAndAndExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AndAndExpression, OrExpression, tok!"&&")(); } /** * Parses an AndExpression. * * $(GRAMMAR $(RULEDEF andExpression): * $(RULE cmpExpression) * | $(RULE andExpression) $(LITERAL '&') $(RULE cmpExpression) * ;) */ ExpressionNode parseAndExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AndExpression, CmpExpression, tok!"&")(); } /** * Parses an ArgumentList. * * $(GRAMMAR $(RULEDEF argumentList): * $(RULE assignExpression) ($(LITERAL ',') $(RULE assignExpression)?)* * ;) */ ArgumentList parseArgumentList() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens) { error("argument list expected instead of EOF"); return null; } size_t startLocation = current().index; auto node = parseCommaSeparatedRule!(ArgumentList, AssignExpression)(true); mixin (nullCheck!`node`); node.startLocation = startLocation; if (moreTokens) node.endLocation = current().index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses Arguments. * * $(GRAMMAR $(RULEDEF arguments): * $(LITERAL '$(LPAREN)') $(RULE argumentList)? $(LITERAL '$(RPAREN)') * ;) */ Arguments parseArguments() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Arguments; mixin(tokenCheck!"("); if (!currentIs(tok!")")) mixin (parseNodeQ!(`node.argumentList`, `ArgumentList`)); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ArrayInitializer. * * $(GRAMMAR $(RULEDEF arrayInitializer): * $(LITERAL '[') $(LITERAL ']') * | $(LITERAL '[') $(RULE arrayMemberInitialization) ($(LITERAL ',') $(RULE arrayMemberInitialization)?)* $(LITERAL ']') * ;) */ ArrayInitializer parseArrayInitializer() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ArrayInitializer; const open = expect(tok!"["); mixin (nullCheck!`open`); node.startLocation = open.index; StackBuffer arrayMemberInitializations; while (moreTokens()) { if (currentIs(tok!"]")) break; if (!arrayMemberInitializations.put(parseArrayMemberInitialization())) return null; if (currentIs(tok!",")) advance(); else break; } ownArray(node.arrayMemberInitializations, arrayMemberInitializations); const close = expect(tok!"]"); mixin (nullCheck!`close`); node.endLocation = close.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ArrayLiteral. * * $(GRAMMAR $(RULEDEF arrayLiteral): * $(LITERAL '[') $(RULE argumentList)? $(LITERAL ']') * ;) */ ArrayLiteral parseArrayLiteral() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ArrayLiteral; mixin(tokenCheck!"["); if (!currentIs(tok!"]")) mixin (parseNodeQ!(`node.argumentList`, `ArgumentList`)); mixin(tokenCheck!"]"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ArrayMemberInitialization. * * $(GRAMMAR $(RULEDEF arrayMemberInitialization): * ($(RULE assignExpression) $(LITERAL ':'))? $(RULE nonVoidInitializer) * ;) */ ArrayMemberInitialization parseArrayMemberInitialization() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ArrayMemberInitialization; switch (current.type) { case tok!"[": immutable b = setBookmark(); skipBrackets(); if (currentIs(tok!":")) { goToBookmark(b); mixin (parseNodeQ!(`node.assignExpression`, `AssignExpression`)); advance(); // : mixin (parseNodeQ!(`node.nonVoidInitializer`, `NonVoidInitializer`)); break; } else { goToBookmark(b); goto case; } case tok!"{": mixin (parseNodeQ!(`node.nonVoidInitializer`, `NonVoidInitializer`)); break; default: auto assignExpression = parseAssignExpression(); mixin (nullCheck!`assignExpression`); if (currentIs(tok!":")) { node.assignExpression = assignExpression; advance(); mixin(parseNodeQ!(`node.nonVoidInitializer`, `NonVoidInitializer`)); } else { node.nonVoidInitializer = allocator.make!NonVoidInitializer; node.nonVoidInitializer.assignExpression = assignExpression; } } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmAddExp * * $(GRAMMAR $(RULEDEF asmAddExp): * $(RULE asmMulExp) * | $(RULE asmAddExp) ($(LITERAL '+') | $(LITERAL '-')) $(RULE asmMulExp) * ;) */ ExpressionNode parseAsmAddExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmAddExp, AsmMulExp, tok!"+", tok!"-")(); } /** * Parses an AsmAndExp * * $(GRAMMAR $(RULEDEF asmAndExp): * $(RULE asmEqualExp) * | $(RULE asmAndExp) $(LITERAL '&') $(RULE asmEqualExp) * ;) */ ExpressionNode parseAsmAndExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmAndExp, AsmEqualExp, tok!"&"); } /** * Parses an AsmBrExp * * $(GRAMMAR $(RULEDEF asmBrExp): * $(RULE asmUnaExp) * | $(RULE asmBrExp)? $(LITERAL '[') $(RULE asmExp) $(LITERAL ']') * ;) */ AsmBrExp parseAsmBrExp() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens) { error("Found end-of-file when expecting an AsmBrExp", false); return null; } AsmBrExp node = allocator.make!AsmBrExp(); size_t line = current.line; size_t column = current.column; if (currentIs(tok!"[")) { advance(); // [ mixin (parseNodeQ!(`node.asmExp`, `AsmExp`)); mixin(tokenCheck!"]"); if (currentIs(tok!"[")) goto brLoop; } else { mixin(parseNodeQ!(`node.asmUnaExp`, `AsmUnaExp`)); brLoop: while (currentIs(tok!"[")) { AsmBrExp br = allocator.make!AsmBrExp(); // huehuehuehue br.asmBrExp = node; br.line = current().line; br.column = current().column; node = br; node.line = line; node.column = column; advance(); // [ mixin(parseNodeQ!(`node.asmExp`, `AsmExp`)); mixin(tokenCheck!"]"); } } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmEqualExp * * $(GRAMMAR $(RULEDEF asmEqualExp): * $(RULE asmRelExp) * | $(RULE asmEqualExp) ('==' | '!=') $(RULE asmRelExp) * ;) */ ExpressionNode parseAsmEqualExp() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmEqualExp, AsmRelExp, tok!"==", tok!"!=")(); } /** * Parses an AsmExp * * $(GRAMMAR $(RULEDEF asmExp): * $(RULE asmLogOrExp) ($(LITERAL '?') $(RULE asmExp) $(LITERAL ':') $(RULE asmExp))? * ;) */ ExpressionNode parseAsmExp() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; AsmExp node = allocator.make!AsmExp; mixin(parseNodeQ!(`node.left`, `AsmLogOrExp`)); if (currentIs(tok!"?")) { advance(); mixin(parseNodeQ!(`node.middle`, `AsmExp`)); mixin(tokenCheck!":"); mixin(parseNodeQ!(`node.right`, `AsmExp`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmInstruction * * $(GRAMMAR $(RULEDEF asmInstruction): * $(LITERAL Identifier) * | $(LITERAL 'align') $(LITERAL IntegerLiteral) * | $(LITERAL 'align') $(LITERAL Identifier) * | $(LITERAL Identifier) $(LITERAL ':') $(RULE asmInstruction) * | $(LITERAL Identifier) $(RULE operands) * | $(LITERAL 'in') $(RULE operands) * | $(LITERAL 'out') $(RULE operands) * | $(LITERAL 'int') $(RULE operands) * | $(LITERAL ';') * ;) */ AsmInstruction parseAsmInstruction() { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; AsmInstruction node = allocator.make!AsmInstruction; if (currentIs(tok!";")) { warn("Empty asm instruction"); node.tokens = tokens[startIndex .. index]; return node; } if (currentIs(tok!"align")) { advance(); // align node.hasAlign = true; if (currentIsOneOf(tok!"intLiteral", tok!"identifier")) { node.identifierOrIntegerOrOpcode = advance(); if (!currentIs(tok!";")) { error("`;` expected."); if (moreTokens()) advance(); return null; } } else { error("Identifier or integer literal expected."); return null; } } else if (currentIsOneOf(tok!"identifier", tok!"in", tok!"out", tok!"int")) { node.identifierOrIntegerOrOpcode = advance(); if (node.identifierOrIntegerOrOpcode == tok!"identifier" && currentIs(tok!":")) { advance(); // : node.isLabel = true; if (currentIs(tok!";")) { node.tokens = tokens[startIndex .. index]; return node; } mixin(parseNodeQ!(`node.asmInstruction`, `AsmInstruction`)); } else if (!currentIs(tok!";")) mixin(parseNodeQ!(`node.operands`, `Operands`)); } else { error("identifier or `align` expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmLogAndExp * * $(GRAMMAR $(RULEDEF asmLogAndExp): * $(RULE asmOrExp) * $(RULE asmLogAndExp) $(LITERAL '&&') $(RULE asmOrExp) * ;) */ ExpressionNode parseAsmLogAndExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmLogAndExp, AsmOrExp, tok!"&&"); } /** * Parses an AsmLogOrExp * * $(GRAMMAR $(RULEDEF asmLogOrExp): * $(RULE asmLogAndExp) * | $(RULE asmLogOrExp) '||' $(RULE asmLogAndExp) * ;) */ ExpressionNode parseAsmLogOrExp() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmLogOrExp, AsmLogAndExp, tok!"||")(); } /** * Parses an AsmMulExp * * $(GRAMMAR $(RULEDEF asmMulExp): * $(RULE asmBrExp) * | $(RULE asmMulExp) ($(LITERAL '*') | $(LITERAL '/') | $(LITERAL '%')) $(RULE asmBrExp) * ;) */ ExpressionNode parseAsmMulExp() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmMulExp, AsmBrExp, tok!"*", tok!"/", tok!"%")(); } /** * Parses an AsmOrExp * * $(GRAMMAR $(RULEDEF asmOrExp): * $(RULE asmXorExp) * | $(RULE asmOrExp) $(LITERAL '|') $(RULE asmXorExp) * ;) */ ExpressionNode parseAsmOrExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmOrExp, AsmXorExp, tok!"|")(); } /** * Parses an AsmPrimaryExp * * $(GRAMMAR $(RULEDEF asmPrimaryExp): * $(LITERAL IntegerLiteral) * | $(LITERAL FloatLiteral) * | $(LITERAL StringLiteral) * | $(RULE register) * | $(RULE register : AsmExp) * | $(RULE identifierChain) * | $(LITERAL '$') * ;) */ AsmPrimaryExp parseAsmPrimaryExp() { import std.range : assumeSorted; mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; AsmPrimaryExp node = allocator.make!AsmPrimaryExp(); switch (current().type) { foreach (NL; NumberLiterals) {case NL:} case tok!"stringLiteral": case tok!"$": node.token = advance(); break; case tok!"identifier": if (assumeSorted(REGISTER_NAMES).equalRange(current().text).length > 0) { trace("Found register"); mixin (nullCheck!`(node.register = parseRegister())`); if (currentIs(tok!":")) { advance(); mixin(parseNodeQ!(`node.segmentOverrideSuffix`, `AsmExp`)); } } else mixin(parseNodeQ!(`node.identifierChain`, `IdentifierChain`)); break; default: error("Float literal, integer literal, `$`, or identifier expected."); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmRelExp * * $(GRAMMAR $(RULEDEF asmRelExp): * $(RULE asmShiftExp) * | $(RULE asmRelExp) (($(LITERAL '<') | $(LITERAL '<=') | $(LITERAL '>') | $(LITERAL '>=')) $(RULE asmShiftExp))? * ;) */ ExpressionNode parseAsmRelExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmRelExp, AsmShiftExp, tok!"<", tok!"<=", tok!">", tok!">=")(); } /** * Parses an AsmShiftExp * * $(GRAMMAR $(RULEDEF asmShiftExp): * $(RULE asmAddExp) * $(RULE asmShiftExp) ($(LITERAL '<<') | $(LITERAL '>>') | $(LITERAL '>>>')) $(RULE asmAddExp) * ;) */ ExpressionNode parseAsmShiftExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmShiftExp, AsmAddExp, tok!"<<", tok!">>", tok!">>>"); } /** * Parses an AsmStatement * * $(GRAMMAR $(RULEDEF asmStatement): * $(LITERAL 'asm') $(RULE functionAttributes)? $(LITERAL '{') $(RULE asmInstruction)+ $(LITERAL '}') * ;) */ AsmStatement parseAsmStatement() { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; AsmStatement node = allocator.make!AsmStatement; advance(); // asm StackBuffer functionAttributes; while (isAttribute()) { if (!functionAttributes.put(parseFunctionAttribute())) { error("Function attribute or `{` expected"); return null; } } ownArray(node.functionAttributes, functionAttributes); expect(tok!"{"); StackBuffer instructions; while (moreTokens() && !currentIs(tok!"}")) { auto c = allocator.setCheckpoint(); if (!instructions.put(parseAsmInstruction())) allocator.rollback(c); else expect(tok!";"); } ownArray(node.asmInstructions, instructions); expect(tok!"}"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmTypePrefix * * Note that in the following grammar definition the first identifier must * be "near", "far", "word", "dword", or "qword". The second identifier must * be "ptr". * * $(GRAMMAR $(RULEDEF asmTypePrefix): * $(LITERAL Identifier) $(LITERAL Identifier)? * | $(LITERAL 'byte') $(LITERAL Identifier)? * | $(LITERAL 'short') $(LITERAL Identifier)? * | $(LITERAL 'int') $(LITERAL Identifier)? * | $(LITERAL 'float') $(LITERAL Identifier)? * | $(LITERAL 'double') $(LITERAL Identifier)? * | $(LITERAL 'real') $(LITERAL Identifier)? * ;) */ AsmTypePrefix parseAsmTypePrefix() { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; switch (current().type) { case tok!"identifier": case tok!"byte": case tok!"short": case tok!"int": case tok!"float": case tok!"double": case tok!"real": AsmTypePrefix node = allocator.make!AsmTypePrefix(); node.left = advance(); if (node.left.type == tok!"identifier") switch (node.left.text) { case "near": case "far": case "word": case "dword": case "qword": break; default: error("ASM type node expected"); return null; } if (currentIs(tok!"identifier") && current().text == "ptr") node.right = advance(); node.tokens = tokens[startIndex .. index]; return node; default: error("Expected an identifier, `byte`, `short`, `int`, `float`, `double`, or `real`"); return null; } } /** * Parses an AsmUnaExp * * $(GRAMMAR $(RULEDEF asmUnaExp): * $(RULE asmTypePrefix) $(RULE asmExp) * | $(LITERAL Identifier) $(RULE asmExp) * | $(LITERAL '+') $(RULE asmUnaExp) * | $(LITERAL '-') $(RULE asmUnaExp) * | $(LITERAL '!') $(RULE asmUnaExp) * | $(LITERAL '~') $(RULE asmUnaExp) * | $(RULE asmPrimaryExp) * ;) */ AsmUnaExp parseAsmUnaExp() { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; AsmUnaExp node = allocator.make!AsmUnaExp(); switch (current().type) { case tok!"+": case tok!"-": case tok!"!": case tok!"~": node.prefix = advance(); mixin(parseNodeQ!(`node.asmUnaExp`, `AsmUnaExp`)); break; case tok!"byte": case tok!"short": case tok!"int": case tok!"float": case tok!"double": case tok!"real": typePrefix: mixin(parseNodeQ!(`node.asmTypePrefix`, `AsmTypePrefix`)); mixin(parseNodeQ!(`node.asmExp`, `AsmExp`)); break; case tok!"identifier": switch (current().text) { case "offsetof": case "seg": node.prefix = advance(); mixin(parseNodeQ!(`node.asmExp`, `AsmExp`)); break; case "near": case "far": case "word": case "dword": case "qword": goto typePrefix; default: goto outerDefault; } break; outerDefault: default: mixin(parseNodeQ!(`node.asmPrimaryExp`, `AsmPrimaryExp`)); break; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AsmXorExp * * $(GRAMMAR $(RULEDEF asmXorExp): * $(RULE asmAndExp) * | $(RULE asmXorExp) $(LITERAL '^') $(RULE asmAndExp) * ;) */ ExpressionNode parseAsmXorExp() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(AsmXorExp, AsmAndExp, tok!"^")(); } /** * Parses an AssertArguments * * $(GRAMMAR $(RULEDEF assertArguments): * $(RULE assignExpression) ($(LITERAL ',') $(RULE assignExpression))? $(LITERAL ',')? * ;) */ AssertArguments parseAssertArguments() { auto startIndex = index; auto node = allocator.make!AssertArguments; mixin(parseNodeQ!(`node.assertion`, `AssignExpression`)); if (currentIs(tok!",")) advance(); if (currentIs(tok!")")) return node; mixin(parseNodeQ!(`node.message`, `AssignExpression`)); if (currentIs(tok!",")) advance(); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AssertExpression * * $(GRAMMAR $(RULEDEF assertExpression): * $(LITERAL 'assert') $(LITERAL '$(LPAREN)') $(RULE assertArguments) $(LITERAL '$(RPAREN)') * ;) */ AssertExpression parseAssertExpression() { auto startIndex = index; mixin(traceEnterAndExit!(__FUNCTION__)); auto node = allocator.make!AssertExpression; node.line = current.line; node.column = current.column; advance(); // "assert" mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.assertArguments`, `AssertArguments`)); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AssignExpression * * $(GRAMMAR $(RULEDEF assignExpression): * $(RULE ternaryExpression) ($(RULE assignOperator) $(RULE assignExpression))? * ; *$(RULEDEF assignOperator): * $(LITERAL '=') * | $(LITERAL '>>>=') * | $(LITERAL '>>=') * | $(LITERAL '<<=') * | $(LITERAL '+=') * | $(LITERAL '-=') * | $(LITERAL '*=') * | $(LITERAL '%=') * | $(LITERAL '&=') * | $(LITERAL '/=') * | $(LITERAL '|=') * | $(LITERAL '^^=') * | $(LITERAL '^=') * | $(LITERAL '~=') * ;) */ ExpressionNode parseAssignExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens) { error("Assign expression expected instead of EOF"); return null; } auto ternary = parseTernaryExpression(); if (ternary is null) return null; if (currentIsOneOf(tok!"=", tok!">>>=", tok!">>=", tok!"<<=", tok!"+=", tok!"-=", tok!"*=", tok!"%=", tok!"&=", tok!"/=", tok!"|=", tok!"^^=", tok!"^=", tok!"~=")) { auto node = allocator.make!AssignExpression; node.line = current().line; node.column = current().column; node.ternaryExpression = ternary; node.operator = advance().type; mixin(parseNodeQ!(`node.expression`, `AssignExpression`)); node.tokens = tokens[startIndex .. index]; return node; } return ternary; } /** * Parses an AssocArrayLiteral * * $(GRAMMAR $(RULEDEF assocArrayLiteral): * $(LITERAL '[') $(RULE keyValuePairs) $(LITERAL ']') * ;) */ AssocArrayLiteral parseAssocArrayLiteral() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin (simpleParse!(AssocArrayLiteral, tok!"[", "keyValuePairs|parseKeyValuePairs", tok!"]")); } /** * Parses an AtAttribute * * $(GRAMMAR $(RULEDEF atAttribute): * $(LITERAL '@') $(LITERAL Identifier) * | $(LITERAL '@') $(LITERAL Identifier) $(LITERAL '$(LPAREN)') $(RULE argumentList)? $(LITERAL '$(RPAREN)') * | $(LITERAL '@') $(LITERAL '$(LPAREN)') $(RULE argumentList) $(LITERAL '$(RPAREN)') * | $(LITERAL '@') $(RULE templateInstance) * ;) */ AtAttribute parseAtAttribute() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AtAttribute; const start = expect(tok!"@"); mixin (nullCheck!`start`); if (!moreTokens) { error("`(`, or identifier expected"); return null; } node.startLocation = start.index; switch (current.type) { case tok!"identifier": if (peekIs(tok!"!")) mixin(parseNodeQ!(`node.templateInstance`, `TemplateInstance`)); else node.identifier = advance(); if (currentIs(tok!"(")) { advance(); // ( node.useParen = true; if (!currentIs(tok!")")) mixin(parseNodeQ!(`node.argumentList`, `ArgumentList`)); expect(tok!")"); } break; case tok!"(": advance(); node.useParen = true; mixin(parseNodeQ!(`node.argumentList`, `ArgumentList`)); expect(tok!")"); break; default: error("`(`, or identifier expected"); return null; } if (moreTokens) node.endLocation = current().index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an Attribute * * $(GRAMMAR $(RULEDEF attribute): * $(RULE pragmaExpression) * | $(RULE alignAttribute) * | $(RULE deprecated) * | $(RULE atAttribute) * | $(RULE linkageAttribute) * | $(LITERAL 'export') * | $(LITERAL 'package') ($(LITERAL "(") $(RULE identifierChain) $(LITERAL ")"))? * | $(LITERAL 'private') * | $(LITERAL 'protected') * | $(LITERAL 'public') * | $(LITERAL 'static') * | $(LITERAL 'extern') * | $(LITERAL 'abstract') * | $(LITERAL 'final') * | $(LITERAL 'override') * | $(LITERAL 'synchronized') * | $(LITERAL 'auto') * | $(LITERAL 'scope') * | $(LITERAL 'const') * | $(LITERAL 'immutable') * | $(LITERAL 'inout') * | $(LITERAL 'shared') * | $(LITERAL '__gshared') * | $(LITERAL 'nothrow') * | $(LITERAL 'pure') * | $(LITERAL 'ref') * ;) */ Attribute parseAttribute() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Attribute; switch (current.type) { case tok!"pragma": mixin(parseNodeQ!(`node.pragmaExpression`, `PragmaExpression`)); break; case tok!"deprecated": mixin(parseNodeQ!(`node.deprecated_`, `Deprecated`)); break; case tok!"align": mixin(parseNodeQ!(`node.alignAttribute`, `AlignAttribute`)); break; case tok!"@": mixin(parseNodeQ!(`node.atAttribute`, `AtAttribute`)); break; case tok!"package": node.attribute = advance(); if (currentIs(tok!"(")) { expect(tok!"("); mixin(parseNodeQ!(`node.identifierChain`, `IdentifierChain`)); expect(tok!")"); } break; case tok!"extern": if (peekIs(tok!"(")) { mixin(parseNodeQ!(`node.linkageAttribute`, `LinkageAttribute`)); break; } else goto case; case tok!"private": case tok!"protected": case tok!"public": case tok!"export": case tok!"static": case tok!"abstract": case tok!"final": case tok!"override": case tok!"synchronized": case tok!"auto": case tok!"scope": case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": case tok!"__gshared": case tok!"nothrow": case tok!"pure": case tok!"ref": node.attribute = advance(); break; default: return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AttributeDeclaration * * $(GRAMMAR $(RULEDEF attributeDeclaration): * $(RULE _attribute) $(LITERAL ':') * ;) */ AttributeDeclaration parseAttributeDeclaration(Attribute attribute = null) { auto startIndex = index; auto node = allocator.make!AttributeDeclaration; node.line = current.line; node.attribute = attribute is null ? parseAttribute() : attribute; expect(tok!":"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an AutoDeclaration * * $(GRAMMAR $(RULEDEF autoDeclaration): * $(RULE storageClass)+ $(RULE autoDeclarationPart) ($(LITERAL ',') $(RULE autoDeclarationPart))* $(LITERAL ';') * ;) */ AutoDeclaration parseAutoDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AutoDeclaration; node.comment = comment; comment = null; StackBuffer storageClasses; while (isStorageClass()) if (!storageClasses.put(parseStorageClass())) return null; ownArray(node.storageClasses, storageClasses); StackBuffer parts; do { if (!parts.put(parseAutoDeclarationPart())) return null; if (currentIs(tok!",")) advance(); else break; } while (moreTokens()); ownArray(node.parts, parts); return attachCommentFromSemicolon(node, startIndex); } /** * Parses an AutoDeclarationPart * * $(GRAMMAR $(RULEDEF autoDeclarationPart): * $(LITERAL Identifier) $(RULE templateParameters)? $(LITERAL '=') $(RULE initializer) * ;) */ AutoDeclarationPart parseAutoDeclarationPart() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto part = allocator.make!AutoDeclarationPart; auto i = expect(tok!"identifier"); if (i is null) return null; part.identifier = *i; if (currentIs(tok!"(")) mixin(parseNodeQ!("part.templateParameters", "TemplateParameters")); mixin(tokenCheck!"="); mixin(parseNodeQ!("part.initializer", "Initializer")); part.tokens = tokens[startIndex .. index]; return part; } /** * Parses a BlockStatement * * $(GRAMMAR $(RULEDEF blockStatement): * $(LITERAL '{') $(RULE declarationsAndStatements)? $(LITERAL '}') * ;) */ BlockStatement parseBlockStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!BlockStatement; const openBrace = expect(tok!"{"); mixin (nullCheck!`openBrace`); node.startLocation = openBrace.index; if (!currentIs(tok!"}")) { mixin(parseNodeQ!(`node.declarationsAndStatements`, `DeclarationsAndStatements`)); } const closeBrace = expect(tok!"}"); if (closeBrace !is null) node.endLocation = closeBrace.index; else { trace("Could not find end of block statement."); node.endLocation = size_t.max; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a BreakStatement * * $(GRAMMAR $(RULEDEF breakStatement): * $(LITERAL 'break') $(LITERAL Identifier)? $(LITERAL ';') * ;) */ BreakStatement parseBreakStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; expect(tok!"break"); if (!moreTokens) return null; auto node = allocator.make!BreakStatement; switch (current.type) { case tok!"identifier": node.label = advance(); mixin(tokenCheck!";"); break; case tok!";": advance(); break; default: error("Identifier or semicolon expected following `break`"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a BaseClass * * $(GRAMMAR $(RULEDEF baseClass): * $(RULE type2) * ;) */ BaseClass parseBaseClass() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!BaseClass; if (!moreTokens) return null; if (current.type.isProtection()) { warn("Use of base class protection is deprecated."); advance(); } if ((node.type2 = parseType2()) is null) { return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a BaseClassList * * $(GRAMMAR $(RULEDEF baseClassList): * $(RULE baseClass) ($(LITERAL ',') $(RULE baseClass))* * ;) */ BaseClassList parseBaseClassList() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseCommaSeparatedRule!(BaseClassList, BaseClass)(); } /** * Parses an BuiltinType * * $(GRAMMAR $(RULEDEF builtinType): * $(LITERAL 'bool') * | $(LITERAL 'byte') * | $(LITERAL 'ubyte') * | $(LITERAL 'short') * | $(LITERAL 'ushort') * | $(LITERAL 'int') * | $(LITERAL 'uint') * | $(LITERAL 'long') * | $(LITERAL 'ulong') * | $(LITERAL 'char') * | $(LITERAL 'wchar') * | $(LITERAL 'dchar') * | $(LITERAL 'float') * | $(LITERAL 'double') * | $(LITERAL 'real') * | $(LITERAL 'ifloat') * | $(LITERAL 'idouble') * | $(LITERAL 'ireal') * | $(LITERAL 'cfloat') * | $(LITERAL 'cdouble') * | $(LITERAL 'creal') * | $(LITERAL 'void') * ;) */ IdType parseBuiltinType() { mixin(traceEnterAndExit!(__FUNCTION__)); return advance().type; } /** * Parses a CaseRangeStatement * * $(GRAMMAR $(RULEDEF caseRangeStatement): * $(LITERAL 'case') $(RULE assignExpression) $(LITERAL ':') $(LITERAL '...') $(LITERAL 'case') $(RULE assignExpression) $(LITERAL ':') $(RULE declarationsAndStatements) * ;) */ CaseRangeStatement parseCaseRangeStatement(ExpressionNode low) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!CaseRangeStatement; assert (low !is null); node.low = low; mixin(tokenCheck!":"); mixin(tokenCheck!".."); expect(tok!"case"); mixin(parseNodeQ!(`node.high`, `AssignExpression`)); const colon = expect(tok!":"); if (colon is null) return null; node.colonLocation = colon.index; mixin(parseNodeQ!(`node.declarationsAndStatements`, `DeclarationsAndStatements`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an CaseStatement * * $(GRAMMAR $(RULEDEF caseStatement): * $(LITERAL 'case') $(RULE _argumentList) $(LITERAL ':') $(RULE declarationsAndStatements) * ;) */ CaseStatement parseCaseStatement(ArgumentList argumentList = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!CaseStatement; node.argumentList = argumentList; const colon = expect(tok!":"); if (colon is null) return null; node.colonLocation = colon.index; mixin (nullCheck!`node.declarationsAndStatements = parseDeclarationsAndStatements(false)`); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a CastExpression * * $(GRAMMAR $(RULEDEF castExpression): * $(LITERAL 'cast') $(LITERAL '$(LPAREN)') ($(RULE type) | $(RULE castQualifier))? $(LITERAL '$(RPAREN)') $(RULE unaryExpression) * ;) */ CastExpression parseCastExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!CastExpression; expect(tok!"cast"); mixin(tokenCheck!"("); if (!currentIs(tok!")")) { if (isCastQualifier()) mixin(parseNodeQ!(`node.castQualifier`, `CastQualifier`)); else mixin(parseNodeQ!(`node.type`, `Type`)); } mixin(tokenCheck!")"); mixin(parseNodeQ!(`node.unaryExpression`, `UnaryExpression`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a CastQualifier * * $(GRAMMAR $(RULEDEF castQualifier): * $(LITERAL 'const') * | $(LITERAL 'const') $(LITERAL 'shared') * | $(LITERAL 'immutable') * | $(LITERAL 'inout') * | $(LITERAL 'inout') $(LITERAL 'shared') * | $(LITERAL 'shared') * | $(LITERAL 'shared') $(LITERAL 'const') * | $(LITERAL 'shared') $(LITERAL 'inout') * ;) */ CastQualifier parseCastQualifier() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!CastQualifier; if (!moreTokens) return null; switch (current.type) { case tok!"inout": case tok!"const": node.first = advance(); if (currentIs(tok!"shared")) node.second = advance(); break; case tok!"shared": node.first = advance(); if (currentIsOneOf(tok!"const", tok!"inout")) node.second = advance(); break; case tok!"immutable": node.first = advance(); break; default: error("`const`, `immutable`, `inout`, or `shared` expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Catch * * $(GRAMMAR $(RULEDEF catch): * $(LITERAL 'catch') $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL Identifier)? $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) * ;) */ Catch parseCatch() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Catch; expect(tok!"catch"); mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.type`, `Type`)); if (currentIs(tok!"identifier")) node.identifier = advance(); mixin(tokenCheck!")"); mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Catches * * $(GRAMMAR $(RULEDEF catches): * $(RULE catch)+ * | $(RULE catch)* $(RULE lastCatch) * ;) */ Catches parseCatches() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Catches; StackBuffer catches; while (moreTokens()) { if (!currentIs(tok!"catch")) break; if (peekIs(tok!"(")) { if (!catches.put(parseCatch())) return null; } else { mixin(parseNodeQ!(`node.lastCatch`, `LastCatch`)); break; } } ownArray(node.catches, catches); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ClassDeclaration * * $(GRAMMAR $(RULEDEF classDeclaration): * $(LITERAL 'class') $(LITERAL Identifier) $(LITERAL ';') * | $(LITERAL 'class') $(LITERAL Identifier) ($(LITERAL ':') $(RULE baseClassList))? $(RULE structBody) * | $(LITERAL 'class') $(LITERAL Identifier) $(RULE templateParameters) $(RULE constraint)? ($(RULE structBody) | $(LITERAL ';')) * | $(LITERAL 'class') $(LITERAL Identifier) $(RULE templateParameters) $(RULE constraint)? ($(LITERAL ':') $(RULE baseClassList))? $(RULE structBody) * | $(LITERAL 'class') $(LITERAL Identifier) $(RULE templateParameters) ($(LITERAL ':') $(RULE baseClassList))? $(RULE constraint)? $(RULE structBody) * ;) */ ClassDeclaration parseClassDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ClassDeclaration; expect(tok!"class"); return parseInterfaceOrClass(node, startIndex); } /** * Parses a CmpExpression * * $(GRAMMAR $(RULEDEF cmpExpression): * $(RULE shiftExpression) * | $(RULE equalExpression) * | $(RULE identityExpression) * | $(RULE relExpression) * | $(RULE inExpression) * ;) */ ExpressionNode parseCmpExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto shift = parseShiftExpression(); if (shift is null) return null; if (!moreTokens()) return shift; switch (current.type) { case tok!"is": auto node = allocator.make!CmpExpression; mixin (nullCheck!`node.identityExpression = parseIdentityExpression(shift)`); node.tokens = tokens[startIndex .. index]; return node; case tok!"in": auto node = allocator.make!CmpExpression; mixin (nullCheck!`node.inExpression = parseInExpression(shift)`); node.tokens = tokens[startIndex .. index]; return node; case tok!"!": auto node = allocator.make!CmpExpression; if (peekIs(tok!"is")) mixin (nullCheck!`node.identityExpression = parseIdentityExpression(shift)`); else if (peekIs(tok!"in")) mixin (nullCheck!`node.inExpression = parseInExpression(shift)`); node.tokens = tokens[startIndex .. index]; return node; case tok!"<": case tok!"<=": case tok!">": case tok!">=": case tok!"!<>=": case tok!"!<>": case tok!"<>": case tok!"<>=": case tok!"!>": case tok!"!>=": case tok!"!<": case tok!"!<=": auto node = allocator.make!CmpExpression; mixin (nullCheck!`node.relExpression = parseRelExpression(shift)`); node.tokens = tokens[startIndex .. index]; return node; case tok!"==": case tok!"!=": auto node = allocator.make!CmpExpression; mixin (nullCheck!`node.equalExpression = parseEqualExpression(shift)`); node.tokens = tokens[startIndex .. index]; return node; default: return shift; } } /** * Parses a CompileCondition * * $(GRAMMAR $(RULEDEF compileCondition): * $(RULE versionCondition) * | $(RULE debugCondition) * | $(RULE staticIfCondition) * ;) */ CompileCondition parseCompileCondition() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!CompileCondition; if (!moreTokens) return null; switch (current.type) { case tok!"version": mixin(parseNodeQ!(`node.versionCondition`, `VersionCondition`)); break; case tok!"debug": mixin(parseNodeQ!(`node.debugCondition`, `DebugCondition`)); break; case tok!"static": mixin(parseNodeQ!(`node.staticIfCondition`, `StaticIfCondition`)); break; default: error("`version`, `debug`, or `static` expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ConditionalDeclaration * * $(GRAMMAR $(RULEDEF conditionalDeclaration): * $(RULE compileCondition) $(RULE declaration) * | $(RULE compileCondition) $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * | $(RULE compileCondition) $(LITERAL ':') $(RULE declaration)+ * | $(RULE compileCondition) $(RULE declaration) $(LITERAL 'else') $(LITERAL ':') $(RULE declaration)* * | $(RULE compileCondition) $(RULE declaration) $(LITERAL 'else') $(RULE declaration) * | $(RULE compileCondition) $(RULE declaration) $(LITERAL 'else') $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * | $(RULE compileCondition) $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') $(LITERAL 'else') $(RULE declaration) * | $(RULE compileCondition) $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') $(LITERAL 'else') $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * | $(RULE compileCondition) $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') $(LITERAL 'else') $(LITERAL ':') $(RULE declaration)* * | $(RULE compileCondition) $(LITERAL ':') $(RULE declaration)+ $(LITERAL 'else') $(RULE declaration) * | $(RULE compileCondition) $(LITERAL ':') $(RULE declaration)+ $(LITERAL 'else') $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * | $(RULE compileCondition) $(LITERAL ':') $(RULE declaration)+ $(LITERAL 'else') $(LITERAL ':') $(RULE declaration)* * ;) */ ConditionalDeclaration parseConditionalDeclaration(bool strict) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ConditionalDeclaration; mixin(parseNodeQ!(`node.compileCondition`, `CompileCondition`)); StackBuffer trueDeclarations; if (currentIs(tok!":") || currentIs(tok!"{")) { immutable bool brace = advance() == tok!"{"; node.trueStyle = currentIs(tok!":") ? DeclarationListStyle.colon : brace ? DeclarationListStyle.block : DeclarationListStyle.single; while (moreTokens() && !currentIs(tok!"}") && !currentIs(tok!"else")) { immutable c = allocator.setCheckpoint(); if (!trueDeclarations.put(parseDeclaration(strict, true))) { allocator.rollback(c); return null; } } if (brace) mixin(tokenCheck!"}"); } else if (!trueDeclarations.put(parseDeclaration(strict, true))) return null; ownArray(node.trueDeclarations, trueDeclarations); if (currentIs(tok!"else")) { node.hasElse = true; advance(); } else { node.tokens = tokens[startIndex .. index]; return node; } StackBuffer falseDeclarations; if (currentIs(tok!":") || currentIs(tok!"{")) { immutable bool brace = currentIs(tok!"{"); node.falseStyle = currentIs(tok!":") ? DeclarationListStyle.colon : brace ? DeclarationListStyle.block : DeclarationListStyle.single; advance(); while (moreTokens() && !currentIs(tok!"}")) if (!falseDeclarations.put(parseDeclaration(strict, true))) return null; if (brace) mixin(tokenCheck!"}"); } else { if (!falseDeclarations.put(parseDeclaration(strict, true))) return null; } ownArray(node.falseDeclarations, falseDeclarations); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ConditionalStatement * * $(GRAMMAR $(RULEDEF conditionalStatement): * $(RULE compileCondition) $(RULE declarationOrStatement) ($(LITERAL 'else') $(RULE declarationOrStatement))? * ;) */ ConditionalStatement parseConditionalStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ConditionalStatement; mixin(parseNodeQ!(`node.compileCondition`, `CompileCondition`)); mixin(parseNodeQ!(`node.trueStatement`, `DeclarationOrStatement`)); if (currentIs(tok!"else")) { advance(); mixin(parseNodeQ!(`node.falseStatement`, `DeclarationOrStatement`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Constraint * * $(GRAMMAR $(RULEDEF constraint): * $(LITERAL 'if') $(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)') * ;) */ Constraint parseConstraint() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Constraint; auto ifToken = expect(tok!"if"); mixin (nullCheck!`ifToken`); node.location = ifToken.index; mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.expression`, `Expression`)); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Constructor * * $(GRAMMAR $(RULEDEF constructor): * $(LITERAL 'this') $(RULE templateParameters)? $(RULE parameters) $(RULE memberFunctionAttribute)* $(RULE constraint)? ($(RULE functionBody) | $(LITERAL ';')) * ;) */ Constructor parseConstructor() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; Constructor node = allocator.make!Constructor; node.comment = comment; comment = null; const t = expect(tok!"this"); mixin (nullCheck!`t`); node.location = t.index; node.line = t.line; node.column = t.column; const p = peekPastParens(); bool isTemplate = false; if (p !is null && p.type == tok!"(") { isTemplate = true; mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); } mixin(parseNodeQ!(`node.parameters`, `Parameters`)); StackBuffer memberFunctionAttributes; while (moreTokens() && currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, memberFunctionAttributes); if (isTemplate && currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); if (currentIs(tok!";")) advance(); else mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ContinueStatement * * $(GRAMMAR $(RULEDEF continueStatement): * $(LITERAL 'continue') $(LITERAL Identifier)? $(LITERAL ';') * ;) */ ContinueStatement parseContinueStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; mixin(tokenCheck!"continue"); if (!moreTokens) return null; auto node = allocator.make!ContinueStatement; switch (current.type) { case tok!"identifier": node.label = advance(); mixin(tokenCheck!";"); break; case tok!";": advance(); break; default: error("Identifier or semicolon expected following `continue`"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DebugCondition * * $(GRAMMAR $(RULEDEF debugCondition): * $(LITERAL 'debug') ($(LITERAL '$(LPAREN)') ($(LITERAL IntegerLiteral) | $(LITERAL Identifier)) $(LITERAL '$(RPAREN)'))? * ;) */ DebugCondition parseDebugCondition() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!DebugCondition; const d = expect(tok!"debug"); mixin (nullCheck!`d`); node.debugIndex = d.index; if (currentIs(tok!"(")) { advance(); if (currentIsOneOf(tok!"intLiteral", tok!"identifier")) node.identifierOrInteger = advance(); else { error(`Integer literal or identifier expected`); return null; } mixin(tokenCheck!")"); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DebugSpecification * * $(GRAMMAR $(RULEDEF debugSpecification): * $(LITERAL 'debug') $(LITERAL '=') ($(LITERAL Identifier) | $(LITERAL IntegerLiteral)) $(LITERAL ';') * ;) */ DebugSpecification parseDebugSpecification() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!DebugSpecification; mixin(tokenCheck!"debug"); mixin(tokenCheck!"="); if (currentIsOneOf(tok!"identifier", tok!"intLiteral")) node.identifierOrInteger = advance(); else { error("Integer literal or identifier expected"); return null; } mixin(tokenCheck!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Declaration * * Params: * strict = if true, do not return partial AST nodes on errors. * mustBeDeclaration = do not parse as a declaration if it could be parsed as a function call * * $(GRAMMAR $(RULEDEF declaration): * $(RULE attribute)* $(RULE declaration2) * | $(RULE attribute)+ $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * ; * $(RULEDEF declaration2): * $(RULE aliasDeclaration) * | $(RULE aliasThisDeclaration) * | $(RULE anonymousEnumDeclaration) * | $(RULE attributeDeclaration) * | $(RULE classDeclaration) * | $(RULE conditionalDeclaration) * | $(RULE constructor) * | $(RULE debugSpecification) * | $(RULE destructor) * | $(RULE enumDeclaration) * | $(RULE eponymousTemplateDeclaration) * | $(RULE functionDeclaration) * | $(RULE importDeclaration) * | $(RULE interfaceDeclaration) * | $(RULE invariant) * | $(RULE mixinDeclaration) * | $(RULE mixinTemplateDeclaration) * | $(RULE pragmaDeclaration) * | $(RULE sharedStaticConstructor) * | $(RULE sharedStaticDestructor) * | $(RULE staticAssertDeclaration) * | $(RULE staticConstructor) * | $(RULE staticDestructor) * | $(RULE structDeclaration) * | $(RULE templateDeclaration) * | $(RULE unionDeclaration) * | $(RULE unittest) * | $(RULE variableDeclaration) * | $(RULE versionSpecification) * ;) */ Declaration parseDeclaration(bool strict = false, bool mustBeDeclaration = false) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Declaration; if (!moreTokens) { error("declaration expected instead of EOF"); return null; } if (current.comment !is null) comment = current.comment; size_t autoStorageClassStart = size_t.max; DecType isAuto; StackBuffer attributes; do { isAuto = isAutoDeclaration(autoStorageClassStart); if (isAuto != DecType.other && index == autoStorageClassStart) break; if (!isAttribute()) break; immutable c = allocator.setCheckpoint(); auto attr = parseAttribute(); if (attr is null) { allocator.rollback(c); break; } if (currentIs(tok!":")) { node.attributeDeclaration = parseAttributeDeclaration(attr); mixin(nullCheck!`node.attributeDeclaration`); ownArray(node.attributes, attributes); node.tokens = tokens[startIndex .. index]; return node; } else attributes.put(attr); } while (moreTokens()); ownArray(node.attributes, attributes); if (!moreTokens) { error("declaration expected instead of EOF"); return null; } if (!currentIs(tok!"enum")) // #165: handle enums separatly b/c of EponymousTemplateDeclaration { if (isAuto == DecType.autoVar) { mixin(nullCheck!`node.variableDeclaration = parseVariableDeclaration(null, true)`); node.tokens = tokens[startIndex .. index]; return node; } else if (isAuto == DecType.autoFun) { mixin(nullCheck!`node.functionDeclaration = parseFunctionDeclaration(null, true)`); node.tokens = tokens[startIndex .. index]; return node; } } switch (current.type) { case tok!"asm": case tok!"break": case tok!"case": case tok!"continue": case tok!"default": case tok!"do": case tok!"for": case tok!"foreach": case tok!"foreach_reverse": case tok!"goto": case tok!"if": case tok!"return": case tok!"switch": case tok!"throw": case tok!"try": case tok!"while": case tok!"assert": goto default; case tok!";": // http://d.puremagic.com/issues/show_bug.cgi?id=4559 warn("Empty declaration"); advance(); break; case tok!"{": if (node.attributes.empty) { error("declaration expected instead of `{`"); return null; } advance(); StackBuffer declarations; while (moreTokens() && !currentIs(tok!"}")) { auto c = allocator.setCheckpoint(); if (!declarations.put(parseDeclaration(strict))) { allocator.rollback(c); return null; } } ownArray(node.declarations, declarations); mixin(tokenCheck!"}"); break; case tok!"alias": if (startsWith(tok!"alias", tok!"identifier", tok!"this")) mixin(parseNodeQ!(`node.aliasThisDeclaration`, `AliasThisDeclaration`)); else mixin(parseNodeQ!(`node.aliasDeclaration`, `AliasDeclaration`)); break; case tok!"class": mixin(parseNodeQ!(`node.classDeclaration`, `ClassDeclaration`)); break; case tok!"this": if (!mustBeDeclaration && peekIs(tok!"(")) { // Do not parse as a declaration if we could parse as a function call. ++index; const past = peekPastParens(); --index; if (past !is null && past.type == tok!";") return null; } if (startsWith(tok!"this", tok!"(", tok!"this", tok!")")) mixin(parseNodeQ!(`node.postblit`, `Postblit`)); else mixin(parseNodeQ!(`node.constructor`, `Constructor`)); break; case tok!"~": mixin(parseNodeQ!(`node.destructor`, `Destructor`)); break; case tok!"enum": immutable b = setBookmark(); advance(); // enum if (currentIsOneOf(tok!":", tok!"{")) { goToBookmark(b); mixin(parseNodeQ!(`node.anonymousEnumDeclaration`, `AnonymousEnumDeclaration`)); } else if (currentIs(tok!"identifier")) { advance(); if (currentIs(tok!"(")) { skipParens(); // () if (currentIs(tok!"(")) skipParens(); if (!currentIs(tok!"=")) { goToBookmark(b); node.functionDeclaration = parseFunctionDeclaration(null, true, node.attributes); mixin (nullCheck!`node.functionDeclaration`); } else { goToBookmark(b); mixin(parseNodeQ!(`node.eponymousTemplateDeclaration`, `EponymousTemplateDeclaration`)); } } else if (currentIsOneOf(tok!":", tok!"{", tok!";")) { goToBookmark(b); mixin(parseNodeQ!(`node.enumDeclaration`, `EnumDeclaration`)); } else { immutable bool eq = currentIs(tok!"="); goToBookmark(b); mixin (nullCheck!`node.variableDeclaration = parseVariableDeclaration(null, eq)`); } } else { immutable bool s = isStorageClass(); goToBookmark(b); mixin (nullCheck!`node.variableDeclaration = parseVariableDeclaration(null, s)`); } break; case tok!"import": mixin(parseNodeQ!(`node.importDeclaration`, `ImportDeclaration`)); break; case tok!"interface": mixin(parseNodeQ!(`node.interfaceDeclaration`, `InterfaceDeclaration`)); break; case tok!"mixin": if (peekIs(tok!"template")) mixin(parseNodeQ!(`node.mixinTemplateDeclaration`, `MixinTemplateDeclaration`)); else { immutable b = setBookmark(); advance(); if (currentIs(tok!"(")) { const t = peekPastParens(); if (t !is null && t.type == tok!";") { goToBookmark(b); mixin(parseNodeQ!(`node.mixinDeclaration`, `MixinDeclaration`)); } else { goToBookmark(b); error("Declaration expected"); return null; } } else { goToBookmark(b); mixin(parseNodeQ!(`node.mixinDeclaration`, `MixinDeclaration`)); } } break; case tok!"pragma": mixin(parseNodeQ!(`node.pragmaDeclaration`, `PragmaDeclaration`)); break; case tok!"shared": if (startsWith(tok!"shared", tok!"static", tok!"this")) mixin(parseNodeQ!(`node.sharedStaticConstructor`, `SharedStaticConstructor`)); else if (startsWith(tok!"shared", tok!"static", tok!"~")) mixin(parseNodeQ!(`node.sharedStaticDestructor`, `SharedStaticDestructor`)); else goto type; break; case tok!"static": if (peekIs(tok!"this")) mixin(parseNodeQ!(`node.staticConstructor`, `StaticConstructor`)); else if (peekIs(tok!"~")) mixin(parseNodeQ!(`node.staticDestructor`, `StaticDestructor`)); else if (peekIs(tok!"if")) mixin (nullCheck!`node.conditionalDeclaration = parseConditionalDeclaration(strict)`); else if (peekIs(tok!"assert")) mixin(parseNodeQ!(`node.staticAssertDeclaration`, `StaticAssertDeclaration`)); else if (peekIs(tok!"foreach") || peekIs(tok!"foreach_reverse")) mixin(parseNodeQ!(`node.staticForeachDeclaration`, `StaticForeachDeclaration`)); else goto type; break; case tok!"struct": mixin(parseNodeQ!(`node.structDeclaration`, `StructDeclaration`)); break; case tok!"template": mixin(parseNodeQ!(`node.templateDeclaration`, `TemplateDeclaration`)); break; case tok!"union": mixin(parseNodeQ!(`node.unionDeclaration`, `UnionDeclaration`)); break; case tok!"invariant": mixin(parseNodeQ!(`node.invariant_`, `Invariant`)); break; case tok!"unittest": mixin(parseNodeQ!(`node.unittest_`, `Unittest`)); break; case tok!"identifier": case tok!".": case tok!"const": case tok!"immutable": case tok!"inout": case tok!"scope": case tok!"typeof": case tok!"__vector": case tok!"__traits": foreach (B; BasicTypes) { case B: } type: Type t = parseType(); if (t is null || !currentIs(tok!"identifier")) { if (t) error("no identifier for declarator"); return null; } const b2 = setBookmark(); auto savedComment = comment; node.variableDeclaration = parseVariableDeclaration(t, false); if (node.variableDeclaration is null) { goToBookmark(b2); if (savedComment && comment is null) comment = savedComment; node.functionDeclaration = parseFunctionDeclaration(t, false); } else abandonBookmark(b2); if (!node.variableDeclaration && !node.functionDeclaration) { error("invalid variable declaration or function declaration", false); return null; } break; case tok!"version": if (peekIs(tok!"(")) mixin (nullCheck!`node.conditionalDeclaration = parseConditionalDeclaration(strict)`); else if (peekIs(tok!"=")) mixin(parseNodeQ!(`node.versionSpecification`, `VersionSpecification`)); else { error("`=` or `(` expected following `version`"); return null; } break; case tok!"debug": if (peekIs(tok!"=")) mixin(parseNodeQ!(`node.debugSpecification`, `DebugSpecification`)); else mixin (nullCheck!`node.conditionalDeclaration = parseConditionalDeclaration(strict)`); break; default: error("Declaration expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses DeclarationsAndStatements * * $(GRAMMAR $(RULEDEF declarationsAndStatements): * $(RULE declarationOrStatement)+ * ;) */ DeclarationsAndStatements parseDeclarationsAndStatements(bool includeCases = true) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!DeclarationsAndStatements; StackBuffer declarationsAndStatements; while (!currentIsOneOf(tok!"}", tok!"else") && moreTokens() && suppressedErrorCount <= MAX_ERRORS) { if (currentIs(tok!"case") && !includeCases) break; if (currentIs(tok!"while")) { immutable b = setBookmark(); scope (exit) goToBookmark(b); advance(); if (currentIs(tok!"(")) { const p = peekPastParens(); if (p !is null && *p == tok!";") break; } } immutable c = allocator.setCheckpoint(); if (!declarationsAndStatements.put(parseDeclarationOrStatement())) { allocator.rollback(c); // detect the pattern ".}" for DCD. This is what happens when // located at the end of a well delimited body/scope and requesting // completion. This is also a case where it's sure sure that // there's no ambiguity, even if it happens during a lookup: // it's not a decl, it's not a statement, it's an error. if (currentIs(tok!"}") && index > 0 && previous == tok!".") break; if (!suppressMessages.empty) return null; // better for DCD, if the end of the block is reached then // go back, allowing the following declarations to be in // the right scope, instead of the block we were in. if (index > 0 && previous == tok!"}") { index -= 1; break; } } } ownArray(node.declarationsAndStatements, declarationsAndStatements); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DeclarationOrStatement * * $(GRAMMAR $(RULEDEF declarationOrStatement): * $(RULE declaration) * | $(RULE statement) * ;) */ DeclarationOrStatement parseDeclarationOrStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!DeclarationOrStatement; if (moreTokens) node.startLocation = current.index; // "Any ambiguities in the grammar between Statements and // Declarations are resolved by the declarations taking precedence." immutable b = setBookmark(); immutable c = allocator.setCheckpoint(); auto d = parseDeclaration(true, false); if (d is null) { allocator.rollback(c); goToBookmark(b); mixin(parseNodeQ!(`node.statement`, `Statement`)); } else { // TODO: Make this more efficient. Right now we parse the declaration // twice, once with errors and warnings ignored, and once with them // printed. Maybe store messages to then be abandoned or written later? allocator.rollback(c); goToBookmark(b); node.declaration = parseDeclaration(true, true); } if (moreTokens) node.endLocation = current.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Declarator * * $(GRAMMAR $(RULEDEF declarator): * $(LITERAL Identifier) * | $(LITERAL Identifier) $(LITERAL '=') $(RULE initializer) * | $(LITERAL Identifier) $(RULE templateParameters) $(LITERAL '=') $(RULE initializer) * ;) */ Declarator parseDeclarator() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; Declarator node = allocator.make!Declarator; const id = expect(tok!"identifier"); mixin (nullCheck!`id`); node.name = *id; if (currentIs(tok!"[")) // dmd doesn't accept pointer after identifier { warn("C-style array declaration."); StackBuffer typeSuffixes; while (moreTokens() && currentIs(tok!"[")) if (!typeSuffixes.put(parseTypeSuffix())) return null; ownArray(node.cstyle, typeSuffixes); } if (currentIs(tok!"(")) { mixin (nullCheck!`(node.templateParameters = parseTemplateParameters())`); mixin(tokenCheck!"="); mixin (nullCheck!`(node.initializer = parseInitializer())`); } else if (currentIs(tok!"=")) { advance(); mixin(parseNodeQ!(`node.initializer`, `Initializer`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DeclaratorIdentifierList * * $(GRAMMAR $(RULEDEF declaratorIdentifierList): * $(LITERAL Identifier) ($(LITERAL ',') $(LITERAL Identifier))* * ;) */ DeclaratorIdentifierList parseDeclaratorIdentifierList() { auto node = allocator.make!DeclaratorIdentifierList; auto startIndex = index; StackBuffer identifiers; while (moreTokens()) { const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); identifiers.put(*ident); if (currentIs(tok!",")) { advance(); continue; } else break; } ownArray(node.identifiers, identifiers); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DefaultStatement * * $(GRAMMAR $(RULEDEF defaultStatement): * $(LITERAL 'default') $(LITERAL ':') $(RULE declarationsAndStatements) * ;) */ DefaultStatement parseDefaultStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!DefaultStatement; mixin(tokenCheck!"default"); const colon = expect(tok!":"); if (colon is null) return null; node.colonLocation = colon.index; mixin(parseNodeQ!(`node.declarationsAndStatements`, `DeclarationsAndStatements`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DeleteExpression * * $(GRAMMAR $(RULEDEF deleteExpression): * $(LITERAL 'delete') $(RULE unaryExpression) * ;) */ DeleteExpression parseDeleteExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!DeleteExpression; node.line = current.line; node.column = current.column; mixin(tokenCheck!"delete"); mixin(parseNodeQ!(`node.unaryExpression`, `UnaryExpression`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Deprecated attribute * * $(GRAMMAR $(RULEDEF deprecated): * $(LITERAL 'deprecated') ($(LITERAL '$(LPAREN)') $(LITERAL StringLiteral)+ $(LITERAL '$(RPAREN)'))? * ;) */ Deprecated parseDeprecated() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Deprecated; mixin(tokenCheck!"deprecated"); if (currentIs(tok!"(")) { advance(); mixin (parseNodeQ!(`node.assignExpression`, `AssignExpression`)); mixin (tokenCheck!")"); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Destructor * * $(GRAMMAR $(RULEDEF destructor): * $(LITERAL '~') $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ';')) * ;) */ Destructor parseDestructor() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Destructor; node.comment = comment; comment = null; mixin(tokenCheck!"~"); if (!moreTokens) { error("`this` expected"); return null; } node.index = current.index; node.line = current.line; node.column = current.column; mixin(tokenCheck!"this"); mixin(tokenCheck!"("); mixin(tokenCheck!")"); if (currentIs(tok!";")) advance(); else { StackBuffer memberFunctionAttributes; while (moreTokens() && currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, memberFunctionAttributes); mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a DoStatement * * $(GRAMMAR $(RULEDEF doStatement): * $(LITERAL 'do') $(RULE statementNoCaseNoDefault) $(LITERAL 'while') $(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)') $(LITERAL ';') * ;) */ DoStatement parseDoStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; mixin(tokenCheck!"do"); if (!moreTokens) return null; auto node = allocator.make!DoStatement; mixin(parseNodeQ!(`node.statementNoCaseNoDefault`, `StatementNoCaseNoDefault`)); mixin(tokenCheck!"while"); mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.expression`, `Expression`)); mixin(tokenCheck!")"); mixin(tokenCheck!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an EnumBody * * $(GRAMMAR $(RULEDEF enumBody): * $(LITERAL '{') $(RULE enumMember) ($(LITERAL ',') $(RULE enumMember)?)* $(LITERAL '}') * ;) */ EnumBody parseEnumBody() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; EnumBody node = allocator.make!EnumBody; const open = expect(tok!"{"); mixin (nullCheck!`open`); node.startLocation = open.index; StackBuffer enumMembers; EnumMember last; while (moreTokens()) { if (currentIsOneOf(tok!"identifier", tok!"@", tok!"deprecated")) { auto c = allocator.setCheckpoint(); auto e = parseEnumMember(); if (!enumMembers.put(e)) allocator.rollback(c); else last = e; if (currentIs(tok!",")) { if (last !is null && last.comment is null) last.comment = current.trailingComment; advance(); if (!currentIs(tok!"}")) continue; } if (currentIs(tok!"}")) { if (last !is null && last.comment is null) last.comment = tokens[index - 1].trailingComment; break; } else { error("`,` or `}` expected"); if (currentIs(tok!"}")) break; } } else error("Enum member expected"); } ownArray(node.enumMembers, enumMembers); const close = expect (tok!"}"); if (close !is null) node.endLocation = close.index; node.tokens = tokens[startIndex .. index]; return node; } /** * $(GRAMMAR $(RULEDEF anonymousEnumMember): * $(RULE type) $(LITERAL identifier) $(LITERAL '=') $(RULE assignExpression) * | $(LITERAL identifier) $(LITERAL '=') $(RULE assignExpression) * | $(LITERAL identifier) * ;) */ AnonymousEnumMember parseAnonymousEnumMember(bool typeAllowed) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AnonymousEnumMember; if (currentIs(tok!"identifier") && peekIsOneOf(tok!",", tok!"=", tok!"}")) { node.comment = current.comment; mixin(tokenCheck!(`node.name`, `identifier`)); if (currentIs(tok!"=")) { advance(); // = goto assign; } } else if (typeAllowed) { node.comment = current.comment; mixin(parseNodeQ!(`node.type`, `Type`)); mixin(tokenCheck!(`node.name`, `identifier`)); mixin(tokenCheck!"="); assign: mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } else { error("Cannot specify anonymous enum member type if anonymous enum has a base type."); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * $(GRAMMAR $(RULEDEF anonymousEnumDeclaration): * $(LITERAL 'enum') ($(LITERAL ':') $(RULE type))? $(LITERAL '{') $(RULE anonymousEnumMember)+ $(LITERAL '}') * ;) */ AnonymousEnumDeclaration parseAnonymousEnumDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!AnonymousEnumDeclaration; mixin(tokenCheck!"enum"); immutable bool hasBaseType = currentIs(tok!":"); if (hasBaseType) { advance(); mixin(parseNodeQ!(`node.baseType`, `Type`)); } mixin(tokenCheck!"{"); StackBuffer members; AnonymousEnumMember last; while (moreTokens()) { if (currentIs(tok!",")) { if (last !is null && last.comment is null) last.comment = current.trailingComment; advance(); continue; } else if (currentIs(tok!"}")) { if (last !is null && last.comment is null) last.comment = tokens[index - 1].trailingComment; break; } else { immutable c = allocator.setCheckpoint(); auto e = parseAnonymousEnumMember(!hasBaseType); if (!members.put(e)) allocator.rollback(c); else last = e; } } ownArray(node.members, members); mixin(tokenCheck!"}"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an EnumDeclaration * * $(GRAMMAR $(RULEDEF enumDeclaration): * $(LITERAL 'enum') $(LITERAL Identifier) ($(LITERAL ':') $(RULE type))? $(LITERAL ';') * | $(LITERAL 'enum') $(LITERAL Identifier) ($(LITERAL ':') $(RULE type))? $(RULE enumBody) * ;) */ EnumDeclaration parseEnumDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!EnumDeclaration; mixin(tokenCheck!"enum"); mixin (tokenCheck!(`node.name`, `identifier`)); node.comment = comment; comment = null; if (currentIs(tok!";")) { advance(); node.tokens = tokens[startIndex .. index]; return node; } if (currentIs(tok!":")) { advance(); // skip ':' mixin(parseNodeQ!(`node.type`, `Type`)); } mixin(parseNodeQ!(`node.enumBody`, `EnumBody`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an EnumMemberAttribute * * $(GRAMMAR $(RULEDEF enumMemberAttribute): * $(RULE atAttribute) * | $(RULE deprecated) * ;) */ EnumMemberAttribute parseEnumMemberAttribute() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; EnumMemberAttribute node; if (currentIs(tok!"@")) { node = allocator.make!EnumMemberAttribute; mixin(parseNodeQ!(`node.atAttribute`, `AtAttribute`)); } else if (currentIs(tok!"deprecated")) { node = allocator.make!EnumMemberAttribute; mixin(parseNodeQ!(`node.deprecated_`, `Deprecated`)); } if (node) node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an EnumMember * * $(GRAMMAR $(RULEDEF enumMember): * ($(RULE enumMemberAttribute))* $(LITERAL Identifier) ($(LITERAL '=') $(RULE assignExpression))? * ;) */ EnumMember parseEnumMember() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; EnumMember node = allocator.make!EnumMember; node.comment = current.comment; StackBuffer emas; while (moreTokens()) { if (!emas.put(parseEnumMemberAttribute())) break; } ownArray(node.enumMemberAttributes, emas); mixin (tokenCheck!(`node.name`, `identifier`)); if (currentIs(tok!"=")) { advance(); mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an EponymousTemplateDeclaration * * $(GRAMMAR $(RULEDEF eponymousTemplateDeclaration): * $(LITERAL 'enum') $(LITERAL Identifier) $(RULE templateParameters) $(LITERAL '=') $(RULE assignExpression) $(LITERAL ';') * ;) */ EponymousTemplateDeclaration parseEponymousTemplateDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!EponymousTemplateDeclaration; node.comment = current.comment; advance(); // enum const ident = expect(tok!"identifier"); mixin (nullCheck!`ident`); node.name = *ident; mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); expect(tok!"="); node.assignExpression = parseAssignExpression(); if (node.assignExpression is null) mixin(parseNodeQ!(`node.type`, `Type`)); expect(tok!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an EqualExpression * * $(GRAMMAR $(RULEDEF equalExpression): * $(RULE shiftExpression) ($(LITERAL '==') | $(LITERAL '!=')) $(RULE shiftExpression) * ;) */ EqualExpression parseEqualExpression(ExpressionNode shift = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!EqualExpression; node.left = shift is null ? parseShiftExpression() : shift; mixin (nullCheck!`node.left`); if (currentIsOneOf(tok!"==", tok!"!=")) node.operator = advance().type; mixin(parseNodeQ!(`node.right`, `ShiftExpression`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an Expression * * $(GRAMMAR $(RULEDEF expression): * $(RULE assignExpression) ($(LITERAL ',') $(RULE assignExpression))* * ;) */ Expression parseExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); if (suppressedErrorCount > MAX_ERRORS) return null; if (!moreTokens()) { error("Expected expression instead of EOF"); return null; } return parseCommaSeparatedRule!(Expression, AssignExpression, true)(); } /** * Parses an ExpressionStatement * * $(GRAMMAR $(RULEDEF expressionStatement): * $(RULE _expression) $(LITERAL ';') * ;) */ ExpressionStatement parseExpressionStatement(Expression expression = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ExpressionStatement; node.expression = expression is null ? parseExpression() : expression; if (node.expression is null || expect(tok!";") is null) return null; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a FinalSwitchStatement * * $(GRAMMAR $(RULEDEF finalSwitchStatement): * $(LITERAL 'final') $(RULE switchStatement) * ;) */ FinalSwitchStatement parseFinalSwitchStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin (simpleParse!(FinalSwitchStatement, tok!"final", "switchStatement|parseSwitchStatement")); } /** * Parses a Finally * * $(GRAMMAR $(RULEDEF finally): * $(LITERAL 'finally') $(RULE declarationOrStatement) * ;) */ Finally parseFinally() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Finally; mixin(tokenCheck!"finally"); mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ForStatement * * $(GRAMMAR $(RULEDEF forStatement): * $(LITERAL 'for') $(LITERAL '$(LPAREN)') ($(RULE declaration) | $(RULE statementNoCaseNoDefault)) $(RULE expression)? $(LITERAL ';') $(RULE expression)? $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) * ;) */ ForStatement parseForStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ForStatement; mixin(tokenCheck!"for"); if (moreTokens) node.startIndex = current().index; mixin(tokenCheck!"("); if (currentIs(tok!";")) advance(); else mixin(parseNodeQ!(`node.initialization`, `DeclarationOrStatement`)); if (currentIs(tok!";")) advance(); else { mixin(parseNodeQ!(`node.test`, `Expression`)); expect(tok!";"); } if (!currentIs(tok!")")) mixin(parseNodeQ!(`node.increment`, `Expression`)); mixin(tokenCheck!")"); // Intentionally return an incomplete parse tree so that DCD will work // more correctly. if (currentIs(tok!"}")) { error("Statement expected", false); node.tokens = tokens[startIndex .. index]; return node; } mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a StaticForeachDeclaration * * $(GRAMMAR $(RULEDEF staticForeachDeclaration): * $(LITERAL 'static') ($(LITERAL 'foreach') | $(LITERAL 'foreach_reverse')) $(LITERAL '$(LPAREN)') $(RULE foreachTypeList) $(LITERAL ';') $(RULE expression) $(LITERAL '$(RPAREN)') ($(RULE declaration) | $(LITERAL '{') $(RULE declaration)* $(LITERAL '}')) * | $(LITERAL 'static') ($(LITERAL 'foreach') | $(LITERAL 'foreach_reverse')) $(LITERAL '$(LPAREN)') $(RULE foreachType) $(LITERAL ';') $(RULE expression) $(LITERAL '..') $(RULE expression) $(LITERAL '$(RPAREN)') ($(RULE declaration) | $(LITERAL '{') $(RULE declaration)* $(LITERAL '}')) * ;) */ StaticForeachDeclaration parseStaticForeachDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; mixin(tokenCheck!"static"); auto decl = parseForeach!true(); if (decl) decl.tokens = tokens[startIndex .. index]; return decl; } /** * Parses a StaticForeachStatement * * $(GRAMMAR $(RULEDEF staticForeachStatement): * $(LITERAL 'static') $(RULE foreachStatement) * ;) */ StaticForeachStatement parseStaticForeachStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin(simpleParse!(StaticForeachStatement, tok!"static", "foreachStatement|parseForeachStatement")); } /** * Parses a ForeachStatement * * $(GRAMMAR $(RULEDEF foreachStatement): * ($(LITERAL 'foreach') | $(LITERAL 'foreach_reverse')) $(LITERAL '$(LPAREN)') $(RULE foreachTypeList) $(LITERAL ';') $(RULE expression) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) * | ($(LITERAL 'foreach') | $(LITERAL 'foreach_reverse')) $(LITERAL '$(LPAREN)') $(RULE foreachType) $(LITERAL ';') $(RULE expression) $(LITERAL '..') $(RULE expression) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) * ;) */ ForeachStatement parseForeachStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseForeach!false(); } Foreach!declOnly parseForeach(bool declOnly = false)() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; Foreach!declOnly node = allocator.make!(Foreach!declOnly); if (currentIsOneOf(tok!"foreach", tok!"foreach_reverse")) node.type = advance().type; else { error("`foreach` or `foreach_reverse` expected"); return null; } if (moreTokens) node.startIndex = current().index; mixin(tokenCheck!"("); ForeachTypeList feType = parseForeachTypeList(); mixin (nullCheck!`feType`); immutable bool canBeRange = feType.items.length == 1; mixin(tokenCheck!";"); mixin(parseNodeQ!(`node.low`, `Expression`)); mixin (nullCheck!`node.low`); if (currentIs(tok!"..")) { if (!canBeRange) { error(`Cannot have more than one foreach variable for a foreach range statement`); return null; } advance(); mixin(parseNodeQ!(`node.high`, `Expression`)); node.foreachType = feType.items[0]; mixin (nullCheck!`node.high`); } else { node.foreachTypeList = feType; } mixin(tokenCheck!")"); if (currentIs(tok!"}")) { error("Statement expected", false); node.tokens = tokens[startIndex .. index]; return node; // this line makes DCD better } static if (declOnly) { node.style = currentIs(tok!"{") ? DeclarationListStyle.block : DeclarationListStyle.single; StackBuffer declarations; if (currentIs(tok!"{")) { advance(); while (moreTokens() && !currentIs(tok!"}")) { immutable b = setBookmark(); immutable c = allocator.setCheckpoint(); if (declarations.put(parseDeclaration(true, true))) abandonBookmark(b); else { goToBookmark(b); allocator.rollback(c); return null; } } mixin(tokenCheck!"}"); } else if (!declarations.put(parseDeclaration(true, true))) return null; ownArray(node.declarations, declarations); } else mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ForeachType * * $(GRAMMAR $(RULEDEF foreachType): * ($(LITERAL 'ref') | $(LITERAL 'alias') | $(LITERAL 'enum') | $(RULE typeConstructor))* $(RULE type)? $(LITERAL Identifier) * ;) */ ForeachType parseForeachType() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ForeachType; while (moreTokens()) { IdType typeConstructor; if (currentIs(tok!"ref")) { node.isRef = true; advance(); } else if (currentIs(tok!"alias")) { node.isAlias = true; advance(); } else if (currentIs(tok!"enum")) { node.isEnum = true; advance(); } else if (tok!"" != (typeConstructor = parseTypeConstructor(false))) { trace("\033[01;36mType constructor"); node.typeConstructors ~= typeConstructor; } else break; } if (currentIs(tok!"identifier") && peekIsOneOf(tok!",", tok!";")) { node.identifier = advance(); node.tokens = tokens[startIndex .. index]; return node; } mixin(parseNodeQ!(`node.type`, `Type`)); const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ForeachTypeList * * $(GRAMMAR $(RULEDEF foreachTypeList): * $(RULE foreachType) ($(LITERAL ',') $(RULE foreachType))* * ;) */ ForeachTypeList parseForeachTypeList() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseCommaSeparatedRule!(ForeachTypeList, ForeachType)(); } /** * Parses a FunctionAttribute * * $(GRAMMAR $(RULEDEF functionAttribute): * $(RULE atAttribute) * | $(LITERAL 'pure') * | $(LITERAL 'nothrow') * ;) */ FunctionAttribute parseFunctionAttribute(bool validate = true) { auto startIndex = index; auto node = allocator.make!FunctionAttribute; switch (current.type) { case tok!"@": mixin(parseNodeQ!(`node.atAttribute`, `AtAttribute`)); break; case tok!"pure": case tok!"nothrow": node.token = advance(); break; default: if (validate) error("`@`attribute, `pure`, or `nothrow` expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a FunctionBody. * Note that any change of this function must also be applied in dsymbol SimpleParser, which can be found * $(LINK2 https://github.com/dlang-community/dsymbol/blob/master/src/dsymbol/conversion/package.d, here). * * $(GRAMMAR $(RULEDEF functionBody): * $(RULE specifiedFunctionBody) * | $(RULE missingFunctionBody) * ;) */ FunctionBody parseFunctionBody() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!FunctionBody; immutable b = setBookmark(); immutable c = allocator.setCheckpoint(); auto missingFunctionBody = parseMissingFunctionBody(); if (missingFunctionBody !is null) { abandonBookmark(b); node.missingFunctionBody = missingFunctionBody; } else { allocator.rollback(c); goToBookmark(b); mixin(parseNodeQ!(`node.specifiedFunctionBody`, `SpecifiedFunctionBody`)); } node.endLocation = previous.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a FunctionCallExpression * * $(GRAMMAR $(RULEDEF functionCallExpression): * $(RULE symbol) $(RULE arguments) * | $(RULE unaryExpression) $(RULE arguments) * | $(RULE type) $(RULE arguments) * ;) */ FunctionCallExpression parseFunctionCallExpression(UnaryExpression unary = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!FunctionCallExpression; switch (current.type) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": case tok!"scope": case tok!"pure": case tok!"nothrow": mixin(parseNodeQ!(`node.type`, `Type`)); mixin(parseNodeQ!(`node.arguments`, `Arguments`)); break; default: if (unary !is null) node.unaryExpression = unary; else mixin(parseNodeQ!(`node.unaryExpression`, `UnaryExpression`)); if (currentIs(tok!"!")) mixin(parseNodeQ!(`node.templateArguments`, `TemplateArguments`)); if (unary !is null) mixin(parseNodeQ!(`node.arguments`, `Arguments`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a FunctionContract * * $(GRAMMAR $(RULEDEF functionContract): * $(RULE inOutContractExpression) * | $(RULE inOutStatement) * ;) */ FunctionContract parseFunctionContract() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!FunctionContract; if (peekIs(tok!"{") || (currentIs(tok!"out") && index < tokens.length - 3 && tokens[index + 1].type == tok!("(") && tokens[index + 2].type == tok!("identifier") && tokens[index + 3].type == tok!(")"))) mixin(parseNodeQ!(`node.inOutStatement`, `InOutStatement`)); else if (peekIs(tok!"(")) mixin(parseNodeQ!(`node.inOutContractExpression`, `InOutContractExpression`)); else { error("`{` or `(` expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a FunctionDeclaration * * $(GRAMMAR $(RULEDEF functionDeclaration): * ($(RULE storageClass)+ | $(RULE _type)) $(LITERAL Identifier) $(RULE parameters) $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ';')) * | ($(RULE storageClass)+ | $(RULE _type)) $(LITERAL Identifier) $(RULE templateParameters) $(RULE parameters) $(RULE memberFunctionAttribute)* $(RULE constraint)? ($(RULE functionBody) | $(LITERAL ';')) * ;) */ FunctionDeclaration parseFunctionDeclaration(Type type = null, bool isAuto = false, Attribute[] attributes = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!FunctionDeclaration; node.comment = comment; comment = null; StackBuffer memberFunctionAttributes; node.attributes = attributes; if (isAuto) { StackBuffer storageClasses; while (isStorageClass()) if (!storageClasses.put(parseStorageClass())) return null; ownArray(node.storageClasses, storageClasses); foreach (a; node.attributes) { if (a.attribute == tok!"auto") node.hasAuto = true; else if (a.attribute == tok!"ref") node.hasRef = true; else continue; } } else { while (moreTokens() && currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; if (type is null) mixin(parseNodeQ!(`node.returnType`, `Type`)); else node.returnType = type; } mixin(tokenCheck!(`node.name`, "identifier")); if (!currentIs(tok!"(")) { error("`(` expected"); return null; } const p = peekPastParens(); immutable bool isTemplate = p !is null && p.type == tok!"("; if (isTemplate) mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); mixin(parseNodeQ!(`node.parameters`, `Parameters`)); while (moreTokens() && currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; if (isTemplate && currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); ownArray(node.memberFunctionAttributes, memberFunctionAttributes); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a FunctionLiteralExpression * * $(GRAMMAR $(RULEDEF functionLiteralExpression): * | $(LITERAL 'delegate') $(LITERAL 'ref')? $(RULE type)? ($(RULE parameters) $(RULE functionAttribute)*)? $(RULE specifiedFunctionBody) * | $(LITERAL 'function') $(LITERAL 'ref')? $(RULE type)? ($(RULE parameters) $(RULE functionAttribute)*)? $(RULE specifiedFunctionBody) * | $(LITERAL 'ref')? $(RULE parameters) $(RULE functionAttribute)* $(RULE specifiedFunctionBody) * | $(RULE specifiedFunctionBody) * | $(LITERAL Identifier) $(LITERAL '=>') $(RULE assignExpression) * | $(LITERAL 'function') $(LITERAL 'ref')? $(RULE type)? $(RULE parameters) $(RULE functionAttribute)* $(LITERAL '=>') $(RULE assignExpression) * | $(LITERAL 'delegate') $(LITERAL 'ref')? $(RULE type)? $(RULE parameters) $(RULE functionAttribute)* $(LITERAL '=>') $(RULE assignExpression) * | $(LITERAL 'ref')? $(RULE parameters) $(RULE functionAttribute)* $(LITERAL '=>') $(RULE assignExpression) * ;) */ FunctionLiteralExpression parseFunctionLiteralExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!FunctionLiteralExpression; node.line = current.line; node.column = current.column; if (currentIsOneOf(tok!"function", tok!"delegate")) { node.functionOrDelegate = advance().type; if (currentIs(tok!"ref")) { advance(); node.isReturnRef = true; } if (!currentIsOneOf(tok!"(", tok!"in", tok!"do", tok!"out", tok!"{", tok!"=>") && current.text != "body") mixin(parseNodeQ!(`node.returnType`, `Type`)); } if (startsWith(tok!"identifier", tok!"=>")) { node.identifier = advance(); advance(); // => mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); node.tokens = tokens[startIndex .. index]; return node; } else if (currentIs(tok!"(") || currentIs(tok!"ref") && peekIs(tok!"(")) { if (currentIs(tok!"ref")) { advance(); node.isReturnRef = true; } mixin(parseNodeQ!(`node.parameters`, `Parameters`)); StackBuffer memberFunctionAttributes; while (currentIsMemberFunctionAttribute()) { auto c = allocator.setCheckpoint(); if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) { allocator.rollback(c); break; } } ownArray(node.memberFunctionAttributes, memberFunctionAttributes); } if (currentIs(tok!"=>")) { advance(); mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } else mixin(parseNodeQ!(`node.specifiedFunctionBody`, `SpecifiedFunctionBody`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a GotoStatement * * $(GRAMMAR $(RULEDEF gotoStatement): * $(LITERAL 'goto') ($(LITERAL Identifier) | $(LITERAL 'default') | $(LITERAL 'case') $(RULE expression)?) $(LITERAL ';') * ;) */ GotoStatement parseGotoStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!GotoStatement; mixin(tokenCheck!"goto"); if (!moreTokens) return null; switch (current.type) { case tok!"identifier": case tok!"default": node.label = advance(); break; case tok!"case": node.label = advance(); if (!currentIs(tok!";")) mixin(parseNodeQ!(`node.expression`, `Expression`)); break; default: error("Identifier, `default`, or `case` expected"); return null; } mixin(tokenCheck!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IdentifierChain * * $(GRAMMAR $(RULEDEF identifierChain): * $(LITERAL Identifier) ($(LITERAL '.') $(LITERAL Identifier))* * ;) */ IdentifierChain parseIdentifierChain() { auto startIndex = index; auto node = allocator.make!IdentifierChain; StackBuffer identifiers; while (moreTokens()) { const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); identifiers.put(*ident); if (currentIs(tok!".")) { advance(); continue; } else break; } ownArray(node.identifiers, identifiers); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TypeIdentifierPart. * * $(GRAMMAR $(RULEDEF typeIdentifierPart): * $(RULE identifierOrTemplateInstance) * | $(RULE identifierOrTemplateInstance) $(LITERAL '.') $(RULE typeIdentifierPart) * | $(RULE identifierOrTemplateInstance) $(LITERAL '[') $(RULE assignExpression) $(LITERAL ']') * | $(RULE identifierOrTemplateInstance) $(LITERAL '[') $(RULE assignExpression) $(LITERAL ']') $(LITERAL '.') $(RULE typeIdentifierPart) * ;) */ TypeIdentifierPart parseTypeIdentifierPart() { auto startIndex = index; TypeIdentifierPart node = allocator.make!TypeIdentifierPart; if (currentIs(tok!".")) { node.dot = true; advance(); } mixin(parseNodeQ!(`node.identifierOrTemplateInstance`, `IdentifierOrTemplateInstance`)); if (currentIs(tok!"[")) { // dyn arrays -> type suffixes if (peekIs(tok!"]")) { node.tokens = tokens[startIndex .. index - 1]; return node; } const b = setBookmark(); advance(); const cp = allocator.setCheckpoint; node.indexer = parseAssignExpression(); // here we can have a type (AA key) if (node.indexer is null) { goToBookmark(b); return node; } // indexer followed by ".." -> sliceExp -> type suffix else if (currentIs(tok!"..")) { allocator.rollback(cp); node.indexer = null; goToBookmark(b); return node; } // otherwise either the index of a type list or a dim abandonBookmark(b); expect(tok!"]"); if (!currentIs(tok!".")) { node.tokens = tokens[startIndex .. index]; return node; } } if (currentIs(tok!".")) { advance(); mixin(parseNodeQ!(`node.typeIdentifierPart`, `TypeIdentifierPart`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IdentifierOrTemplateChain * * $(GRAMMAR $(RULEDEF identifierOrTemplateChain): * $(RULE identifierOrTemplateInstance) ($(LITERAL '.') $(RULE identifierOrTemplateInstance))* * ;) */ IdentifierOrTemplateChain parseIdentifierOrTemplateChain() { auto startIndex = index; auto node = allocator.make!IdentifierOrTemplateChain; StackBuffer identifiersOrTemplateInstances; while (moreTokens()) { auto c = allocator.setCheckpoint(); if (!identifiersOrTemplateInstances.put(parseIdentifierOrTemplateInstance())) { allocator.rollback(c); if (identifiersOrTemplateInstances.length == 0) return null; else break; } if (!currentIs(tok!".")) break; else advance(); } ownArray(node.identifiersOrTemplateInstances, identifiersOrTemplateInstances); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IdentifierOrTemplateInstance * * $(GRAMMAR $(RULEDEF identifierOrTemplateInstance): * $(LITERAL Identifier) * | $(RULE templateInstance) * ;) */ IdentifierOrTemplateInstance parseIdentifierOrTemplateInstance() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!IdentifierOrTemplateInstance; if (peekIs(tok!"!") && !startsWith(tok!"identifier", tok!"!", tok!"is") && !startsWith(tok!"identifier", tok!"!", tok!"in")) { mixin(parseNodeQ!(`node.templateInstance`, `TemplateInstance`)); } else { const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IdentityExpression * * $(GRAMMAR $(RULEDEF identityExpression): * $(RULE shiftExpression) ($(LITERAL 'is') | ($(LITERAL '!') $(LITERAL 'is'))) $(RULE shiftExpression) * ;) */ ExpressionNode parseIdentityExpression(ExpressionNode shift = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!IdentityExpression; mixin(nullCheck!`node.left = shift is null ? parseShiftExpression() : shift`); if (currentIs(tok!"!")) { advance(); node.negated = true; } mixin(tokenCheck!"is"); mixin(parseNodeQ!(`node.right`, `ShiftExpression`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IfStatement * * $(GRAMMAR $(RULEDEF ifStatement): * $(LITERAL 'if') $(LITERAL '$(LPAREN)') $(RULE ifCondition) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) ($(LITERAL 'else') $(RULE declarationOrStatement))? *$(RULEDEF ifCondition): * $(LITERAL 'auto') $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) * | $(RULE typeConstructors) $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) * | $(RULE typeConstructors)? $(RULE type) $(LITERAL Identifier) $(LITERAL '=') $(RULE expression) * | $(RULE expression) * ;) */ IfStatement parseIfStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; IfStatement node = allocator.make!IfStatement; node.line = current().line; node.column = current().column; mixin(tokenCheck!"if"); if (moreTokens) node.startIndex = current().index; mixin(tokenCheck!"("); const b = setBookmark(); // ex. case: // `if (auto identifier = exp)` if (currentIs(tok!"auto") && peekIs(tok!"identifier")) { abandonBookmark(b); advance(); node.identifier = advance(); mixin(tokenCheck!"="); mixin(parseNodeQ!(`node.expression`, `Expression`)); } // `if (const shared ...` if (!node.expression && moreTokens && isTypeCtor(current.type)) { while (moreTokens) { // type ctor followed by open param is part of the type if (!isTypeCtor(current.type) || peekIs(tok!"(")) break; node.typeCtors ~= advance().type; } } // ex. case: // if (const shared stuff = exp) if (!node.expression && node.typeCtors.length && currentIs(tok!"identifier") && peekIs(tok!"=")) { abandonBookmark(b); node.identifier = advance(); advance(); mixin(parseNodeQ!(`node.expression`, `Expression`)); } if (!node.expression) { const c = allocator.setCheckpoint(); // ex. cases: // if (Type stuff = exp) // if (const shared Type stuff = exp) // if (const shared const(Type) stuff = exp) if (Type tp = parseType()) { if (currentIs(tok!"identifier") && peekIs(tok!"=")) { abandonBookmark(b); node.type = tp; node.identifier = advance(); advance(); mixin(parseNodeQ!(`node.expression`, `Expression`)); } // will try an expr since Type and Expression are ambiguous else allocator.rollback(c); } } // Relational expressions, unaries and such as condition if (!node.expression) { goToBookmark(b); mixin(parseNodeQ!(`node.expression`, `Expression`)); } if (!node.expression) { error("expression or declaration expected"); } mixin(tokenCheck!")"); if (currentIs(tok!"}")) { error("Statement expected", false); node.tokens = tokens[startIndex .. index]; return node; // this line makes DCD better } mixin(parseNodeQ!(`node.thenStatement`, `DeclarationOrStatement`)); if (currentIs(tok!"else")) { advance(); mixin(parseNodeQ!(`node.elseStatement`, `DeclarationOrStatement`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ImportBind * * $(GRAMMAR $(RULEDEF importBind): * $(LITERAL Identifier) ($(LITERAL '=') $(LITERAL Identifier))? * ;) */ ImportBind parseImportBind() { auto startIndex = index; auto node = allocator.make!ImportBind; const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.left = *ident; if (currentIs(tok!"=")) { advance(); const id = expect(tok!"identifier"); mixin(nullCheck!`id`); node.right = *id; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses ImportBindings * * $(GRAMMAR $(RULEDEF importBindings): * $(RULE _singleImport) $(LITERAL ':') $(RULE importBind) ($(LITERAL ',') $(RULE importBind))* * ;) */ ImportBindings parseImportBindings(SingleImport singleImport) { auto startIndex = index; auto node = allocator.make!ImportBindings; mixin(nullCheck!`node.singleImport = singleImport is null ? parseSingleImport() : singleImport`); mixin(tokenCheck!":"); StackBuffer importBinds; while (moreTokens()) { immutable c = allocator.setCheckpoint(); if (importBinds.put(parseImportBind())) { if (currentIs(tok!",")) advance(); else break; } else { allocator.rollback(c); break; } } ownArray(node.importBinds, importBinds); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ImportDeclaration * * $(GRAMMAR $(RULEDEF importDeclaration): * $(LITERAL 'import') $(RULE singleImport) ($(LITERAL ',') $(RULE singleImport))* ($(LITERAL ',') $(RULE importBindings))? $(LITERAL ';') * | $(LITERAL 'import') $(RULE importBindings) $(LITERAL ';') * ;) */ ImportDeclaration parseImportDeclaration() { auto startIndex = index; auto node = allocator.make!ImportDeclaration; node.startIndex = current().index; mixin(tokenCheck!"import"); SingleImport si = parseSingleImport(); if (si is null) return null; if (currentIs(tok!":")) node.importBindings = parseImportBindings(si); else { StackBuffer singleImports; singleImports.put(si); if (currentIs(tok!",")) { advance(); while (moreTokens()) { auto single = parseSingleImport(); mixin(nullCheck!`single`); if (currentIs(tok!":")) { node.importBindings = parseImportBindings(single); break; } else { singleImports.put(single); if (currentIs(tok!",")) advance(); else break; } } } ownArray(node.singleImports, singleImports); } node.endIndex = (moreTokens() ? current() : previous()).index + 1; mixin(tokenCheck!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an ImportExpression * * $(GRAMMAR $(RULEDEF importExpression): * $(LITERAL 'import') $(LITERAL '$(LPAREN)') $(RULE assignExpression) $(LITERAL '$(RPAREN)') * ;) */ ImportExpression parseImportExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin(simpleParse!(ImportExpression, tok!"import", tok!"(", "assignExpression|parseAssignExpression", tok!")")); } /** * Parses an Index * * $(GRAMMAR $(RULEDEF index): * $(RULE assignExpression) ($(LITERAL '..') $(RULE assignExpression))? * ; * ) */ Index parseIndex() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Index(); mixin(parseNodeQ!(`node.low`, `AssignExpression`)); if (currentIs(tok!"..")) { advance(); mixin(parseNodeQ!(`node.high`, `AssignExpression`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IndexExpression * * $(GRAMMAR $(RULEDEF indexExpression): * $(RULE _unaryExpression) $(LITERAL '[') $(LITERAL ']') * | $(RULE _unaryExpression) $(LITERAL '[') $(RULE index) ($(LITERAL ',') $(RULE index))* $(LITERAL ']') * ; * ) */ IndexExpression parseIndexExpression(UnaryExpression unaryExpression = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!IndexExpression; mixin(nullCheck!`node.unaryExpression = unaryExpression is null ? parseUnaryExpression() : unaryExpression`); mixin(tokenCheck!"["); StackBuffer indexes; while (true) { if (currentIs(tok!"]")) break; if (!(indexes.put(parseIndex()))) return null; if (!moreTokens()) { error("Expected ',' or ']' instead of EOF"); return null; } if (currentIs(tok!",")) advance(); else break; } ownArray(node.indexes, indexes); mixin(tokenCheck!"]"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an InContractExpression * * $(GRAMMAR $(RULEDEF inContractExpression): * $(LITERAL 'in') $(LITERAL '$(LPAREN)') $(RULE assertArguments) $(LITERAL '$(RPAREN)') * ;) */ InContractExpression parseInContractExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!InContractExpression; const i = expect(tok!"in"); mixin(nullCheck!`i`); node.inTokenLocation = i.index; mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.assertArguments`, `AssertArguments`)); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an InExpression * * $(GRAMMAR $(RULEDEF inExpression): * $(RULE shiftExpression) ($(LITERAL 'in') | ($(LITERAL '!') $(LITERAL 'in'))) $(RULE shiftExpression) * ;) */ ExpressionNode parseInExpression(ExpressionNode shift = null) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!InExpression; mixin(nullCheck!`node.left = shift is null ? parseShiftExpression() : shift`); if (currentIs(tok!"!")) { node.negated = true; advance(); } mixin(tokenCheck!"in"); mixin(parseNodeQ!(`node.right`, `ShiftExpression`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an InOutContractExpression * * $(GRAMMAR $(RULEDEF inOutContractExpression): * $(RULE inContractExpression) * | $(RULE outContractExpression) * ;) */ InOutContractExpression parseInOutContractExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!InOutContractExpression; if (currentIs(tok!"in")) mixin(parseNodeQ!(`node.inContractExpression`, `InContractExpression`)); else if (currentIs(tok!"out")) mixin(parseNodeQ!(`node.outContractExpression`, `OutContractExpression`)); else return null; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an InOutStatement * * $(GRAMMAR $(RULEDEF inOutStatement): * $(RULE inStatement) * | $(RULE outStatement) * ;) */ InOutStatement parseInOutStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!InOutStatement; if (currentIs(tok!"in")) mixin(parseNodeQ!(`node.inStatement`, `InStatement`)); else if (currentIs(tok!"out")) mixin(parseNodeQ!(`node.outStatement`, `OutStatement`)); else return null; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an InStatement * * $(GRAMMAR $(RULEDEF inStatement): * $(LITERAL 'in') $(RULE blockStatement) * ;) */ InStatement parseInStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!InStatement; const i = expect(tok!"in"); mixin(nullCheck!`i`); node.inTokenLocation = i.index; mixin(parseNodeQ!(`node.blockStatement`, `BlockStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an Initializer * * $(GRAMMAR $(RULEDEF initializer): * $(LITERAL 'void') * | $(RULE nonVoidInitializer) * ;) */ Initializer parseInitializer() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Initializer; if (currentIs(tok!"void") && peekIsOneOf(tok!",", tok!";")) advance(); else mixin(parseNodeQ!(`node.nonVoidInitializer`, `NonVoidInitializer`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an InterfaceDeclaration * * $(GRAMMAR $(RULEDEF interfaceDeclaration): * $(LITERAL 'interface') $(LITERAL Identifier) $(LITERAL ';') * | $(LITERAL 'interface') $(LITERAL Identifier) ($(LITERAL ':') $(RULE baseClassList))? $(RULE structBody) * | $(LITERAL 'interface') $(LITERAL Identifier) $(RULE templateParameters) $(RULE constraint)? ($(LITERAL ':') $(RULE baseClassList))? $(RULE structBody) * | $(LITERAL 'interface') $(LITERAL Identifier) $(RULE templateParameters) ($(LITERAL ':') $(RULE baseClassList))? $(RULE constraint)? $(RULE structBody) * ;) */ InterfaceDeclaration parseInterfaceDeclaration() { auto startIndex = index; auto node = allocator.make!InterfaceDeclaration; expect(tok!"interface"); return parseInterfaceOrClass(node, startIndex); } /** * Parses an Invariant * * $(GRAMMAR $(RULEDEF invariant): * $(LITERAL 'invariant') ($(LITERAL '$(LPAREN)') $(LITERAL '$(LPAREN)'))? $(RULE blockStatement) * | $(LITERAL 'invariant') $(LITERAL '$(LPAREN)') $(RULE assertArguments) $(LITERAL '$(RPAREN)') $(LITERAL ';') * ;) */ Invariant parseInvariant() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Invariant; node.index = current.index; node.line = current.line; mixin(tokenCheck!"invariant"); bool mustHaveBlock; if (currentIs(tok!"(") && peekIs(tok!")")) { mustHaveBlock = true; node.useParen = true; advance(); advance(); } if (currentIs(tok!"{")) { if (currentIs(tok!"(")) { advance(); mixin(tokenCheck!")"); } mixin(parseNodeQ!(`node.blockStatement`, `BlockStatement`)); } else if (!mustHaveBlock && currentIs(tok!"(")) { advance(); node.useParen = true; mixin(parseNodeQ!(`node.assertArguments`, `AssertArguments`)); mixin(tokenCheck!")"); mixin(tokenCheck!";"); } else return null; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an IsExpression * * $(GRAMMAR $(RULEDEF isExpression): * $(LITERAL'is') $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL identifier)? $(LITERAL '$(RPAREN)') * | $(LITERAL'is') $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL identifier)? $(LITERAL ':') $(RULE typeSpecialization) $(LITERAL '$(RPAREN)') * | $(LITERAL'is') $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL identifier)? $(LITERAL '=') $(RULE typeSpecialization) $(LITERAL '$(RPAREN)') * | $(LITERAL'is') $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL identifier)? $(LITERAL ':') $(RULE typeSpecialization) $(LITERAL ',') $(RULE templateParameterList) $(LITERAL '$(RPAREN)') * | $(LITERAL'is') $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL identifier)? $(LITERAL '=') $(RULE typeSpecialization) $(LITERAL ',') $(RULE templateParameterList) $(LITERAL '$(RPAREN)') * ;) */ IsExpression parseIsExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!IsExpression; mixin(tokenCheck!"is"); mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.type`, `Type`)); if (currentIs(tok!"identifier")) node.identifier = advance(); if (currentIsOneOf(tok!"==", tok!":")) { node.equalsOrColon = advance().type; mixin(parseNodeQ!(`node.typeSpecialization`, `TypeSpecialization`)); if (currentIs(tok!",")) { advance(); mixin(parseNodeQ!(`node.templateParameterList`, `TemplateParameterList`)); } } mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a KeyValuePair * * $(GRAMMAR $(RULEDEF keyValuePair): * $(RULE assignExpression) $(LITERAL ':') $(RULE assignExpression) * ;) */ KeyValuePair parseKeyValuePair() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!KeyValuePair; mixin(parseNodeQ!(`node.key`, `AssignExpression`)); mixin(tokenCheck!":"); mixin(parseNodeQ!(`node.value`, `AssignExpression`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses KeyValuePairs * * $(GRAMMAR $(RULEDEF keyValuePairs): * $(RULE keyValuePair) ($(LITERAL ',') $(RULE keyValuePair))* $(LITERAL ',')? * ;) */ KeyValuePairs parseKeyValuePairs() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!KeyValuePairs; StackBuffer keyValuePairs; while (moreTokens()) { if (!keyValuePairs.put(parseKeyValuePair())) return null; if (currentIs(tok!",")) { advance(); if (currentIs(tok!"]")) break; } else break; } ownArray(node.keyValuePairs, keyValuePairs); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a LabeledStatement * * $(GRAMMAR $(RULEDEF labeledStatement): * $(LITERAL Identifier) $(LITERAL ':') $(RULE declarationOrStatement)? * ;) */ LabeledStatement parseLabeledStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!LabeledStatement; const ident = expect(tok!"identifier"); mixin (nullCheck!`ident`); node.identifier = *ident; expect(tok!":"); if (!currentIs(tok!"}")) mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a LastCatch * * $(GRAMMAR $(RULEDEF lastCatch): * $(LITERAL 'catch') $(RULE statementNoCaseNoDefault) * ;) */ LastCatch parseLastCatch() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!LastCatch; const t = expect(tok!"catch"); mixin (nullCheck!`t`); node.line = t.line; node.column = t.column; mixin(parseNodeQ!(`node.statementNoCaseNoDefault`, `StatementNoCaseNoDefault`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a LinkageAttribute * * $(GRAMMAR $(RULEDEF linkageAttribute): * $(LITERAL 'extern') $(LITERAL '$(LPAREN)') $(LITERAL Identifier) $(LITERAL '$(RPAREN)') * | $(LITERAL 'extern') $(LITERAL '$(LPAREN)') $(LITERAL Identifier) $(LITERAL '-') $(LITERAL Identifier) $(LITERAL '$(RPAREN)') * | $(LITERAL 'extern') $(LITERAL '$(LPAREN)') $(LITERAL Identifier) $(LITERAL '++') ($(LITERAL ',') $(RULE typeIdentifierPart) | $(LITERAL 'struct') | $(LITERAL 'class'))? $(LITERAL '$(RPAREN)') * ;) */ LinkageAttribute parseLinkageAttribute() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!LinkageAttribute; mixin (tokenCheck!"extern"); mixin (tokenCheck!"("); const ident = expect(tok!"identifier"); mixin (nullCheck!`ident`); node.identifier = *ident; if (currentIs(tok!"++")) { advance(); node.hasPlusPlus = true; if (currentIs(tok!",")) { advance(); if (currentIsOneOf(tok!"struct", tok!"class")) node.classOrStruct = advance().type; else mixin(parseNodeQ!(`node.typeIdentifierPart`, `TypeIdentifierPart`)); } } else if (currentIs(tok!"-")) { advance(); mixin(tokenCheck!"identifier"); } expect(tok!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MemberFunctionAttribute * * $(GRAMMAR $(RULEDEF memberFunctionAttribute): * $(RULE functionAttribute) * | $(LITERAL 'immutable') * | $(LITERAL 'inout') * | $(LITERAL 'shared') * | $(LITERAL 'const') * | $(LITERAL 'return') * | $(LITERAL 'scope') * ;) */ MemberFunctionAttribute parseMemberFunctionAttribute() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens) return null; auto node = allocator.make!MemberFunctionAttribute; switch (current.type) { case tok!"@": mixin(parseNodeQ!(`node.atAttribute`, `AtAttribute`)); break; case tok!"immutable": case tok!"inout": case tok!"shared": case tok!"const": case tok!"pure": case tok!"nothrow": case tok!"return": case tok!"scope": node.tokenType = advance().type; break; default: error(`Member funtion attribute expected`); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MissingFunctionBody * * $(GRAMMAR $(RULEDEF missingFunctionBody): * $(LITERAL ';') * | $(RULE functionContract)* $(LITERAL ';') * ;) */ MissingFunctionBody parseMissingFunctionBody() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!MissingFunctionBody; StackBuffer contracts; while (currentIsOneOf(tok!"in", tok!"out")) { if (auto c = parseFunctionContract()) contracts.put(c); } ownArray(node.functionContracts, contracts); if (node.functionContracts.length == 0 || node.functionContracts[$ - 1].inOutContractExpression !is null) { if (expect(tok!";") is null) return null; } else if (moreTokens() && (currentIs(tok!"do") || current.text == "body")) return null; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MixinDeclaration * * $(GRAMMAR $(RULEDEF mixinDeclaration): * $(RULE mixinExpression) $(LITERAL ';') * | $(RULE templateMixinExpression) $(LITERAL ';') * ;) */ MixinDeclaration parseMixinDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!MixinDeclaration; if (peekIsOneOf(tok!"identifier", tok!"typeof", tok!".")) mixin(parseNodeQ!(`node.templateMixinExpression`, `TemplateMixinExpression`)); else if (peekIs(tok!"(")) mixin(parseNodeQ!(`node.mixinExpression`, `MixinExpression`)); else { error("`(` or identifier expected"); return null; } expect(tok!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MixinExpression * * $(GRAMMAR $(RULEDEF mixinExpression): * $(LITERAL 'mixin') $(LITERAL '$(LPAREN)') $(RULE argumentList) $(LITERAL '$(RPAREN)') * ;) */ MixinExpression parseMixinExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!MixinExpression; expect(tok!"mixin"); expect(tok!"("); mixin(parseNodeQ!(`node.argumentList`, `ArgumentList`)); expect(tok!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MixinTemplateDeclaration * * $(GRAMMAR $(RULEDEF mixinTemplateDeclaration): * $(LITERAL 'mixin') $(RULE templateDeclaration) * ;) */ MixinTemplateDeclaration parseMixinTemplateDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!MixinTemplateDeclaration; mixin(tokenCheck!"mixin"); mixin(parseNodeQ!(`node.templateDeclaration`, `TemplateDeclaration`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MixinTemplateName * * $(GRAMMAR $(RULEDEF mixinTemplateName): * $(RULE symbol) * | $(RULE typeofExpression) $(LITERAL '.') $(RULE identifierOrTemplateChain) * ;) */ MixinTemplateName parseMixinTemplateName() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!MixinTemplateName; if (currentIs(tok!"typeof")) { mixin(parseNodeQ!(`node.typeofExpression`, `TypeofExpression`)); expect(tok!"."); mixin(parseNodeQ!(`node.identifierOrTemplateChain`, `IdentifierOrTemplateChain`)); } else mixin(parseNodeQ!(`node.symbol`, `Symbol`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Module * * $(GRAMMAR $(RULEDEF module): * $(RULE moduleDeclaration)? $(RULE declaration)* * ;) */ Module parseModule() out (retVal) { assert(retVal !is null); } do { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; Module m = allocator.make!Module; if (currentIs(tok!"scriptLine")) m.scriptLine = advance(); bool isDeprecatedModule; if (currentIs(tok!"deprecated")) { immutable b = setBookmark(); advance(); if (currentIs(tok!"(")) skipParens(); isDeprecatedModule = currentIs(tok!"module"); goToBookmark(b); } if (currentIs(tok!"module") || isDeprecatedModule) { immutable c = allocator.setCheckpoint(); m.moduleDeclaration = parseModuleDeclaration(); if (m.moduleDeclaration is null) allocator.rollback(c); } StackBuffer declarations; while (moreTokens()) { immutable c = allocator.setCheckpoint(); if (!declarations.put(parseDeclaration(true, true))) allocator.rollback(c); } ownArray(m.declarations, declarations); m.tokens = tokens[startIndex .. index]; return m; } /** * Parses a ModuleDeclaration * * $(GRAMMAR $(RULEDEF moduleDeclaration): * $(RULE deprecated)? $(LITERAL 'module') $(RULE identifierChain) $(LITERAL ';') * ;) */ ModuleDeclaration parseModuleDeclaration() { auto startIndex = index; auto node = allocator.make!ModuleDeclaration; if (currentIs(tok!"deprecated")) mixin(parseNodeQ!(`node.deprecated_`, `Deprecated`)); const start = expect(tok!"module"); mixin(nullCheck!`start`); mixin(parseNodeQ!(`node.moduleName`, `IdentifierChain`)); node.comment = start.comment; if (node.comment is null) node.comment = start.trailingComment; comment = null; const end = expect(tok!";"); node.startLocation = start.index; if (end !is null) node.endLocation = end.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a MulExpression. * * $(GRAMMAR $(RULEDEF mulExpression): * $(RULE powExpression) * | $(RULE mulExpression) ($(LITERAL '*') | $(LITERAL '/') | $(LITERAL '%')) $(RULE powExpression) * ;) */ ExpressionNode parseMulExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(MulExpression, PowExpression, tok!"*", tok!"/", tok!"%")(); } /** * Parses a NewAnonClassExpression * * $(GRAMMAR $(RULEDEF newAnonClassExpression): * $(LITERAL 'new') $(RULE arguments)? $(LITERAL 'class') $(RULE arguments)? $(RULE baseClassList)? $(RULE structBody) * ;) */ NewAnonClassExpression parseNewAnonClassExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!NewAnonClassExpression; expect(tok!"new"); if (currentIs(tok!"(")) mixin(parseNodeQ!(`node.allocatorArguments`, `Arguments`)); expect(tok!"class"); if (currentIs(tok!"(")) mixin(parseNodeQ!(`node.constructorArguments`, `Arguments`)); if (!currentIs(tok!"{")) mixin(parseNodeQ!(`node.baseClassList`, `BaseClassList`)); mixin(parseNodeQ!(`node.structBody`, `StructBody`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a NewExpression * * $(GRAMMAR $(RULEDEF newExpression): * $(LITERAL 'new') $(RULE type) (($(LITERAL '[') $(RULE assignExpression) $(LITERAL ']')) | $(RULE arguments))? * | $(RULE newAnonClassExpression) * ;) */ NewExpression parseNewExpression() { // Parse ambiguity. // auto a = new int[10]; // ^^^^^^^ // auto a = new int[10]; // ^^^**** mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!NewExpression; if (peekIsOneOf(tok!"class", tok!"(")) mixin(parseNodeQ!(`node.newAnonClassExpression`, `NewAnonClassExpression`)); else { expect(tok!"new"); mixin(parseNodeQ!(`node.type`, `Type`)); if (currentIs(tok!"[")) { advance(); mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); expect(tok!"]"); } else if (currentIs(tok!"(")) mixin(parseNodeQ!(`node.arguments`, `Arguments`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a NonVoidInitializer * * $(GRAMMAR $(RULEDEF nonVoidInitializer): * $(RULE assignExpression) * | $(RULE arrayInitializer) * | $(RULE structInitializer) * ;) */ NonVoidInitializer parseNonVoidInitializer() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; NonVoidInitializer node = allocator.make!NonVoidInitializer; if (!currentIs(tok!"[")) { const b = setBookmark(); if (ExpressionNode ae = parseAssignExpression()) { abandonBookmark(b); node.assignExpression = ae; node.tokens = tokens[startIndex .. index]; return node; } goToBookmark(b); if (!currentIs(tok!"{")) { return null; } else if (StructInitializer si = parseStructInitializer) { node.structInitializer = si; node.tokens = tokens[startIndex .. index]; return node; } else return null; } else { // issue 156: // the expression that gives an array element is usually a primary // so look if there are two open brackets + colon when they are closed bool isAA; const bk = setBookmark(); advance(); if (currentIs(tok!"[")) { advance(); const c = peekPastBrackets(); isAA = c !is null && c.type == tok!":"; } goToBookmark(bk); const b = peekPastBrackets(); if (!isAA && b !is null && (b.type == tok!"," || b.type == tok!")" || b.type == tok!"]" || b.type == tok!"}" || b.type == tok!";")) { mixin(parseNodeQ!(`node.arrayInitializer`, `ArrayInitializer`)); } else mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses Operands * * $(GRAMMAR $(RULEDEF operands): * $(RULE asmExp) * | $(RULE asmExp) $(LITERAL ',') $(RULE operands) * ;) */ Operands parseOperands() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; Operands node = allocator.make!Operands; StackBuffer expressions; while (true) { if (!expressions.put(parseAsmExp())) return null; if (currentIs(tok!",")) advance(); else break; } ownArray(node.operands, expressions); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an OrExpression * * $(GRAMMAR $(RULEDEF orExpression): * $(RULE xorExpression) * | $(RULE orExpression) $(LITERAL '|') $(RULE xorExpression) * ;) */ ExpressionNode parseOrExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(OrExpression, XorExpression, tok!"|")(); } /** * Parses an OrOrExpression * * $(GRAMMAR $(RULEDEF orOrExpression): * $(RULE andAndExpression) * | $(RULE orOrExpression) $(LITERAL '||') $(RULE andAndExpression) * ;) */ ExpressionNode parseOrOrExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(OrOrExpression, AndAndExpression, tok!"||")(); } /** * Parses an OutContractExpression * * $(GRAMMAR $(RULEDEF outContractExpression): * $(LITERAL 'out') $(LITERAL '$(LPAREN)') $(LITERAL Identifier)? $(LITERAL ';') $(RULE assertArguments) $(LITERAL '$(RPAREN)') * ;) */ OutContractExpression parseOutContractExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!OutContractExpression; const o = expect(tok!"out"); mixin(nullCheck!`o`); node.outTokenLocation = o.index; mixin(tokenCheck!"("); if (currentIs(tok!"identifier")) node.parameter = advance(); mixin(tokenCheck!";"); mixin(parseNodeQ!(`node.assertArguments`, `AssertArguments`)); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an OutStatement * * $(GRAMMAR $(RULEDEF outStatement): * $(LITERAL 'out') ($(LITERAL '$(LPAREN)') $(LITERAL Identifier) $(LITERAL '$(RPAREN)'))? $(RULE blockStatement) * ;) */ OutStatement parseOutStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!OutStatement; const o = expect(tok!"out"); mixin(nullCheck!`o`); node.outTokenLocation = o.index; if (currentIs(tok!"(")) { advance(); const ident = expect(tok!"identifier"); mixin (nullCheck!`ident`); node.parameter = *ident; expect(tok!")"); } mixin(parseNodeQ!(`node.blockStatement`, `BlockStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Parameter * * $(GRAMMAR $(RULEDEF parameter): * $(RULE parameterAttribute)* $(RULE type) * | $(RULE parameterAttribute)* $(RULE type) $(LITERAL Identifier)? $(LITERAL '...') * | $(RULE parameterAttribute)* $(RULE type) $(LITERAL Identifier)? ($(LITERAL '=') $(RULE assignExpression))? * ;) */ Parameter parseParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Parameter; StackBuffer parameterAttributes; while (moreTokens()) { if (ParameterAttribute pa = parseParameterAttribute(false)) parameterAttributes.put(pa); else break; } ownArray(node.parameterAttributes, parameterAttributes); mixin(parseNodeQ!(`node.type`, `Type`)); if (currentIs(tok!"identifier")) { node.name = advance(); if (currentIs(tok!"...")) { advance(); node.vararg = true; } else if (currentIs(tok!"=")) { advance(); mixin(parseNodeQ!(`node.default_`, `AssignExpression`)); if (currentIs(tok!"...")) { advance(); node.vararg = true; } } else if (currentIs(tok!"[")) { StackBuffer typeSuffixes; while(moreTokens() && currentIs(tok!"[")) if (!typeSuffixes.put(parseTypeSuffix())) return null; ownArray(node.cstyle, typeSuffixes); } } else if (currentIs(tok!"...")) { node.vararg = true; advance(); } else if (currentIs(tok!"=")) { advance(); mixin(parseNodeQ!(`node.default_`, `AssignExpression`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ParameterAttribute * * $(GRAMMAR $(RULEDEF parameterAttribute): * $(RULE atAttribute) * | $(RULE typeConstructor) * | $(LITERAL 'final') * | $(LITERAL 'in') * | $(LITERAL 'lazy') * | $(LITERAL 'out') * | $(LITERAL 'ref') * | $(LITERAL 'scope') * | $(LITERAL 'auto') * | $(LITERAL 'return') * ;) */ ParameterAttribute parseParameterAttribute(bool validate = false) { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens) return null; auto node = allocator.make!ParameterAttribute; switch (current.type) { case tok!"@": if (AtAttribute aa = parseAtAttribute()) { node.atAttribute = aa; node.tokens = tokens[startIndex .. index]; return node; } else { validate = true; goto default; } case tok!"immutable": case tok!"shared": case tok!"const": case tok!"inout": if (peekIs(tok!"(")) return null; else goto case; case tok!"final": case tok!"in": case tok!"lazy": case tok!"out": case tok!"ref": case tok!"scope": case tok!"auto": case tok!"return": node.idType = advance().type; node.tokens = tokens[startIndex .. index]; return node; default: if (validate) error("Parameter attribute expected"); return null; } } /** * Parses Parameters * * $(GRAMMAR $(RULEDEF parameters): * $(LITERAL '$(LPAREN)') $(RULE parameter) ($(LITERAL ',') $(RULE parameter))* ($(LITERAL ',') $(LITERAL '...'))? $(LITERAL '$(RPAREN)') * | $(LITERAL '$(LPAREN)') $(LITERAL '...') $(LITERAL '$(RPAREN)') * | $(LITERAL '$(LPAREN)') $(LITERAL '$(RPAREN)') * ;) */ Parameters parseParameters() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Parameters; mixin(tokenCheck!"("); if (currentIs(tok!")")) { advance(); // ) node.tokens = tokens[startIndex .. index]; return node; } if (currentIs(tok!"...")) { advance(); node.hasVarargs = true; mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } StackBuffer parameters; while (moreTokens()) { if (currentIs(tok!"...")) { advance(); node.hasVarargs = true; break; } if (currentIs(tok!")")) break; if (!parameters.put(parseParameter())) return null; if (currentIs(tok!",")) advance(); else break; } ownArray(node.parameters, parameters); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Postblit * * $(GRAMMAR $(RULEDEF postblit): * $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL 'this') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ';')) * ;) */ Postblit parsePostblit() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Postblit; node.line = current.line; node.column = current.column; node.location = current.index; index += 4; StackBuffer memberFunctionAttributes; while (currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, memberFunctionAttributes); if (currentIs(tok!";")) advance(); else mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a PowExpression * * $(GRAMMAR $(RULEDEF powExpression): * $(RULE unaryExpression) * | $(RULE powExpression) $(LITERAL '^^') $(RULE unaryExpression) * ;) */ ExpressionNode parsePowExpression() { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(PowExpression, UnaryExpression, tok!"^^")(); } /** * Parses a PragmaDeclaration * * $(GRAMMAR $(RULEDEF pragmaDeclaration): * $(RULE pragmaExpression) $(LITERAL ';') * ;) */ PragmaDeclaration parsePragmaDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin(simpleParse!(PragmaDeclaration, "pragmaExpression|parsePragmaExpression", tok!";")); } /** * Parses a PragmaExpression * * $(GRAMMAR $(RULEDEF pragmaExpression): * $(RULE 'pragma') $(LITERAL '$(LPAREN)') $(LITERAL Identifier) ($(LITERAL ',') $(RULE argumentList))? $(LITERAL '$(RPAREN)') * ;) */ PragmaExpression parsePragmaExpression() { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!PragmaExpression; expect(tok!"pragma"); expect(tok!"("); const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; if (currentIs(tok!",")) { advance(); mixin(parseNodeQ!(`node.argumentList`, `ArgumentList`)); } expect(tok!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a PragmaStatement * * $(GRAMMAR $(RULEDEF pragmaStatement): * $(RULE pragmaExpression) $(RULE statement) * | $(RULE pragmaExpression) $(RULE blockStatement) * | $(RULE pragmaExpression) $(LITERAL ';') * ;) */ PragmaStatement parsePragmaStatement() { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!PragmaStatement; mixin(parseNodeQ!(`node.pragmaExpression`, `PragmaExpression`)); if (current == tok!"{") { mixin(parseNodeQ!(`node.blockStatement`, `BlockStatement`)); } else if (current == tok!";") { advance(); } else { mixin(parseNodeQ!(`node.statement`, `Statement`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a PrimaryExpression * * $(GRAMMAR $(RULEDEF primaryExpression): * $(RULE identifierOrTemplateInstance) * | $(LITERAL '.') $(RULE identifierOrTemplateInstance) * | $(RULE typeConstructor) $(LITERAL '$(LPAREN)') $(RULE basicType) $(LITERAL '$(RPAREN)') $(LITERAL '.') $(LITERAL Identifier) * | $(RULE basicType) $(LITERAL '.') $(LITERAL Identifier) * | $(RULE basicType) $(RULE arguments) * | $(RULE typeofExpression) * | $(RULE typeidExpression) * | $(RULE vector) * | $(RULE arrayLiteral) * | $(RULE assocArrayLiteral) * | $(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)') * | $(RULE isExpression) * | $(RULE functionLiteralExpression) * | $(RULE traitsExpression) * | $(RULE mixinExpression) * | $(RULE importExpression) * | $(LITERAL '$') * | $(LITERAL 'this') * | $(LITERAL 'super') * | $(LITERAL '_null') * | $(LITERAL '_true') * | $(LITERAL '_false') * | $(LITERAL '___DATE__') * | $(LITERAL '___FILE__') * | $(LITERAL '___FILE_FULL_PATH__') * | $(LITERAL '___FUNCTION__') * | $(LITERAL '___LINE__') * | $(LITERAL '___MODULE__') * | $(LITERAL '___PRETTY_FUNCTION__') * | $(LITERAL '___TIME__') * | $(LITERAL '___TIMESTAMP__') * | $(LITERAL '___VENDOR__') * | $(LITERAL '___VERSION__') * | $(LITERAL IntegerLiteral) * | $(LITERAL FloatLiteral) * | $(LITERAL StringLiteral)+ * | $(LITERAL CharacterLiteral) * ;) */ PrimaryExpression parsePrimaryExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!PrimaryExpression; if (!moreTokens()) { error("Expected primary statement instead of EOF"); return null; } switch (current.type) { case tok!".": node.dot = advance(); goto case; case tok!"identifier": if (peekIs(tok!"=>")) mixin(parseNodeQ!(`node.functionLiteralExpression`, `FunctionLiteralExpression`)); else mixin(parseNodeQ!(`node.identifierOrTemplateInstance`, `IdentifierOrTemplateInstance`)); break; case tok!"immutable": case tok!"const": case tok!"inout": case tok!"shared": { node.typeConstructor = advance(); expect(tok!"("); mixin(parseNodeQ!(`node.type`, `Type`)); expect(tok!")"); expect(tok!"."); const ident = expect(tok!"identifier"); if (ident !is null) node.primary = *ident; break; } foreach (B; BasicTypes) { case B: } node.basicType = advance(); if (currentIs(tok!".")) { advance(); const t = expect(tok!"identifier"); if (t !is null) node.primary = *t; } else if (currentIs(tok!"(")) mixin(parseNodeQ!(`node.arguments`, `Arguments`)); else goto default; break; case tok!"function": case tok!"delegate": case tok!"{": case tok!"in": case tok!"out": case tok!"do": mixin(parseNodeQ!(`node.functionLiteralExpression`, `FunctionLiteralExpression`)); break; case tok!"typeof": mixin(parseNodeQ!(`node.typeofExpression`, `TypeofExpression`)); break; case tok!"typeid": mixin(parseNodeQ!(`node.typeidExpression`, `TypeidExpression`)); break; case tok!"__vector": mixin(parseNodeQ!(`node.vector`, `Vector`)); break; case tok!"[": if (isAssociativeArrayLiteral()) mixin(parseNodeQ!(`node.assocArrayLiteral`, `AssocArrayLiteral`)); else mixin(parseNodeQ!(`node.arrayLiteral`, `ArrayLiteral`)); break; case tok!"ref": if (peekIs(tok!"(")) { mixin(parseNodeQ!(`node.functionLiteralExpression`, `FunctionLiteralExpression`)); break; } else goto default; case tok!"(": immutable b = setBookmark(); skipParens(); while (isAttribute()) parseAttribute(); if (currentIsOneOf(tok!"=>", tok!"{")) { goToBookmark(b); mixin(parseNodeQ!(`node.functionLiteralExpression`, `FunctionLiteralExpression`)); } else { goToBookmark(b); advance(); mixin(parseNodeQ!(`node.expression`, `Expression`)); mixin(tokenCheck!")"); } break; case tok!"is": mixin(parseNodeQ!(`node.isExpression`, `IsExpression`)); break; case tok!"__traits": mixin(parseNodeQ!(`node.traitsExpression`, `TraitsExpression`)); break; case tok!"mixin": mixin(parseNodeQ!(`node.mixinExpression`, `MixinExpression`)); break; case tok!"import": mixin(parseNodeQ!(`node.importExpression`, `ImportExpression`)); break; case tok!"this": case tok!"super": foreach (L; Literals) { case L: } if (currentIsOneOf(tok!"stringLiteral", tok!"wstringLiteral", tok!"dstringLiteral")) { node.primary = advance(); bool alreadyWarned = false; while (currentIsOneOf(tok!"stringLiteral", tok!"wstringLiteral", tok!"dstringLiteral")) { if (!alreadyWarned) { warn("Implicit concatenation of string literals"); alreadyWarned = true; } node.primary.text ~= advance().text; } } else node.primary = advance(); break; default: error("Primary expression expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Register * * $(GRAMMAR $(RULEDEF register): * $(LITERAL Identifier) * | $(LITERAL Identifier) $(LITERAL '$(LPAREN)') $(LITERAL IntegerLiteral) $(LITERAL '$(RPAREN)') * ;) */ Register parseRegister() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Register; const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; if (currentIs(tok!"(")) { advance(); const intLit = expect(tok!"intLiteral"); mixin(nullCheck!`intLit`); node.intLiteral = *intLit; expect(tok!")"); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a RelExpression * * $(GRAMMAR $(RULEDEF relExpression): * $(RULE shiftExpression) * | $(RULE relExpression) $(RULE relOperator) $(RULE shiftExpression) * ; *$(RULEDEF relOperator): * $(LITERAL '<') * | $(LITERAL '<=') * | $(LITERAL '>') * | $(LITERAL '>=') * | $(LITERAL '!<>=') * | $(LITERAL '!<>') * | $(LITERAL '<>') * | $(LITERAL '<>=') * | $(LITERAL '!>') * | $(LITERAL '!>=') * | $(LITERAL '!<') * | $(LITERAL '!<=') * ;) */ ExpressionNode parseRelExpression(ExpressionNode shift) { mixin (traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(RelExpression, ShiftExpression, tok!"<", tok!"<=", tok!">", tok!">=", tok!"!<>=", tok!"!<>", tok!"<>", tok!"<>=", tok!"!>", tok!"!>=", tok!"!>=", tok!"!<", tok!"!<=")(shift); } /** * Parses a ReturnStatement * * $(GRAMMAR $(RULEDEF returnStatement): * $(LITERAL 'return') $(RULE expression)? $(LITERAL ';') * ;) */ ReturnStatement parseReturnStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ReturnStatement; const start = expect(tok!"return"); mixin(nullCheck!`start`); node.startLocation = start.index; if (!currentIs(tok!";")) mixin(parseNodeQ!(`node.expression`, `Expression`)); const semicolon = expect(tok!";"); mixin(nullCheck!`semicolon`); node.endLocation = semicolon.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a ScopeGuardStatement * * $(GRAMMAR $(RULEDEF scopeGuardStatement): * $(LITERAL 'scope') $(LITERAL '$(LPAREN)') $(LITERAL Identifier) $(LITERAL '$(RPAREN)') $(RULE statementNoCaseNoDefault) * ;) */ ScopeGuardStatement parseScopeGuardStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ScopeGuardStatement; expect(tok!"scope"); expect(tok!"("); const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; expect(tok!")"); mixin(parseNodeQ!(`node.statementNoCaseNoDefault`, `StatementNoCaseNoDefault`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a SharedStaticConstructor * * $(GRAMMAR $(RULEDEF sharedStaticConstructor): * $(LITERAL 'shared') $(LITERAL 'static') $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ";")) * ;) */ SharedStaticConstructor parseSharedStaticConstructor() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!SharedStaticConstructor; node.location = current().index; mixin(tokenCheck!"shared"); mixin(tokenCheck!"static"); return parseStaticCtorDtorCommon(node, startIndex); } /** * Parses a SharedStaticDestructor * * $(GRAMMAR $(RULEDEF sharedStaticDestructor): * $(LITERAL 'shared') $(LITERAL 'static') $(LITERAL '~') $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ";")) * ;) */ SharedStaticDestructor parseSharedStaticDestructor() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!SharedStaticDestructor; node.location = current().index; mixin(tokenCheck!"shared"); mixin(tokenCheck!"static"); mixin(tokenCheck!"~"); return parseStaticCtorDtorCommon(node, startIndex); } /** * Parses a ShiftExpression * * $(GRAMMAR $(RULEDEF shiftExpression): * $(RULE addExpression) * | $(RULE shiftExpression) ($(LITERAL '<<') | $(LITERAL '>>') | $(LITERAL '>>>')) $(RULE addExpression) * ;) */ ExpressionNode parseShiftExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(ShiftExpression, AddExpression, tok!"<<", tok!">>", tok!">>>")(); } /** * Parses a SingleImport * * $(GRAMMAR $(RULEDEF singleImport): * ($(LITERAL Identifier) $(LITERAL '='))? $(RULE identifierChain) * ;) */ SingleImport parseSingleImport() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!SingleImport; if (startsWith(tok!"identifier", tok!"=")) { node.rename = advance(); // identifier advance(); // = } mixin(parseNodeQ!(`node.identifierChain`, `IdentifierChain`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a SpecifiedFunctionBody * * $(GRAMMAR $(RULEDEF specifiedFunctionBody): * $(LITERAL 'do')? $(RULE blockStatement) * | $(RULE functionContract)* $(RULE inOutContractExpression) $(LITERAL 'do')? $(RULE blockStatement) * | $(RULE functionContract)* $(RULE inOutStatement) $(LITERAL 'do') $(RULE blockStatement) * ;) */ SpecifiedFunctionBody parseSpecifiedFunctionBody() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!SpecifiedFunctionBody; StackBuffer contracts; bool requireDo; while (currentIsOneOf(tok!"in", tok!"out")) { if (auto c = parseFunctionContract()) { requireDo = c.inOutStatement !is null; contracts.put(c); } } ownArray(node.functionContracts, contracts); node.hasDo = currentIs(tok!"do"); if (currentIs(tok!"do") || (currentIs(tok!"identifier") && current.text == "body")) { requireDo = false; advance(); } if (requireDo) { error("`do` expected after InStatement or OutStatement"); return null; } mixin(parseNodeQ!(`node.blockStatement`, `BlockStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Statement * * $(GRAMMAR $(RULEDEF statement): * $(RULE statementNoCaseNoDefault) * | $(RULE caseStatement) * | $(RULE caseRangeStatement) * | $(RULE defaultStatement) * ;) */ Statement parseStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Statement; if (!moreTokens()) { error("Expected statement instead of EOF"); return null; } switch (current.type) { case tok!"case": advance(); auto argumentList = parseArgumentList(); if (argumentList is null) return null; if (argumentList.items.length == 1 && startsWith(tok!":", tok!"..")) node.caseRangeStatement = parseCaseRangeStatement(argumentList.items[0]); else node.caseStatement = parseCaseStatement(argumentList); break; case tok!"default": mixin(parseNodeQ!(`node.defaultStatement`, `DefaultStatement`)); break; default: mixin(parseNodeQ!(`node.statementNoCaseNoDefault`, `StatementNoCaseNoDefault`)); break; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a StatementNoCaseNoDefault * * $(GRAMMAR $(RULEDEF statementNoCaseNoDefault): * $(RULE labeledStatement) * | $(RULE blockStatement) * | $(RULE ifStatement) * | $(RULE whileStatement) * | $(RULE doStatement) * | $(RULE forStatement) * | $(RULE foreachStatement) * | $(RULE switchStatement) * | $(RULE finalSwitchStatement) * | $(RULE continueStatement) * | $(RULE breakStatement) * | $(RULE returnStatement) * | $(RULE gotoStatement) * | $(RULE withStatement) * | $(RULE synchronizedStatement) * | $(RULE tryStatement) * | $(RULE throwStatement) * | $(RULE scopeGuardStatement) * | $(RULE pragmaStatement) * | $(RULE asmStatement) * | $(RULE conditionalStatement) * | $(RULE staticAssertStatement) * | $(RULE versionSpecification) * | $(RULE debugSpecification) * | $(RULE expressionStatement) * ;) */ StatementNoCaseNoDefault parseStatementNoCaseNoDefault() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens()) return null; auto node = allocator.make!StatementNoCaseNoDefault; node.startLocation = current().index; switch (current.type) { case tok!"{": mixin(parseNodeQ!(`node.blockStatement`, `BlockStatement`)); break; case tok!"if": mixin(parseNodeQ!(`node.ifStatement`, `IfStatement`)); break; case tok!"while": mixin(parseNodeQ!(`node.whileStatement`, `WhileStatement`)); break; case tok!"do": mixin(parseNodeQ!(`node.doStatement`, `DoStatement`)); break; case tok!"for": mixin(parseNodeQ!(`node.forStatement`, `ForStatement`)); break; case tok!"foreach": case tok!"foreach_reverse": mixin(parseNodeQ!(`node.foreachStatement`, `ForeachStatement`)); break; case tok!"switch": mixin(parseNodeQ!(`node.switchStatement`, `SwitchStatement`)); break; case tok!"continue": mixin(parseNodeQ!(`node.continueStatement`, `ContinueStatement`)); break; case tok!"break": mixin(parseNodeQ!(`node.breakStatement`, `BreakStatement`)); break; case tok!"return": mixin(parseNodeQ!(`node.returnStatement`, `ReturnStatement`)); break; case tok!"goto": mixin(parseNodeQ!(`node.gotoStatement`, `GotoStatement`)); break; case tok!"with": mixin(parseNodeQ!(`node.withStatement`, `WithStatement`)); break; case tok!"synchronized": mixin(parseNodeQ!(`node.synchronizedStatement`, `SynchronizedStatement`)); break; case tok!"try": mixin(parseNodeQ!(`node.tryStatement`, `TryStatement`)); break; case tok!"throw": mixin(parseNodeQ!(`node.throwStatement`, `ThrowStatement`)); break; case tok!"scope": mixin(parseNodeQ!(`node.scopeGuardStatement`, `ScopeGuardStatement`)); break; case tok!"asm": mixin(parseNodeQ!(`node.asmStatement`, `AsmStatement`)); break; case tok!"pragma": mixin(parseNodeQ!(`node.pragmaStatement`, `PragmaStatement`)); break; case tok!"final": if (peekIs(tok!"switch")) { mixin(parseNodeQ!(`node.finalSwitchStatement`, `FinalSwitchStatement`)); break; } else { error("`switch` expected"); return null; } case tok!"debug": if (peekIs(tok!"=")) mixin(parseNodeQ!(`node.debugSpecification`, `DebugSpecification`)); else mixin(parseNodeQ!(`node.conditionalStatement`, `ConditionalStatement`)); break; case tok!"version": if (peekIs(tok!"=")) mixin(parseNodeQ!(`node.versionSpecification`, `VersionSpecification`)); else mixin(parseNodeQ!(`node.conditionalStatement`, `ConditionalStatement`)); break; case tok!"static": if (peekIs(tok!"if")) mixin(parseNodeQ!(`node.conditionalStatement`, `ConditionalStatement`)); else if (peekIs(tok!"assert")) mixin(parseNodeQ!(`node.staticAssertStatement`, `StaticAssertStatement`)); else if (peekIs(tok!"foreach") || peekIs(tok!"foreach_reverse")) mixin(parseNodeQ!(`node.staticForeachStatement`, `StaticForeachStatement`)); else { error("`if`, `assert`, `foreach` or `foreach_reverse` expected."); return null; } break; case tok!"identifier": if (peekIs(tok!":")) { mixin(parseNodeQ!(`node.labeledStatement`, `LabeledStatement`)); break; } goto default; case tok!"delete": case tok!"assert": default: mixin(parseNodeQ!(`node.expressionStatement`, `ExpressionStatement`)); break; } node.endLocation = tokens[index - 1].index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a StaticAssertDeclaration * * $(GRAMMAR $(RULEDEF staticAssertDeclaration): * $(RULE staticAssertStatement) * ;) */ StaticAssertDeclaration parseStaticAssertDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin(simpleParse!(StaticAssertDeclaration, "staticAssertStatement|parseStaticAssertStatement")); } /** * Parses a StaticAssertStatement * * $(GRAMMAR $(RULEDEF staticAssertStatement): * $(LITERAL 'static') $(RULE assertExpression) $(LITERAL ';') * ;) */ StaticAssertStatement parseStaticAssertStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin(simpleParse!(StaticAssertStatement, tok!"static", "assertExpression|parseAssertExpression", tok!";")); } /** * Parses a StaticConstructor * * $(GRAMMAR $(RULEDEF staticConstructor): * $(LITERAL 'static') $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ";")) * ;) */ StaticConstructor parseStaticConstructor() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StaticConstructor; node.location = current().index; mixin(tokenCheck!"static"); return parseStaticCtorDtorCommon(node, startIndex); } /** * Parses a StaticDestructor * * $(GRAMMAR $(RULEDEF staticDestructor): * $(LITERAL 'static') $(LITERAL '~') $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ";")) * ;) */ StaticDestructor parseStaticDestructor() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StaticDestructor; node.location = current().index; mixin(tokenCheck!"static"); mixin(tokenCheck!"~"); return parseStaticCtorDtorCommon(node, startIndex); } /** * Parses an StaticIfCondition * * $(GRAMMAR $(RULEDEF staticIfCondition): * $(LITERAL 'static') $(LITERAL 'if') $(LITERAL '$(LPAREN)') $(RULE assignExpression) $(LITERAL '$(RPAREN)') * ;) */ StaticIfCondition parseStaticIfCondition() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin(simpleParse!(StaticIfCondition, tok!"static", tok!"if", tok!"(", "assignExpression|parseAssignExpression", tok!")")); } /** * Parses a StorageClass * * $(GRAMMAR $(RULEDEF storageClass): * $(RULE alignAttribute) * | $(RULE linkageAttribute) * | $(RULE atAttribute) * | $(RULE typeConstructor) * | $(RULE deprecated) * | $(LITERAL 'abstract') * | $(LITERAL 'auto') * | $(LITERAL 'enum') * | $(LITERAL 'extern') * | $(LITERAL 'final') * | $(LITERAL 'nothrow') * | $(LITERAL 'override') * | $(LITERAL 'pure') * | $(LITERAL 'ref') * | $(LITERAL '___gshared') * | $(LITERAL 'scope') * | $(LITERAL 'static') * | $(LITERAL 'synchronized') * ;) */ StorageClass parseStorageClass() { if (!moreTokens) return null; auto startIndex = index; auto node = allocator.make!StorageClass; switch (current.type) { case tok!"@": mixin(parseNodeQ!(`node.atAttribute`, `AtAttribute`)); break; case tok!"deprecated": mixin(parseNodeQ!(`node.deprecated_`, `Deprecated`)); break; case tok!"align": mixin(parseNodeQ!(`node.alignAttribute`, `AlignAttribute`)); break; case tok!"extern": if (peekIs(tok!"(")) { mixin(parseNodeQ!(`node.linkageAttribute`, `LinkageAttribute`)); break; } else goto case; case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": case tok!"abstract": case tok!"auto": case tok!"enum": case tok!"final": case tok!"nothrow": case tok!"override": case tok!"pure": case tok!"ref": case tok!"__gshared": case tok!"scope": case tok!"static": case tok!"synchronized": node.token = advance(); break; default: error(`Storage class expected`); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a StructBody * * $(GRAMMAR $(RULEDEF structBody): * $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * ;) */ StructBody parseStructBody() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StructBody; const start = expect(tok!"{"); if (start !is null) node.startLocation = start.index; StackBuffer declarations; while (!currentIs(tok!"}") && moreTokens()) { immutable c = allocator.setCheckpoint(); if (!declarations.put(parseDeclaration(true, true))) allocator.rollback(c); } ownArray(node.declarations, declarations); const end = expect(tok!"}"); if (end !is null) node.endLocation = end.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a StructDeclaration * * $(GRAMMAR $(RULEDEF structDeclaration): * $(LITERAL 'struct') $(LITERAL Identifier) ($(RULE templateParameters) $(RULE constraint)?)? ($(RULE structBody) | $(LITERAL ';')) * | $(LITERAL 'struct') $(RULE structBody) * ;) */ StructDeclaration parseStructDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StructDeclaration; const t = expect(tok!"struct"); if (currentIs(tok!"identifier")) node.name = advance(); else { node.name.line = t.line; node.name.column = t.column; } node.comment = comment; comment = null; if (currentIs(tok!"(")) { mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); if (currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); } if (currentIs(tok!"{")) { mixin(parseNodeQ!(`node.structBody`, `StructBody`)); } else if (currentIs(tok!";")) advance(); else { error("Template Parameters, Struct Body, or Semicolon expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an StructInitializer * * $(GRAMMAR $(RULEDEF structInitializer): * $(LITERAL '{') $(RULE structMemberInitializers)? $(LITERAL '}') * ;) */ StructInitializer parseStructInitializer() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StructInitializer; const a = expect(tok!"{"); mixin (nullCheck!`a`); node.startLocation = a.index; if (currentIs(tok!"}")) { node.endLocation = current.index; advance(); } else { mixin(parseNodeQ!(`node.structMemberInitializers`, `StructMemberInitializers`)); const e = expect(tok!"}"); mixin (nullCheck!`e`); node.endLocation = e.index; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a StructMemberInitializer * * $(GRAMMAR $(RULEDEF structMemberInitializer): * ($(LITERAL Identifier) $(LITERAL ':'))? $(RULE nonVoidInitializer) * ;) */ StructMemberInitializer parseStructMemberInitializer() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StructMemberInitializer; if (startsWith(tok!"identifier", tok!":")) { node.identifier = tokens[index++]; index++; } mixin(parseNodeQ!(`node.nonVoidInitializer`, `NonVoidInitializer`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses StructMemberInitializers * * $(GRAMMAR $(RULEDEF structMemberInitializers): * $(RULE structMemberInitializer) ($(LITERAL ',') $(RULE structMemberInitializer)?)* * ;) */ StructMemberInitializers parseStructMemberInitializers() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!StructMemberInitializers; StackBuffer structMemberInitializers; do { auto c = allocator.setCheckpoint(); if (!structMemberInitializers.put(parseStructMemberInitializer())) allocator.rollback(c); if (currentIs(tok!",")) advance(); else break; } while (moreTokens() && !currentIs(tok!"}")); ownArray(node.structMemberInitializers, structMemberInitializers); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a SwitchStatement * * $(GRAMMAR $(RULEDEF switchStatement): * $(LITERAL 'switch') $(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)') $(RULE statement) * ;) */ SwitchStatement parseSwitchStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!SwitchStatement; expect(tok!"switch"); expect(tok!"("); // DCD #453 // with just `switch(stuff` returns a non null node, // which allows DCD to gives completion on `stuff`. if (auto e = parseExpression()) { node.expression = e; if (currentIs(tok!")")) { advance(); // returns null only from here. mixin(parseNodeQ!(`node.statement`, `Statement`)); } } else error("Error, expression expected after `switch(`", false); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Symbol * * $(GRAMMAR $(RULEDEF symbol): * $(LITERAL '.')? $(RULE identifierOrTemplateChain) * ;) */ Symbol parseSymbol() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Symbol; if (currentIs(tok!".")) { node.dot = true; advance(); } mixin(parseNodeQ!(`node.identifierOrTemplateChain`, `IdentifierOrTemplateChain`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a SynchronizedStatement * * $(GRAMMAR $(RULEDEF synchronizedStatement): * $(LITERAL 'synchronized') ($(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)'))? $(RULE statementNoCaseNoDefault) * ;) */ SynchronizedStatement parseSynchronizedStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; expect(tok!"synchronized"); if (!moreTokens) return null; auto node = allocator.make!SynchronizedStatement; if (currentIs(tok!"(")) { expect(tok!"("); mixin(parseNodeQ!(`node.expression`, `Expression`)); expect(tok!")"); } mixin(parseNodeQ!(`node.statementNoCaseNoDefault`, `StatementNoCaseNoDefault`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateAliasParameter * * $(GRAMMAR $(RULEDEF templateAliasParameter): * $(LITERAL 'alias') $(RULE type)? $(LITERAL Identifier) ($(LITERAL ':') ($(RULE type) | $(RULE assignExpression)))? ($(LITERAL '=') ($(RULE type) | $(RULE assignExpression)))? * ;) */ TemplateAliasParameter parseTemplateAliasParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateAliasParameter; expect(tok!"alias"); if (currentIs(tok!"identifier") && !peekIs(tok!".")) { if (peekIsOneOf(tok!",", tok!")", tok!"=", tok!":")) node.identifier = advance(); else goto type; } else { type: mixin(parseNodeQ!(`node.type`, `Type`)); const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; } if (currentIs(tok!":")) { advance(); if (isType()) mixin(parseNodeQ!(`node.colonType`, `Type`)); else mixin(parseNodeQ!(`node.colonExpression`, `AssignExpression`)); } if (currentIs(tok!"=")) { advance(); if (isType()) mixin(parseNodeQ!(`node.assignType`, `Type`)); else mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateArgument * * $(GRAMMAR $(RULEDEF templateArgument): * $(RULE type) * | $(RULE assignExpression) * ;) */ TemplateArgument parseTemplateArgument() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto p = index in cachedTypeChecks; auto node = allocator.make!TemplateArgument; if (p !is null) { if (*p) node.type = parseType(); else mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } else { immutable b = setBookmark(); auto t = parseType(); if (t !is null && currentIsOneOf(tok!",", tok!")")) { cachedTypeChecks[startIndex] = true; abandonBookmark(b); node.type = t; } else { cachedTypeChecks[startIndex] = false; goToBookmark(b); mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateArgumentList * * $(GRAMMAR $(RULEDEF templateArgumentList): * $(RULE templateArgument) ($(LITERAL ',') $(RULE templateArgument)?)* * ;) */ TemplateArgumentList parseTemplateArgumentList() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseCommaSeparatedRule!(TemplateArgumentList, TemplateArgument)(true); } /** * Parses TemplateArguments * * $(GRAMMAR $(RULEDEF templateArguments): * $(LITERAL '!') ($(LITERAL '$(LPAREN)') $(RULE templateArgumentList)? $(LITERAL '$(RPAREN)')) | $(RULE templateSingleArgument) * ;) */ TemplateArguments parseTemplateArguments() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateArguments; expect(tok!"!"); if (currentIs(tok!"(")) { advance(); if (!currentIs(tok!")")) mixin(parseNodeQ!(`node.templateArgumentList`, `TemplateArgumentList`)); mixin(tokenCheck!")"); } else mixin(parseNodeQ!(`node.templateSingleArgument`, `TemplateSingleArgument`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateDeclaration * * $(GRAMMAR $(RULEDEF templateDeclaration): * $(LITERAL 'template') $(LITERAL Identifier) $(RULE templateParameters) $(RULE constraint)? $(LITERAL '{') $(RULE declaration)* $(LITERAL '}') * ;) */ TemplateDeclaration parseTemplateDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateDeclaration; node.comment = comment; comment = null; expect(tok!"template"); const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.name = *ident; mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); if (currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); const start = expect(tok!"{"); mixin(nullCheck!`start`); node.startLocation = start.index; StackBuffer declarations; while (moreTokens() && !currentIs(tok!"}")) { immutable c = allocator.setCheckpoint(); if (!declarations.put(parseDeclaration(true, true))) allocator.rollback(c); } ownArray(node.declarations, declarations); const end = expect(tok!"}"); if (end !is null) node.endLocation = end.index; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateInstance * * $(GRAMMAR $(RULEDEF templateInstance): * $(LITERAL Identifier) $(RULE templateArguments) * ;) */ TemplateInstance parseTemplateInstance() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateInstance; const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; mixin(parseNodeQ!(`node.templateArguments`, `TemplateArguments`)); if (node.templateArguments is null) return null; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateMixinExpression * * $(GRAMMAR $(RULEDEF templateMixinExpression): * $(LITERAL 'mixin') $(RULE mixinTemplateName) $(RULE templateArguments)? $(LITERAL Identifier)? * ;) */ TemplateMixinExpression parseTemplateMixinExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateMixinExpression; mixin(tokenCheck!"mixin"); mixin(parseNodeQ!(`node.mixinTemplateName`, `MixinTemplateName`)); if (currentIs(tok!"!")) mixin(parseNodeQ!(`node.templateArguments`, `TemplateArguments`)); if (currentIs(tok!"identifier")) node.identifier = advance(); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateParameter * * $(GRAMMAR $(RULEDEF templateParameter): * $(RULE templateTypeParameter) * | $(RULE templateValueParameter) * | $(RULE templateAliasParameter) * | $(RULE templateTupleParameter) * | $(RULE templateThisParameter) * ;) */ TemplateParameter parseTemplateParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens) return null; auto node = allocator.make!TemplateParameter; switch (current.type) { case tok!"alias": mixin(parseNodeQ!(`node.templateAliasParameter`, `TemplateAliasParameter`)); break; case tok!"identifier": if (peekIs(tok!"...")) mixin(parseNodeQ!(`node.templateTupleParameter`, `TemplateTupleParameter`)); else if (peekIsOneOf(tok!":", tok!"=", tok!",", tok!")")) mixin(parseNodeQ!(`node.templateTypeParameter`, `TemplateTypeParameter`)); else mixin(parseNodeQ!(`node.templateValueParameter`, `TemplateValueParameter`)); break; case tok!"this": mixin(parseNodeQ!(`node.templateThisParameter`, `TemplateThisParameter`)); break; default: mixin(parseNodeQ!(`node.templateValueParameter`, `TemplateValueParameter`)); break; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateParameterList * * $(GRAMMAR $(RULEDEF templateParameterList): * $(RULE templateParameter) ($(LITERAL ',') $(RULE templateParameter)?)* $(LITERAL ',')? * ;) */ TemplateParameterList parseTemplateParameterList() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseCommaSeparatedRule!(TemplateParameterList, TemplateParameter)(true); } /** * Parses TemplateParameters * * $(GRAMMAR $(RULEDEF templateParameters): * $(LITERAL '$(LPAREN)') $(RULE templateParameterList)? $(LITERAL '$(RPAREN)') * ;) */ TemplateParameters parseTemplateParameters() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateParameters; mixin(tokenCheck!"("); if (!currentIs(tok!")")) mixin(parseNodeQ!(`node.templateParameterList`, `TemplateParameterList`)); mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateSingleArgument * * $(GRAMMAR $(RULEDEF templateSingleArgument): * $(RULE builtinType) * | $(LITERAL Identifier) * | $(LITERAL CharacterLiteral) * | $(LITERAL StringLiteral) * | $(LITERAL IntegerLiteral) * | $(LITERAL FloatLiteral) * | $(LITERAL '_true') * | $(LITERAL '_false') * | $(LITERAL '_null') * | $(LITERAL 'this') * | $(LITERAL '___DATE__') * | $(LITERAL '___FILE__') * | $(LITERAL '___FILE_FULL_PATH__') * | $(LITERAL '___FUNCTION__') * | $(LITERAL '___LINE__') * | $(LITERAL '___MODULE__') * | $(LITERAL '___PRETTY_FUNCTION__') * | $(LITERAL '___TIME__') * | $(LITERAL '___TIMESTAMP__') * | $(LITERAL '___VENDOR__') * | $(LITERAL '___VERSION__') * ;) */ TemplateSingleArgument parseTemplateSingleArgument() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateSingleArgument; if (!moreTokens) { error("template argument expected instead of EOF"); return null; } switch (current.type) { case tok!"this": case tok!"identifier": foreach (B; Literals) { case B: } foreach (C; BasicTypes) { case C: } node.token = advance(); break; default: error(`Invalid template argument. (Try enclosing in parenthesis?)`); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateThisParameter * * $(GRAMMAR $(RULEDEF templateThisParameter): * $(LITERAL 'this') $(RULE templateTypeParameter) * ;) */ TemplateThisParameter parseTemplateThisParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateThisParameter; expect(tok!"this"); mixin(parseNodeQ!(`node.templateTypeParameter`, `TemplateTypeParameter`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an TemplateTupleParameter * * $(GRAMMAR $(RULEDEF templateTupleParameter): * $(LITERAL Identifier) $(LITERAL '...') * ;) */ TemplateTupleParameter parseTemplateTupleParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateTupleParameter; const i = expect(tok!"identifier"); if (i is null) return null; node.identifier = *i; mixin(tokenCheck!"..."); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateTypeParameter * * $(GRAMMAR $(RULEDEF templateTypeParameter): * $(LITERAL Identifier) ($(LITERAL ':') $(RULE type))? ($(LITERAL '=') $(RULE type))? * ;) */ TemplateTypeParameter parseTemplateTypeParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateTypeParameter; const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; if (currentIs(tok!":")) { advance(); mixin(parseNodeQ!(`node.colonType`, `Type`)); } if (currentIs(tok!"=")) { advance(); mixin(parseNodeQ!(`node.assignType`, `Type`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateValueParameter * * $(GRAMMAR $(RULEDEF templateValueParameter): * $(RULE type) $(LITERAL Identifier) ($(LITERAL ':') $(RULE assignExpression))? $(RULE templateValueParameterDefault)? * ;) */ TemplateValueParameter parseTemplateValueParameter() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateValueParameter; mixin(parseNodeQ!(`node.type`, `Type`)); mixin(tokenCheck!(`node.identifier`, "identifier")); if (currentIs(tok!":")) { advance(); mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); } if (currentIs(tok!"=")) mixin(parseNodeQ!(`node.templateValueParameterDefault`, `TemplateValueParameterDefault`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TemplateValueParameterDefault * * $(GRAMMAR $(RULEDEF templateValueParameterDefault): * $(LITERAL '=') $(LITERAL '___DATE__') * | $(LITERAL '=') $(LITERAL '___FILE__') * | $(LITERAL '=') $(LITERAL '___FILE_FULL_PATH__') * | $(LITERAL '=') $(LITERAL '___FUNCTION__') * | $(LITERAL '=') $(LITERAL '___LINE__') * | $(LITERAL '=') $(LITERAL '___MODULE__') * | $(LITERAL '=') $(LITERAL '___PRETTY_FUNCTION__') * | $(LITERAL '=') $(LITERAL '___TIME__') * | $(LITERAL '=') $(LITERAL '___TIMESTAMP__') * | $(LITERAL '=') $(LITERAL '___VENDOR__') * | $(LITERAL '=') $(LITERAL '___VERSION__') * | $(LITERAL '=') $(RULE assignExpression) * ;) */ TemplateValueParameterDefault parseTemplateValueParameterDefault() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TemplateValueParameterDefault; expect(tok!"="); switch (current.type) { case tok!"__FILE__": case tok!"__FILE_FULL_PATH__": case tok!"__MODULE__": case tok!"__LINE__": case tok!"__FUNCTION__": case tok!"__PRETTY_FUNCTION__": node.token = advance(); break; default: mixin(parseNodeQ!(`node.assignExpression`, `AssignExpression`)); break; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TernaryExpression * * $(GRAMMAR $(RULEDEF ternaryExpression): * $(RULE orOrExpression) ($(LITERAL '?') $(RULE expression) $(LITERAL ':') $(RULE ternaryExpression))? * ;) */ ExpressionNode parseTernaryExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto orOrExpression = parseOrOrExpression(); if (orOrExpression is null) return null; if (currentIs(tok!"?")) { TernaryExpression node = allocator.make!TernaryExpression; node.orOrExpression = orOrExpression; advance(); mixin(parseNodeQ!(`node.expression`, `Expression`)); auto colon = expect(tok!":"); mixin(nullCheck!`colon`); node.colon = *colon; mixin(parseNodeQ!(`node.ternaryExpression`, `TernaryExpression`)); node.tokens = tokens[startIndex .. index]; return node; } return orOrExpression; } /** * Parses a ThrowStatement * * $(GRAMMAR $(RULEDEF throwStatement): * $(LITERAL 'throw') $(RULE expression) $(LITERAL ';') * ;) */ ThrowStatement parseThrowStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!ThrowStatement; expect(tok!"throw"); mixin(parseNodeQ!(`node.expression`, `Expression`)); expect(tok!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an TraitsExpression * * $(GRAMMAR $(RULEDEF traitsExpression): * $(LITERAL '___traits') $(LITERAL '$(LPAREN)') $(LITERAL Identifier) $(LITERAL ',') $(RULE templateArgumentList) $(LITERAL '$(RPAREN)') * ;) */ TraitsExpression parseTraitsExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TraitsExpression; mixin(tokenCheck!"__traits"); mixin(tokenCheck!"("); const ident = expect(tok!"identifier"); mixin(nullCheck!`ident`); node.identifier = *ident; if (currentIs(tok!",")) { advance(); mixin (nullCheck!`(node.templateArgumentList = parseTemplateArgumentList())`); } mixin(tokenCheck!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TryStatement * * $(GRAMMAR $(RULEDEF tryStatement): * $(LITERAL 'try') $(RULE declarationOrStatement) ($(RULE catches) | $(RULE catches) $(RULE finally) | $(RULE finally)) * ;) */ TryStatement parseTryStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TryStatement; expect(tok!"try"); mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); if (currentIs(tok!"catch")) mixin(parseNodeQ!(`node.catches`, `Catches`)); if (currentIs(tok!"finally")) mixin(parseNodeQ!(`node.finally_`, `Finally`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Type * * $(GRAMMAR $(RULEDEF type): * $(RULE typeConstructors)? $(RULE type2) $(RULE typeSuffix)* * ;) */ Type parseType() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Type; if (!moreTokens) { error("type expected"); return null; } switch (current.type) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": if (!peekIs(tok!"(")) mixin(parseNodeQ!(`node.typeConstructors`, `TypeConstructors`)); break; default: break; } mixin(parseNodeQ!(`node.type2`, `Type2`)); StackBuffer typeSuffixes; loop: while (moreTokens()) switch (current.type) { case tok!"[": // Allow this to fail because of the madness that is the // newExpression rule. Something starting with '[' may be arguments // to the newExpression instead of part of the type auto newBookmark = setBookmark(); auto c = allocator.setCheckpoint(); if (typeSuffixes.put(parseTypeSuffix())) abandonBookmark(newBookmark); else { allocator.rollback(c); goToBookmark(newBookmark); break loop; } break; case tok!"*": case tok!"delegate": case tok!"function": if (!typeSuffixes.put(parseTypeSuffix())) return null; break; default: break loop; } ownArray(node.typeSuffixes, typeSuffixes); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Type2 * * $(GRAMMAR $(RULEDEF type2): * $(RULE builtinType) * | $(RULE typeIdentifierPart) * | $(LITERAL 'super') $(LITERAL '.') $(RULE typeIdentifierPart) * | $(LITERAL 'this') $(LITERAL '.') $(RULE typeIdentifierPart) * | $(RULE typeofExpression) ($(LITERAL '.') $(RULE typeIdentifierPart))? * | $(RULE typeConstructor) $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL '$(RPAREN)') * | $(RULE traitsExpression) * | $(RULE vector) * | $(RULE mixinExpression) * ;) */ Type2 parseType2() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!Type2; if (!moreTokens) { error("type2 expected instead of EOF"); return null; } switch (current.type) { case tok!"identifier": case tok!".": mixin(parseNodeQ!(`node.typeIdentifierPart`, `TypeIdentifierPart`)); break; foreach (B; BasicTypes) { case B: } node.builtinType = parseBuiltinType(); break; case tok!"super": case tok!"this": // note: super can be removed but `this` can be an alias to an instance. node.superOrThis = advance().type; if (currentIs(tok!".")) { advance(); mixin(parseNodeQ!(`node.typeIdentifierPart`, `TypeIdentifierPart`)); } break; case tok!"__traits": mixin(parseNodeQ!(`node.traitsExpression`, `TraitsExpression`)); break; case tok!"typeof": if ((node.typeofExpression = parseTypeofExpression()) is null) return null; if (currentIs(tok!".")) { advance(); mixin(parseNodeQ!(`node.typeIdentifierPart`, `TypeIdentifierPart`)); } break; case tok!"mixin": mixin(parseNodeQ!(`node.mixinExpression`, `MixinExpression`)); break; case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": node.typeConstructor = advance().type; mixin(tokenCheck!"("); mixin (nullCheck!`(node.type = parseType())`); mixin(tokenCheck!")"); break; case tok!"__vector": if ((node.vector = parseVector()) is null) return null; break; default: error("Basic type, type constructor, symbol, `typeof`, `__traits`, " ~ "`__vector` or `mixin` expected"); return null; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TypeConstructor * * $(GRAMMAR $(RULEDEF typeConstructor): * $(LITERAL 'const') * | $(LITERAL 'immutable') * | $(LITERAL 'inout') * | $(LITERAL 'shared') * ;) */ IdType parseTypeConstructor(bool validate = true) { mixin(traceEnterAndExit!(__FUNCTION__)); switch (current.type) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": if (!peekIs(tok!"(")) return advance().type; goto default; default: if (validate) error("`const`, `immutable`, `inout`, or `shared` expected"); return tok!""; } } /** * Parses TypeConstructors * * $(GRAMMAR $(RULEDEF typeConstructors): * $(RULE typeConstructor)+ * ;) */ IdType[] parseTypeConstructors() { mixin(traceEnterAndExit!(__FUNCTION__)); IdType[] r; while (moreTokens()) { IdType type = parseTypeConstructor(false); if (type == tok!"") break; else r ~= type; } return r; } /** * Parses a TypeSpecialization * * $(GRAMMAR $(RULEDEF typeSpecialization): * $(RULE type) * | $(LITERAL 'struct') * | $(LITERAL 'union') * | $(LITERAL 'class') * | $(LITERAL 'interface') * | $(LITERAL 'enum') * | $(LITERAL 'function') * | $(LITERAL 'delegate') * | $(LITERAL 'super') * | $(LITERAL 'const') * | $(LITERAL 'immutable') * | $(LITERAL 'inout') * | $(LITERAL 'shared') * | $(LITERAL 'return') * | $(LITERAL 'typedef') * | $(LITERAL '___parameters') * ;) */ TypeSpecialization parseTypeSpecialization() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TypeSpecialization; switch (current.type) { case tok!"struct": case tok!"union": case tok!"class": case tok!"interface": case tok!"enum": case tok!"function": case tok!"delegate": case tok!"super": case tok!"return": case tok!"typedef": case tok!"__parameters": case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": if (peekIsOneOf(tok!")", tok!",")) { node.token = advance(); break; } goto default; default: mixin(parseNodeQ!(`node.type`, `Type`)); break; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TypeSuffix * * $(GRAMMAR $(RULEDEF typeSuffix): * $(LITERAL '*') * | $(LITERAL '[') $(RULE type)? $(LITERAL ']') * | $(LITERAL '[') $(RULE assignExpression) $(LITERAL ']') * | $(LITERAL '[') $(RULE assignExpression) $(LITERAL '..') $(RULE assignExpression) $(LITERAL ']') * | ($(LITERAL 'delegate') | $(LITERAL 'function')) $(RULE parameters) $(RULE memberFunctionAttribute)* * ;) */ TypeSuffix parseTypeSuffix() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TypeSuffix; switch (current.type) { case tok!"*": node.star = advance(); node.tokens = tokens[startIndex .. index]; return node; case tok!"[": node.array = true; advance(); if (currentIs(tok!"]")) { advance(); node.tokens = tokens[startIndex .. index]; return node; } auto bookmark = setBookmark(); auto type = parseType(); if (type !is null && currentIs(tok!"]")) { abandonBookmark(bookmark); node.type = type; } else { goToBookmark(bookmark); mixin(parseNodeQ!(`node.low`, `AssignExpression`)); mixin (nullCheck!`node.low`); if (currentIs(tok!"..")) { advance(); mixin(parseNodeQ!(`node.high`, `AssignExpression`)); mixin (nullCheck!`node.high`); } } mixin(tokenCheck!"]"); node.tokens = tokens[startIndex .. index]; return node; case tok!"delegate": case tok!"function": node.delegateOrFunction = advance(); mixin(parseNodeQ!(`node.parameters`, `Parameters`)); StackBuffer memberFunctionAttributes; while (currentIsMemberFunctionAttribute()) if (!memberFunctionAttributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, memberFunctionAttributes); node.tokens = tokens[startIndex .. index]; return node; default: error("`*`, `[`, `delegate`, or `function` expected."); return null; } } /** * Parses a TypeidExpression * * $(GRAMMAR $(RULEDEF typeidExpression): * $(LITERAL 'typeid') $(LITERAL '$(LPAREN)') ($(RULE type) | $(RULE expression)) $(LITERAL '$(RPAREN)') * ;) */ TypeidExpression parseTypeidExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TypeidExpression; expect(tok!"typeid"); expect(tok!"("); immutable b = setBookmark(); auto t = parseType(); if (t is null || !currentIs(tok!")")) { goToBookmark(b); mixin(parseNodeQ!(`node.expression`, `Expression`)); mixin (nullCheck!`node.expression`); } else { abandonBookmark(b); node.type = t; } expect(tok!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a TypeofExpression * * $(GRAMMAR $(RULEDEF typeofExpression): * $(LITERAL 'typeof') $(LITERAL '$(LPAREN)') ($(RULE expression) | $(LITERAL 'return')) $(LITERAL '$(RPAREN)') * ;) */ TypeofExpression parseTypeofExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!TypeofExpression; expect(tok!"typeof"); expect(tok!"("); if (currentIs(tok!"return")) node.return_ = advance(); else mixin(parseNodeQ!(`node.expression`, `Expression`)); expect(tok!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a UnaryExpression * * $(GRAMMAR $(RULEDEF unaryExpression): * $(RULE primaryExpression) * | $(LITERAL '&') $(RULE unaryExpression) * | $(LITERAL '!') $(RULE unaryExpression) * | $(LITERAL '*') $(RULE unaryExpression) * | $(LITERAL '+') $(RULE unaryExpression) * | $(LITERAL '-') $(RULE unaryExpression) * | $(LITERAL '~') $(RULE unaryExpression) * | $(LITERAL '++') $(RULE unaryExpression) * | $(LITERAL '--') $(RULE unaryExpression) * | $(RULE newExpression) * | $(RULE deleteExpression) * | $(RULE castExpression) * | $(RULE assertExpression) * | $(RULE functionCallExpression) * | $(RULE indexExpression) * | $(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL '$(RPAREN)') $(LITERAL '.') $(RULE identifierOrTemplateInstance) * | $(RULE unaryExpression) $(LITERAL '.') $(RULE newExpression) * | $(RULE unaryExpression) $(LITERAL '.') $(RULE identifierOrTemplateInstance) * | $(RULE unaryExpression) $(LITERAL '--') * | $(RULE unaryExpression) $(LITERAL '++') * ;) */ UnaryExpression parseUnaryExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!moreTokens()) return null; auto node = allocator.make!UnaryExpression; switch (current.type) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": immutable b = setBookmark(); if (peekIs(tok!"(")) { advance(); const past = peekPastParens(); if (past !is null && past.type == tok!".") { goToBookmark(b); goto default; } } goToBookmark(b); goto case; case tok!"scope": case tok!"pure": case tok!"nothrow": mixin(parseNodeQ!(`node.functionCallExpression`, `FunctionCallExpression`)); break; case tok!"&": case tok!"!": case tok!"*": case tok!"+": case tok!"-": case tok!"~": case tok!"++": case tok!"--": node.prefix = advance(); mixin(parseNodeQ!(`node.unaryExpression`, `UnaryExpression`)); break; case tok!"new": mixin(parseNodeQ!(`node.newExpression`, `NewExpression`)); break; case tok!"delete": mixin(parseNodeQ!(`node.deleteExpression`, `DeleteExpression`)); break; case tok!"cast": mixin(parseNodeQ!(`node.castExpression`, `CastExpression`)); break; case tok!"assert": mixin(parseNodeQ!(`node.assertExpression`, `AssertExpression`)); break; case tok!"(": // handle (type).identifier immutable b = setBookmark(); skipParens(); if (startsWith(tok!".", tok!"identifier")) { // go back to the ( goToBookmark(b); immutable b2 = setBookmark(); advance(); auto t = parseType(); if (t is null || !currentIs(tok!")")) { goToBookmark(b); goto default; } abandonBookmark(b2); node.type = t; advance(); // ) advance(); // . mixin(parseNodeQ!(`node.identifierOrTemplateInstance`, `IdentifierOrTemplateInstance`)); break; } else { // not (type).identifier, so treat as primary expression goToBookmark(b); goto default; } default: mixin(parseNodeQ!(`node.primaryExpression`, `PrimaryExpression`)); break; } loop: while (moreTokens()) switch (current.type) { case tok!"!": if (peekIs(tok!"(")) { index++; const p = peekPastParens(); immutable bool jump = (currentIs(tok!"(") && p !is null && p.type == tok!"(") || peekIs(tok!"("); index--; if (jump) goto case tok!"("; else break loop; } else break loop; case tok!"(": auto newUnary = allocator.make!UnaryExpression(); // Allows DCD to get the call tips // see https://github.com/dlang-community/DCD/issues/405 if (peekIs(tok!"}")) { error("Error, expected parameters or `)`", false); advance(); if (newUnary) newUnary.tokens = tokens[startIndex .. index]; return newUnary; } mixin (nullCheck!`newUnary.functionCallExpression = parseFunctionCallExpression(node)`); node = newUnary; break; case tok!"++": case tok!"--": auto n = allocator.make!UnaryExpression(); n.unaryExpression = node; n.suffix = advance(); node = n; break; case tok!"[": auto n = allocator.make!UnaryExpression; n.indexExpression = parseIndexExpression(node); node = n; break; case tok!".": node.dotLocation = current.index; advance(); auto n = allocator.make!UnaryExpression(); n.unaryExpression = node; if (currentIs(tok!"new")) mixin(parseNodeQ!(`node.newExpression`, `NewExpression`)); else n.identifierOrTemplateInstance = parseIdentifierOrTemplateInstance(); node = n; break; default: break loop; } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an UnionDeclaration * * $(GRAMMAR $(RULEDEF unionDeclaration): * $(LITERAL 'union') $(LITERAL Identifier) ($(RULE templateParameters) $(RULE constraint)?)? ($(RULE structBody) | $(LITERAL ';')) * | $(LITERAL 'union') $(RULE structBody) * ;) */ UnionDeclaration parseUnionDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!UnionDeclaration; node.comment = comment; comment = null; // grab line number even if it's anonymous const t = expect(tok!"union"); if (currentIs(tok!"identifier")) { node.name = advance(); if (currentIs(tok!"(")) { mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); if (currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); } goto semiOrStructBody; } else { node.name.line = t.line; node.name.column = t.column; semiOrStructBody: if (currentIs(tok!";")) advance(); else mixin(parseNodeQ!(`node.structBody`, `StructBody`)); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Unittest * * $(GRAMMAR $(RULEDEF unittest): * $(LITERAL 'unittest') $(RULE blockStatement) * ;) */ Unittest parseUnittest() { mixin(traceEnterAndExit!(__FUNCTION__)); mixin (simpleParse!(Unittest, tok!"unittest", "blockStatement|parseBlockStatement")); } /** * Parses a VariableDeclaration * * $(GRAMMAR $(RULEDEF variableDeclaration): * $(RULE storageClass)* $(RULE _type) $(RULE declarator) ($(LITERAL ',') $(RULE declarator))* $(LITERAL ';') * | $(RULE autoDeclaration) * ;) */ VariableDeclaration parseVariableDeclaration(Type type = null, bool isAuto = false) { mixin (traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!VariableDeclaration; if (isAuto) { mixin(parseNodeQ!(`node.autoDeclaration`, `AutoDeclaration`)); node.comment = node.autoDeclaration.comment; node.tokens = tokens[startIndex .. index]; return node; } StackBuffer storageClasses; while (isStorageClass()) if (!storageClasses.put(parseStorageClass())) return null; ownArray(node.storageClasses, storageClasses); node.type = type is null ? parseType() : type; node.comment = comment; comment = null; StackBuffer declarators; Declarator last; while (true) { auto declarator = parseDeclarator(); if (!declarators.put(declarator)) return null; else last = declarator; if (moreTokens() && currentIs(tok!",")) { if (node.comment !is null) declarator.comment = node.comment ~ "\n" ~ current.trailingComment; else declarator.comment = current.trailingComment; advance(); } else break; } ownArray(node.declarators, declarators); const semicolon = expect(tok!";"); mixin (nullCheck!`semicolon`); if (node.comment !is null) { if (semicolon.trailingComment is null) last.comment = node.comment; else last.comment = node.comment ~ "\n" ~ semicolon.trailingComment; } else last.comment = semicolon.trailingComment; node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a Vector * * $(GRAMMAR $(RULEDEF vector): * $(LITERAL '___vector') ($(LITERAL '$(LPAREN)') $(RULE type) $(LITERAL '$(RPAREN)'))? * ;) */ Vector parseVector() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; if (!currentIs(tok!"__vector")) return null; Vector node = allocator.make!Vector; advance(); if (currentIs(tok!"(")) { advance(); mixin(parseNodeQ!("node.type", "Type")); if (!currentIs(tok!")")) return null; advance(); } node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a VersionCondition * * $(GRAMMAR $(RULEDEF versionCondition): * $(LITERAL 'version') $(LITERAL '$(LPAREN)') ($(LITERAL IntegerLiteral) | $(LITERAL Identifier) | $(LITERAL 'unittest') | $(LITERAL 'assert')) $(LITERAL '$(RPAREN)') * ;) */ VersionCondition parseVersionCondition() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!VersionCondition; const v = expect(tok!"version"); mixin(nullCheck!`v`); node.versionIndex = v.index; mixin(tokenCheck!"("); if (currentIsOneOf(tok!"intLiteral", tok!"identifier", tok!"unittest", tok!"assert")) node.token = advance(); else { error("Expected an integer literal, an identifier, `assert`, or `unittest`"); return null; } expect(tok!")"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a VersionSpecification * * $(GRAMMAR $(RULEDEF versionSpecification): * $(LITERAL 'version') $(LITERAL '=') ($(LITERAL Identifier) | $(LITERAL IntegerLiteral)) $(LITERAL ';') * ;) */ VersionSpecification parseVersionSpecification() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!VersionSpecification; mixin(tokenCheck!"version"); mixin(tokenCheck!"="); if (!currentIsOneOf(tok!"identifier", tok!"intLiteral")) { error("Identifier or integer literal expected"); return null; } node.token = advance(); expect(tok!";"); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a WhileStatement * * $(GRAMMAR $(RULEDEF whileStatement): * $(LITERAL 'while') $(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) * ;) */ WhileStatement parseWhileStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!WhileStatement; mixin(tokenCheck!"while"); if (moreTokens) node.startIndex = current().index; mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.expression`, `Expression`)); mixin(tokenCheck!")"); if (currentIs(tok!"}")) { error("Statement expected", false); node.tokens = tokens[startIndex .. index]; return node; // this line makes DCD better } mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses a WithStatement * * $(GRAMMAR $(RULEDEF withStatement): * $(LITERAL 'with') $(LITERAL '$(LPAREN)') $(RULE expression) $(LITERAL '$(RPAREN)') $(RULE declarationOrStatement) * ;) */ WithStatement parseWithStatement() { mixin(traceEnterAndExit!(__FUNCTION__)); auto startIndex = index; auto node = allocator.make!WithStatement; mixin(tokenCheck!"with"); mixin(tokenCheck!"("); mixin(parseNodeQ!(`node.expression`, `Expression`)); mixin(tokenCheck!")"); if (currentIs(tok!"}")) { error("Statement expected", false); node.tokens = tokens[startIndex .. index]; return node; // this line makes DCD better } mixin(parseNodeQ!(`node.declarationOrStatement`, `DeclarationOrStatement`)); node.tokens = tokens[startIndex .. index]; return node; } /** * Parses an XorExpression * * $(GRAMMAR $(RULEDEF xorExpression): * $(RULE andExpression) * | $(RULE xorExpression) $(LITERAL '^') $(RULE andExpression) * ;) */ ExpressionNode parseXorExpression() { mixin(traceEnterAndExit!(__FUNCTION__)); return parseLeftAssocBinaryExpression!(XorExpression, AndExpression, tok!"^")(); } /** * Current error count */ uint errorCount; /** * Current warning count */ uint warningCount; /** * Name used when reporting warnings and errors */ string fileName; /** * Tokens to parse */ const(Token)[] tokens; /** * Allocator used for creating AST nodes */ RollbackAllocator* allocator; /** * Function or delegate that is called when a warning or error is encountered. * The parameters are the file name, line number, column number, * and the error or warning message. */ MessageFunction messageFunction; /// Ditto MessageDelegate messageDelegate; deprecated("Use messageDelegate instead") alias messageDg = messageDelegate; void setTokens(const(Token)[] tokens) { this.tokens = tokens; } /** * Returns: true if there are more tokens */ bool moreTokens() const nothrow pure @safe @nogc { return index < tokens.length; } protected: final: enum MAX_ERRORS = 500; void ownArray(T)(ref T[] arr, ref StackBuffer sb) { if (sb.length == 0) return; void[] a = allocator.allocate(sb.length); a[] = sb[]; arr = cast(T[]) a; } bool isCastQualifier() const { if (!moreTokens()) return false; switch (current.type) { case tok!"const": if (peekIs(tok!")")) return true; return startsWith(tok!"const", tok!"shared", tok!")"); case tok!"immutable": return peekIs(tok!")"); case tok!"inout": if (peekIs(tok!")")) return true; return startsWith(tok!"inout", tok!"shared", tok!")"); case tok!"shared": if (peekIs(tok!")")) return true; if (startsWith(tok!"shared", tok!"const", tok!")")) return true; return startsWith(tok!"shared", tok!"inout", tok!")"); default: return false; } } bool isAssociativeArrayLiteral() { mixin(traceEnterAndExit!(__FUNCTION__)); if (!moreTokens()) return false; if (auto p = current.index in cachedAAChecks) return *p; size_t currentIndex = current.index; immutable b = setBookmark(); scope(exit) goToBookmark(b); advance(); immutable bool result = !currentIs(tok!"]") && parseExpression() !is null && currentIs(tok!":"); cachedAAChecks[currentIndex] = result; return result; } bool hasMagicDelimiter(alias L, alias T)() { mixin(traceEnterAndExit!(__FUNCTION__)); immutable i = index; scope(exit) index = i; assert (currentIs(L)); advance(); while (moreTokens()) switch (current.type) { case tok!"{": skipBraces(); break; case tok!"(": skipParens(); break; case tok!"[": skipBrackets(); break; case tok!"]": case tok!"}": return false; case T: return true; default: advance(); break; } return false; } enum DecType { autoVar, autoFun, other } DecType isAutoDeclaration(ref size_t beginIndex) nothrow @safe { immutable b = setBookmark(); scope(exit) goToBookmark(b); loop: while (moreTokens()) switch (current().type) { case tok!"pragma": beginIndex = size_t.max; advance(); if (currentIs(tok!"(")) { skipParens(); break; } else return DecType.other; case tok!"package": case tok!"private": case tok!"protected": case tok!"public": beginIndex = size_t.max; advance(); break; case tok!"@": beginIndex = min(beginIndex, index); advance(); if (currentIs(tok!"(")) skipParens(); else if (currentIs(tok!"identifier")) { advance(); if (currentIs(tok!"!")) { advance(); if (currentIs(tok!"(")) skipParens(); else if (moreTokens()) advance(); } if (currentIs(tok!"(")) skipParens(); } else return DecType.other; break; case tok!"deprecated": case tok!"align": case tok!"extern": beginIndex = min(beginIndex, index); advance(); if (currentIs(tok!"(")) skipParens(); break; case tok!"const": case tok!"immutable": case tok!"inout": case tok!"synchronized": if (peekIs(tok!"(")) return DecType.other; else { beginIndex = min(beginIndex, index); advance(); break; } case tok!"auto": case tok!"enum": case tok!"export": case tok!"final": case tok!"__gshared": case tok!"nothrow": case tok!"override": case tok!"pure": case tok!"ref": case tok!"scope": case tok!"shared": case tok!"static": beginIndex = min(beginIndex, index); advance(); break; default: break loop; } if (index <= b) return DecType.other; if (startsWith(tok!"identifier", tok!"=")) return DecType.autoVar; if (startsWith(tok!"identifier", tok!"(")) { advance(); auto past = peekPastParens(); if (past is null) return DecType.other; else if (past.type == tok!"=") return DecType.autoVar; else return DecType.autoFun; } return DecType.other; } bool isDeclaration() { mixin(traceEnterAndExit!(__FUNCTION__)); if (!moreTokens()) return false; switch (current.type) { case tok!("__traits"): if (peekIs(tok!"(")) { immutable b = setBookmark(); advance(); const ppp = peekPastParens(); goToBookmark(b); return ppp && ppp.type == tok!"identifier"; } goto default; case tok!("mixin"): return peekIs(tok!"("); case tok!"final": return !peekIs(tok!"switch"); case tok!"debug": if (peekIs(tok!":")) return true; goto case; case tok!"version": if (peekIs(tok!"=")) return true; if (peekIs(tok!"(")) goto default; return false; case tok!"synchronized": if (peekIs(tok!"(")) return false; else goto default; case tok!"static": if (peekIs(tok!"if")) return false; else if (peekIs(tok!"foreach") || peekIs(tok!"foreach_reverse")) goto default; goto case; case tok!"scope": if (peekIs(tok!"(")) return false; goto case; case tok!"@": case tok!"abstract": case tok!"alias": case tok!"align": case tok!"auto": case tok!"class": case tok!"deprecated": case tok!"enum": case tok!"export": case tok!"extern": case tok!"__gshared": case tok!"interface": case tok!"nothrow": case tok!"override": case tok!"package": case tok!"private": case tok!"protected": case tok!"public": case tok!"pure": case tok!"ref": case tok!"struct": case tok!"union": case tok!"unittest": return true; foreach (B; BasicTypes) { case B: } return !peekIsOneOf(tok!".", tok!"("); case tok!"asm": case tok!"break": case tok!"case": case tok!"continue": case tok!"default": case tok!"do": case tok!"for": case tok!"foreach": case tok!"foreach_reverse": case tok!"goto": case tok!"if": case tok!"return": case tok!"switch": case tok!"throw": case tok!"try": case tok!"while": case tok!"{": case tok!"assert": return false; default: immutable b = setBookmark(); scope(exit) goToBookmark(b); auto c = allocator.setCheckpoint(); scope(exit) allocator.rollback(c); return parseDeclaration(true, true) !is null; } } /// Only use this in template parameter parsing bool isType() { if (!moreTokens()) return false; immutable b = setBookmark(); scope (exit) goToBookmark(b); auto c = allocator.setCheckpoint(); scope (exit) allocator.rollback(c); if (parseType() is null) return false; return currentIsOneOf(tok!",", tok!")", tok!"="); } bool isStorageClass() { if (!moreTokens()) return false; switch (current.type) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": return !peekIs(tok!"("); case tok!"@": case tok!"deprecated": case tok!"abstract": case tok!"align": case tok!"auto": case tok!"enum": case tok!"extern": case tok!"final": case tok!"nothrow": case tok!"override": case tok!"pure": case tok!"ref": case tok!"__gshared": case tok!"scope": case tok!"static": case tok!"synchronized": return true; default: return false; } } bool isAttribute() { if (!moreTokens()) return false; switch (current.type) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"scope": return !peekIs(tok!"("); case tok!"static": return !peekIsOneOf(tok!"assert", tok!"this", tok!"if", tok!"~", tok!"foreach", tok!"foreach_reverse"); case tok!"shared": return !(startsWith(tok!"shared", tok!"static", tok!"this") || startsWith(tok!"shared", tok!"static", tok!"~") || peekIs(tok!"(")); case tok!"pragma": immutable b = setBookmark(); scope(exit) goToBookmark(b); advance(); const past = peekPastParens(); if (past is null || *past == tok!";") return false; return true; case tok!"deprecated": case tok!"private": case tok!"package": case tok!"protected": case tok!"public": case tok!"export": case tok!"final": case tok!"synchronized": case tok!"override": case tok!"abstract": case tok!"auto": case tok!"__gshared": case tok!"pure": case tok!"nothrow": case tok!"@": case tok!"ref": case tok!"extern": case tok!"align": return true; default: return false; } } static bool isMemberFunctionAttribute(IdType t) pure nothrow @nogc @safe { switch (t) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": case tok!"@": case tok!"pure": case tok!"nothrow": case tok!"return": case tok!"scope": return true; default: return false; } } static bool isTypeCtor(IdType t) pure nothrow @nogc @safe { switch (t) { case tok!"const": case tok!"immutable": case tok!"inout": case tok!"shared": return true; default: return false; } } bool currentIsMemberFunctionAttribute() const { return moreTokens && isMemberFunctionAttribute(current.type); } ExpressionNode parseLeftAssocBinaryExpression(alias ExpressionType, alias ExpressionPartType, Operators ...)(ExpressionNode part = null) { ExpressionNode node; auto startIndex = index; mixin ("node = part is null ? parse" ~ ExpressionPartType.stringof ~ "() : part;"); if (node is null) return null; while (currentIsOneOf(Operators)) { auto n = allocator.make!ExpressionType; n.line = current.line; n.column = current.column; static if (__traits(hasMember, ExpressionType, "operator")) n.operator = advance().type; else advance(); n.left = node; mixin (parseNodeQ!(`n.right`, ExpressionPartType.stringof)); node = n; } node.tokens = tokens[startIndex .. index]; return node; } ListType parseCommaSeparatedRule(alias ListType, alias ItemType, bool setLineAndColumn = false)(bool allowTrailingComma = false) { auto startIndex = index; auto node = allocator.make!ListType; static if (setLineAndColumn) { node.line = current.line; node.column = current.column; } StackBuffer items; while (moreTokens()) { if (!items.put(mixin("parse" ~ ItemType.stringof ~ "()"))) return null; if (currentIs(tok!",")) { advance(); if (allowTrailingComma && currentIsOneOf(tok!")", tok!"}", tok!"]")) break; else continue; } else break; } ownArray(node.items, items); node.tokens = tokens[startIndex .. index]; return node; } void warn(lazy string message) { import std.stdio : stderr; if (!suppressMessages.empty) return; ++warningCount; auto column = index < tokens.length ? tokens[index].column : 0; auto line = index < tokens.length ? tokens[index].line : 0; if (messageDelegate !is null) messageDelegate(fileName, line, column, message, false); else if (messageFunction !is null) messageFunction(fileName, line, column, message, false); else stderr.writefln("%s(%d:%d)[warn]: %s", fileName, line, column, message); } void error(string message, bool shouldAdvance = true) { import std.stdio : stderr; if (suppressMessages.empty) { ++errorCount; auto column = index < tokens.length ? tokens[index].column : tokens[$ - 1].column; auto line = index < tokens.length ? tokens[index].line : tokens[$ - 1].line; if (messageDelegate !is null) messageDelegate(fileName, line, column, message, true); else if (messageFunction !is null) messageFunction(fileName, line, column, message, true); else stderr.writefln("%s(%d:%d)[error]: %s", fileName, line, column, message); } else ++suppressMessages[$ - 1]; while (shouldAdvance && moreTokens()) { if (currentIsOneOf(tok!";", tok!"}", tok!")", tok!"]")) { advance(); break; } else advance(); } } void skip(alias O, alias C)() { assert (currentIs(O), current().text); advance(); int depth = 1; while (moreTokens()) { switch (tokens[index].type) { case C: advance(); depth--; if (depth <= 0) return; break; case O: depth++; advance(); break; default: advance(); break; } } } void skipBraces() pure nothrow @safe @nogc { skip!(tok!"{", tok!"}")(); } void skipParens() pure nothrow @safe @nogc { skip!(tok!"(", tok!")")(); } void skipBrackets() pure nothrow @safe @nogc { skip!(tok!"[", tok!"]")(); } const(Token)* peek() const pure nothrow @safe @nogc { return index + 1 < tokens.length ? &tokens[index + 1] : null; } const(Token)* peekPast(alias O, alias C)() const pure nothrow @safe @nogc { if (index >= tokens.length) return null; int depth = 1; size_t i = index; ++i; while (i < tokens.length) { if (tokens[i] == O) { ++depth; ++i; } else if (tokens[i] == C) { --depth; ++i; if (depth <= 0) break; } else ++i; } return i >= tokens.length ? null : depth == 0 ? &tokens[i] : null; } const(Token)* peekPastParens() const pure nothrow @safe @nogc { return peekPast!(tok!"(", tok!")")(); } const(Token)* peekPastBrackets() const pure nothrow @safe @nogc { return peekPast!(tok!"[", tok!"]")(); } const(Token)* peekPastBraces() const pure nothrow @safe @nogc { return peekPast!(tok!"{", tok!"}")(); } bool peekIs(IdType t) const pure nothrow @safe @nogc { return index + 1 < tokens.length && tokens[index + 1].type == t; } bool peekIsOneOf(IdType[] types...) const pure nothrow @safe @nogc { if (index + 1 >= tokens.length) return false; return canFind(types, tokens[index + 1].type); } /** * Returns a token of the specified type if it was the next token, otherwise * calls the error function and returns null. Advances the lexer by one token. */ const(Token)* expect(IdType type) { if (index < tokens.length && tokens[index].type == type) return &tokens[index++]; else { string tokenString = str(type) is null ? to!string(type) : str(type); immutable bool shouldNotAdvance = index < tokens.length && (tokens[index].type == tok!")" || tokens[index].type == tok!";" || tokens[index].type == tok!"}"); auto token = (index < tokens.length ? (tokens[index].text is null ? str(tokens[index].type) : tokens[index].text) : "EOF"); error("Expected `" ~ tokenString ~ "` instead of `" ~ token ~ "`", !shouldNotAdvance); return null; } } /** * Returns: the _current token */ Token current() const pure nothrow @safe @nogc @property { return tokens[index]; } /** * Returns: the _previous token */ Token previous() const pure nothrow @safe @nogc @property { return tokens[index - 1]; } /** * Advances to the next token and returns the current token */ Token advance() pure nothrow @nogc @safe { return tokens[index++]; } /** * Returns: true if the current token has the given type */ bool currentIs(IdType type) const pure nothrow @safe @nogc { return index < tokens.length && tokens[index] == type; } /** * Returns: true if the current token is one of the given types */ bool currentIsOneOf(IdType[] types...) const pure nothrow @safe @nogc { if (index >= tokens.length) return false; return canFind(types, current.type); } bool startsWith(IdType[] types...) const pure nothrow @safe @nogc { if (index + types.length >= tokens.length) return false; for (size_t i = 0; (i < types.length) && ((index + i) < tokens.length); ++i) { if (tokens[index + i].type != types[i]) return false; } return true; } alias Bookmark = size_t; Bookmark setBookmark() pure nothrow @safe { // mixin(traceEnterAndExit!(__FUNCTION__)); suppressMessages ~= suppressedErrorCount(); return index; } void abandonBookmark(Bookmark) pure nothrow @safe @nogc { suppressMessages.popBack(); } void goToBookmark(Bookmark bookmark) pure nothrow @safe @nogc { suppressMessages.popBack(); index = bookmark; } template simpleParse(NodeType, parts ...) { static if (__traits(hasMember, NodeType, "comment")) enum nodeComm = "node.comment = comment;\n" ~ "comment = null;\n"; else enum nodeComm = ""; static if (__traits(hasMember, NodeType, "line")) enum nodeLine = "node.line = current().line;\n"; else enum nodeLine = ""; static if (__traits(hasMember, NodeType, "column")) enum nodeColumn = "node.column = current().column;\n"; else enum nodeColumn = ""; static if (__traits(hasMember, NodeType, "location")) enum nodeLoc = "node.location = current().index;\n"; else enum nodeLoc = ""; enum simpleParse = "auto startIndex = index;\nauto node = allocator.make!" ~ NodeType.stringof ~ ";\n" ~ nodeComm ~ nodeLine ~ nodeColumn ~ nodeLoc ~ simpleParseItems!(parts) ~ "\nnode.tokens = tokens[startIndex .. index];\nreturn node;\n"; } template simpleParseItems(items ...) { static if (items.length > 1) enum simpleParseItems = simpleParseItem!(items[0]) ~ "\n" ~ simpleParseItems!(items[1 .. $]); else static if (items.length == 1) enum simpleParseItems = simpleParseItem!(items[0]); else enum simpleParseItems = ""; } template simpleParseItem(alias item) { static if (is (typeof(item) == string)) enum simpleParseItem = "if ((node." ~ item[0 .. item.countUntil("|")] ~ " = " ~ item[item.countUntil("|") + 1 .. $] ~ "()) is null) { return null; }"; else enum simpleParseItem = "if (expect(" ~ item.stringof ~ ") is null) { return null; }"; } template traceEnterAndExit(string fun) { enum traceEnterAndExit = `version (dparse_verbose) { _traceDepth++; trace("` ~ `\033[01;32m` ~ fun ~ `\033[0m"); }` ~ `version (dparse_verbose) scope(exit) { trace("` ~ `\033[01;31m` ~ fun ~ `\033[0m"); _traceDepth--; }`; } version (dparse_verbose) { import std.stdio : stderr; void trace(string message) { if (!suppressMessages.empty) return; auto depth = format("%4d ", _traceDepth); if (index < tokens.length) stderr.writeln(depth, message, "(", current.line, ":", current.column, ")"); else stderr.writeln(depth, message, "(EOF:0)"); } } else { void trace(lazy string) {} } template parseNodeQ(string VarName, string NodeName) { enum parseNodeQ = `{ if ((` ~ VarName ~ ` = parse` ~ NodeName ~ `()) is null) return null; }`; } template nullCheck(string exp) { enum nullCheck = "{if ((" ~ exp ~ ") is null) { return null; }}"; } template tokenCheck(string Tok) { enum tokenCheck = `{ if (expect(tok!"` ~ Tok ~ `") is null) { return null; } }`; } template tokenCheck(string Exp, string Tok) { enum tokenCheck = `{auto t = expect(tok!"` ~ Tok ~ `");` ~ `if (t is null) { return null;}` ~ `else {` ~ Exp ~ ` = *t; }}`; } T attachCommentFromSemicolon(T)(T node, size_t startIndex) { auto semicolon = expect(tok!";"); if (semicolon is null) return null; if (semicolon.trailingComment !is null) { if (node.comment is null) node.comment = semicolon.trailingComment; else { node.comment ~= "\n"; node.comment ~= semicolon.trailingComment; } } if (node) node.tokens = tokens[startIndex .. index]; return node; } // This list MUST BE MAINTAINED IN SORTED ORDER. static immutable string[] REGISTER_NAMES = [ "AH", "AL", "AX", "BH", "BL", "BP", "BPL", "BX", "CH", "CL", "CR0", "CR2", "CR3", "CR4", "CS", "CX", "DH", "DI", "DIL", "DL", "DR0", "DR1", "DR2", "DR3", "DR6", "DR7", "DS", "DX", "EAX", "EBP", "EBX", "ECX", "EDI", "EDX", "ES", "ESI", "ESP", "FS", "GS", "MM0", "MM1", "MM2", "MM3", "MM4", "MM5", "MM6", "MM7", "R10", "R10B", "R10D", "R10W", "R11", "R11B", "R11D", "R11W", "R12", "R12B", "R12D", "R12W", "R13", "R13B", "R13D", "R13W", "R14", "R14B", "R14D", "R14W", "R15", "R15B", "R15D", "R15W", "R8", "R8B", "R8D", "R8W", "R9", "R9B", "R9D", "R9W", "RAX", "RBP", "RBX", "RCX", "RDI", "RDX", "RSI", "RSP", "SI", "SIL", "SP", "SPL", "SS", "ST", "TR3", "TR4", "TR5", "TR6", "TR7", "XMM0", "XMM1", "XMM10", "XMM11", "XMM12", "XMM13", "XMM14", "XMM15", "XMM2", "XMM3", "XMM4", "XMM5", "XMM6", "XMM7", "XMM8", "XMM9", "YMM0", "YMM1", "YMM10", "YMM11", "YMM12", "YMM13", "YMM14", "YMM15", "YMM2", "YMM3", "YMM4", "YMM5", "YMM6", "YMM7", "YMM8", "YMM9" ]; N parseStaticCtorDtorCommon(N)(N node, size_t startIndex) { node.line = current.line; node.column = current.column; mixin(tokenCheck!"this"); mixin(tokenCheck!"("); mixin(tokenCheck!")"); StackBuffer attributes; while (moreTokens() && !currentIsOneOf(tok!"{", tok!"in", tok!"out", tok!"do", tok!";") && current.text != "body") if (!attributes.put(parseMemberFunctionAttribute())) return null; ownArray(node.memberFunctionAttributes, attributes); if (currentIs(tok!";")) advance(); else mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); if (node) node.tokens = tokens[startIndex .. index]; return node; } N parseInterfaceOrClass(N)(N node, size_t startIndex) { auto ident = expect(tok!"identifier"); mixin (nullCheck!`ident`); node.name = *ident; node.comment = comment; comment = null; if (currentIs(tok!";")) goto emptyBody; if (currentIs(tok!"{")) goto structBody; if (currentIs(tok!"(")) { mixin(parseNodeQ!(`node.templateParameters`, `TemplateParameters`)); if (currentIs(tok!";")) goto emptyBody; constraint: if (currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); if (node.baseClassList !is null) { if (currentIs(tok!"{")) goto structBody; else if (currentIs(tok!";")) goto emptyBody; else { error("Struct body or `;` expected"); return null; } } if (currentIs(tok!":")) goto baseClassList; if (currentIs(tok!"if")) goto constraint; if (currentIs(tok!";")) goto emptyBody; } if (currentIs(tok!":")) { baseClassList: advance(); // : if ((node.baseClassList = parseBaseClassList()) is null) return null; if (currentIs(tok!"if")) goto constraint; } structBody: mixin(parseNodeQ!(`node.structBody`, `StructBody`)); node.tokens = tokens[startIndex .. index]; return node; emptyBody: advance(); node.tokens = tokens[startIndex .. index]; return node; } uint suppressedErrorCount() const pure nothrow @nogc @safe { return suppressMessages.empty ? 0 : suppressMessages.back(); } uint[] suppressMessages; size_t index; int _traceDepth; string comment; bool[typeof(Token.index)] cachedAAChecks; bool[typeof(Token.index)] cachedTypeChecks; }
D
import player; class World { Player p1 = new Player; Player p2 = new Player; auto arena_rad = .9; const auto G = .00003; // Gravitational constant bool outOfBounds(Player guy) { return (arena_rad - guy.r) * (arena_rad - guy.r) < (guy.x*guy.x + guy.y*guy.y); } this() { p1.x -= .5; p2.x += .5; } void step() { import std.math; // Apply gravity to players { auto dx = p2.x - p1.x; auto dy = p2.y - p1.y; auto dist = sqrt(dx*dx+dy*dy); auto Fg = G * (p1.mass * p2.mass) / dist; auto theta = atan2(dy, dx); auto p1_range = p2.mass; if (p1_range >= dist) { p1.env_vx += Fg/p1.mass * cos(theta); p1.env_vy += Fg/p1.mass * sin(theta); } auto p2_range = p1.mass; if (p2_range >= dist) { p2.env_vx -= Fg/p2.mass * cos(theta); p2.env_vy -= Fg/p2.mass * sin(theta); } } // Step both players foreach (player; [p1, p2]) { if (player.up) { player.ctrl_vy += .01; } if (player.down) { player.ctrl_vy -= .01; } if (player.right) { player.ctrl_vx += .01; } if (player.left) { player.ctrl_vx -= .01; } // Do stuff with the mass field import math_util; auto sig = sigmoid(player.mass_coefficient); player.mass = player.r + sig; auto chunk_size = .15; // Crash the circle if (player.recent_presses >= chunk_size) { player.mass_coefficient += chunk_size; player.recent_presses -= chunk_size; } else if (player.mass > player.r * 2) { if (player.crash_circle) chunk_size *= 4; player.mass_coefficient -= chunk_size; } import std.math; auto len_sq = player.ctrl_vx*player.ctrl_vx + player.ctrl_vy*player.ctrl_vy; // Normalize! if (len_sq > player.max_speed*player.max_speed) { player.ctrl_vx *= player.max_speed / sqrt(len_sq); player.ctrl_vy *= player.max_speed / sqrt(len_sq); } // Move player.x += (player.env_vx + player.ctrl_vx); player.y += (player.env_vy + player.ctrl_vy); // Apply friction player.ctrl_vx *= player.friction; player.ctrl_vy *= player.friction; } // Collision detect between players auto dx = p2.x - p1.x; auto dy = p2.y - p1.y; auto dist_sq = dx*dx + dy*dy; if (dist_sq < (p1.r + p2.r)*(p1.r + p2.r)) { auto angle = atan2(dy, dx); // Midpoint x and y auto mid_x = (p1.x+p2.x)/2; auto mid_y = (p1.y+p2.y)/2; // Move them so they're tangent at whatever the angle between them was p1.x = mid_x - cos(angle) * p1.r; p1.y = mid_y - sin(angle) * p1.r; p2.x = mid_x + cos(angle) * p2.r; p2.y = mid_y + sin(angle) * p2.r; } } }
D
struct S { this(this) { } ~this() { } } struct S2 { S s; } const S globalS; // ok const S2 globalS2; // ok void f() { const S localS; // ok const S2 localS2; // ok } struct S3 // or class, or union { const S s; } // any qualifier causes errors
D
instance DIA_AmbientDementorFriendly_EXIT(C_Info) { nr = 999; condition = DIA_AmbientDementorFriendly_EXIT_Condition; information = DIA_AmbientDementorFriendly_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_AmbientDementorFriendly_EXIT_Condition() { return TRUE; }; func void DIA_AmbientDementorFriendly_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_AmbientDementorFriendly(C_Info) { nr = 1; condition = DIA_AmbientDementorFriendly_Condition; information = DIA_AmbientDementorFriendly_Info; important = TRUE; permanent = TRUE; }; func int DIA_AmbientDementorFriendly_Condition() { if((Npc_RefuseTalk(self) == FALSE) && (Npc_IsInState(self,ZS_Talk) == TRUE) && (hero.guild <= GIL_SEPERATOR_HUM)) { return TRUE; }; }; func void DIA_AmbientDementorFriendly_Info() { var int randyspeech; randyspeech = Hlp_Random(2); if(randyspeech == FALSE) { Snd_Play("DEM_RITUAL_01"); } else { Snd_Play("DEM_RITUAL_02"); }; AI_StopProcessInfos(self); }; instance DIA_AmbientDementor_EXIT(C_Info) { nr = 999; condition = DIA_AmbientDementor_EXIT_Condition; information = DIA_AmbientDementor_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_AmbientDementor_EXIT_Condition() { if(NazgulsAwayMe == FALSE) { return TRUE; }; }; func void DIA_AmbientDementor_EXIT_Info() { Wld_StopEffect("DEMENTOR_FX"); AI_StopProcessInfos(self); B_SCIsObsessed(self); Npc_SetRefuseTalk(self,5); self.aivar[AIV_EnemyOverride] = FALSE; Snd_Play("MFX_FEAR_CAST"); if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino1)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino2)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino3)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino4))) { DMT_Vino1.aivar[AIV_EnemyOverride] = FALSE; DMT_Vino2.aivar[AIV_EnemyOverride] = FALSE; DMT_Vino3.aivar[AIV_EnemyOverride] = FALSE; DMT_Vino4.aivar[AIV_EnemyOverride] = FALSE; }; }; instance DIA_AmbientDementor(C_Info) { nr = 1; condition = DIA_AmbientDementor_Condition; information = DIA_AmbientDementor_Info; important = TRUE; permanent = TRUE; }; func int DIA_AmbientDementor_Condition() { if((Npc_RefuseTalk(self) == FALSE) && (hero.guild <= GIL_SEPERATOR_HUM) && (NazgulsAwayMe == FALSE)) { return TRUE; }; }; func void DIA_AmbientDementor_Info() { var int randy; var int randyspeech; randyspeech = Hlp_Random(2); if(randyspeech == FALSE) { Snd_Play("DEM_RITUAL_01"); } else { Snd_Play("DEM_RITUAL_02"); }; Wld_PlayEffect("spellFX_INCOVATION_RED",self,self,0,0,0,FALSE); Wld_PlayEffect("FX_EarthQuake",hero,hero,0,0,0,FALSE); //Wld_PlayEffect("DEMENTOR_FX",hero,hero,0,0,0,FALSE); Wld_PlayEffect("spellFX_Fear",self,self,0,0,0,FALSE); AI_PlayAni(self,"T_PRACTICEMAGIC5"); randy = Hlp_Random(4); if(Npc_HasItems(hero,ItAm_Prot_BlackEye_Mis) == FALSE) { AI_PlayAni(hero,"T_INSANE"); hero.attribute[ATR_HITPOINTS] = hero.attribute[ATR_HITPOINTS] / 2; Snd_Play3d(hero,"HERODEAD"); }; if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino1)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino2)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino3)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DMT_Vino4))) { AI_Output(self,other,"DIA_VinoDementor_19_00"); //Přišel jsi nám přerušit rituál? Jeho duše patří nám. Nyní už ho zachránit nemůžeš mágu! } else if(CurrentLevel == DRAGONISLAND_ZEN) { if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DragonIsle_Keymaster)) { AI_Output(self,other,"DIA_AmbientDementor_19_01"); //(smích) Přišel si vyzvat mě? Jsi odsouzen k záhubě. AI_Output(self,other,"DIA_AmbientDementor_19_02"); //Nikdo, nikdy nedokázal projít mou hrobkou. } else { if(randy == 0) { AI_Output(self,other,"DIA_AmbientDementor_19_03"); //Již teď si zašel příliš daleko nicotný červe. Do naší svatyně se nikdy nedostaneš. }; if(randy == 1) { AI_Output(self,other,"DIA_AmbientDementor_19_04"); //Zůstaň kde jsi. Už ani krok! }; if(randy == 2) { AI_Output(self,other,"DIA_AmbientDementor_19_05"); //Dostal ses daleko, ale přece dál se nedostaneš. }; if(randy == 3) { AI_Output(self,other,"DIA_AmbientDementor_19_06"); //Přišel si vyzvat Mistra, ale nejprve musíš přejít přes mne. }; }; } else if(hero.guild == GIL_KDF) { if(randy == 0) { AI_Output(self,other,"DIA_AmbientDementor_19_07"); //Slaboučký chudáčku, nejsi hoden měřit síly s Mistrem. }; if(randy == 1) { AI_Output(self,other,"DIA_AmbientDementor_19_08"); //Vybral sis cestu magie abys nás porazil. Chytrý tah, ale ani ten ti nepomůže. }; if(randy == 2) { AI_Output(self,other,"DIA_AmbientDementor_19_09"); //Ani jako mág nás nezastavíš. }; if(randy == 3) { AI_Output(self,other,"DIA_AmbientDementor_19_10"); //Můj Mistr tě zničí. Tvá ubohá magie tě nezachrání. }; } else { if(randy == 0) { AI_Output(self,other,"DIA_AmbientDementor_19_11"); //Vzdej se dokud můžeš. Už pro tebe není úniku. }; if(randy == 1) { AI_Output(self,other,"DIA_AmbientDementor_19_12"); //Teď pocítíš sílu Mistra. Nemůžeš se jí vyhnout. }; if(randy == 2) { AI_Output(self,other,"DIA_AmbientDementor_19_13"); //Mistr chce tvou hlavu. Nikdo už tě nemůže zachránit. }; if(randy == 3) { AI_Output(self,other,"DIA_AmbientDementor_19_14"); //Chytili jsme tě do pasti a nyní tě zničíme! }; }; if(SBMODE == TRUE) { Wld_SpawnNpcRange(hero,Skeleton_Dark,2,500); } else { Wld_SpawnNpcRange(hero,Skeleton_Dark,1,500); }; self.aivar[AIV_PlayerHasPickedMyPocket] = TRUE; }; func void B_AssignDementorTalk(var C_Npc slf) { if((slf.guild == GIL_DMT) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Imarah)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Ahiron)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Skeleton_Stefan)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Ilesil_Evil)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Skeleton_Lord_LV)) && (slf.npcType == NPCTYPE_AMBIENT)) { DIA_AmbientDementor_EXIT.npc = Hlp_GetInstanceID(slf); DIA_AmbientDementor.npc = Hlp_GetInstanceID(slf); }; }; func void B_AssignDementorTalkFriendly(var C_Npc slf) { if((slf.guild == GIL_DMT) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Imarah)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Ahiron)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Skeleton_Stefan)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Ilesil_Evil)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Skeleton_Lord_LV)) && (slf.npcType == NPCTYPE_BL_AMBIENT)) { DIA_AmbientDementorFriendly_EXIT.npc = Hlp_GetInstanceID(slf); DIA_AmbientDementorFriendly.npc = Hlp_GetInstanceID(slf); }; }; instance DIA_AmbientDead_EXIT(C_Info) { nr = 999; condition = DIA_AmbientDead_EXIT_Condition; information = DIA_AmbientDead_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_AmbientDead_EXIT_Condition() { return TRUE; }; func void DIA_AmbientDead_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_AmbientDead(C_Info) { nr = 1; condition = DIA_AmbientDead_Condition; information = DIA_AmbientDead_Info; important = TRUE; permanent = TRUE; }; func int DIA_AmbientDead_Condition() { if((Npc_RefuseTalk(self) == FALSE) && (Npc_IsInState(self,ZS_Talk) == TRUE) && (hero.guild <= GIL_SEPERATOR_HUM)) { return TRUE; }; }; func void DIA_AmbientDead_Info() { var int randyspeech; randyspeech = Hlp_Random(2); if(randyspeech == FALSE) { Snd_Play("DEM_RITUAL_01"); } else { Snd_Play("DEM_RITUAL_02"); }; AI_StopProcessInfos(self); }; func void B_AssignDeadTalk(var C_Npc slf) { if((slf.guild == GIL_DMT) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Imarah)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Ahiron)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Ilesil_Evil)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Skeleton_Stefan)) && (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(Skeleton_Lord_LV)) && (slf.npcType == NPCTYPE_AMBIENT)) { DIA_AmbientDead_EXIT.npc = Hlp_GetInstanceID(slf); DIA_AmbientDead.npc = Hlp_GetInstanceID(slf); }; };
D
module org.restlet.engine.application; public import org.restlet.engine.application.Encoder;
D
/Users/Vishnu/QBurst/Internal/Pod/QAHelper/DerivedData/QAHelper/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/ConstraintConfig.o : /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/Constraint.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintConfig.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintConstantTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintDescription.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintInsets.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintInsetTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintItem.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutGuide.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutSupport.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutSupportDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMaker.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerEditable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerExtendable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerFinalizable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerPriortizable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerRelatable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMultiplierTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintOffsetTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintPriorityTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintRelatableTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintRelation.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintView+Extensions.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintView.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintViewDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/Debugging.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/LayoutConstraint.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/UILayoutGuide+Extensions.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/UILayoutSupport+Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/Target\ Support\ Files/SnapKit/SnapKit-umbrella.h /Users/Vishnu/QBurst/Internal/Pod/QAHelper/DerivedData/QAHelper/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Vishnu/QBurst/Internal/Pod/QAHelper/DerivedData/QAHelper/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/ConstraintConfig~partial.swiftmodule : /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/Constraint.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintConfig.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintConstantTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintDescription.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintInsets.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintInsetTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintItem.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutGuide.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutSupport.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutSupportDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMaker.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerEditable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerExtendable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerFinalizable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerPriortizable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerRelatable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMultiplierTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintOffsetTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintPriorityTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintRelatableTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintRelation.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintView+Extensions.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintView.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintViewDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/Debugging.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/LayoutConstraint.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/UILayoutGuide+Extensions.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/UILayoutSupport+Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/Target\ Support\ Files/SnapKit/SnapKit-umbrella.h /Users/Vishnu/QBurst/Internal/Pod/QAHelper/DerivedData/QAHelper/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Vishnu/QBurst/Internal/Pod/QAHelper/DerivedData/QAHelper/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/ConstraintConfig~partial.swiftdoc : /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/Constraint.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintConfig.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintConstantTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintDescription.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintInsets.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintInsetTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintItem.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutGuide.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutSupport.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintLayoutSupportDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMaker.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerEditable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerExtendable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerFinalizable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerPriortizable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMakerRelatable.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintMultiplierTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintOffsetTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintPriorityTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintRelatableTarget.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintRelation.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintView+Extensions.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintView.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/ConstraintViewDSL.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/Debugging.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/LayoutConstraint.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/UILayoutGuide+Extensions.swift /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/SnapKit/Source/UILayoutSupport+Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/Vishnu/QBurst/Internal/Pod/QAHelper/Pods/Target\ Support\ Files/SnapKit/SnapKit-umbrella.h /Users/Vishnu/QBurst/Internal/Pod/QAHelper/DerivedData/QAHelper/Build/Intermediates/Pods.build/Debug-iphonesimulator/SnapKit.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
/Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/てくPico.build/Debug-iphoneos/てくPico.build/Objects-normal/armv7/ThirdViewContoroller.o : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreImage.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/てくPico.build/Debug-iphoneos/てくPico.build/Objects-normal/armv7/ThirdViewContoroller~partial.swiftmodule : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreImage.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/てくPico.build/Debug-iphoneos/てくPico.build/Objects-normal/armv7/ThirdViewContoroller~partial.swiftdoc : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/32/CoreImage.swiftmodule
D
import std.stdio; import std.exception; import std.process; import std.file; import core.thread; import core.time; enum testNumber = 1; void customShell(string command, lazy string error) { auto res = executeShell(command); if(res.status != 0) throw new Exception(error ~ " " ~ res.output); } void checkOutput(string filename, string expected) { enforce(filename.exists, "Cannot find output file " ~ filename); auto str = filename.readText; enforce(filename.readText == expected, "Expected '" ~ expected ~ "' but got '" ~ str ~ "'"); filename.remove; } void main() { writeln("Running test ", testNumber, "... "); customShell("dub build", "Failed to build testing example!"); customShell("dub run", "Failed to execute daemon!"); Thread.sleep(100.dur!"msecs"); checkOutput("output.txt", "Hello World!"); }
D
/Users/obuchiyuki/Desktop/SaftyDrive/Build/Intermediates/SafetyDrive.build/Debug-iphoneos/SaftyDrive.build/Objects-normal/arm64/MKTableViewCell.o : /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSnackbar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMMenu.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMTip.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKImageView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/etc.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKColor.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKNavigationBar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSwitch.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCollectionViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingCellViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLayer.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKActivityIndicator.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMReachability.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedMainControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMNavigationViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingDataController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedDrawerControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKRefreshControl.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSideDrawerViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCardView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTextField.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTableViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/ViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMAlertController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/swiftyJSON.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLabel.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKButton.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/AppDelegate.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMHorizontalMenu.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Users/obuchiyuki/Desktop/SaftyDrive/Build/Intermediates/SafetyDrive.build/Debug-iphoneos/SaftyDrive.build/Objects-normal/arm64/MKTableViewCell~partial.swiftmodule : /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSnackbar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMMenu.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMTip.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKImageView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/etc.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKColor.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKNavigationBar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSwitch.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCollectionViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingCellViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLayer.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKActivityIndicator.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMReachability.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedMainControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMNavigationViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingDataController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedDrawerControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKRefreshControl.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSideDrawerViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCardView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTextField.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTableViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/ViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMAlertController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/swiftyJSON.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLabel.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKButton.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/AppDelegate.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMHorizontalMenu.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Users/obuchiyuki/Desktop/SaftyDrive/Build/Intermediates/SafetyDrive.build/Debug-iphoneos/SaftyDrive.build/Objects-normal/arm64/MKTableViewCell~partial.swiftdoc : /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSnackbar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMMenu.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMTip.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKImageView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/etc.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKColor.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKNavigationBar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSwitch.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCollectionViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingCellViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLayer.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKActivityIndicator.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMReachability.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedMainControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMNavigationViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingDataController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedDrawerControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKRefreshControl.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSideDrawerViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCardView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTextField.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTableViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/ViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMAlertController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/swiftyJSON.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLabel.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKButton.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/AppDelegate.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMHorizontalMenu.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule
D
module ppl.resolve.ResolveCalloc; import ppl.internal; final class ResolveCalloc { private: Module module_; ResolveModule resolver; ResolveAlias aliasResolver; FoldUnreferenced foldUnreferenced; public: this(ResolveModule resolver) { this.resolver = resolver; this.module_ = resolver.module_; this.aliasResolver = resolver.aliasResolver; this.foldUnreferenced = resolver.foldUnreferenced; } void resolve(Calloc n) { aliasResolver.resolve(n, n.valueType); if(n.valueType.isKnown) { /// Rewrite Calloc to: /// As /// Dot /// GC /// call calloc /// size /// TypeExpr auto b = module_.nodeBuilder; auto dot = b.callStatic("GC", "calloc", n); dot.second().add(b.makeInt(n.valueType.size)); auto as = b.as(dot, n.getType); foldUnreferenced.fold(n, as); } } }
D
module image.scaling.nearest_neighbour; import image.view; pure: @safe: nothrow: auto nearest_neighbour(V)(V src, size_t new_w, size_t new_h) if (isWritableView!V && is(typeof(V(1, 1)))) { auto w_ratio = (src.w << 16) / new_w + 1; auto h_ratio = (src.h << 16) / new_h + 1; size_t pw, ph; auto dst = V(new_w, new_h); foreach (w; 0..new_w) { foreach (h; 0..new_h) { pw = (w * w_ratio) >> 16; ph = (h * h_ratio) >> 16; dst[w, h] = src[pw, ph]; } } return dst; } unittest { import image.dummy; auto img_2x2 = Img!ubyte([ [1, 2], [3, 4], ]); auto img_4x4 = Img!ubyte([ [1, 1, 2, 2], [1, 1, 2, 2], [3, 3, 4, 4], [3, 3, 4, 4], ]); assert(img_2x2.nearest_neighbour(4, 4) == img_4x4); assert(img_4x4.nearest_neighbour(2, 2) == img_2x2); }
D
module openclD.compose.Lambda; import std.traits; template Lambda (alias Fun, string fun) { static string toString () { return fun; } static auto call (T ...) (T values) { static if (is (ReturnType!(Fun) == void)) { Fun (values); } else { return Fun (values); } } }
D
module rdf; import std.traits: isSomeString, isNarrowString; import std.range : empty, hasSlicing, hasLength; import std.string: indexOf, lastIndexOf; import std.stdio: File; import std.algorithm.searching: startsWith, endsWith, findSplit; enum SubjectType { URI, undecodedURI, blankNode } enum ObjectType { URI, undecodedURI, blankNode, literal } /** Iterate RDF-File $(D rdfFile) by RDF N-Triple. */ auto byNTriple(File rdfFile) { import bylinefast: byLineFast, KeepTerminator; import std.algorithm: map, filter; import std.string: indexOf; // TODO support this somehow: // if (line.startsWith(`#`)) // { // if (line.skipOver(`# started `)) { string startTime = line.to!string; } // if (line.skipOver(`# completed `)) { string completionTime = line.to!string; } // continue; // } return rdfFile.byLineFast(KeepTerminator.no, "\n") .filter!(line => (!line.empty && // skip empty lines line.indexOf('#') != 0)) // skip comments .map!(line => line.nTriple); } /** RDF N-Triple. Parameterized on element type $(D ElementType). Use NTriple!(char[]) to avoid GC-allocations when parsing files using File.byLine which returns a volatile reference to a temporary char[] buffer. If The NTriples are to be stored permanently in memory use NTriple!string. See_Also: http://wn.wikpedia.org/wiki/N-Triples. */ struct NTriple(ElementType) { import std.uri: decodeComponent; import std.conv: to; /** Construct using subject, predicate, object. Fails for: - subject: <http://dbpedia.org/resource/CT_Rei_Pel%C3%A9> - predicate: <http://xmlns.com/foaf/0.1/homepage> - object: <http://www.santosfc.com.br/clube/default.asp?c=Sedes&st=CT%20Rei%20Pel%E9> */ this(S)(S subject, S predicate, S object) if (isSomeString!S) in { assert(!subject.empty); assert(!predicate.empty); assert(!object.empty); } body { import std.uri : URIException; // subject if (subject.startsWith(`<`)) // URI { assert(subject.endsWith(`>`)); SubjectType subjectType; try { this.subject = subject[1 .. $ - 1].decodeComponent.to!ElementType; subjectType = SubjectType.URI; } catch (URIException e) { this.subject = subject[1 .. $ - 1].to!ElementType; subjectType = SubjectType.undecodedURI; // indicate failed decoding } this.subjectType = subjectType; } else // blank node { this.subject = subject.to!ElementType; this.subjectType = SubjectType.blankNode; } // predicate assert(predicate.startsWith(`<`)); assert(predicate.endsWith(`>`)); this.predicate = predicate[1 .. $ - 1].to!ElementType; // object if (object.startsWith(`<`)) // URI { assert(object.endsWith(`>`)); ObjectType objectType; try { this.object = object[1 .. $ - 1].decodeComponent.to!ElementType; objectType = ObjectType.URI; } catch (URIException e) { this.object = object[1 .. $ - 1].to!ElementType; // skip decoding objectType = ObjectType.undecodedURI; // indicate failed decoding } this.objectType = objectType; } else if (object.startsWith(`"`)) // literal { const endIx = object.lastIndexOf('"'); assert(endIx != -1); // TODO Use enforce? import std.array: replace; this.object = object[1 .. endIx].replace(`\"`, `"`).to!ElementType; this.objectType = ObjectType.literal; auto rest = object[endIx + 1.. $]; if (!rest.empty && rest[0] == '@') { this.objectLanguageCode = rest[1 .. $].to!ElementType; } else { const hit = rest.indexOf(`^^`); if (hit != -1) { const objectdataType = rest[hit + 2 .. $]; assert(objectdataType.startsWith(`<`)); assert(objectdataType.endsWith(`>`)); this.objectDataTypeURI = objectdataType[1 .. $ - 1].decodeComponent; } } } else // blank node { this.object = object.to!ElementType; this.objectType = ObjectType.blankNode; } } ElementType subject; ElementType predicate; ElementType object; ElementType objectLanguageCode; const SubjectType subjectType; const ObjectType objectType; const ElementType objectDataTypeURI; } /** Decode $(D S) into a an N-Triple. TODO Better to call it asNTriple or toNTriple or support conversion via std.conv: to? */ NTriple!S nTriple(S)(S s) if (isSomeString!S) { assert(s.length >= 4); // strip suffix: either ` .` or `.` if (s.endsWith(`.`)) s = s[0 .. $ - 1]; if (s.endsWith(` `)) s = s[0 .. $ - 1]; // subject const ix0 = s.indexOf(` `); const subject = s[0 .. ix0]; s = s[ix0 + 1 .. $]; // predicate URI const ix1 = s.indexOf(` `); const predicate = s[0 .. ix1]; s = s[ix1 + 1 .. $]; return typeof(return)(subject, predicate, s); } alias asNTriple = nTriple; alias toNTriple = nTriple; unittest { const x = `<http://dbpedia.org/resource/180%C2%B0_(Gerardo_album)> <http://dbpedia.org/ontology/artist> <http://dbpedia.org/resource/Gerardo_Mej%C3%ADa> .`; const t = x.nTriple; assert(t.subject == `http://dbpedia.org/resource/180°_(Gerardo_album)`); assert(t.subjectType == SubjectType.URI); assert(t.predicate == `http://dbpedia.org/ontology/artist`); assert(t.object == `http://dbpedia.org/resource/Gerardo_Mejía`); assert(t.objectLanguageCode is null); assert(t.objectDataTypeURI is null); assert(t.objectType == ObjectType.URI); } unittest { const x = `<http://dbpedia.org/resource/1950_Chatham_Cup> <http://xmlns.com/foaf/0.1/name> "Chatham Cup" .`; const t = x.nTriple; assert(t.subject == `http://dbpedia.org/resource/1950_Chatham_Cup`); assert(t.subjectType == SubjectType.URI); assert(t.predicate == `http://xmlns.com/foaf/0.1/name`); assert(t.object == `Chatham Cup`); assert(t.objectLanguageCode is null); assert(t.objectDataTypeURI is null); assert(t.objectType == ObjectType.literal); } unittest { const x = `<http://dbpedia.org/resource/1950_Chatham_Cup> <http://xmlns.com/foaf/0.1/name> "Chatham Cup"@en .`; const t = x.nTriple; assert(t.subject == `http://dbpedia.org/resource/1950_Chatham_Cup`); assert(t.subjectType == SubjectType.URI); assert(t.predicate == `http://xmlns.com/foaf/0.1/name`); assert(t.object == `Chatham Cup`); assert(t.objectLanguageCode == `en`); assert(t.objectDataTypeURI is null); assert(t.objectType == ObjectType.literal); } unittest { const x = `<http://dbpedia.org/resource/007:_Quantum_of_Solace> <http://dbpedia.org/ontology/releaseDate> "2008-10-31"^^<http://www.w3.org/2001/XMLSchema#date> .`; const t = x.nTriple; assert(t.subject == `http://dbpedia.org/resource/007:_Quantum_of_Solace`); assert(t.subjectType == SubjectType.URI); assert(t.predicate == `http://dbpedia.org/ontology/releaseDate`); assert(t.object == `2008-10-31`); assert(t.objectLanguageCode is null); assert(t.objectDataTypeURI == `http://www.w3.org/2001/XMLSchema#date`); assert(t.objectType == ObjectType.literal); } unittest { const x = `<http://dbpedia.org/resource/Ceremony_(song)> <http://dbpedia.org/ontology/bSide> "\"In a Lonely Place\"".`; const t = x.nTriple; assert(t.subject == `http://dbpedia.org/resource/Ceremony_(song)`); assert(t.subjectType == SubjectType.URI); assert(t.predicate == `http://dbpedia.org/ontology/bSide`); assert(t.object == `"In a Lonely Place"`); assert(t.objectLanguageCode is null); assert(t.objectDataTypeURI is null); assert(t.objectType == ObjectType.literal); } /** Iterate Range by RDF N-Triple. */ auto byNTriple(R)(R r) if ((hasSlicing!R && hasLength!R || isNarrowString!R)) { import std.algorithm: map, filter; import std.string: indexOf; import std.algorithm.iteration : splitter; return r.splitter("\n") .filter!(line => line.indexOf('#') != 0) // skip comments .map!(line => line.nTriple); } unittest { const x = `<http://dbpedia.org/resource/16_@_War> <http://xmlns.com/foaf/0.1/name> "16 @ War"@en . <http://dbpedia.org/resource/CT_Rei_Pel%C3%A9> <http://xmlns.com/foaf/0.1/homepage> <http://www.santosfc.com.br/clube/default.asp?c=Sedes&st=CT%20Rei%20Pel%E9> .`; auto t = x.byNTriple; assert(t.front.subject == `http://dbpedia.org/resource/16_@_War`); assert(t.front.subjectType == SubjectType.URI); assert(t.front.predicate == `http://xmlns.com/foaf/0.1/name`); assert(t.front.object == `16 @ War`); assert(t.front.objectLanguageCode == `en`); assert(t.front.objectDataTypeURI is null); assert(t.front.objectType == ObjectType.literal); t.popFront(); assert(t.front.subjectType == SubjectType.URI); assert(t.front.predicate == `http://xmlns.com/foaf/0.1/homepage`); assert(t.front.object == `http://www.santosfc.com.br/clube/default.asp?c=Sedes&st=CT%20Rei%20Pel%E9`); assert(t.front.objectType == ObjectType.undecodedURI); }
D
/work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/BaseIVFAB.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Cpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Lpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/GenericArithmetic.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/DisjointBoxLayout.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/CH_OpenMP.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDmpi.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Ppublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Arena.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/LayoutDataI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDcore.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/BaseIFFAB.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/ListImplem.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BaseFabMacros.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/FaceIndex.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5ACpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/IndexTMI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : DataFileIF.cpp /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Zpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDfamily.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/FArrayBox.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/DenseIntVectSet.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/SliceSpec.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/HDF5Portable.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/BaseIFFABI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BoxLayout.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/MayDay.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/BaseNamespaceHeader.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/EBGraph.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Tpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/VoFIterator.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/IntVect.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BaseFabImplem.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : Notation.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/NamespaceHeader.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BoxLayoutData.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5MMpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/TimedDataIterator.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5public.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDdirect.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Metaprograms.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/NamespaceVar.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5PLpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/LayoutIterator.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/GraphNode.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/IntVectSet.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Epubgen.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDsec2.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/List.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/RealVect.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Vector.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/GenericArithmeticI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Rpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/NamespaceFooter.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/RefCountedPtr.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Dpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/ClockTicks.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/memtrack.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5pubconf.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/REAL.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/Copier.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BoxIterator.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/parstream.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5version.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/BaseIndex.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/VolIndex.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/BaseNamespaceFooter.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/CH_Timer.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5api_adpt.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/IVSFABI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDlog.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDmpio.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/TreeIntVectSet.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Interval.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/EBData.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Opublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Misc.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/BitSet.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Epublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/SPMD.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Apublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/CH_assert.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BoxLayoutDataI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/DataIterator.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/ProblemDomain.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : DataFileIF.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/FaceIterator.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/IrregNode.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/NodeFArrayBox.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/EBDebugOut.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Ipublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : BaseIF.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Gpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDmulti.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/SPMDI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/LayoutData.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/IVSFAB.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/SPACE.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/GeometryService.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Fpublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/LevelDataI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/Stencils.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/Box.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/DebugOut.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Pool.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5Spublic.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/DataIndex.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/BaseIVFABI.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/BaseFab.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/IndexTM.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/EBTools/EBISBox.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/Tuple.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BoxTools/LevelData.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/LoHiSide.H /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/hdf5.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /opt/apps/intel15/impi_5_0/phdf5/1.8.16/x86_64/include/H5FDstdio.h /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../libworkshop2d.Linux.mpicxx.ifort.DEBUG.MPI.a(DataFileIF.o) d/2d.Linux.mpicxx.ifort.DEBUG.MPI/DataFileIF.d : /work/02138/siddarth/CHOMBO/EBAMRRANS/lib/src/Workshop/../../src/BaseTools/CH_Thread.H
D
/Users/sraj/Desktop/Projects/WoiGitTest/DerivedData/WoiGitTest/Build/Intermediates/WoiGitTest.build/Debug-iphonesimulator/WoiGitTest.build/Objects-normal/x86_64/FirstView.o : /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/ViewController.swift /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/FirstView.swift /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/sraj/Desktop/Projects/WoiGitTest/DerivedData/WoiGitTest/Build/Intermediates/WoiGitTest.build/Debug-iphonesimulator/WoiGitTest.build/Objects-normal/x86_64/FirstView~partial.swiftmodule : /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/ViewController.swift /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/FirstView.swift /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/sraj/Desktop/Projects/WoiGitTest/DerivedData/WoiGitTest/Build/Intermediates/WoiGitTest.build/Debug-iphonesimulator/WoiGitTest.build/Objects-normal/x86_64/FirstView~partial.swiftdoc : /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/ViewController.swift /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/FirstView.swift /Users/sraj/Desktop/Projects/WoiGitTest/WoiGitTest/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
D
/* DSFML - The Simple and Fast Multimedia Library for D Copyright (c) 2013 - 2015 Jeremy DeHaan (dehaan.jeremiah@gmail.com) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution */ module dsfml.graphics.transform; import dsfml.system.vector2; import dsfml.graphics.rect; public import std.math; /++ + Define a 3x3 transform matrix. + + A Transform specifies how to translate, rotate, scale, shear, project, whatever things. + + In mathematical terms, it defines how to transform a coordinate system into another. + + For example, if you apply a rotation transform to a sprite, the result will be a rotated sprite. And anything that is transformed by this rotation transform will be rotated the same way, according to its initial position. + + Transforms are typically used for drawing. But they can also be used for any computation that requires to transform points between the local and global coordinate systems of an entity (like collision detection). + + Authors: Laurent Gomila, Jeremy DeHaan + See_Also: http://www.sfml-dev.org/documentation/2.0/classsf_1_1Transform.php#details +/ struct Transform { float[9] m_matrix = [1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f]; /** * Construct a 3x3 matrix. * * Params: * a00 = Element (0, 0) of the matrix * a01 = Element (0, 1) of the matrix * a02 = Element (0, 2) of the matrix * a10 = Element (1, 0) of the matrix * a11 = Element (1, 1) of the matrix * a12 = Element (1, 2) of the matrix * a20 = Element (2, 0) of the matrix * a21 = Element (2, 1) of the matrix * a22 = Element (2, 2) of the matrix */ this(float a00, float a01, float a02, float a10, float a11, float a12, float a20, float a21, float a22) { m_matrix = [a00, a01, a02, a10, a11, a12, a20, a21, a22]; } this(float[9] newMatrix) { m_matrix = newMatrix.dup; } /** * Return the inverse of the transform. * * If the inverse cannot be computed, an identity transform is returned. * * Returns: A new transform which is the inverse of self. */ Transform getInverse() const { float[9] temp; sfTransform_getInverse(m_matrix.ptr,temp.ptr); return Transform(temp); } /** * Return the transform as a 4x4 matrix. * * This function returns a pointer to an array of 16 floats containing the transform elements as a 4x4 matrix, which is directly compatible with OpenGL functions. * * Returns: A 4x4 matrix. */ const(float)[] getMatrix() { static float[16] temp; sfTransform_getMatrix(m_matrix.ptr, temp.ptr); return temp.dup; } /** * Combine the current transform with another one. * * The result is a transform that is equivalent to applying this followed by transform. Mathematically, it is equivalent to a matrix multiplication. * * Params: * transform = Transform to combine with this one. * * Returns: Reference to this. */ void combine(Transform otherTransform) { sfTransform_combine(m_matrix.ptr, otherTransform.m_matrix.ptr); } /** * Transform a 2D point. * * Params: * x = X coordinate of the point to transform. * y = Y coordinate of the point to transform. * * Returns: Transformed point. */ Vector2f transformPoint(Vector2f point) const { Vector2f temp; sfTransform_transformPoint(m_matrix.ptr,point.x, point.y, &temp.x, &temp.y); return temp; } /** * Transform a rectangle. * * Since SFML doesn't provide support for oriented rectangles, the result of this function is always an axis-aligned rectangle. Which means that if the transform contains a rotation, the bounding rectangle of the transformed rectangle is returned. * * Params: * rectangle = Rectangle to transform. * * Returns: Transformed rectangle. */ FloatRect transformRect(const(FloatRect) rect)const { FloatRect temp; sfTransform_transformRect(m_matrix.ptr,rect.left, rect.top, rect.width, rect.height, &temp.left, &temp.top, &temp.width, &temp.height); return temp; } //TODO: These functions should probably return this; like the documentation states. /** * Combine the current transform with a translation. * * This function returns a reference to this, so that calls can be chained. * * Params: * offset = Translation offset to apply. * * Returns: this */ void translate(float x, float y) { sfTransform_translate(m_matrix.ptr, x, y); } /** * Combine the current transform with a rotation. * * This function returns a reference to this, so that calls can be chained. * * Params: * angle = Rotation angle, in degrees. * * Returns: this */ void rotate(float angle) { sfTransform_rotate(m_matrix.ptr, angle); } /** * Combine the current transform with a rotation. * * The center of rotation is provided for convenience as a second argument, so that you can build rotations around arbitrary points more easily (and efficiently) than the usual translate(-center).rotate(angle).translate(center). * * This function returns a reference to this, so that calls can be chained. * * Params: * angle = Rotation angle, in degrees. * center = Center of rotation * * Returns: this */ void rotate(float angle, float centerX, float centerY) { sfTransform_rotateWithCenter(m_matrix.ptr, angle, centerX, centerY); } /** * Combine the current transform with a scaling. * * This function returns a reference to this, so that calls can be chained. * * Params: * scaleX = Scaling factor on the X-axis. * scaleY = Scaling factor on the Y-axis. * * Returns: this */ void scale(float scaleX, float scaleY) { sfTransform_scale(m_matrix.ptr, scaleX, scaleY); } /** * Combine the current transform with a scaling. * * The center of scaling is provided for convenience as a second argument, so that you can build scaling around arbitrary points more easily (and efficiently) than the usual translate(-center).scale(factors).translate(center). * * This function returns a reference to this, so that calls can be chained. * * Params: * scaleX = Scaling factor on the X-axis. * scaleY = Scaling factor on the Y-axis. * centerX = X coordinate of the center of scaling * centerY = Y coordinate of the center of scaling * * Returns: this */ void scale(float scaleX, float scaleY, float centerX, float centerY) { sfTransform_scaleWithCenter(m_matrix.ptr, scaleX, scaleY, centerX, centerY); } string toString() { return "";//text(InternalsfTransform.matrix); } Transform opBinary(string op)(Transform rhs) if(op == "*") { Transform temp = this;//Transform(InternalsfTransform); temp.combine(rhs); return temp; } ref Transform opOpAssign(string op)(Transform rhs) if(op == "*") { this.combine(rhs); return this; } Transform opBinary(string op)(Vector2f vector) if(op == "*") { return transformPoint(vector); } /// Indentity transform (does nothing). static const(Transform) Identity; } private extern(C): //Return the 4x4 matrix of a transform void sfTransform_getMatrix(const float* transform, float* matrix); //Return the inverse of a transform void sfTransform_getInverse(const float* transform, float* inverse); //Apply a transform to a 2D point void sfTransform_transformPoint(const float* transform, float xIn, float yIn, float* xOut, float* yOut); //Apply a transform to a rectangle void sfTransform_transformRect(const float* transform, float leftIn, float topIn, float widthIn, float heightIn, float* leftOut, float* topOut, float* widthOut, float* heightOut); //Combine two transforms void sfTransform_combine(float* transform, const float* other); //Combine a transform with a translation void sfTransform_translate(float* transform, float x, float y); //Combine the current transform with a rotation void sfTransform_rotate(float* transform, float angle); //Combine the current transform with a rotation void sfTransform_rotateWithCenter(float* transform, float angle, float centerX, float centerY); //Combine the current transform with a scaling void sfTransform_scale(float* transform, float scaleX, float scaleY); //Combine the current transform with a scaling void sfTransform_scaleWithCenter(float* transform, float scaleX, float scaleY, float centerX, float centerY);
D
/** Wrapper streams which count the number of bytes or limit the stream based on the number of transferred bytes. Copyright: © 2012 Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.stream.counting; public import vibe.core.stream; import std.exception; import vibe.internal.interfaceproxy; import vibe.internal.freelistref : FreeListRef; /** Constructs a limited stream from an existing input stream. Params: stream = the input stream to be wrapped byte_limit = the maximum number of bytes readable from the constructed stream silent_limit = if set, the stream will behave exactly like the original stream, but will throw an exception as soon as the limit is reached. */ LimitedInputStream createLimitedInputStream(InputStream)(InputStream stream, ulong byte_limit, bool silent_limit = false) if (isInputStream!InputStream) { return new LimitedInputStream(interfaceProxy!(.InputStream)(stream), byte_limit, silent_limit, true); } /// private FreeListRef!LimitedInputStream createLimitedInputStreamFL(InputStream)(InputStream stream, ulong byte_limit, bool silent_limit = false) if (isInputStream!InputStream) { return FreeListRef!LimitedInputStream(interfaceProxy!(.InputStream)(stream), byte_limit, silent_limit, true); } /** Creates a proxy stream that counts the number of bytes written. Params: output = The stream to forward the written data to byte_limit = Optional total write size limit after which an exception is thrown */ CountingOutputStream createCountingOutputStream(OutputStream)(OutputStream output, ulong byte_limit = ulong.max) if (isOutputStream!OutputStream) { return new CountingOutputStream(interfaceProxy!(.OutputStream)(output), byte_limit, true); } /// private FreeListRef!CountingOutputStream createCountingOutputStreamFL(OutputStream)(OutputStream output, ulong byte_limit = ulong.max) if (isOutputStream!OutputStream) { return FreeListRef!CountingOutputStream(interfaceProxy!(.OutputStream)(output), byte_limit, true); } /** Creates a stream that fires a callback once the end of the underlying input stream is reached. Params: input = Source stream to read from callback = The callback that is invoked one the source stream has been drained */ EndCallbackInputStream createEndCallbackInputStream(InputStream)(InputStream input, void delegate() @safe callback) if (isInputStream!InputStream) { return new EndCallbackInputStream(interfaceProxy!(.InputStream)(input), callback, true); } /// private FreeListRef!EndCallbackInputStream createEndCallbackInputStreamFL(InputStream)(InputStream input, void delegate() @safe callback) if (isInputStream!InputStream) { return FreeListRef!EndCallbackInputStream(interfaceProxy!(.InputStream)(input), callback, true); } /** Wraps an existing stream, limiting the amount of data that can be read. */ class LimitedInputStream : InputStream { @safe: private { InterfaceProxy!InputStream m_input; ulong m_sizeLimit; bool m_silentLimit; } /// private this(InterfaceProxy!InputStream stream, ulong byte_limit, bool silent_limit, bool dummy) { assert(!!stream); m_input = stream; m_sizeLimit = byte_limit; m_silentLimit = silent_limit; } /// The stream that is wrapped by this one @property inout(InterfaceProxy!InputStream) sourceStream() inout { return m_input; } @property bool empty() { return m_silentLimit ? m_input.empty : (m_sizeLimit == 0); } @property ulong leastSize() { if( m_silentLimit ) return m_input.leastSize; return m_sizeLimit; } @property bool dataAvailableForRead() { return m_input.dataAvailableForRead; } void increment(ulong bytes) { if( bytes > m_sizeLimit ) onSizeLimitReached(); m_sizeLimit -= bytes; } const(ubyte)[] peek() { return m_input.peek(); } size_t read(scope ubyte[] dst, IOMode mode) { import std.algorithm: min; if ((mode == IOMode.all || m_sizeLimit == 0) && dst.length > m_sizeLimit) onSizeLimitReached(); const validReadSize = min(dst.length, m_sizeLimit); auto ret = m_input.read(dst[0 .. validReadSize], mode); m_sizeLimit -= ret; return ret; } alias read = InputStream.read; protected void onSizeLimitReached() @safe { throw new LimitException("Size limit reached", m_sizeLimit); } } unittest { // issue 2575 import vibe.stream.memory : createMemoryStream; import std.exception : assertThrown; auto buf = new ubyte[](1024); foreach (i, ref b; buf) b = cast(ubyte) i; auto input = createMemoryStream(buf, false); // test IOMode.once and IOMode.immediate static foreach (bufferSize; [100, 128, 200]) static foreach (ioMode; [IOMode.once, IOMode.immediate]) {{ input.seek(0); auto limitedStream = createLimitedInputStream(input, 128); ubyte[] result; ubyte[bufferSize] buffer; while (!limitedStream.empty) { const chunk = limitedStream.read(buffer[], ioMode); result ~= buffer[0 .. chunk]; } assert(result[] == buf[0 .. 128]); assertThrown(limitedStream.read(buffer[], ioMode)); }} // test IOMode.all normal operation { input.seek(0); auto limitedStream = createLimitedInputStream(input, 128); ubyte[] result; ubyte[64] buffer; result ~= buffer[0 .. limitedStream.read(buffer[], IOMode.all)]; result ~= buffer[0 .. limitedStream.read(buffer[], IOMode.all)]; assert(limitedStream.empty); assert(result[] == buf[0 .. 128]); assertThrown(limitedStream.read(buffer[], IOMode.all)); } // test IOMode.all reading over size limit { input.seek(0); auto limitedStream = createLimitedInputStream(input, 128); ubyte[256] buffer; assertThrown(limitedStream.read(buffer[], IOMode.all)); } } /** Wraps an existing output stream, counting the bytes that are written. */ class CountingOutputStream : OutputStream { @safe: private { ulong m_bytesWritten; ulong m_writeLimit; InterfaceProxy!OutputStream m_out; } /// private this(InterfaceProxy!OutputStream stream, ulong write_limit, bool dummy) { assert(!!stream); m_writeLimit = write_limit; m_out = stream; } /// Returns the total number of bytes written. @property ulong bytesWritten() const { return m_bytesWritten; } /// The maximum number of bytes to write @property ulong writeLimit() const { return m_writeLimit; } /// ditto @property void writeLimit(ulong value) { m_writeLimit = value; } /** Manually increments the write counter without actually writing data. */ void increment(ulong bytes) { enforce(m_bytesWritten + bytes <= m_writeLimit, "Incrementing past end of output stream."); m_bytesWritten += bytes; } size_t write(in ubyte[] bytes, IOMode mode) { enforce(m_bytesWritten + bytes.length <= m_writeLimit, "Writing past end of output stream."); auto ret = m_out.write(bytes, mode); m_bytesWritten += ret; return ret; } alias write = OutputStream.write; void flush() { m_out.flush(); } void finalize() { m_out.flush(); } } /** Wraps an existing input stream, counting the bytes that are written. */ class CountingInputStream : InputStream { @safe: private { ulong m_bytesRead; InterfaceProxy!InputStream m_in; } /// private this(InterfaceProxy!InputStream stream, bool dummy) { assert(!!stream); m_in = stream; } @property ulong bytesRead() const { return m_bytesRead; } @property bool empty() { return m_in.empty(); } @property ulong leastSize() { return m_in.leastSize(); } @property bool dataAvailableForRead() { return m_in.dataAvailableForRead; } void increment(ulong bytes) { m_bytesRead += bytes; } const(ubyte)[] peek() { return m_in.peek(); } size_t read(scope ubyte[] dst, IOMode mode) { auto ret = m_in.read(dst, mode); m_bytesRead += ret; return ret; } alias read = InputStream.read; } /** Wraps an input stream and calls the given delegate once the stream is empty. Note that this function will potentially block after each read operation to see if the end has already been reached - this may take as long until either new data has arrived or until the connection was closed. The stream will also guarantee that the inner stream is not used after it has been determined to be empty. It can thus be safely deleted once the callback is invoked. */ class EndCallbackInputStream : InputStream { @safe: private { InterfaceProxy!InputStream m_in; bool m_eof = false; void delegate() @safe m_callback; } /// private this(InterfaceProxy!InputStream input, void delegate() @safe callback, bool dummy) { m_in = input; m_callback = callback; checkEOF(); } @property bool empty() { checkEOF(); return !m_in; } @property ulong leastSize() { checkEOF(); if( m_in ) return m_in.leastSize(); return 0; } @property bool dataAvailableForRead() { if( !m_in ) return false; return m_in.dataAvailableForRead; } const(ubyte)[] peek() { if( !m_in ) return null; return m_in.peek(); } size_t read(scope ubyte[] dst, IOMode mode) { enforce(!!m_in, "Reading past end of stream."); auto ret = m_in.read(dst, mode); checkEOF(); return ret; } alias read = InputStream.read; private void checkEOF() @safe { if( !m_in ) return; if( m_in.empty ){ m_in = InterfaceProxy!InputStream.init; m_callback(); } } } class LimitException : Exception { @safe: private ulong m_limit; this(string message, ulong limit, Throwable next = null, string file = __FILE__, int line = __LINE__) { super(message, next, file, line); } /// The byte limit of the stream that emitted the exception @property ulong limit() const { return m_limit; } }
D
import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop, core.stdc.string; alias Tuple!(int, "x", int, "y", int, "c") Crystal; void main() { auto s = readln.split.map!(to!int); auto Gx = s[0]; auto Gy = s[1]; auto N = s[2]; auto F = s[3]; auto C = new Crystal[](N); foreach (i; 0..N) { s = readln.split.map!(to!int); C[i] = Crystal(s[0], s[1], s[2]); } auto dp = new int[][][](N+1, Gx+1, Gy+1); foreach (x; 0..Gx+1) { foreach (y; 0..Gy+1) { dp[0][x][y] = (x + y) * F; } } foreach (i; 0..N) { foreach (x; 0..Gx+1) { foreach (y; 0..Gy+1) { dp[i+1][x][y] = dp[i][x][y]; if (x - C[i].x < 0 || y - C[i].y < 0) continue; dp[i+1][x][y] = min(dp[i][x][y], dp[i][x-C[i].x][y-C[i].y] + C[i].c); } } } dp[N][Gx][Gy].writeln; }
D
module dmledit; import dlangui; import dlangui.dialogs.filedlg; import dlangui.dialogs.dialog; import dlangui.dml.dmlhighlight; import std.array : replaceFirst; mixin APP_ENTRY_POINT; // action codes enum IDEActions : int { //ProjectOpen = 1010000, FileNew = 1010000, FileOpen, FileSave, FileSaveAs, FileSaveAll, FileClose, FileExit, EditPreferences, DebugStart, HelpAbout, } // actions const Action ACTION_FILE_NEW = new Action(IDEActions.FileNew, "MENU_FILE_NEW"c, "document-new", KeyCode.KEY_N, KeyFlag.Control); const Action ACTION_FILE_SAVE = (new Action(IDEActions.FileSave, "MENU_FILE_SAVE"c, "document-save", KeyCode.KEY_S, KeyFlag.Control)).disableByDefault(); const Action ACTION_FILE_SAVE_AS = (new Action(IDEActions.FileSaveAs, "MENU_FILE_SAVE_AS"c)).disableByDefault(); const Action ACTION_FILE_OPEN = new Action(IDEActions.FileOpen, "MENU_FILE_OPEN"c, "document-open", KeyCode.KEY_O, KeyFlag.Control); const Action ACTION_FILE_EXIT = new Action(IDEActions.FileExit, "MENU_FILE_EXIT"c, "document-close"c, KeyCode.KEY_X, KeyFlag.Alt); const Action ACTION_EDIT_COPY = (new Action(EditorActions.Copy, "MENU_EDIT_COPY"c, "edit-copy"c, KeyCode.KEY_C, KeyFlag.Control)).addAccelerator(KeyCode.INS, KeyFlag.Control).disableByDefault(); const Action ACTION_EDIT_PASTE = (new Action(EditorActions.Paste, "MENU_EDIT_PASTE"c, "edit-paste"c, KeyCode.KEY_V, KeyFlag.Control)).addAccelerator(KeyCode.INS, KeyFlag.Shift).disableByDefault(); const Action ACTION_EDIT_CUT = (new Action(EditorActions.Cut, "MENU_EDIT_CUT"c, "edit-cut"c, KeyCode.KEY_X, KeyFlag.Control)).addAccelerator(KeyCode.DEL, KeyFlag.Shift).disableByDefault(); const Action ACTION_EDIT_UNDO = (new Action(EditorActions.Undo, "MENU_EDIT_UNDO"c, "edit-undo"c, KeyCode.KEY_Z, KeyFlag.Control)).disableByDefault(); const Action ACTION_EDIT_REDO = (new Action(EditorActions.Redo, "MENU_EDIT_REDO"c, "edit-redo"c, KeyCode.KEY_Y, KeyFlag.Control)).addAccelerator(KeyCode.KEY_Z, KeyFlag.Control|KeyFlag.Shift).disableByDefault(); const Action ACTION_EDIT_INDENT = (new Action(EditorActions.Indent, "MENU_EDIT_INDENT"c, "edit-indent"c, KeyCode.TAB, 0)).addAccelerator(KeyCode.KEY_BRACKETCLOSE, KeyFlag.Control).disableByDefault(); const Action ACTION_EDIT_UNINDENT = (new Action(EditorActions.Unindent, "MENU_EDIT_UNINDENT"c, "edit-unindent", KeyCode.TAB, KeyFlag.Shift)).addAccelerator(KeyCode.KEY_BRACKETOPEN, KeyFlag.Control).disableByDefault(); const Action ACTION_EDIT_TOGGLE_LINE_COMMENT = (new Action(EditorActions.ToggleLineComment, "MENU_EDIT_TOGGLE_LINE_COMMENT"c, null, KeyCode.KEY_DIVIDE, KeyFlag.Control)).disableByDefault(); const Action ACTION_EDIT_TOGGLE_BLOCK_COMMENT = (new Action(EditorActions.ToggleBlockComment, "MENU_EDIT_TOGGLE_BLOCK_COMMENT"c, null, KeyCode.KEY_DIVIDE, KeyFlag.Control|KeyFlag.Shift)).disableByDefault(); const Action ACTION_EDIT_PREFERENCES = (new Action(IDEActions.EditPreferences, "MENU_EDIT_PREFERENCES"c, null)).disableByDefault(); const Action ACTION_DEBUG_START = new Action(IDEActions.DebugStart, "MENU_DEBUG_UPDATE_PREVIEW"c, "debug-run"c, KeyCode.F5, 0); const Action ACTION_HELP_ABOUT = new Action(IDEActions.HelpAbout, "MENU_HELP_ABOUT"c); /// DIDE source file editor class DMLSourceEdit : SourceEdit { this(string ID) { super(ID); MenuItem editPopupItem = new MenuItem(null); editPopupItem.add(ACTION_EDIT_COPY, ACTION_EDIT_PASTE, ACTION_EDIT_CUT, ACTION_EDIT_UNDO, ACTION_EDIT_REDO, ACTION_EDIT_INDENT, ACTION_EDIT_UNINDENT, ACTION_EDIT_TOGGLE_LINE_COMMENT, ACTION_DEBUG_START); popupMenu = editPopupItem; content.syntaxSupport = new DMLSyntaxSupport(""); setTokenHightlightColor(TokenCategory.Comment, 0x008000); // green setTokenHightlightColor(TokenCategory.Keyword, 0x0000FF); // blue setTokenHightlightColor(TokenCategory.String, 0xa31515); // brown setTokenHightlightColor(TokenCategory.Integer, 0xa315C0); // setTokenHightlightColor(TokenCategory.Float, 0xa315C0); // setTokenHightlightColor(TokenCategory.Error, 0xFF0000); // red setTokenHightlightColor(TokenCategory.Op, 0x503000); setTokenHightlightColor(TokenCategory.Identifier_Class, 0x000080); // blue } this() { this("DMLEDIT"); } } immutable dstring SAMPLE_SOURCE_CODE = q{VerticalLayout { id: vlayout margins: Rect { left: 5; right: 3; top: 2; bottom: 4 } padding: Rect { 5, 4, 3, 2 } // same as Rect { left: 5; top: 4; right: 3; bottom: 2 } TextWidget { /* this widget can be accessed via id myLabel1 e.g. w.childById!TextWidget("myLabel1") */ id: myLabel1 text: "Some text"; padding: 5 enabled: false } TextWidget { id: myLabel2 text: "More text"; margins: 5 enabled: true } CheckBox{ id: cb1; text: "Some checkbox" } HorizontalLayout { RadioButton { id: rb1; text: "Radio Button 1" } RadioButton { id: rb1; text: "Radio Button 2" } } } }; class EditFrame : AppFrame { MenuItem mainMenuItems; override protected void init() { _appName = "DMLEdit"; super.init(); updatePreview(); } /// create main menu override protected MainMenu createMainMenu() { mainMenuItems = new MenuItem(); MenuItem fileItem = new MenuItem(new Action(1, "MENU_FILE")); fileItem.add(ACTION_FILE_NEW, ACTION_FILE_OPEN, ACTION_FILE_EXIT); mainMenuItems.add(fileItem); MenuItem editItem = new MenuItem(new Action(2, "MENU_EDIT")); editItem.add(ACTION_EDIT_COPY, ACTION_EDIT_PASTE, ACTION_EDIT_CUT, ACTION_EDIT_UNDO, ACTION_EDIT_REDO, ACTION_EDIT_INDENT, ACTION_EDIT_UNINDENT, ACTION_EDIT_TOGGLE_LINE_COMMENT, ACTION_EDIT_TOGGLE_BLOCK_COMMENT, ACTION_DEBUG_START); editItem.add(ACTION_EDIT_PREFERENCES); mainMenuItems.add(editItem); MainMenu mainMenu = new MainMenu(mainMenuItems); return mainMenu; } /// create app toolbars override protected ToolBarHost createToolbars() { ToolBarHost res = new ToolBarHost(); ToolBar tb; tb = res.getOrAddToolbar("Standard"); tb.addButtons(ACTION_FILE_NEW, ACTION_FILE_OPEN, ACTION_FILE_SAVE, ACTION_SEPARATOR, ACTION_DEBUG_START); tb = res.getOrAddToolbar("Edit"); tb.addButtons(ACTION_EDIT_COPY, ACTION_EDIT_PASTE, ACTION_EDIT_CUT, ACTION_SEPARATOR, ACTION_EDIT_UNDO, ACTION_EDIT_REDO, ACTION_EDIT_INDENT, ACTION_EDIT_UNINDENT); return res; } string _filename; void openSourceFile(string filename) { import std.file; // TODO if (exists(filename)) { _filename = filename; window.windowCaption = toUTF32(filename); _editor.load(filename); updatePreview(); } } void saveSourceFile(string filename) { if (filename.length == 0) filename = _filename; import std.file; _filename = filename; window.windowCaption = toUTF32(filename); _editor.save(filename); } bool onCanClose() { // todo return true; } FileDialog createFileDialog(UIString caption, bool fileMustExist = true) { uint flags = DialogFlag.Modal | DialogFlag.Resizable; if (fileMustExist) flags |= FileDialogFlag.FileMustExist; FileDialog dlg = new FileDialog(caption, window, null, flags); dlg.filetypeIcons[".d"] = "text-dml"; return dlg; } void saveAs() { } /// override to handle specific actions override bool handleAction(const Action a) { if (a) { switch (a.id) { case IDEActions.FileExit: if (onCanClose()) window.close(); return true; case IDEActions.HelpAbout: window.showMessageBox(UIString("About DlangUI ML Editor"d), UIString("DLangIDE\n(C) Vadim Lopatin, 2015\nhttp://github.com/buggins/dlangui\nSimple editor for DML code"d)); return true; case IDEActions.FileNew: UIString caption; caption = "Create new DML file"d; FileDialog dlg = createFileDialog(caption, false); dlg.addFilter(FileFilterEntry(UIString("DML files"d), "*.dml")); dlg.addFilter(FileFilterEntry(UIString("All files"d), "*.*")); dlg.dialogResult = delegate(Dialog dlg, const Action result) { if (result.id == ACTION_OPEN.id) { string filename = result.stringParam; _editor.text=""d; saveSourceFile(filename); } }; dlg.show(); return true; case IDEActions.FileSave: if (_filename.length) { saveSourceFile(_filename); return true; } UIString caption; caption = "Save DML File as"d; FileDialog dlg = createFileDialog(caption, false); dlg.addFilter(FileFilterEntry(UIString("DML files"d), "*.dml")); dlg.addFilter(FileFilterEntry(UIString("All files"d), "*.*")); dlg.dialogResult = delegate(Dialog dlg, const Action result) { if (result.id == ACTION_OPEN.id) { string filename = result.stringParam; saveSourceFile(filename); } }; dlg.show(); return true; case IDEActions.FileOpen: UIString caption; caption = "Open DML File"d; FileDialog dlg = createFileDialog(caption); dlg.addFilter(FileFilterEntry(UIString("DML files"d), "*.dml")); dlg.addFilter(FileFilterEntry(UIString("All files"d), "*.*")); dlg.dialogResult = delegate(Dialog dlg, const Action result) { if (result.id == ACTION_OPEN.id) { string filename = result.stringParam; openSourceFile(filename); } }; dlg.show(); return true; case IDEActions.DebugStart: updatePreview(); return true; case IDEActions.EditPreferences: //showPreferences(); return true; default: return super.handleAction(a); } } return false; } /// override to handle specific actions state (e.g. change enabled state for supported actions) override bool handleActionStateRequest(const Action a) { switch (a.id) { case IDEActions.HelpAbout: case IDEActions.FileNew: case IDEActions.FileSave: case IDEActions.FileOpen: case IDEActions.DebugStart: case IDEActions.EditPreferences: a.state = ACTION_STATE_ENABLED; return true; default: return super.handleActionStateRequest(a); } } void updatePreview() { dstring dsource = _editor.text; string source = toUTF8(dsource); try { Widget w = parseML(source); if (statusLine) statusLine.setStatusText("No errors"d); if (_fillHorizontal) w.layoutWidth = FILL_PARENT; if (_fillVertical) w.layoutHeight = FILL_PARENT; if (_highlightBackground) w.backgroundColor = 0xC0C0C0C0; _preview.contentWidget = w; } catch (ParserException e) { if (statusLine) statusLine.setStatusText(toUTF32("ERROR: " ~ e.msg)); _editor.setCaretPos(e.line, e.pos); string msg = "\n" ~ e.msg ~ "\n"; msg = replaceFirst(msg, " near `", "\nnear `"); TextWidget w = new MultilineTextWidget(null, toUTF32(msg)); w.padding = 10; w.margins = 10; w.maxLines = 10; w.backgroundColor = 0xC0FF8080; _preview.contentWidget = w; } } protected bool _fillHorizontal; protected bool _fillVertical; protected bool _highlightBackground; protected DMLSourceEdit _editor; protected ScrollWidget _preview; /// create app body widget override protected Widget createBody() { VerticalLayout bodyWidget = new VerticalLayout(); bodyWidget.layoutWidth = FILL_PARENT; bodyWidget.layoutHeight = FILL_PARENT; HorizontalLayout hlayout = new HorizontalLayout(); hlayout.layoutWidth = FILL_PARENT; hlayout.layoutHeight = FILL_PARENT; _editor = new DMLSourceEdit(); hlayout.addChild(_editor); _editor.text = SAMPLE_SOURCE_CODE; VerticalLayout previewLayout = new VerticalLayout(); previewLayout.layoutWidth = makePercentSize(50); previewLayout.layoutHeight = FILL_PARENT; auto previewControls = new HorizontalLayout(); auto cbFillHorizontal = new CheckBox(null, "Fill Horizontal"d); auto cbFillVertical = new CheckBox(null, "Fill Vertical"d); auto cbHighlightBackground = new CheckBox(null, "Background"d); cbFillHorizontal.checkChange = delegate(Widget source, bool checked) { _fillHorizontal = checked; updatePreview(); return true; }; cbFillVertical.checkChange = delegate(Widget source, bool checked) { _fillVertical = checked; updatePreview(); return true; }; cbHighlightBackground.checkChange = delegate(Widget source, bool checked) { _highlightBackground = checked; updatePreview(); return true; }; previewControls.addChild(cbFillHorizontal); previewControls.addChild(cbFillVertical); previewControls.addChild(cbHighlightBackground); _preview = new ScrollWidget(); _preview.layoutWidth = FILL_PARENT; _preview.layoutHeight = FILL_PARENT; _preview.backgroundImageId = "tx_fabric.tiled"; previewLayout.addChild(previewControls); previewLayout.addChild(_preview); hlayout.addChild(previewLayout); bodyWidget.addChild(hlayout); return bodyWidget; } } /// entry point for dlangui based application extern (C) int UIAppMain(string[] args) { // embed non-standard resources listed in views/resources.list into executable embeddedResourceList.addResources(embedResourcesFromList!("resources.list")()); /// set font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder) FontManager.fontGamma = 0.8; FontManager.hintingMode = HintingMode.Normal; // create window Window window = Platform.instance.createWindow("DlangUI ML editor"d, null, WindowFlag.Resizable, 700, 470); // create some widget to show in window window.windowIcon = drawableCache.getImage("dlangui-logo1"); // create some widget to show in window window.mainWidget = new EditFrame(); // show window window.show(); // run message loop return Platform.instance.enterMessageLoop(); }
D
/** * Takes a token stream from the lexer, and parses it into an abstract syntax tree. * * Specification: C11 * * Copyright: Copyright (C) 1999-2021 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/cparse.d, _cparse.d) * Documentation: https://dlang.org/phobos/dmd_cparse.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/cparse.d */ module dmd.cparse; import core.stdc.stdio; import core.stdc.string; import dmd.astenums; import dmd.globals; import dmd.id; import dmd.identifier; import dmd.lexer; import dmd.parse; import dmd.errors; import dmd.root.filename; import dmd.root.outbuffer; import dmd.root.rmem; import dmd.root.rootobject; import dmd.root.string; import dmd.tokens; /*********************************************************** */ final class CParser(AST) : Parser!AST { AST.Dsymbols* symbols; // symbols declared in current scope bool addFuncName; /// add declaration of __func__ to function symbol table extern (D) this(TARGET)(AST.Module _module, const(char)[] input, bool doDocComment, const ref TARGET target) { super(_module, input, doDocComment); //printf("CParser.this()\n"); mod = _module; linkage = LINK.c; Ccompile = true; // Configure sizes for C `long`, `long double`, `wchar_t` this.longsize = target.longsize; this.long_doublesize = target.long_doublesize; this.wchar_tsize = target.wchar_tsize; // C `char` is always unsigned in ImportC } /******************************************** * Parse translation unit. * C11 6.9 * translation-unit: * external-declaration * translation-unit external-declaration * * external-declaration: * function-definition * declaration * Returns: * array of Dsymbols that were declared */ override AST.Dsymbols* parseModule() { //printf("cparseTranslationUnit()\n"); symbols = new AST.Dsymbols(); while (1) { if (token.value == TOK.endOfFile) { // wrap the symbols in `extern (C) { symbols }` auto wrap = new AST.Dsymbols(); auto ld = new AST.LinkDeclaration(token.loc, LINK.c, symbols); wrap.push(ld); return wrap; } cparseDeclaration(LVL.global); } } /******************************************************************************/ /********************************* Statement Parser ***************************/ //{ /********************** * C11 6.8 * statement: * labeled-statement * compound-statement * expression-statement * selection-statement * iteration-statement * jump-statement * * Params: * flags = PSxxxx * endPtr = store location of closing brace * pEndloc = if { ... statements ... }, store location of closing brace, otherwise loc of last token of statement * Returns: * parsed statement */ AST.Statement cparseStatement(int flags, const(char)** endPtr = null, Loc* pEndloc = null) { AST.Statement s; const loc = token.loc; //printf("cparseStatement()\n"); auto symbolsSave = symbols; if (!(flags & (ParseStatementFlags.scope_ | ParseStatementFlags.curlyScope))) symbols = new AST.Dsymbols(); switch (token.value) { case TOK.identifier: /* A leading identifier can be a declaration, label, or expression. * A quick check of the next token can disambiguate most cases. */ switch (peekNext()) { case TOK.colon: { // It's a label auto ident = token.ident; nextToken(); // advance to `:` nextToken(); // advance past `:` if (token.value == TOK.rightCurly) s = null; else if (token.value == TOK.leftCurly) s = cparseStatement(ParseStatementFlags.curly | ParseStatementFlags.scope_); else s = cparseStatement(ParseStatementFlags.semiOk); s = new AST.LabelStatement(loc, ident, s); break; } case TOK.dot: case TOK.arrow: case TOK.plusPlus: case TOK.minusMinus: case TOK.leftBracket: case TOK.question: case TOK.assign: case TOK.addAssign: case TOK.minAssign: case TOK.mulAssign: case TOK.divAssign: case TOK.modAssign: case TOK.andAssign: case TOK.orAssign: case TOK.xorAssign: case TOK.leftShiftAssign: case TOK.rightShiftAssign: goto Lexp; case TOK.leftParenthesis: { /* If tokens look like a function call, assume it is one, * As any type-name won't be resolved until semantic, this * could be rewritten later. */ auto tk = &token; if (isFunctionCall(tk)) goto Lexp; goto default; } default: { /* If tokens look like a declaration, assume it is one */ auto tk = &token; if (isCDeclaration(tk)) goto Ldeclaration; goto Lexp; } } break; case TOK.int32Literal: case TOK.uns32Literal: case TOK.int64Literal: case TOK.uns64Literal: case TOK.int128Literal: case TOK.uns128Literal: case TOK.float32Literal: case TOK.float64Literal: case TOK.float80Literal: case TOK.imaginary32Literal: case TOK.imaginary64Literal: case TOK.imaginary80Literal: case TOK.leftParenthesis: case TOK.and: case TOK.mul: case TOK.min: case TOK.add: case TOK.tilde: case TOK.not: case TOK.plusPlus: case TOK.minusMinus: case TOK.sizeof_: Lexp: auto exp = cparseExpression(); if (token.value == TOK.identifier && exp.op == TOK.identifier) { error("found `%s` when expecting `;` or `=`, did you mean `%s %s = %s`?", peek(&token).toChars(), exp.toChars(), token.toChars(), peek(peek(&token)).toChars()); nextToken(); } else check(TOK.semicolon, "statement"); s = new AST.ExpStatement(loc, exp); break; // type-specifiers case TOK.void_: case TOK.char_: case TOK.int16: case TOK.int32: case TOK.int64: case TOK.float32: case TOK.float64: case TOK.signed: case TOK.unsigned: case TOK._Bool: //case TOK._Imaginary: case TOK._Complex: case TOK.struct_: case TOK.union_: case TOK.enum_: // storage-class-specifiers case TOK.typedef_: case TOK.extern_: case TOK.static_: case TOK._Thread_local: case TOK.auto_: case TOK.register: // function-specifiers case TOK.inline: case TOK._Noreturn: // type-qualifiers case TOK.const_: case TOK.volatile: case TOK.restrict: // alignment-specifier case TOK._Alignas: // atomic-type-specifier or type_qualifier case TOK._Atomic: Ldeclaration: { cparseDeclaration(LVL.local); if (symbols.length > 1) { auto as = new AST.Statements(); as.reserve(symbols.length); foreach (d; (*symbols)[]) { s = new AST.ExpStatement(loc, d); as.push(s); } s = new AST.CompoundDeclarationStatement(loc, as); symbols.setDim(0); } else if (symbols.length == 1) { auto d = (*symbols)[0]; s = new AST.ExpStatement(loc, d); symbols.setDim(0); } else s = new AST.ExpStatement(loc, cast(AST.Expression)null); if (flags & ParseStatementFlags.scope_) s = new AST.ScopeStatement(loc, s, token.loc); break; } case TOK._Static_assert: // _Static_assert ( constant-expression, string-literal ) ; s = new AST.StaticAssertStatement(cparseStaticAssert()); break; case TOK.leftCurly: { /* C11 6.8.2 * compound-statement: * { block-item-list (opt) } * * block-item-list: * block-item * block-item-list block-item * * block-item: * declaration * statement */ nextToken(); auto statements = new AST.Statements(); while (token.value != TOK.rightCurly && token.value != TOK.endOfFile) { statements.push(cparseStatement(ParseStatementFlags.semi | ParseStatementFlags.curlyScope)); } if (endPtr) *endPtr = token.ptr; endloc = token.loc; if (pEndloc) { *pEndloc = token.loc; pEndloc = null; // don't set it again } s = new AST.CompoundStatement(loc, statements); if (flags & (ParseStatementFlags.scope_ | ParseStatementFlags.curlyScope)) s = new AST.ScopeStatement(loc, s, token.loc); check(TOK.rightCurly, "compound statement"); break; } case TOK.while_: { nextToken(); check(TOK.leftParenthesis); auto condition = cparseExpression(); check(TOK.rightParenthesis); Loc endloc; auto _body = cparseStatement(ParseStatementFlags.scope_, null, &endloc); s = new AST.WhileStatement(loc, condition, _body, endloc, null); break; } case TOK.semicolon: /* C11 6.8.3 null statement */ nextToken(); s = new AST.ExpStatement(loc, cast(AST.Expression)null); break; case TOK.do_: { nextToken(); auto _body = cparseStatement(ParseStatementFlags.scope_); check(TOK.while_); check(TOK.leftParenthesis); auto condition = cparseExpression(); check(TOK.rightParenthesis); check(TOK.semicolon, "terminating `;` required after do-while statement"); s = new AST.DoStatement(loc, _body, condition, token.loc); break; } case TOK.for_: { AST.Statement _init; AST.Expression condition; AST.Expression increment; nextToken(); check(TOK.leftParenthesis); if (token.value == TOK.semicolon) { _init = null; nextToken(); } else { _init = cparseStatement(0); } if (token.value == TOK.semicolon) { condition = null; nextToken(); } else { condition = cparseExpression(); check(TOK.semicolon, "`for` condition"); } if (token.value == TOK.rightParenthesis) { increment = null; nextToken(); } else { increment = cparseExpression(); check(TOK.rightParenthesis); } Loc endloc; auto _body = cparseStatement(ParseStatementFlags.scope_, null, &endloc); s = new AST.ForStatement(loc, _init, condition, increment, _body, endloc); break; } case TOK.if_: { nextToken(); check(TOK.leftParenthesis); auto condition = cparseExpression(); check(TOK.rightParenthesis); auto ifbody = cparseStatement(ParseStatementFlags.scope_); AST.Statement elsebody; if (token.value == TOK.else_) { nextToken(); elsebody = cparseStatement(ParseStatementFlags.scope_); } else elsebody = null; if (condition && ifbody) s = new AST.IfStatement(loc, null, condition, ifbody, elsebody, token.loc); else s = null; // don't propagate parsing errors break; } case TOK.else_: error("found `else` without a corresponding `if` statement"); goto Lerror; case TOK.switch_: { nextToken(); check(TOK.leftParenthesis); auto condition = cparseExpression(); check(TOK.rightParenthesis); auto _body = cparseStatement(ParseStatementFlags.scope_); s = new AST.SwitchStatement(loc, condition, _body, false); break; } case TOK.case_: { nextToken(); auto exp = cparseAssignExp(); check(TOK.colon); if (flags & ParseStatementFlags.curlyScope) { auto statements = new AST.Statements(); while (token.value != TOK.case_ && token.value != TOK.default_ && token.value != TOK.endOfFile && token.value != TOK.rightCurly) { auto cur = cparseStatement(ParseStatementFlags.semi | ParseStatementFlags.curlyScope); statements.push(cur); // https://issues.dlang.org/show_bug.cgi?id=21739 // Stop at the last break s.t. the following non-case statements are // not merged into the current case. This can happen for // case 1: ... break; // debug { case 2: ... } if (cur && cur.isBreakStatement()) break; } s = new AST.CompoundStatement(loc, statements); } else { s = cparseStatement(ParseStatementFlags.semi); } s = new AST.ScopeStatement(loc, s, token.loc); s = new AST.CaseStatement(loc, exp, s); break; } case TOK.default_: { nextToken(); check(TOK.colon); if (flags & ParseStatementFlags.curlyScope) { auto statements = new AST.Statements(); while (token.value != TOK.case_ && token.value != TOK.default_ && token.value != TOK.endOfFile && token.value != TOK.rightCurly) { statements.push(cparseStatement(ParseStatementFlags.semi | ParseStatementFlags.curlyScope)); } s = new AST.CompoundStatement(loc, statements); } else s = cparseStatement(ParseStatementFlags.semi); s = new AST.ScopeStatement(loc, s, token.loc); s = new AST.DefaultStatement(loc, s); break; } case TOK.return_: { /* return ; * return expression ; */ nextToken(); auto exp = token.value == TOK.semicolon ? null : cparseExpression(); check(TOK.semicolon, "`return` statement"); s = new AST.ReturnStatement(loc, exp); break; } case TOK.break_: nextToken(); check(TOK.semicolon, "`break` statement"); s = new AST.BreakStatement(loc, null); break; case TOK.continue_: nextToken(); check(TOK.semicolon, "`continue` statement"); s = new AST.ContinueStatement(loc, null); break; case TOK.goto_: { Identifier ident; nextToken(); if (token.value != TOK.identifier) { error("identifier expected following `goto`"); ident = null; } else { ident = token.ident; nextToken(); } s = new AST.GotoStatement(loc, ident); check(TOK.semicolon, "`goto` statement"); break; } case TOK.asm_: s = parseAsm(); break; default: error("found `%s` instead of statement", token.toChars()); goto Lerror; Lerror: panic(); if (token.value == TOK.semicolon) nextToken(); s = null; break; } if (pEndloc) *pEndloc = prevloc; symbols = symbolsSave; return s; } //} /*******************************************************************************/ /********************************* Expression Parser ***************************/ //{ /************** * C11 6.5.17 * expression: * assignment-expression * expression , assignment-expression */ AST.Expression cparseExpression() { auto loc = token.loc; //printf("cparseExpression() loc = %d\n", loc.linnum); auto e = cparseAssignExp(); while (token.value == TOK.comma) { nextToken(); auto e2 = cparseAssignExp(); e = new AST.CommaExp(loc, e, e2, false); loc = token.loc; } return e; } /********************* * C11 6.5.1 * primary-expression: * identifier * constant * string-literal * ( expression ) * generic-selection */ AST.Expression cparsePrimaryExp() { AST.Expression e; const loc = token.loc; //printf("parsePrimaryExp(): loc = %d\n", loc.linnum); switch (token.value) { case TOK.identifier: if (token.ident is Id.__func__) { addFuncName = true; // implicitly declare __func__ } e = new AST.IdentifierExp(loc, token.ident); nextToken(); break; case TOK.int32Literal: e = new AST.IntegerExp(loc, token.intvalue, AST.Type.tint32); nextToken(); break; case TOK.uns32Literal: e = new AST.IntegerExp(loc, token.unsvalue, AST.Type.tuns32); nextToken(); break; case TOK.int64Literal: e = new AST.IntegerExp(loc, token.intvalue, AST.Type.tint64); nextToken(); break; case TOK.uns64Literal: e = new AST.IntegerExp(loc, token.unsvalue, AST.Type.tuns64); nextToken(); break; case TOK.float32Literal: e = new AST.RealExp(loc, token.floatvalue, AST.Type.tfloat32); nextToken(); break; case TOK.float64Literal: e = new AST.RealExp(loc, token.floatvalue, AST.Type.tfloat64); nextToken(); break; case TOK.float80Literal: e = new AST.RealExp(loc, token.floatvalue, AST.Type.tfloat80); nextToken(); break; case TOK.imaginary32Literal: e = new AST.RealExp(loc, token.floatvalue, AST.Type.timaginary32); nextToken(); break; case TOK.imaginary64Literal: e = new AST.RealExp(loc, token.floatvalue, AST.Type.timaginary64); nextToken(); break; case TOK.imaginary80Literal: e = new AST.RealExp(loc, token.floatvalue, AST.Type.timaginary80); nextToken(); break; case TOK.string_: { // cat adjacent strings auto s = token.ustring; auto len = token.len; auto postfix = token.postfix; while (1) { nextToken(); if (token.value == TOK.string_) { if (token.postfix) { if (token.postfix != postfix) error("mismatched string literal postfixes `'%c'` and `'%c'`", postfix, token.postfix); postfix = token.postfix; } const len1 = len; const len2 = token.len; len = len1 + len2; auto s2 = cast(char*)mem.xmalloc_noscan(len * char.sizeof); memcpy(s2, s, len1 * char.sizeof); memcpy(s2 + len1, token.ustring, len2 * char.sizeof); s = s2; } else break; } e = new AST.StringExp(loc, s[0 .. len], len, 1, postfix); break; } case TOK.leftParenthesis: nextToken(); e = cparseExpression(); check(TOK.rightParenthesis); break; case TOK._Generic: e = cparseGenericSelection(); break; default: error("expression expected, not `%s`", token.toChars()); // Anything for e, as long as it's not NULL e = new AST.IntegerExp(loc, 0, AST.Type.tint32); nextToken(); break; } return e; } /********************************* * C11 6.5.2 * postfix-expression: * primary-expression * postfix-expression [ expression ] * postfix-expression ( argument-expression-list (opt) ) * postfix-expression . identifier * postfix-expression -> identifier * postfix-expression ++ * postfix-expression -- * ( type-name ) { initializer-list } * ( type-name ) { initializer-list , } * * argument-expression-list: * assignment-expression * argument-expression-list , assignment-expression */ private AST.Expression cparsePostfixExp(AST.Expression e) { e = cparsePrimaryExp(); return cparsePostfixOperators(e); } /******************************** * C11 6.5.2 * Parse a series of operators for a postfix expression after already parsing * a primary-expression or compound literal expression. * Params: * e = parsed primary or compound literal expression * Returns: * parsed postfix expression */ private AST.Expression cparsePostfixOperators(AST.Expression e) { while (1) { const loc = token.loc; switch (token.value) { case TOK.dot: case TOK.arrow: nextToken(); if (token.value == TOK.identifier) { Identifier id = token.ident; e = new AST.DotIdExp(loc, e, id); break; } error("identifier expected following `.`, not `%s`", token.toChars()); break; case TOK.plusPlus: e = new AST.PostExp(TOK.plusPlus, loc, e); break; case TOK.minusMinus: e = new AST.PostExp(TOK.minusMinus, loc, e); break; case TOK.leftParenthesis: e = new AST.CallExp(loc, e, cparseArguments()); continue; case TOK.leftBracket: { // array dereferences: // array[index] AST.Expression index; auto arguments = new AST.Expressions(); inBrackets++; nextToken(); index = cparseAssignExp(); arguments.push(index); check(TOK.rightBracket); inBrackets--; e = new AST.ArrayExp(loc, e, arguments); continue; } default: return e; } nextToken(); } } /************************ * C11 6.5.3 * unary-expression: * postfix-expression * ++ unary-expression * -- unary-expression * unary-operator cast-expression * sizeof unary-expression * sizeof ( type-name ) * _Alignof ( type-name ) * * unary-operator: * & * + - ~ ! */ private AST.Expression cparseUnaryExp() { AST.Expression e; const loc = token.loc; switch (token.value) { case TOK.plusPlus: nextToken(); // Parse `++` as an unary operator so that cast expressions only give // an error for being non-lvalues. e = cparseCastExp(); e = new AST.PreExp(TOK.prePlusPlus, loc, e); break; case TOK.minusMinus: nextToken(); // Parse `--` as an unary operator, same as prefix increment. e = cparseCastExp(); e = new AST.PreExp(TOK.preMinusMinus, loc, e); break; case TOK.and: nextToken(); e = cparseCastExp(); e = new AST.AddrExp(loc, e); break; case TOK.mul: nextToken(); e = cparseCastExp(); e = new AST.PtrExp(loc, e); break; case TOK.min: nextToken(); e = cparseCastExp(); e = new AST.NegExp(loc, e); break; case TOK.add: nextToken(); e = cparseCastExp(); e = new AST.UAddExp(loc, e); break; case TOK.not: nextToken(); e = cparseCastExp(); e = new AST.NotExp(loc, e); break; case TOK.tilde: nextToken(); e = cparseCastExp(); e = new AST.ComExp(loc, e); break; case TOK.sizeof_: { nextToken(); if (token.value == TOK.leftParenthesis) { auto tk = peek(&token); if (isTypeName(tk)) { /* Expression may be either be requesting the sizeof a type-name * or a compound literal, which requires checking whether * the next token is `{` */ nextToken(); auto t = cparseTypeName(); check(TOK.rightParenthesis); if (token.value == TOK.leftCurly) { // ( type-name ) { initializer-list } auto ci = cparseInitializer(); e = new AST.CompoundLiteralExp(loc, t, ci); e = cparsePostfixOperators(e); } else { // ( type-name ) e = new AST.TypeExp(loc, t); } e = new AST.DotIdExp(loc, e, Id.__sizeof); break; } } e = cparseUnaryExp(); e = new AST.DotIdExp(loc, e, Id.__sizeof); break; } case TOK._Alignof: { nextToken(); check(TOK.leftParenthesis); auto t = cparseTypeName(); check(TOK.rightParenthesis); e = new AST.TypeExp(loc, t); e = new AST.DotIdExp(loc, e, Id.__xalignof); break; } default: e = cparsePostfixExp(e); break; } assert(e); return e; } /************** * C11 6.5.4 * cast-expression * unary-expression * ( type-name ) cast-expression */ private AST.Expression cparseCastExp() { if (token.value == TOK.leftParenthesis) { // If ( type-name ) auto pt = &token; if (isCastExpression(pt)) { // Expression may be either a cast or a compound literal, which // requires checking whether the next token is `{` const loc = token.loc; nextToken(); auto t = cparseTypeName(); check(TOK.rightParenthesis); if (token.value == TOK.leftCurly) { // C11 6.5.2.5 ( type-name ) { initializer-list } auto ci = cparseInitializer(); auto ce = new AST.CompoundLiteralExp(loc, t, ci); return cparsePostfixOperators(ce); } else { // (type-name) cast-expression auto ce = cparseCastExp(); return new AST.CastExp(loc, ce, t); } } } return cparseUnaryExp(); } /************** * C11 6.5.5 * multiplicative-expression * cast-expression * multiplicative-expression * cast-expression * multiplicative-expression / cast-expression * multiplicative-expression % cast-expression */ private AST.Expression cparseMulExp() { const loc = token.loc; auto e = cparseCastExp(); while (1) { switch (token.value) { case TOK.mul: nextToken(); auto e2 = cparseCastExp(); e = new AST.MulExp(loc, e, e2); continue; case TOK.div: nextToken(); auto e2 = cparseCastExp(); e = new AST.DivExp(loc, e, e2); continue; case TOK.mod: nextToken(); auto e2 = cparseCastExp(); e = new AST.ModExp(loc, e, e2); continue; default: break; } break; } return e; } /************** * C11 6.5.6 * additive-expression * multiplicative-expression * additive-expression + multiplicative-expression * additive-expression - multiplicative-expression */ private AST.Expression cparseAddExp() { const loc = token.loc; auto e = cparseMulExp(); while (1) { switch (token.value) { case TOK.add: nextToken(); auto e2 = cparseMulExp(); e = new AST.AddExp(loc, e, e2); continue; case TOK.min: nextToken(); auto e2 = cparseMulExp(); e = new AST.MinExp(loc, e, e2); continue; default: break; } break; } return e; } /************** * C11 6.5.7 * shift-expression * additive-expression * shift-expression << additive-expression * shift-expression >> additive-expression */ private AST.Expression cparseShiftExp() { const loc = token.loc; auto e = cparseAddExp(); while (1) { switch (token.value) { case TOK.leftShift: nextToken(); auto e2 = cparseAddExp(); e = new AST.ShlExp(loc, e, e2); continue; case TOK.rightShift: nextToken(); auto e2 = cparseAddExp(); e = new AST.ShrExp(loc, e, e2); continue; default: break; } break; } return e; } /************** * C11 6.5.8 * relational-expression * shift-expression * relational-expression < shift-expression * relational-expression > shift-expression * relational-expression <= shift-expression * relational-expression >= shift-expression */ private AST.Expression cparseRelationalExp() { const loc = token.loc; auto e = cparseShiftExp(); TOK op = token.value; switch (op) { case TOK.lessThan: case TOK.lessOrEqual: case TOK.greaterThan: case TOK.greaterOrEqual: nextToken(); auto e2 = cparseShiftExp(); e = new AST.CmpExp(op, loc, e, e2); break; default: break; } return e; } /************** * C11 6.5.9 * equality-expression * relational-expression * equality-expression == relational-expression * equality-expression != relational-expression */ private AST.Expression cparseEqualityExp() { const loc = token.loc; auto e = cparseRelationalExp(); const TOK op = token.value; switch (op) { case TOK.equal: case TOK.notEqual: nextToken(); auto e2 = cparseRelationalExp(); e = new AST.EqualExp(op, loc, e, e2); break; default: break; } return e; } /************** * C11 6.5.10 * AND-expression * equality-expression * AND-expression & equality-expression */ private AST.Expression cparseAndExp() { Loc loc = token.loc; auto e = cparseEqualityExp(); while (token.value == TOK.and) { nextToken(); auto e2 = cparseEqualityExp(); e = new AST.AndExp(loc, e, e2); loc = token.loc; } return e; } /************** * C11 6.5.11 * exclusive-OR-expression * AND-expression * exclusive-OR-expression ^ AND-expression */ private AST.Expression cparseXorExp() { const loc = token.loc; auto e = cparseAndExp(); while (token.value == TOK.xor) { nextToken(); auto e2 = cparseAndExp(); e = new AST.XorExp(loc, e, e2); } return e; } /************** * C11 6.5.12 * inclusive-OR-expression * exclusive-OR-expression * inclusive-OR-expression | exclusive-OR-expression */ private AST.Expression cparseOrExp() { const loc = token.loc; auto e = cparseXorExp(); while (token.value == TOK.or) { nextToken(); auto e2 = cparseXorExp(); e = new AST.OrExp(loc, e, e2); } return e; } /************** * C11 6.5.13 * logical-AND-expression * inclusive-OR-expression * logical-AND-expression && inclusive-OR-expression */ private AST.Expression cparseAndAndExp() { const loc = token.loc; auto e = cparseOrExp(); while (token.value == TOK.andAnd) { nextToken(); auto e2 = cparseOrExp(); e = new AST.LogicalExp(loc, TOK.andAnd, e, e2); } return e; } /************** * C11 6.5.14 * logical-OR-expression * logical-AND-expression * logical-OR-expression || logical-AND-expression */ private AST.Expression cparseOrOrExp() { const loc = token.loc; auto e = cparseAndAndExp(); while (token.value == TOK.orOr) { nextToken(); auto e2 = cparseAndAndExp(); e = new AST.LogicalExp(loc, TOK.orOr, e, e2); } return e; } /************** * C11 6.5.15 * conditional-expression: * logical-OR-expression * logical-OR-expression ? expression : conditional-expression */ private AST.Expression cparseCondExp() { const loc = token.loc; auto e = cparseOrOrExp(); if (token.value == TOK.question) { nextToken(); auto e1 = cparseExpression(); check(TOK.colon); auto e2 = cparseCondExp(); e = new AST.CondExp(loc, e, e1, e2); } return e; } /************** * C11 6.5.16 * assignment-expression: * conditional-expression * unary-expression assignment-operator assignment-expression * * assignment-operator: * = *= /= %= += -= <<= >>= &= ^= |= */ AST.Expression cparseAssignExp() { AST.Expression e; e = cparseCondExp(); // constrain it to being unary-expression in semantic pass if (e is null) return e; const loc = token.loc; switch (token.value) { case TOK.assign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.AssignExp(loc, e, e2); break; case TOK.addAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.AddAssignExp(loc, e, e2); break; case TOK.minAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.MinAssignExp(loc, e, e2); break; case TOK.mulAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.MulAssignExp(loc, e, e2); break; case TOK.divAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.DivAssignExp(loc, e, e2); break; case TOK.modAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.ModAssignExp(loc, e, e2); break; case TOK.andAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.AndAssignExp(loc, e, e2); break; case TOK.orAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.OrAssignExp(loc, e, e2); break; case TOK.xorAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.XorAssignExp(loc, e, e2); break; case TOK.leftShiftAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.ShlAssignExp(loc, e, e2); break; case TOK.rightShiftAssign: nextToken(); auto e2 = cparseAssignExp(); e = new AST.ShrAssignExp(loc, e, e2); break; default: break; } return e; } /*********************** * C11 6.5.1.1 * _Generic ( assignment-expression, generic-assoc-list ) * * generic-assoc-list: * generic-association * generic-assoc-list generic-association * * generic-association: * type-name : assignment-expression * default : assignment-expression */ private AST.Expression cparseGenericSelection() { const loc = token.loc; nextToken(); check(TOK.leftParenthesis); cparseAssignExp(); check(TOK.comma); bool sawDefault; while (1) { if (token.value == TOK.default_) { if (sawDefault) error("only one `default` allowed in generic-assoc-list"); sawDefault = true; } else cparseTypeName(); check(TOK.colon); cparseAssignExp(); if (token.value == TOK.rightParenthesis || token.value == TOK.endOfFile) break; } check(TOK.rightParenthesis); error("`_Generic` not supported"); // TODO return new AST.IntegerExp(loc, 0, AST.Type.tint32); } /*********************** * C11 6.6 Constant expressions * constant-expression: * conditional-expression */ private AST.Expression cparseConstantExp() { return cparseAssignExp(); } //} /********************************************************************************/ /********************************* Declaration Parser ***************************/ //{ /************************************* * C11 6.7 * declaration: * declaration-specifiers init-declarator-list (opt) ; * static_assert-declaration * * init-declarator-list: * init-declarator * init-declarator-list , init-declarator * * init-declarator: * declarator * declarator = initializer * * Params: * level = declaration context */ void cparseDeclaration(LVL level) { //printf("cparseDeclaration(level = %d)\n", level); if (token.value == TOK._Static_assert) { auto s = cparseStaticAssert(); symbols.push(s); return; } auto symbolsSave = symbols; Specifier specifier; auto tspec = cparseDeclarationSpecifiers(level, specifier); /* If a declarator does not follow, it is unnamed */ if (token.value == TOK.semicolon && tspec) { nextToken(); auto tt = tspec.isTypeTag(); if (!tt || !tt.id) return; // legal but meaningless empty declaration, ignore it /* `struct tag;` and `struct tag { ... };` * always result in a declaration in the current scope */ // TODO: merge in specifier auto stag = (tt.tok == TOK.struct_) ? new AST.StructDeclaration(tt.loc, tt.id, false) : (tt.tok == TOK.union_) ? new AST.UnionDeclaration(tt.loc, tt.id) : new AST.EnumDeclaration(tt.loc, tt.id, AST.Type.tint32); stag.members = tt.members; if (!symbols) symbols = new AST.Dsymbols(); symbols.push(stag); if (tt.tok == TOK.enum_) { if (!tt.members) error(tt.loc, "`enum %s` has no members", stag.toChars()); } return; } if (tspec && specifier.mod & MOD.xconst) { tspec = toConst(tspec); specifier.mod = MOD.xnone; // 'used' it } bool first = true; while (1) { Identifier id; AST.Expression asmname; auto dt = cparseDeclarator(DTR.xdirect, tspec, id); if (!dt) { panic(); nextToken(); break; // error recovery } /* GNU Extensions * init-declarator: * declarator simple-asm-expr (opt) gnu-attributes (opt) * declarator simple-asm-expr (opt) gnu-attributes (opt) = initializer */ switch (token.value) { case TOK.assign: case TOK.comma: case TOK.semicolon: case TOK.asm_: case TOK.__attribute__: /* This is a data definition, there cannot now be a * function definition. */ first = false; if (token.value == TOK.asm_) asmname = cparseSimpleAsmExpr(); if (token.value == TOK.__attribute__) { cparseGnuAttributes(); if (token.value == TOK.leftCurly) { error("attributes should be specified before the function definition"); auto t = &token; if (skipBraces(t)) { token = *t; return; } } } break; default: break; } /* C11 6.9.1 Function Definitions * function-definition: * declaration-specifiers declarator declaration-list (opt) compound-statement * * declaration-list: * declaration * declaration-list declaration */ auto t = &token; if (first && // first declarator id && dt.isTypeFunction() && // function type not inherited from a typedef isDeclarationList(t) && // optional declaration-list level == LVL.global && // function definitions only at global scope t.value == TOK.leftCurly) // start of compound-statement { auto s = cparseFunctionDefinition(id, dt.isTypeFunction(), specifier.scw); symbols = symbolsSave; symbols.push(s); return; } AST.Dsymbol s = null; symbols = symbolsSave; if (!symbols) symbols = new AST.Dsymbols; // lazilly create it if (level != LVL.global && !tspec && !specifier.scw && !specifier.mod) error("declaration-specifier-seq required"); else if (specifier.scw == SCW.xtypedef) { if (token.value == TOK.assign) error("no initializer for typedef declaration"); bool isalias = true; if (auto ts = dt.isTypeStruct()) { if (ts.sym.isAnonymous()) { // This is a typedef for an anonymous struct-or-union. // Directly set the ident for the struct-or-union. ts.sym.ident = id; isalias = false; } } else if (auto te = dt.isTypeEnum()) { if (te.sym.isAnonymous()) { // This is a typedef for an anonymous enum. te.sym.ident = id; isalias = false; } } if (isalias) s = new AST.AliasDeclaration(token.loc, id, dt); } else if (id) { if (level == LVL.prototype) break; // declared later as Parameter, not VarDeclaration if (dt.ty == AST.Tvoid) error("`void` has no value"); AST.Initializer initializer; bool hasInitializer; if (token.value == TOK.assign) { nextToken(); hasInitializer = true; initializer = cparseInitializer(); } // declare the symbol assert(id); if (dt.isTypeFunction()) { if (hasInitializer) error("no initializer for function declaration"); if (specifier.scw & SCW.x_Thread_local) error("functions cannot be `_Thread_local`"); // C11 6.7.1-4 s = new AST.FuncDeclaration(token.loc, Loc.initial, id, specifiersToSTC(level, specifier), dt); } else { // Give non-extern variables an implicit void initializer // if one has not been explicitly set. if (!hasInitializer && !(specifier.scw & SCW.xextern)) initializer = new AST.VoidInitializer(token.loc); s = new AST.VarDeclaration(token.loc, dt, id, initializer, specifiersToSTC(level, specifier)); } } if (s !is null) { if (level == LVL.local) { // Wrap the declaration in `extern (C) { declaration }` // Necessary for function pointers, but harmless to apply to all. auto decls = new AST.Dsymbols(1); (*decls)[0] = s; s = new AST.LinkDeclaration(s.loc, linkage, decls); } // Saw `asm("name")` in the function, type, or variable definition. // This maps directly to `pragma(mangle, "name")` if (asmname) { auto args = new AST.Expressions(1); (*args)[0] = asmname; auto decls = new AST.Dsymbols(1); (*decls)[0] = s; s = new AST.PragmaDeclaration(asmname.loc, Id.mangle, args, decls); } symbols.push(s); } first = false; switch (token.value) { case TOK.identifier: error("missing comma"); goto default; case TOK.semicolon: nextToken(); return; case TOK.comma: nextToken(); break; default: error("`=`, `;` or `,` expected"); while (token.value != TOK.semicolon && token.value != TOK.endOfFile) nextToken(); nextToken(); return; } } } /*************************************** * C11 Function Definitions * function-definition * declaration-specifiers declarator declaration-list (opt) compound-statement * * declaration-list: * declaration * declaration-list declaration * * It's already been parsed up to the declaration-list (opt). * Pick it up from there. * Params: * id = function identifier * ft = function type * scw = function storage classes * Returns: * Dsymbol for the function */ AST.Dsymbol cparseFunctionDefinition(Identifier id, AST.TypeFunction ft, SCW scw) { if (token.value != TOK.leftCurly) // if not start of a compound-statement { // Do declaration-list do { cparseDeclaration(LVL.parameter); } while (token.value != TOK.leftCurly); /* Since there were declarations, the parameter-list must have been * an identifier-list. */ auto pl = ft.parameterList; pl.hasIdentifierList = true; // semantic needs to know to adjust parameter types if (pl.varargs != AST.VarArg.none) error("function identifier-list cannot end with `...`"); auto plLength = pl.length; if (symbols.length != plLength) error("%d identifiers does not match %d declarations", cast(int)plLength, cast(int)symbols.length); /* Transfer the types and storage classes from symbols[] to pl[] */ foreach (i; 0 .. plLength) { auto p = pl[i]; // yes, quadratic // Convert typedef-identifier to identifier if (p.type) { if (auto t = p.type.isTypeIdentifier()) { p.ident = t.ident; p.type = null; } } if (p.type || !(p.storageClass & STC.parameter)) error("storage class and type are not allowed in identifier-list"); foreach (s; (*symbols)[]) // yes, quadratic { auto d = s.isDeclaration(); if (p.ident == d.ident && d.type) { p.type = d.type; p.storageClass = d.storage_class; d.type = null; // don't reuse break; } } if (!p.type) error("no declaration for identifier `%s`", p.ident.toChars()); } } addFuncName = false; // gets set to true if somebody references __func__ in this function const locFunc = token.loc; auto body = cparseStatement(ParseStatementFlags.curly); // don't start a new scope; continue with parameter scope Specifier specifier; specifier.scw = scw; auto fd = new AST.FuncDeclaration(locFunc, prevloc, id, specifiersToSTC(LVL.global, specifier), ft); if (addFuncName) { auto s = createFuncName(locFunc, id); body = new AST.CompoundStatement(locFunc, s, body); } fd.fbody = body; // TODO add `symbols` to the function's local symbol table `sc2` in FuncDeclaration::semantic3() return fd; } /*************************************** * C11 Initialization * initializer: * assignment-expression * { initializer-list } * { initializer-list , } * * initializer-list: * designation (opt) initializer * initializer-list , designation (opt) initializer * * designation: * designator-list = * * designator-list: * designator * designator-list designator * * designator: * [ constant-expression ] * . identifier * Returns: * initializer */ AST.Initializer cparseInitializer() { if (token.value != TOK.leftCurly) { auto ae = cparseAssignExp(); // assignment-expression return new AST.ExpInitializer(token.loc, ae); } nextToken(); const loc = token.loc; /* Collect one or more `designation (opt) initializer` * into ci.initializerList, but lazily create ci */ AST.CInitializer ci; while (1) { /* There can be 0 or more designators preceding an initializer. * Collect them in desigInit */ AST.DesigInit desigInit; while (1) { if (token.value == TOK.leftBracket) // [ constant-expression ] { nextToken(); auto e = cparseConstantExp(); check(TOK.rightBracket); if (!desigInit.designatorList) desigInit.designatorList = new AST.Designators; desigInit.designatorList.push(AST.Designator(e)); } else if (token.value == TOK.dot) // . identifier { nextToken(); if (token.value != TOK.identifier) { error("identifier expected following `.` designator"); break; } if (!desigInit.designatorList) desigInit.designatorList = new AST.Designators; desigInit.designatorList.push(AST.Designator(token.ident)); nextToken(); } else { if (desigInit.designatorList) check(TOK.assign); break; } } desigInit.initializer = cparseInitializer(); if (!ci) ci = new AST.CInitializer(loc); ci.initializerList.push(desigInit); if (token.value == TOK.comma) { nextToken(); if (token.value != TOK.rightCurly) continue; } break; } check(TOK.rightCurly); //printf("ci: %s\n", ci.toChars()); return ci; } /************************************* * C11 6.7 * declaration-specifier: * storage-class-specifier declaration-specifiers (opt) * type-specifier declaration-specifiers (opt) * type-qualifier declaration-specifiers (opt) * function-specifier declaration-specifiers (opt) * alignment-specifier declaration-specifiers (opt) * Params: * level = declaration context * specifier = specifiers in and out * Returns: * resulting type, null if not specified */ private AST.Type cparseDeclarationSpecifiers(LVL level, ref Specifier specifier) { enum TKW : uint { xnone = 0, xchar = 1, xsigned = 2, xunsigned = 4, xshort = 8, xint = 0x10, xlong = 0x20, xllong = 0x40, xfloat = 0x80, xdouble = 0x100, xldouble = 0x200, xtag = 0x400, xident = 0x800, xvoid = 0x1000, xbool = 0x4000, ximaginary = 0x8000, xcomplex = 0x10000, x_Atomic = 0x20000, } AST.Type t; Loc loc; //printf("parseDeclarationSpecifiers()\n"); TKW tkw; SCW scw = specifier.scw & SCW.xtypedef; MOD mod; Identifier id; Identifier previd; Lwhile: while (1) { //printf("token %s\n", token.toChars()); TKW tkwx; SCW scwx; MOD modx; switch (token.value) { // Storage class specifiers case TOK.static_: scwx = SCW.xstatic; break; case TOK.extern_: scwx = SCW.xextern; break; case TOK.auto_: scwx = SCW.xauto; break; case TOK.register: scwx = SCW.xregister; break; case TOK.typedef_: scwx = SCW.xtypedef; break; case TOK.inline: scwx = SCW.xinline; break; case TOK._Noreturn: scwx = SCW.x_Noreturn; break; case TOK._Thread_local: scwx = SCW.x_Thread_local; break; // Type qualifiers case TOK.const_: modx = MOD.xconst; break; case TOK.volatile: modx = MOD.xvolatile; break; case TOK.restrict: modx = MOD.xrestrict; break; // Type specifiers case TOK.char_: tkwx = TKW.xchar; break; case TOK.signed: tkwx = TKW.xsigned; break; case TOK.unsigned: tkwx = TKW.xunsigned; break; case TOK.int16: tkwx = TKW.xshort; break; case TOK.int32: tkwx = TKW.xint; break; case TOK.int64: tkwx = TKW.xlong; break; case TOK.float32: tkwx = TKW.xfloat; break; case TOK.float64: tkwx = TKW.xdouble; break; case TOK.void_: tkwx = TKW.xvoid; break; case TOK._Bool: tkwx = TKW.xbool; break; case TOK._Imaginary: tkwx = TKW.ximaginary; break; case TOK._Complex: tkwx = TKW.xcomplex; break; case TOK.identifier: tkwx = TKW.xident; id = token.ident; break; case TOK.struct_: case TOK.union_: { const structOrUnion = token.value; const sloc = token.loc; nextToken(); /* GNU Extensions * struct-or-union-specifier: * struct-or-union gnu-attributes (opt) identifier (opt) { struct-declaration-list } gnu-attributes (opt) * struct-or-union gnu-attribute (opt) identifier */ if (token.value == TOK.__attribute__) cparseGnuAttributes(); t = cparseStruct(sloc, structOrUnion, symbols); tkwx = TKW.xtag; break; } case TOK.enum_: t = cparseEnum(symbols); tkwx = TKW.xtag; break; case TOK._Atomic: { // C11 6.7.2.4 // type-specifier if followed by `( type-name )` auto tk = peek(&token); if (tk.value == TOK.leftParenthesis) { tk = peek(tk); if (isTypeName(tk) && tk.value == TOK.rightParenthesis) { nextToken(); t = cparseTypeName(); // TODO - implement the "atomic" part of t tkwx = TKW.x_Atomic; break; } } // C11 6.7.3 type-qualifier if not modx = MOD.x_Atomic; break; } case TOK._Alignas: { /* C11 6.7.5 * _Alignas ( type-name ) * _Alignas ( constant-expression ) */ nextToken(); check(TOK.leftParenthesis); auto tk = &token; if (isTypeName(tk)) { cparseTypeName(); } else { cparseConstantExp(); } check(TOK.rightParenthesis); error("`_Alignas` not supported"); // TODO break; } case TOK.__attribute__: { /* GNU Extensions * declaration-specifiers: * gnu-attributes declaration-specifiers (opt) */ cparseGnuAttributes(); break; } default: break Lwhile; } if (tkwx) { if (tkw & TKW.xlong && tkwx & TKW.xlong) { tkw &= ~TKW.xlong; tkwx = TKW.xllong; } if (tkw && tkwx & TKW.xident) { // 2nd identifier can't be a typedef break Lwhile; // leave parser on the identifier for the following declarator } else if (tkwx & TKW.xident) { // 1st identifier, save it for TypeIdentifier previd = id; } if (tkw & TKW.xident && tkwx || // typedef-name followed by type-specifier tkw & tkwx) // duplicate type-specifiers { error("illegal combination of type specifiers"); tkwx = TKW.init; } tkw |= tkwx; if (!(tkwx & TKW.xtag)) // if parser already advanced nextToken(); continue; } if (modx) { mod |= modx; nextToken(); continue; } if (scwx) { if (scw & scwx) error("duplicate storage class"); scw |= scwx; const scw2 = scw & (SCW.xstatic | SCW.xextern | SCW.xauto | SCW.xregister | SCW.xtypedef); if (scw2 & (scw2 - 1) || scw & (SCW.xauto | SCW.xregister) && scw & (SCW.xinline | SCW.x_Noreturn)) { error("conflicting storage class"); scw &= ~scwx; } if (level & (LVL.parameter | LVL.prototype) && scw & ~SCW.xregister) { error("only `register` storage class allowed for function parameters"); scw &= ~scwx; } if (level == LVL.global && scw & (SCW.xauto | SCW.xregister)) { error("`auto` and `register` storage class not allowed for global"); scw &= ~scwx; } nextToken(); continue; } } specifier.scw = scw; specifier.mod = mod; // Convert TKW bits to type t switch (tkw) { case TKW.xnone: t = null; break; case TKW.xchar: t = AST.Type.tchar; break; case TKW.xsigned | TKW.xchar: t = AST.Type.tint8; break; case TKW.xunsigned | TKW.xchar: t = AST.Type.tuns8; break; case TKW.xshort: case TKW.xsigned | TKW.xshort: case TKW.xsigned | TKW.xshort | TKW.xint: case TKW.xshort | TKW.xint: t = AST.Type.tint16; break; case TKW.xunsigned | TKW.xshort | TKW.xint: case TKW.xunsigned | TKW.xshort: t = AST.Type.tuns16; break; case TKW.xint: case TKW.xsigned: case TKW.xsigned | TKW.xint: t = AST.Type.tint32; break; case TKW.xunsigned: case TKW.xunsigned | TKW.xint: t = AST.Type.tuns32; break; case TKW.xlong: case TKW.xsigned | TKW.xlong: case TKW.xsigned | TKW.xlong | TKW.xint: case TKW.xlong | TKW.xint: t = longsize == 4 ? AST.Type.tint32 : AST.Type.tint64; break; case TKW.xunsigned | TKW.xlong | TKW.xint: case TKW.xunsigned | TKW.xlong: t = longsize == 4 ? AST.Type.tuns32 : AST.Type.tuns64; break; case TKW.xllong: case TKW.xsigned | TKW.xllong: case TKW.xsigned | TKW.xllong | TKW.xint: case TKW.xllong | TKW.xint: t = AST.Type.tint64; break; case TKW.xunsigned | TKW.xllong | TKW.xint: case TKW.xunsigned | TKW.xllong: t = AST.Type.tuns64; break; case TKW.xvoid: t = AST.Type.tvoid; break; case TKW.xbool: t = AST.Type.tbool; break; case TKW.xfloat: t = AST.Type.tfloat32; break; case TKW.xdouble: t = AST.Type.tfloat64; break; case TKW.xlong | TKW.xdouble: t = realType(RTFlags.realfloat); break; case TKW.ximaginary | TKW.xfloat: t = AST.Type.timaginary32; break; case TKW.ximaginary | TKW.xdouble: t = AST.Type.timaginary64; break; case TKW.ximaginary | TKW.xlong | TKW.xdouble: t = realType(RTFlags.imaginary); break; case TKW.xcomplex | TKW.xfloat: t = AST.Type.tcomplex32; break; case TKW.xcomplex | TKW.xdouble: t = AST.Type.tcomplex64; break; case TKW.xcomplex | TKW.xlong | TKW.xdouble: t = realType(RTFlags.complex); break; case TKW.xident: t = new AST.TypeIdentifier(loc, previd); break; case TKW.xtag: break; // t is already set default: error("illegal type combination"); t = AST.Type.terror; break; } return t; } /******************************** * C11 6.7.6 * Parse a declarator (including function definitions). * declarator: * pointer (opt) direct-declarator * * direct-declarator : * identifier * ( declarator ) * direct-declarator [ type-qualifier-list (opt) assignment-expression (opt) ] * direct-declarator [ static type-qualifier-list (opt) assignment-expression ] * direct-declarator [ type-qualifier-list static assignment-expression (opt) ] * direct-declarator [ type-qualifier-list (opt) * ] * direct-declarator ( parameter-type-list ) * direct-declarator ( identifier-list (opt) ) * * pointer : * * type-qualifier-list (opt) * * type-qualifier-list (opt) pointer * * type-qualifier-list : * type-qualifier * type-qualifier-list type-qualifier * * parameter-type-list : * parameter-list * parameter-list , ... * * parameter-list : * parameter-declaration * parameter-list , parameter-declaration * * parameter-declaration : * declaration-specifiers declarator * declaration-specifiers abstract-declarator (opt) * * identifier-list : * identifier * identifier-list , identifier * * Params: * declarator = declarator kind * t = base type to start with * pident = set to Identifier if there is one, null if not * storageClass = any storage classes seen so far that apply to a function * Returns: * type declared. If a TypeFunction is returned, this.symbols is the * symbol table for the parameter-type-list, which will contain any * declared struct, union or enum tags. */ private AST.Type cparseDeclarator(DTR declarator, AST.Type t, out Identifier pident, StorageClass storageClass = 0) { //printf("cparseDeclarator(%d)\n", declarator); AST.Types constTypes; // all the Types that will need `const` applied to them constTypes.setDim(0); AST.Type parseDecl(AST.Type t) { AST.Type ts; while (1) { switch (token.value) { case TOK.identifier: // identifier //printf("identifier %s\n", token.ident.toChars()); if (declarator == DTR.xabstract) error("identifier not allowed in abstract-declarator"); pident = token.ident; ts = t; nextToken(); break; case TOK.leftParenthesis: // ( declarator ) /* like: T (*fp)(); * T ((*fp))(); */ nextToken(); ts = parseDecl(t); check(TOK.rightParenthesis); break; case TOK.mul: // pointer t = new AST.TypePointer(t); nextToken(); // add post fixes const/volatile/restrict/_Atomic const mod = cparseTypeQualifierList(); if (mod & MOD.xconst) constTypes.push(t); continue; default: if (declarator == DTR.xdirect) { error("identifier or `(` expected"); // ) panic(); } ts = t; break; } break; } // parse DeclaratorSuffixes while (1) { /* Insert tx -> t into * ts -> ... -> t * so that * ts -> ... -> tx -> t */ static void insertTx(ref AST.Type ts, AST.Type tx, AST.Type t) { AST.Type* pt; for (pt = &ts; *pt != t; pt = &(cast(AST.TypeNext)*pt).next) { } *pt = tx; } switch (token.value) { case TOK.leftBracket: { // post [] syntax, pick up any leading type qualifiers, `static` and `*` AST.Type ta; nextToken(); auto mod = cparseTypeQualifierList(); // const/volatile/restrict/_Atomic bool isStatic; bool isVLA; if (token.value == TOK.static_) { isStatic = true; // `static` nextToken(); if (!mod) // type qualifiers after `static` mod = cparseTypeQualifierList(); } else if (token.value == TOK.mul) { if (peekNext() == TOK.rightBracket) { isVLA = true; // `*` nextToken(); } } if (isStatic || token.value != TOK.rightBracket) { //printf("It's a static array\n"); AST.Expression e = cparseAssignExp(); // [ expression ] ta = new AST.TypeSArray(t, e); } else { // An array of unknown size, fake it with a DArray ta = new AST.TypeDArray(t); // [] } check(TOK.rightBracket); // Issue errors for unsupported types. if (isVLA) // C11 6.7.6.2 { error("variable length arrays are not supported"); } if (isStatic) // C11 6.7.6.3 { error("static array parameters are not supported"); } if (declarator != DTR.xparameter) { /* C11 6.7.6.2-4: '*' can only be used with function prototype scope. */ if (isVLA) error("variable length array used outside of function prototype"); /* C11 6.7.6.2-1: type qualifiers and 'static' shall only appear * in a declaration of a function parameter with an array type. */ if (isStatic || mod) error("static or type qualifier used outside of function prototype"); } if (ts.isTypeSArray() || ts.isTypeDArray()) { /* C11 6.7.6.2-1: type qualifiers and 'static' shall only appear * in the outermost array type derivation. */ if (isStatic || mod) error("static or type qualifier used in non-outermost array type derivation"); /* C11 6.7.6.2-1: the element type shall not be an incomplete or * function type. */ if (ta.isTypeDArray() && !isVLA) error("array type has incomplete element type `%s`", ta.toChars()); } // Apply type qualifiers to the constructed type. if (mod & MOD.xconst) // ignore the other bits ta = toConst(ta); insertTx(ts, ta, t); // ts -> ... -> ta -> t continue; } case TOK.leftParenthesis: { // New symbol table for parameter-list auto symbolsSave = this.symbols; this.symbols = null; auto parameterList = cparseParameterList(); AST.Type tf = new AST.TypeFunction(parameterList, t, linkage, 0); // tf = tf.addSTC(storageClass); // TODO insertTx(ts, tf, t); // ts -> ... -> tf -> t if (ts != tf) this.symbols = symbolsSave; break; } default: break; } break; } return ts; } t = parseDecl(t); /* Because const is transitive, cannot assemble types from * fragments. Instead, types to be annotated with const are put * in constTypes[], and a bottom up scan of t is done to apply * const */ if (constTypes.length) { AST.Type constApply(AST.Type t) { if (t.nextOf()) { auto tn = cast(AST.TypeNext)t; // t.nextOf() should return a ref instead of this tn.next = constApply(tn.next); } foreach (tc; constTypes[]) { if (tc is t) { return toConst(t); } } return t; } t = constApply(t); } //printf("result: %s\n", t.toChars()); return t; } /****************************** * C11 6.7.3 * type-qualifier: * const * restrict * volatile * _Atomic */ MOD cparseTypeQualifierList() { MOD mod; while (1) { switch (token.value) { case TOK.const_: mod |= MOD.xconst; break; case TOK.volatile: mod |= MOD.xvolatile; break; case TOK.restrict: mod |= MOD.xrestrict; break; case TOK._Atomic: mod |= MOD.x_Atomic; break; default: return mod; } nextToken(); } } /*********************************** * C11 6.7.7 */ AST.Type cparseTypeName() { Specifier specifier; auto tspec = cparseSpecifierQualifierList(LVL.global, specifier); Identifier id; return cparseDeclarator(DTR.xabstract, tspec, id); } /*********************************** * C11 6.7.2.1 * specifier-qualifier-list: * type-specifier specifier-qualifier-list (opt) * type-qualifier specifier-qualifier-list (opt) * Params: * level = declaration context * specifier = specifiers in and out * Returns: * resulting type, null if not specified */ AST.Type cparseSpecifierQualifierList(LVL level, ref Specifier specifier) { auto t = cparseDeclarationSpecifiers(level, specifier); if (specifier.scw) error("storage class not allowed in specifier-qualified-list"); return t; } /*********************************** * C11 6.7.6.3 * ( parameter-type-list ) * ( identifier-list (opt) ) */ AST.ParameterList cparseParameterList() { auto parameters = new AST.Parameters(); AST.VarArg varargs = AST.VarArg.none; StorageClass varargsStc; check(TOK.leftParenthesis); if (token.value == TOK.void_ && peekNext() == TOK.rightParenthesis) { nextToken(); nextToken(); return AST.ParameterList(parameters, varargs, varargsStc); } /* The check for identifier-list comes later, * when doing the trailing declaration-list (opt) */ while (1) { if (token.value == TOK.rightParenthesis) break; if (token.value == TOK.dotDotDot) { varargs = AST.VarArg.variadic; // C-style variadics nextToken(); check(TOK.rightParenthesis); return AST.ParameterList(parameters, varargs, varargsStc); } Specifier specifier; auto tspec = cparseDeclarationSpecifiers(LVL.prototype, specifier); Identifier id; auto t = cparseDeclarator(DTR.xparameter, tspec, id); if (specifier.mod & MOD.xconst) t = toConst(t); auto param = new AST.Parameter(STC.parameter, t, id, null, null); parameters.push(param); if (token.value == TOK.rightParenthesis) break; check(TOK.comma); } nextToken(); return AST.ParameterList(parameters, varargs, varargsStc); } /*********************************** * C11 6.7.10 * _Static_assert ( constant-expression , string-literal ) ; */ private AST.StaticAssert cparseStaticAssert() { const loc = token.loc; //printf("cparseStaticAssert()\n"); nextToken(); check(TOK.leftParenthesis); auto exp = cparseConstantExp(); check(TOK.comma); if (token.value != TOK.string_) error("string literal expected"); auto msg = cparsePrimaryExp(); check(TOK.rightParenthesis); check(TOK.semicolon); return new AST.StaticAssert(loc, exp, msg); } /************************* * Collect argument list. * Parser is on opening parenthesis. * Returns: * the arguments */ private AST.Expressions* cparseArguments() { nextToken(); auto arguments = new AST.Expressions(); while (token.value != TOK.rightParenthesis && token.value != TOK.endOfFile) { auto arg = cparseAssignExp(); arguments.push(arg); if (token.value != TOK.comma) break; nextToken(); // consume comma } check(TOK.rightParenthesis); return arguments; } /************************* * __declspec parser * https://docs.microsoft.com/en-us/cpp/cpp/declspec * decl-specifier: * __declspec ( extended-decl-modifier-seq ) * * extended-decl-modifier-seq: * extended-decl-modifier (opt) * extended-decl-modifier extended-decl-modifier-seq * * extended-decl-modifier: * dllimport * dllexport */ private void cparseDeclspec() { /* Check for dllexport, dllimport * Ignore the rest */ bool dllimport; // TODO implement bool dllexport; // TODO implement nextToken(); // move past __declspec check(TOK.leftParenthesis); while (1) { if (token.value == TOK.rightParenthesis) { nextToken(); break; } else if (token.value == TOK.endOfFile) break; else if (token.value == TOK.identifier) { if (token.ident == Id.dllimport) { dllimport = true; nextToken(); } else if (token.ident == Id.dllexport) { dllexport = true; nextToken(); } else { nextToken(); if (token.value == TOK.leftParenthesis) cparseParens(); } } else { error("extended-decl-modifier expected"); } break; } } /************************* * Simple asm parser * https://gcc.gnu.org/onlinedocs/gcc/Asm-Labels.html * simple-asm-expr: * asm ( asm-string-literal ) * * asm-string-literal: * string-literal */ private AST.Expression cparseSimpleAsmExpr() { nextToken(); // move past asm check(TOK.leftParenthesis); if (token.value != TOK.string_) error("string literal expected"); auto label = cparsePrimaryExp(); check(TOK.rightParenthesis); return label; } /************************* * __attribute__ parser * https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html * gnu-attributes: * gnu-attributes gnu-attribute-specifier * * gnu-attribute-specifier: * __attribute__ (( gnu-attribute-list )) * * gnu-attribute-list: * gnu-attribute (opt) * gnu-attribute-list , gnu-attribute */ private void cparseGnuAttributes() { while (token.value == TOK.__attribute__) { nextToken(); // move past __attribute__ check(TOK.leftParenthesis); cparseParens(); // TODO: implement check(TOK.rightParenthesis); } } /************************* * Parse a single GNU attribute * gnu-attribute: * gnu-attribute-name * gnu-attribute-name ( identifier ) * gnu-attribute-name ( identifier , expression-list ) * gnu-attribute-name ( expression-list (opt) ) * * gnu-attribute-name: * keyword * identifier * * expression-list: * constant-expression * expression-list , constant-expression */ private void cparseGnuAttribute() { /* Check for dllimport, dllexport, vector_size(bytes) * Ignore the rest */ bool dllimport; // TODO implement bool dllexport; // TODO implement nextToken(); // move past __attribute__ check(TOK.leftParenthesis); check(TOK.leftParenthesis); while (1) { if (token.value == TOK.rightParenthesis) { nextToken(); check(TOK.rightParenthesis); break; } else if (token.value == TOK.endOfFile) break; else if (token.value == TOK.identifier) { if (token.ident == Id.dllimport) { dllimport = true; nextToken(); } else if (token.ident == Id.dllexport) { dllexport = true; nextToken(); } else if (token.ident == Id.vector_size) { nextToken(); check(TOK.leftParenthesis); cparseConstantExp(); // TODO implement check(TOK.rightParenthesis); } else { nextToken(); if (token.value == TOK.leftParenthesis) cparseParens(); } } else { error("extended-decl-modifier expected"); } break; } } /*************************** * Like skipParens(), but consume the tokens. */ private void cparseParens() { check(TOK.leftParenthesis); int parens = 1; while (1) { switch (token.value) { case TOK.leftParenthesis: ++parens; break; case TOK.rightParenthesis: --parens; if (parens < 0) { error("extra right parenthesis"); return; } if (parens == 0) { nextToken(); return; } break; case TOK.endOfFile: error("end of file found before right parenthesis"); return; default: break; } nextToken(); } } //} /******************************************************************************/ /***************************** Struct & Enum Parser ***************************/ //{ /************************************* * C11 6.7.2.2 * enum-specifier: * enum identifier (opt) { enumerator-list } * enum identifier (opt) { enumerator-list , } * enum identifier * * enumerator-list: * enumerator * enumerator-list , enumerator * * enumerator: * enumeration-constant * enumeration-constant = constant-expression * * enumeration-constant: * identifier * * Params: * symbols = symbols to add enum declaration to * Returns: * type of the enum */ private AST.Type cparseEnum(ref AST.Dsymbols* symbols) { const loc = token.loc; nextToken(); /* GNU Extensions * enum-specifier: * enum gnu-attributes (opt) identifier (opt) { enumerator-list } gnu-attributes (opt) * enum gnu-attributes (opt) identifier (opt) { enumerator-list , } gnu-attributes (opt) * enum gnu-attributes (opt) identifier */ if (token.value == TOK.__attribute__) cparseGnuAttributes(); Identifier tag; if (token.value == TOK.identifier) { tag = token.ident; nextToken(); } AST.Dsymbols* members; if (token.value == TOK.leftCurly) { nextToken(); members = new AST.Dsymbols(); if (token.value == TOK.rightCurly) // C11 6.7.2.2-1 { if (tag) error("no members for `enum %s`", tag.toChars()); else error("no members for anonymous enum"); } while (token.value == TOK.identifier) { auto ident = token.ident; // enumeration-constant nextToken(); auto mloc = token.loc; AST.Expression value; if (token.value == TOK.assign) { nextToken(); value = cparseConstantExp(); // TODO C11 6.7.2.2-2 value must fit into an int } auto em = new AST.EnumMember(mloc, ident, value, null, 0, null, null); members.push(em); if (token.value == TOK.comma) { nextToken(); continue; } break; } check(TOK.rightCurly); /* GNU Extensions * Parse the postfix gnu-attributes (opt) */ if (token.value == TOK.__attribute__) cparseGnuAttributes(); } else if (!tag) error("missing `identifier` after `enum`"); /* Need semantic information to determine if this is a declaration, * redeclaration, or reference to existing declaration. * Defer to the semantic() pass with a TypeTag. */ return new AST.TypeTag(loc, TOK.enum_, tag, members); } /************************************* * C11 6.7.2.1 * Parse struct and union specifiers. * Parser is advanced to the tag identifier or brace. * struct-or-union-specifier: * struct-or-union identifier (opt) { struct-declaration-list } * struct-or-union identifier * * struct-or-union: * struct * union * * struct-declaration-list: * struct-declaration * struct-declaration-list struct-declaration * * Params: * loc = location of `struct` or `union` * structOrUnion = TOK.struct_ or TOK.union_ * symbols = symbols to add struct-or-union declaration to * Returns: * type of the struct */ private AST.Type cparseStruct(Loc loc, TOK structOrUnion, ref AST.Dsymbols* symbols) { Identifier tag; if (token.value == TOK.identifier) { tag = token.ident; nextToken(); } AST.Dsymbols* members; if (token.value == TOK.leftCurly) { nextToken(); auto symbolsSave = symbols; symbols = new AST.Dsymbols(); while (token.value != TOK.rightCurly) { cparseStructDeclaration(); if (token.value == TOK.endOfFile) break; } members = symbols; // `members` will be non-null even with 0 members symbols = symbolsSave; check(TOK.rightCurly); if ((*members).length == 0) // C11 6.7.2.1-8 /* TODO: not strict enough, should really be contains "no named members", * not just "no members". * I.e. an unnamed bit field, _Static_assert, etc, are not named members, * but will pass this check. * Be careful to detect named members that come anonymous structs. * Correctly doing this will likely mean moving it to typesem.d. */ error("empty struct-declaration-list for `%s %s`", Token.toChars(structOrUnion), tag ? tag.toChars() : "Anonymous".ptr); } else if (!tag) error("missing tag `identifier` after `%s`", Token.toChars(structOrUnion)); /* Need semantic information to determine if this is a declaration, * redeclaration, or reference to existing declaration. * Defer to the semantic() pass with a TypeTag. */ return new AST.TypeTag(loc, structOrUnion, tag, members); } /************************************* * C11 6.7.2.1 * Parse a struct declaration member. * struct-declaration: * specifier-qualifier-list struct-declarator-list (opt) ; * static_assert-declaration * * struct-declarator-list: * struct-declarator * struct-declarator-list , struct-declarator * * struct-declarator: * declarator * declarator (opt) : constant-expression */ void cparseStructDeclaration() { //printf("cparseStructDeclaration()\n"); if (token.value == TOK._Static_assert) { auto s = cparseStaticAssert(); symbols.push(s); return; } auto symbolsSave = symbols; Specifier specifier; auto tspec = cparseSpecifierQualifierList(LVL.member, specifier); /* If a declarator does not follow, it is unnamed */ if (token.value == TOK.semicolon && tspec) { nextToken(); auto tt = tspec.isTypeTag(); if (!tt) return; // legal but meaningless empty declaration /* If anonymous struct declaration * struct { ... members ... }; * C11 6.7.2.1-13 */ if (!tt.id && tt.members) { /* members of anonymous struct are considered members of * the containing struct */ // TODO: merge in specifier auto ad = new AST.AnonDeclaration(tt.loc, tt.tok == TOK.union_, tt.members); if (!symbols) symbols = new AST.Dsymbols(); symbols.push(ad); return; } if (!tt.id && !tt.members) return; // already gave error in cparseStruct() /* `struct tag;` and `struct tag { ... };` * always result in a declaration in the current scope */ // TODO: merge in specifier auto stag = (tt.tok == TOK.struct_) ? new AST.StructDeclaration(tt.loc, tt.id, false) : new AST.UnionDeclaration(tt.loc, tt.id); stag.members = tt.members; if (!symbols) symbols = new AST.Dsymbols(); symbols.push(stag); return; } while (1) { Identifier id; AST.Type dt; if (token.value == TOK.colon) { // C11 6.7.2.1-12 unnamed bit-field nextToken(); cparseConstantExp(); error("unnamed bit fields are not supported"); // TODO dt = AST.Type.tuns32; } else dt = cparseDeclarator(DTR.xdirect, tspec, id); if (!dt) { panic(); nextToken(); break; // error recovery } if (id && token.value == TOK.colon) { // C11 6.7.2.1-10 bit-field nextToken(); cparseConstantExp(); error("bit fields are not supported"); // TODO } if (specifier.mod & MOD.xconst) dt = toConst(dt); /* GNU Extensions * struct-declarator: * declarator gnu-attributes (opt) * declarator (opt) : constant-expression gnu-attributes (opt) */ if (token.value == TOK.__attribute__) cparseGnuAttributes(); AST.Dsymbol s = null; symbols = symbolsSave; if (!symbols) symbols = new AST.Dsymbols; // lazilly create it if (!tspec && !specifier.scw && !specifier.mod) error("specifier-qualifier-list required"); else if (id) { if (dt.ty == AST.Tvoid) error("`void` has no value"); // declare the symbol // Give member variables an implicit void initializer auto initializer = new AST.VoidInitializer(token.loc); s = new AST.VarDeclaration(token.loc, dt, id, initializer, specifiersToSTC(LVL.member, specifier)); } if (s !is null) symbols.push(s); switch (token.value) { case TOK.identifier: error("missing comma"); goto default; case TOK.semicolon: nextToken(); return; case TOK.comma: nextToken(); break; default: error("`;` or `,` expected"); while (token.value != TOK.semicolon && token.value != TOK.endOfFile) nextToken(); nextToken(); return; } } } //} /******************************************************************************/ /********************************* Lookahead Parser ***************************/ //{ /************************************ * Determine if the scanner is sitting on the start of a declaration. * Params: * t = current token of the scanner * needId = flag with additional requirements for a declaration * endtok = ending token * pt = will be set ending token (if not null) * Returns: * true at start of a declaration */ private bool isCDeclaration(ref Token* pt) { //printf("isCDeclaration()\n"); auto t = pt; if (!isDeclarationSpecifiers(t)) return false; while (1) { if (t.value == TOK.semicolon) { t = peek(t); pt = t; return true; } if (!isCDeclarator(t, DTR.xdirect)) return false; if (t.value == TOK.asm_) { t = peek(t); if (t.value != TOK.leftParenthesis || !skipParens(t, &t)) return false; } if (t.value == TOK.__attribute__) { t = peek(t); if (t.value != TOK.leftParenthesis || !skipParens(t, &t)) return false; } if (t.value == TOK.assign) { t = peek(t); if (!isInitializer(t)) return false; } switch (t.value) { case TOK.comma: t = peek(t); break; case TOK.semicolon: t = peek(t); pt = t; return true; default: return false; } } } /******************************** * See if match for initializer. * Params: * pt = starting token, updated to one past end of initializer if true * Returns: * true if initializer */ private bool isInitializer(ref Token* pt) { //printf("isInitializer()\n"); auto t = pt; if (t.value == TOK.leftCurly) { if (!skipBraces(t)) return false; pt = t; return true; } // skip over assignment-expression, ending before comma or semiColon or EOF if (!isAssignmentExpression(t)) return false; pt = t; return true; } /******************************** * See if match for: * postfix-expression ( argument-expression-list(opt) ) * Params: * pt = starting token, updated to one past end of initializer if true * Returns: * true if function call */ private bool isFunctionCall(ref Token* pt) { //printf("isFunctionCall()\n"); auto t = pt; if (!isPrimaryExpression(t)) return false; if (t.value != TOK.leftParenthesis) return false; t = peek(t); while (1) { if (!isAssignmentExpression(t)) return false; if (t.value == TOK.comma) { t = peek(t); continue; } if (t.value == TOK.rightParenthesis) { t = peek(t); break; } return false; } if (t.value != TOK.semicolon) return false; pt = t; return true; } /******************************** * See if match for assignment-expression. * Params: * pt = starting token, updated to one past end of assignment-expression if true * Returns: * true if assignment-expression */ private bool isAssignmentExpression(ref Token* pt) { //printf("isAssignmentExpression()\n"); auto t = pt; /* This doesn't actually check for grammar matching an * assignment-expression. It just matches ( ) [ ] looking for * an ending token that would terminate one. */ bool any; while (1) { switch (t.value) { case TOK.comma: case TOK.semicolon: case TOK.rightParenthesis: case TOK.rightBracket: case TOK.endOfFile: if (!any) return false; break; case TOK.leftParenthesis: if (!skipParens(t, &t)) return false; continue; case TOK.leftBracket: if (!skipBrackets(t)) return false; continue; default: any = true; // assume token was part of an a-e t = peek(t); continue; } pt = t; return true; } } /******************************** * See if match for constant-expression. * Params: * pt = starting token, updated to one past end of constant-expression if true * Returns: * true if constant-expression */ private bool isConstantExpression(ref Token* pt) { return isAssignmentExpression(pt); } /******************************** * See if match for declaration-specifiers. * No errors are diagnosed. * Params: * pt = starting token, updated to one past end of declaration-specifiers if true * Returns: * true if declaration-specifiers */ private bool isDeclarationSpecifiers(ref Token* pt) { //printf("isDeclarationSpecifiers()\n"); auto t = pt; bool any; while (1) { switch (t.value) { // type-specifiers case TOK.void_: case TOK.char_: case TOK.int16: case TOK.int32: case TOK.int64: case TOK.float32: case TOK.float64: case TOK.signed: case TOK.unsigned: case TOK._Bool: //case TOK._Imaginary: case TOK._Complex: case TOK.identifier: // typedef-name t = peek(t); any = true; break; case TOK.struct_: case TOK.union_: case TOK.enum_: t = peek(t); if (t.value == TOK.identifier) { t = peek(t); if (t.value == TOK.leftCurly) { if (!skipBraces(t)) return false; } } else if (t.value == TOK.leftCurly) { if (!skipBraces(t)) return false; } else return false; any = true; continue; // storage-class-specifiers case TOK.typedef_: case TOK.extern_: case TOK.static_: case TOK._Thread_local: case TOK.auto_: case TOK.register: // function-specifiers case TOK.inline: case TOK._Noreturn: // type-qualifiers case TOK.const_: case TOK.volatile: case TOK.restrict: t = peek(t); any = true; continue; case TOK._Alignas: // alignment-specifier case TOK.__declspec: // decl-specifier case TOK.__attribute__: // attribute-specifier t = peek(t); if (!skipParens(t, &t)) return false; any = true; continue; // either atomic-type-specifier or type_qualifier case TOK._Atomic: // TODO _Atomic ( type-name ) t = peek(t); if (t.value == TOK.leftParenthesis) // maybe atomic-type-specifier { auto tsave = t; t = peek(t); if (!isTypeName(t) || t.value != TOK.rightParenthesis) { // it's a type-qualifier t = tsave; // back up parser any = true; continue; } t = peek(t); // move past right parenthesis of atomic-type-specifier } any = true; continue; default: break; } break; } if (any) { pt = t; return true; } return false; } /************************************** * See if declaration-list is present. * Returns: * true if declaration-list is present, even an empty one */ bool isDeclarationList(ref Token* pt) { auto t = pt; while (1) { if (t.value == TOK.leftCurly) { pt = t; return true; } if (!isCDeclaration(t)) return false; } } /******************************************* * Skip braces. * Params: * pt = enters on left brace, set to token past right bracket on true * Returns: * true if successful */ private bool skipBraces(ref Token* pt) { auto t = pt; if (t.value != TOK.leftCurly) return false; int braces = 0; while (1) { switch (t.value) { case TOK.leftCurly: ++braces; t = peek(t); continue; case TOK.rightCurly: --braces; if (braces == 0) { pt = peek(t); return true; } if (braces < 0) return false; t = peek(t); continue; case TOK.endOfFile: return false; default: t = peek(t); continue; } } } /******************************************* * Skip brackets. * Params: * pt = enters on left bracket, set to token past right bracket on true * Returns: * true if successful */ private bool skipBrackets(ref Token* pt) { auto t = pt; if (t.value != TOK.leftBracket) return false; int brackets = 0; while (1) { switch (t.value) { case TOK.leftBracket: ++brackets; t = peek(t); continue; case TOK.rightBracket: --brackets; if (brackets == 0) { pt = peek(t); return true; } if (brackets < 0) return false; t = peek(t); continue; case TOK.endOfFile: return false; default: t = peek(t); continue; } } } /********************************* * Check to see if tokens starting with *pt form a declarator. * Params: * pt = pointer to starting token, updated to point past declarator if true is returned * declarator = declarator kind * Returns: * true if it does */ private bool isCDeclarator(ref Token* pt, DTR declarator) { auto t = pt; while (1) { if (t.value == TOK.mul) // pointer { t = peek(t); if (!isTypeQualifierList(t)) return false; } else break; } if (t.value == TOK.identifier) { if (declarator == DTR.xabstract) return false; t = peek(t); } else if (t.value == TOK.leftParenthesis) { t = peek(t); if (!isCDeclarator(t, declarator)) return false; if (t.value != TOK.rightParenthesis) return false; t = peek(t); } else if (declarator == DTR.xdirect) { return false; } if (t.value == TOK.leftBracket) { if (!skipBrackets(t)) return false; } else if (t.value == TOK.leftParenthesis) { if (!skipParens(t, &t)) return false; } pt = t; return true; } /*************************** * Is this the start of a type-qualifier-list? * (Can be empty.) * Params: * pt = first token; updated with past end of type-qualifier-list if true * Returns: * true if start of type-qualifier-list */ private bool isTypeQualifierList(ref Token* pt) { auto t = pt; while (1) { switch (t.value) { case TOK.const_: case TOK.restrict: case TOK.volatile: case TOK._Atomic: t = peek(t); continue; default: break; } break; } pt = t; return true; } /*************************** * Is this the start of a type-name? * Params: * pt = first token; updated with past end of type-name if true * Returns: * true if start of type-name */ private bool isTypeName(ref Token* pt) { auto t = pt; //printf("isTypeName() %s\n", t.toChars()); if (!isSpecifierQualifierList(t)) return false; if (!isCDeclarator(t, DTR.xabstract)) return false; pt = t; return true; } /*************************** * Is this the start of a specifier-qualifier-list? * Params: * pt = first token; updated with past end of specifier-qualifier-list if true * Returns: * true if start of specifier-qualifier-list */ private bool isSpecifierQualifierList(ref Token* pt) { auto t = pt; bool result; while (1) { switch (t.value) { // Type Qualifiers case TOK.const_: case TOK.restrict: case TOK.volatile: // Type Specifiers case TOK.char_: case TOK.signed: case TOK.unsigned: case TOK.int16: case TOK.int32: case TOK.int64: case TOK.float32: case TOK.float64: case TOK.void_: case TOK._Bool: //case TOK._Imaginary: // ? missing in Spec case TOK._Complex: // typedef-name case TOK.identifier: // will not know until semantic if typedef t = peek(t); break; // struct-or-union-specifier // enum-specifier case TOK.struct_: case TOK.union_: case TOK.enum_: t = peek(t); if (t.value == TOK.identifier) { t = peek(t); if (t.value == TOK.leftCurly) { if (!skipBraces(t)) return false; } } else if (t.value == TOK.leftCurly) { if (!skipBraces(t)) return false; } else return false; break; // atomic-type-specifier case TOK._Atomic: t = peek(t); if (t.value != TOK.leftParenthesis || !skipParens(t, &t)) return false; break; default: if (result) pt = t; return result; } result = true; } } /************************************ * Looking at the leading left parenthesis, and determine if it is * either of the following: * ( type-name ) cast-expression * ( type-name ) { initializer-list } * as opposed to: * ( expression ) * Params: * pt = starting token, updated to one past end of constant-expression if true * afterParenType = true if already seen ( type-name ) * Returns: * true if matches ( type-name ) ... */ private bool isCastExpression(ref Token* pt, bool afterParenType = false) { auto t = pt; switch (t.value) { case TOK.leftParenthesis: auto tk = peek(t); // move past left parenthesis if (!isTypeName(tk) || tk.value != TOK.rightParenthesis) { if (afterParenType) goto default; // could be ( type-name ) ( unary-expression ) return false; } t = peek(tk); // move past right parenthesis if (t.value == TOK.leftCurly) { // ( type-name ) { initializer-list } if (!isInitializer(t)) return false; break; } if (!isCastExpression(t, true)) return false; // ( type-name ) cast-expression break; default: if (!afterParenType || !isUnaryExpression(t, afterParenType)) return false; // if we've already seen ( type-name ), then this is a cast break; } pt = t; return true; } /******************************** * See if match for unary-expression. * Params: * pt = starting token, updated to one past end of constant-expression if true * afterParenType = true if already seen ( type-name ) of a cast-expression * Returns: * true if unary-expression */ private bool isUnaryExpression(ref Token* pt, bool afterParenType = false) { auto t = pt; switch (t.value) { case TOK.plusPlus: case TOK.minusMinus: t = peek(t); if (!isUnaryExpression(t, afterParenType)) return false; break; case TOK.and: case TOK.mul: case TOK.min: case TOK.add: case TOK.not: case TOK.tilde: t = peek(t); if (!isCastExpression(t, afterParenType)) return false; break; case TOK.sizeof_: t = peek(t); if (t.value == TOK.leftParenthesis) { auto tk = peek(t); if (isTypeName(tk)) { if (tk.value != TOK.rightParenthesis) return false; t = peek(tk); break; } } if (!isUnaryExpression(t, afterParenType)) return false; break; case TOK._Alignof: t = peek(t); if (t.value != TOK.leftParenthesis) return false; t = peek(t); if (!isTypeName(t) || t.value != TOK.rightParenthesis) return false; break; default: // Compound literals are handled by cast and sizeof expressions, // so be content with just seeing a primary expression. if (!isPrimaryExpression(t)) return false; break; } pt = t; return true; } /******************************** * See if match for primary-expression. * Params: * pt = starting token, updated to one past end of constant-expression if true * Returns: * true if primary-expression */ private bool isPrimaryExpression(ref Token* pt) { auto t = pt; switch (t.value) { case TOK.identifier: case TOK.int32Literal: case TOK.uns32Literal: case TOK.int64Literal: case TOK.uns64Literal: case TOK.float32Literal: case TOK.float64Literal: case TOK.float80Literal: case TOK.imaginary32Literal: case TOK.imaginary64Literal: case TOK.imaginary80Literal: case TOK.string_: t = peek(t); break; case TOK.leftParenthesis: // ( expression ) if (!skipParens(t, &t)) return false; break; case TOK._Generic: t = peek(t); if (!skipParens(t, &t)) return false; break; default: return false; } pt = t; return true; } //} /******************************************************************************/ /********************************* More ***************************************/ //{ /************** * Declaration context */ enum LVL { global = 1, /// global parameter = 2, /// function parameter (declarations for function identifier-list) prototype = 4, /// function prototype local = 8, /// local member = 0x10, /// struct member } /// Types of declarator to parse enum DTR { xdirect = 1, /// C11 6.7.6 direct-declarator xabstract = 2, /// C11 6.7.7 abstract-declarator xparameter = 3, /// parameter declarator may be either direct or abstract } /// C11 6.7.1 Storage-class specifiers enum SCW : uint { xnone = 0, xtypedef = 1, xextern = 2, xstatic = 4, x_Thread_local = 8, xauto = 0x10, xregister = 0x20, // C11 6.7.4 Function specifiers xinline = 0x40, x_Noreturn = 0x80, } /// C11 6.7.3 Type qualifiers enum MOD : uint { xnone = 0, xconst = 1, xvolatile = 2, xrestrict = 4, x_Atomic = 8, } /********************************** * Aggregate for all the various specifiers */ struct Specifier { SCW scw; /// storage-class specifiers MOD mod; /// type qualifiers } /*********************** * Convert from C specifiers to D storage class * Params: * level = declaration context * specifier = specifiers, context, etc. * Returns: * corresponding D storage class */ StorageClass specifiersToSTC(LVL level, const ref Specifier specifier) { StorageClass stc; if (specifier.scw & SCW.x_Thread_local) { if (level == LVL.global) { if (specifier.scw & SCW.xextern) stc = AST.STC.extern_; } else if (level == LVL.local) { if (specifier.scw & SCW.xextern) stc = AST.STC.extern_; else if (specifier.scw & SCW.xstatic) stc = AST.STC.static_; } else if (level == LVL.member) { if (specifier.scw & SCW.xextern) stc = AST.STC.extern_; else if (specifier.scw & SCW.xstatic) stc = AST.STC.static_; } } else { if (level == LVL.global) { if (specifier.scw & SCW.xextern) stc = AST.STC.extern_ | AST.STC.gshared; else stc = AST.STC.gshared; } else if (level == LVL.local) { if (specifier.scw & SCW.xextern) stc = AST.STC.extern_ | AST.STC.gshared; else if (specifier.scw & SCW.xstatic) stc = AST.STC.gshared; } else if (level == LVL.member) { if (specifier.scw & SCW.xextern) stc = AST.STC.extern_ | AST.STC.gshared; else if (specifier.scw & SCW.xstatic) stc = AST.STC.gshared; } } return stc; } /*********************** * Return suitable D float type for C `long double` * Params: * flags = kind of float to return (real, imaginary, complex). * Returns: * corresponding D type */ private AST.Type realType(RTFlags flags) { if (long_doublesize == AST.Type.tfloat80.size()) { // On GDC and LDC, D `real` types map to C `long double`, so never // return a double type when real.sizeof == double.sizeof. final switch (flags) { case RTFlags.realfloat: return AST.Type.tfloat80; case RTFlags.imaginary: return AST.Type.timaginary80; case RTFlags.complex: return AST.Type.tcomplex80; } } else { final switch (flags) { case RTFlags.realfloat: return long_doublesize == 8 ? AST.Type.tfloat64 : AST.Type.tfloat80; case RTFlags.imaginary: return long_doublesize == 8 ? AST.Type.timaginary64 : AST.Type.timaginary80; case RTFlags.complex: return long_doublesize == 8 ? AST.Type.tcomplex64 : AST.Type.tcomplex80; } } } /************** * Flags for realType */ private enum RTFlags { realfloat, imaginary, complex, } /******************** * C11 6.4.2.2 Create declaration to predefine __func__ * `static const char __func__[] = " function-name ";` * Params: * loc = location for this declaration * id = identifier of function * Returns: * statement representing the declaration of __func__ */ private AST.Statement createFuncName(Loc loc, Identifier id) { const fn = id.toString(); // function-name auto efn = new AST.StringExp(loc, fn, fn.length, 1, 'c'); auto ifn = new AST.ExpInitializer(loc, efn); auto lenfn = new AST.IntegerExp(loc, fn.length + 1, AST.Type.tuns32); // +1 for terminating 0 auto tfn = new AST.TypeSArray(AST.Type.tchar, lenfn); efn.type = tfn.immutableOf(); efn.committed = 1; auto sfn = new AST.VarDeclaration(loc, tfn, Id.__func__, ifn, STC.gshared | STC.immutable_); auto e = new AST.DeclarationExp(loc, sfn); return new AST.ExpStatement(loc, e); } /************************ * After encountering an error, scan forward until a right brace or ; is found * or the end of the file. */ void panic() { while (token.value != TOK.rightCurly && token.value != TOK.semicolon && token.value != TOK.endOfFile) nextToken(); } /************************** * Apply `const` to a type. * Params: * t = type to add const to * Returns: * resulting type */ private AST.Type toConst(AST.Type t) { // `const` is always applied to the return type, not the // type function itself. if (auto tf = t.isTypeFunction()) tf.next = tf.next.addSTC(STC.const_); else t = t.addSTC(STC.const_); return t; } //} }
D
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE 273 54 4 0 46 48 -33.5 151.300003 1769 6 6 1 intrusives, basalt 298.700012 68.4000015 2.9000001 130.600006 23 28 -38.4000015 144.300003 138 4.80000019 4.80000019 0.8 sediments, limestone 292.5 65.5 1.60000002 262.700012 34 39 -38.7999992 143.399994 7097 2.5 2.5 1 sediments, red-brown clays 264.399994 75 15.6000004 0 2 65 -8.80000019 126.699997 1206 10.3999996 18 0.380952381 extrusives, intrusives 346 61 9 41.2000008 35 100 -31.3999996 138.600006 1170 13 15 0.2 sediments 333 45 9 16.5 35 100 -30.3999996 139.399994 1161 17 18 0.2 sediments, tillite 317 57 5 200 35 100 -30.5 139.300003 1165 9 10 0.2 sediments, redbeds 329 58 25 4.0999999 35 100 -30.2000008 139 1166 41.5999985 45.5999985 0.2 sediments, sandstone, tillite 349.5 78.1999969 4.69999981 999.900024 5 35 -36.0999985 149.100006 1153 6.0999999 7.5999999 0.366666667 sediments, weathered volcanics 223 26 13 14.8000002 35 100 -30.2999992 139.5 1157 26 26 0.2 extrusives 320 63 9 15.5 34 65 -38 145.5 1854 16 16 0.451612903 extrusives 317 63 14 16 23 56 -32.5 151 1840 20 20 0.727272727 extrusives, basalts 302.700012 66.8000031 6.80000019 35 34 65 -38 145.5 1819 10.8000002 12.1000004 0.451612903 extrusives 305 73 17 29 23 56 -42 147 1821 25 29 0.727272727 extrusives, basalts 275.5 71.0999985 3.5 45.5 33 36 -31.7000008 150.199997 1891 4.80000019 4.80000019 1 extrusives 236.600006 78.5 0 7.5 0 35 -17.2000008 131.5 1894 0 0 0.314285714 sediments, red mudstones 274 66 27.6000004 8.60000038 25 65 -41.2999992 145.899994 1873 39.7999992 46.9000015 0.575 intrusives, granite 321 64 6 27.5 25 65 -35.5999985 137.5 1874 10 11 0.575 sediments 294 75 11 7 25 65 -41.0999985 146.100006 1871 16.2999992 18.8999996 0.575 sediments, sandstone 315 66 10.5 18 25 65 -41 145.5 1872 18.2000008 19.6000004 0.575 extrusives, sediments 260 78 9 25 22 25 -27 152.199997 1858 8 12 0.333333333 extrusives, intrusives 295.100006 74.0999985 5.19999981 0 23 35 -27 143 1971 6.5999999 6.5999999 0.916666667 sediments, weathered 298 58.7999992 2.4000001 0 35 65 -27 141.5 1972 3.79999995 3.79999995 0.433333333 sediments, weathered 294.799988 74.1999969 3.0999999 38.2000008 20 25 -28.2000008 153 1970 4.0999999 4.0999999 0.2 extrusives, basalts 288.799988 81.1999969 3.4000001 140 16 29 -29 115 1939 4.5 4.5 0.384615385 sediments 310.899994 68.5 0 0 40 60 -35 150 1927 5.19999981 5.19999981 0.4 extrusives, basalts 290.899994 77.4000015 0 0 20 25 -30 150 1925 4.0999999 4.0999999 0.2 extrusives, basalts 272.399994 68.9000015 0 0 25 35 -35 150 1926 4.30000019 4.30000019 1 extrusives, basalts
D
module common.bool3; import common.all; /** * bool3 b = true * bool3 b = bool3.unknown; * * b.setTrue * b.isTrue * */ final struct bool3 { private: enum : int { UNKNOWN = -1, FALSE = 0, TRUE = 1 } int value = UNKNOWN; nothrow: pragma(inline,true): this(int v) { value = v; } public: this(bool b) { value = b ? TRUE : FALSE; } static bool3 unknown() { return bool3(UNKNOWN); } bool isTrue() const { return value == TRUE; } bool isFalse() const { return value == FALSE; } bool isUnknown() const { return value == UNKNOWN; } bool isFalseOrUnknown() const { return value != TRUE; } // cast to bool (TRUE==true, FALSE or UNKNOWN==false) bool opCast() const { return isTrue(); } void setTrue() { value = TRUE; } void setFalse() { value = FALSE; } void setUnknown() { value = UNKNOWN; } }
D
module gfm.image.plane; // A Plane is a triplet of (base address + dimension + stride) // Simplest image import std.c.string, std.math; import gfm.math.smallvector; import gfm.image.image; import gfm.common.alignedbuffer; struct Plane(T) { nothrow: public { alias T element_t; this(T* data, vec2i dimension, ptrdiff_t stride) { _data = data; _dimension = dimension; _stride = stride; } this(T* data, vec2i dimension) { _data = data; _dimension = dimension; _stride = dimension.x * T.sizeof; } // create on a provided buffer whose lifetime should be this(AlignedBuffer!ubyte buffer, vec2i dimension) { size_t bytesNeeded = dimension.x * dimension.y * T.sizeof; buffer.resize(bytesNeeded); this(cast(T*)(buffer.ptr), dimension); } // return a sub-plane Plane subPlane(vec2i position, vec2i dimension) { assert(contains(position)); assert(contains(position + dimension - 1)); return Plane(address(position.x, position.y), dimension, _stride); } @property { T* ptr() { return cast(T*) _data; } const(T)* ptr() const { return cast(T*) _data; } vec2i dimension() const pure { return _dimension; } int width() const pure { return _dimension.x; } int height() const pure { return _dimension.y; } } T get(int i, int j) const pure { return *(address(i, j)); } void set(int i, int j, T e) { *(address(i, j)) = e; } bool isDense() const pure { return (_stride == _dimension.x * T.sizeof); } bool contains(vec2i point) { return (cast(uint)(point.x) < cast(uint)(_dimension.x)) && (cast(uint)(point.y) < cast(uint)(_dimension.y)); } // copy another plane of same type and dimension void copy(Plane source) { assert(dimension == source.dimension); if (isDense() && source.isDense()) { size_t bytes = dimension.x * dimension.y * T.sizeof; memcpy(_data, source._data, bytes); } else if(_stride == source._stride) { size_t bytes = _stride * dimension.y; memcpy(_data, source._data, bytes); } else { void* dest = _data; void* src = source._data; size_t lineSize = abs(_stride); for (size_t j = 0; j < dimension.y; ++j) { memcpy(dest, src, lineSize); dest += _stride; src += source._stride; } } } } private { vec2i _dimension; void* _data; ptrdiff_t _stride; // in bytes T* address(int i, int j) pure { return cast(T*)(_data + _stride * j + T.sizeof * i); } const(T)* address(int i, int j) const pure // :| where is inout(this)? { return cast(T*)(_data + _stride * j + T.sizeof * i); } } } static assert(isImage!(Plane!int)); static assert(isImage!(Plane!vec4ub)); unittest { { int[] b; b.length = 10 * 10; b[] = 0; auto plane = Plane!int(b.ptr, vec2i(10, 5), 20 * int.sizeof); fillRect(plane, 1); assert(plane.dimension.x == 10); assert(plane.dimension.y == 5); for (int j = 0; j < 5; ++j) for (int i = 0; i < 10; ++i) assert(plane.get(i, j) == 1); for (int j = 0; j < 5; ++j) for (int i = 0; i < 10; ++i) { assert(b[i + (2 * j) * 10] == 1); assert(b[i + (2 * j + 1) * 10] == 0); } } }
D
// AUTOGENERATED BY GITVER, DO NOT MODIFY module inochi2d.ver; /** Inochi2D Version, autogenerated with gitver */ enum IN_VERSION = "v0.9.0"; // trans rights
D
/Users/Ronish/IdeaProjects/Trekr/Build/Intermediates/Previews/Trekr/Intermediates.noindex/Trekr.build/Debug-iphonesimulator/Trekr.build/Objects-normal/x86_64/Location.o : /Users/Ronish/IdeaProjects/Trekr/Trekr/Location.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Tip.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TrekrApp.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Locations.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/WorldView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TipsView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/_MapKit_SwiftUI.framework/Modules/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/os.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/DeveloperToolsSupport.framework/Modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Ronish/IdeaProjects/Trekr/Build/Intermediates/Previews/Trekr/Intermediates.noindex/Trekr.build/Debug-iphonesimulator/Trekr.build/Objects-normal/x86_64/Location~partial.swiftmodule : /Users/Ronish/IdeaProjects/Trekr/Trekr/Location.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Tip.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TrekrApp.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Locations.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/WorldView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TipsView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/_MapKit_SwiftUI.framework/Modules/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/os.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/DeveloperToolsSupport.framework/Modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Ronish/IdeaProjects/Trekr/Build/Intermediates/Previews/Trekr/Intermediates.noindex/Trekr.build/Debug-iphonesimulator/Trekr.build/Objects-normal/x86_64/Location~partial.swiftdoc : /Users/Ronish/IdeaProjects/Trekr/Trekr/Location.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Tip.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TrekrApp.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Locations.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/WorldView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TipsView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/_MapKit_SwiftUI.framework/Modules/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/os.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/DeveloperToolsSupport.framework/Modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/Ronish/IdeaProjects/Trekr/Build/Intermediates/Previews/Trekr/Intermediates.noindex/Trekr.build/Debug-iphonesimulator/Trekr.build/Objects-normal/x86_64/Location~partial.swiftsourceinfo : /Users/Ronish/IdeaProjects/Trekr/Trekr/Location.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Tip.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TrekrApp.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/Locations.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/WorldView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/TipsView.swift /Users/Ronish/IdeaProjects/Trekr/Trekr/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/_MapKit_SwiftUI.framework/Modules/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/os.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/DeveloperToolsSupport.framework/Modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/_MapKit_SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreData.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreLocation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UniformTypeIdentifiers.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CloudKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/MapKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/* TEST_OUTPUT: --- fail_compilation/diag9679.d(11): Error: variable diag9679.main.n only parameters or foreach declarations can be ref fail_compilation/diag9679.d(12): Error: variable diag9679.main.n storage class `auto` has no effect if type is not inferred, did you mean `scope`? --- */ void main() { if (ref n = 1) {} if (auto int n = 1) {} }
D
module world; float worldFunc() { return 1.0; }
D
/** * Handles operator overloading. * * Specification: $(LINK2 https://dlang.org/spec/operatoroverloading.html, Operator Overloading) * * Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 https://www.digitalmars.com, Walter Bright) * License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/opover.d, _opover.d) * Documentation: https://dlang.org/phobos/dmd_opover.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/opover.d */ module dmd.opover; import core.stdc.stdio; import dmd.aggregate; import dmd.aliasthis; import dmd.arraytypes; import dmd.astenums; import dmd.dclass; import dmd.declaration; import dmd.dscope; import dmd.dstruct; import dmd.dsymbol; import dmd.dtemplate; import dmd.errors; import dmd.expression; import dmd.expressionsem; import dmd.func; import dmd.globals; import dmd.hdrgen; import dmd.id; import dmd.identifier; import dmd.mtype; import dmd.statement; import dmd.tokens; import dmd.typesem; import dmd.visitor; /*********************************** * Determine if operands of binary op can be reversed * to fit operator overload. */ bool isCommutative(EXP op) { switch (op) { case EXP.add: case EXP.mul: case EXP.and: case EXP.or: case EXP.xor: // EqualExp case EXP.equal: case EXP.notEqual: // CmpExp case EXP.lessThan: case EXP.lessOrEqual: case EXP.greaterThan: case EXP.greaterOrEqual: return true; default: break; } return false; } /*********************************** * Get Identifier for operator overload. */ private Identifier opId(Expression e) { switch (e.op) { case EXP.uadd: return Id.uadd; case EXP.negate: return Id.neg; case EXP.tilde: return Id.com; case EXP.cast_: return Id._cast; case EXP.in_: return Id.opIn; case EXP.plusPlus: return Id.postinc; case EXP.minusMinus: return Id.postdec; case EXP.add: return Id.add; case EXP.min: return Id.sub; case EXP.mul: return Id.mul; case EXP.div: return Id.div; case EXP.mod: return Id.mod; case EXP.pow: return Id.pow; case EXP.leftShift: return Id.shl; case EXP.rightShift: return Id.shr; case EXP.unsignedRightShift: return Id.ushr; case EXP.and: return Id.iand; case EXP.or: return Id.ior; case EXP.xor: return Id.ixor; case EXP.concatenate: return Id.cat; case EXP.assign: return Id.assign; case EXP.addAssign: return Id.addass; case EXP.minAssign: return Id.subass; case EXP.mulAssign: return Id.mulass; case EXP.divAssign: return Id.divass; case EXP.modAssign: return Id.modass; case EXP.powAssign: return Id.powass; case EXP.leftShiftAssign: return Id.shlass; case EXP.rightShiftAssign: return Id.shrass; case EXP.unsignedRightShiftAssign: return Id.ushrass; case EXP.andAssign: return Id.andass; case EXP.orAssign: return Id.orass; case EXP.xorAssign: return Id.xorass; case EXP.concatenateAssign: return Id.catass; case EXP.equal: return Id.eq; case EXP.lessThan: case EXP.lessOrEqual: case EXP.greaterThan: case EXP.greaterOrEqual: return Id.cmp; case EXP.array: return Id.index; case EXP.star: return Id.opStar; default: assert(0); } } /*********************************** * Get Identifier for reverse operator overload, * `null` if not supported for this operator. */ private Identifier opId_r(Expression e) { switch (e.op) { case EXP.in_: return Id.opIn_r; case EXP.add: return Id.add_r; case EXP.min: return Id.sub_r; case EXP.mul: return Id.mul_r; case EXP.div: return Id.div_r; case EXP.mod: return Id.mod_r; case EXP.pow: return Id.pow_r; case EXP.leftShift: return Id.shl_r; case EXP.rightShift: return Id.shr_r; case EXP.unsignedRightShift:return Id.ushr_r; case EXP.and: return Id.iand_r; case EXP.or: return Id.ior_r; case EXP.xor: return Id.ixor_r; case EXP.concatenate: return Id.cat_r; default: return null; } } /******************************************* * Helper function to turn operator into template argument list */ Objects* opToArg(Scope* sc, EXP op) { /* Remove the = from op= */ switch (op) { case EXP.addAssign: op = EXP.add; break; case EXP.minAssign: op = EXP.min; break; case EXP.mulAssign: op = EXP.mul; break; case EXP.divAssign: op = EXP.div; break; case EXP.modAssign: op = EXP.mod; break; case EXP.andAssign: op = EXP.and; break; case EXP.orAssign: op = EXP.or; break; case EXP.xorAssign: op = EXP.xor; break; case EXP.leftShiftAssign: op = EXP.leftShift; break; case EXP.rightShiftAssign: op = EXP.rightShift; break; case EXP.unsignedRightShiftAssign: op = EXP.unsignedRightShift; break; case EXP.concatenateAssign: op = EXP.concatenate; break; case EXP.powAssign: op = EXP.pow; break; default: break; } Expression e = new StringExp(Loc.initial, EXPtoString(op)); e = e.expressionSemantic(sc); auto tiargs = new Objects(); tiargs.push(e); return tiargs; } // Try alias this on first operand private Expression checkAliasThisForLhs(AggregateDeclaration ad, Scope* sc, BinExp e) { if (!ad || !ad.aliasthis) return null; /* Rewrite (e1 op e2) as: * (e1.aliasthis op e2) */ if (isRecursiveAliasThis(e.att1, e.e1.type)) return null; //printf("att %s e1 = %s\n", Token::toChars(e.op), e.e1.type.toChars()); BinExp be = cast(BinExp)e.copy(); // Resolve 'alias this' but in case of assigment don't resolve properties yet // because 'e1 = e2' could mean 'e1(e2)' or 'e1() = e2' bool findOnly = (e.op == EXP.assign); be.e1 = resolveAliasThis(sc, e.e1, true, findOnly); if (!be.e1) return null; Expression result; if (be.op == EXP.concatenateAssign) result = be.op_overload(sc); else result = be.trySemantic(sc); return result; } // Try alias this on second operand private Expression checkAliasThisForRhs(AggregateDeclaration ad, Scope* sc, BinExp e) { if (!ad || !ad.aliasthis) return null; /* Rewrite (e1 op e2) as: * (e1 op e2.aliasthis) */ if (isRecursiveAliasThis(e.att2, e.e2.type)) return null; //printf("att %s e2 = %s\n", Token::toChars(e.op), e.e2.type.toChars()); BinExp be = cast(BinExp)e.copy(); be.e2 = resolveAliasThis(sc, e.e2, true); if (!be.e2) return null; Expression result; if (be.op == EXP.concatenateAssign) result = be.op_overload(sc); else result = be.trySemantic(sc); return result; } /************************************ * Operator overload. * Check for operator overload, if so, replace * with function call. * Params: * e = expression with operator * sc = context * pop = if not null, is set to the operator that was actually overloaded, * which may not be `e.op`. Happens when operands are reversed to * match an overload * Returns: * `null` if not an operator overload, * otherwise the lowered expression */ Expression op_overload(Expression e, Scope* sc, EXP* pop = null) { extern (C++) final class OpOverload : Visitor { alias visit = Visitor.visit; public: Scope* sc; EXP* pop; Expression result; extern (D) this(Scope* sc, EXP* pop) { this.sc = sc; this.pop = pop; } override void visit(Expression e) { assert(0); } override void visit(UnaExp e) { //printf("UnaExp::op_overload() (%s)\n", e.toChars()); if (e.e1.op == EXP.array) { ArrayExp ae = cast(ArrayExp)e.e1; ae.e1 = ae.e1.expressionSemantic(sc); ae.e1 = resolveProperties(sc, ae.e1); Expression ae1old = ae.e1; const(bool) maybeSlice = (ae.arguments.dim == 0 || ae.arguments.dim == 1 && (*ae.arguments)[0].op == EXP.interval); IntervalExp ie = null; if (maybeSlice && ae.arguments.dim) { assert((*ae.arguments)[0].op == EXP.interval); ie = cast(IntervalExp)(*ae.arguments)[0]; } while (true) { if (ae.e1.op == EXP.error) { result = ae.e1; return; } Expression e0 = null; Expression ae1save = ae.e1; ae.lengthVar = null; Type t1b = ae.e1.type.toBasetype(); AggregateDeclaration ad = isAggregate(t1b); if (!ad) break; if (search_function(ad, Id.opIndexUnary)) { // Deal with $ result = resolveOpDollar(sc, ae, &e0); if (!result) // op(a[i..j]) might be: a.opSliceUnary!(op)(i, j) goto Lfallback; if (result.op == EXP.error) return; /* Rewrite op(a[arguments]) as: * a.opIndexUnary!(op)(arguments) */ Expressions* a = ae.arguments.copy(); Objects* tiargs = opToArg(sc, e.op); result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opIndexUnary, tiargs); result = new CallExp(e.loc, result, a); if (maybeSlice) // op(a[]) might be: a.opSliceUnary!(op)() result = result.trySemantic(sc); else result = result.expressionSemantic(sc); if (result) { result = Expression.combine(e0, result); return; } } Lfallback: if (maybeSlice && search_function(ad, Id.opSliceUnary)) { // Deal with $ result = resolveOpDollar(sc, ae, ie, &e0); if (result.op == EXP.error) return; /* Rewrite op(a[i..j]) as: * a.opSliceUnary!(op)(i, j) */ auto a = new Expressions(); if (ie) { a.push(ie.lwr); a.push(ie.upr); } Objects* tiargs = opToArg(sc, e.op); result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opSliceUnary, tiargs); result = new CallExp(e.loc, result, a); result = result.expressionSemantic(sc); result = Expression.combine(e0, result); return; } // Didn't find it. Forward to aliasthis if (ad.aliasthis && !isRecursiveAliasThis(ae.att1, ae.e1.type)) { /* Rewrite op(a[arguments]) as: * op(a.aliasthis[arguments]) */ ae.e1 = resolveAliasThis(sc, ae1save, true); if (ae.e1) continue; } break; } ae.e1 = ae1old; // recovery ae.lengthVar = null; } e.e1 = e.e1.expressionSemantic(sc); e.e1 = resolveProperties(sc, e.e1); if (e.e1.op == EXP.error) { result = e.e1; return; } AggregateDeclaration ad = isAggregate(e.e1.type); if (ad) { Dsymbol fd = null; /* Rewrite as: * e1.opUnary!(op)() */ fd = search_function(ad, Id.opUnary); if (fd) { Objects* tiargs = opToArg(sc, e.op); result = new DotTemplateInstanceExp(e.loc, e.e1, fd.ident, tiargs); result = new CallExp(e.loc, result); result = result.expressionSemantic(sc); return; } // D1-style operator overloads, deprecated if (e.op != EXP.prePlusPlus && e.op != EXP.preMinusMinus) { auto id = opId(e); fd = search_function(ad, id); if (fd) { // @@@DEPRECATED_2.098@@@. // Deprecated in 2.088 // Make an error in 2.098 e.deprecation("`%s` is deprecated. Use `opUnary(string op)() if (op == \"%s\")` instead.", id.toChars(), EXPtoString(e.op).ptr); // Rewrite +e1 as e1.add() result = build_overload(e.loc, sc, e.e1, null, fd); return; } } // Didn't find it. Forward to aliasthis if (ad.aliasthis && !isRecursiveAliasThis(e.att1, e.e1.type)) { /* Rewrite op(e1) as: * op(e1.aliasthis) */ //printf("att una %s e1 = %s\n", EXPtoString(op).ptr, this.e1.type.toChars()); Expression e1 = new DotIdExp(e.loc, e.e1, ad.aliasthis.ident); UnaExp ue = cast(UnaExp)e.copy(); ue.e1 = e1; result = ue.trySemantic(sc); return; } } } override void visit(ArrayExp ae) { //printf("ArrayExp::op_overload() (%s)\n", ae.toChars()); ae.e1 = ae.e1.expressionSemantic(sc); ae.e1 = resolveProperties(sc, ae.e1); Expression ae1old = ae.e1; const(bool) maybeSlice = (ae.arguments.dim == 0 || ae.arguments.dim == 1 && (*ae.arguments)[0].op == EXP.interval); IntervalExp ie = null; if (maybeSlice && ae.arguments.dim) { assert((*ae.arguments)[0].op == EXP.interval); ie = cast(IntervalExp)(*ae.arguments)[0]; } while (true) { if (ae.e1.op == EXP.error) { result = ae.e1; return; } Expression e0 = null; Expression ae1save = ae.e1; ae.lengthVar = null; Type t1b = ae.e1.type.toBasetype(); AggregateDeclaration ad = isAggregate(t1b); if (!ad) { // If the non-aggregate expression ae.e1 is indexable or sliceable, // convert it to the corresponding concrete expression. if (isIndexableNonAggregate(t1b) || ae.e1.op == EXP.type) { // Convert to SliceExp if (maybeSlice) { result = new SliceExp(ae.loc, ae.e1, ie); result = result.expressionSemantic(sc); return; } // Convert to IndexExp if (ae.arguments.dim == 1) { result = new IndexExp(ae.loc, ae.e1, (*ae.arguments)[0]); result = result.expressionSemantic(sc); return; } } break; } if (search_function(ad, Id.index)) { // Deal with $ result = resolveOpDollar(sc, ae, &e0); if (!result) // a[i..j] might be: a.opSlice(i, j) goto Lfallback; if (result.op == EXP.error) return; /* Rewrite e1[arguments] as: * e1.opIndex(arguments) */ Expressions* a = ae.arguments.copy(); result = new DotIdExp(ae.loc, ae.e1, Id.index); result = new CallExp(ae.loc, result, a); if (maybeSlice) // a[] might be: a.opSlice() result = result.trySemantic(sc); else result = result.expressionSemantic(sc); if (result) { result = Expression.combine(e0, result); return; } } Lfallback: if (maybeSlice && ae.e1.op == EXP.type) { result = new SliceExp(ae.loc, ae.e1, ie); result = result.expressionSemantic(sc); result = Expression.combine(e0, result); return; } if (maybeSlice && search_function(ad, Id.slice)) { // Deal with $ result = resolveOpDollar(sc, ae, ie, &e0); if (result.op == EXP.error) { if (!e0 && !search_function(ad, Id.dollar)) { ae.loc.errorSupplemental("Aggregate declaration '%s' does not define 'opDollar'", ae.e1.toChars()); } return; } /* Rewrite a[i..j] as: * a.opSlice(i, j) */ auto a = new Expressions(); if (ie) { a.push(ie.lwr); a.push(ie.upr); } result = new DotIdExp(ae.loc, ae.e1, Id.slice); result = new CallExp(ae.loc, result, a); result = result.expressionSemantic(sc); result = Expression.combine(e0, result); return; } // Didn't find it. Forward to aliasthis if (ad.aliasthis && !isRecursiveAliasThis(ae.att1, ae.e1.type)) { //printf("att arr e1 = %s\n", this.e1.type.toChars()); /* Rewrite op(a[arguments]) as: * op(a.aliasthis[arguments]) */ ae.e1 = resolveAliasThis(sc, ae1save, true); if (ae.e1) continue; } break; } ae.e1 = ae1old; // recovery ae.lengthVar = null; } /*********************************************** * This is mostly the same as UnaryExp::op_overload(), but has * a different rewrite. */ override void visit(CastExp e) { //printf("CastExp::op_overload() (%s)\n", e.toChars()); AggregateDeclaration ad = isAggregate(e.e1.type); if (ad) { Dsymbol fd = null; /* Rewrite as: * e1.opCast!(T)() */ fd = search_function(ad, Id._cast); if (fd) { version (all) { // Backwards compatibility with D1 if opCast is a function, not a template if (fd.isFuncDeclaration()) { // Rewrite as: e1.opCast() result = build_overload(e.loc, sc, e.e1, null, fd); return; } } auto tiargs = new Objects(); tiargs.push(e.to); result = new DotTemplateInstanceExp(e.loc, e.e1, fd.ident, tiargs); result = new CallExp(e.loc, result); result = result.expressionSemantic(sc); return; } // Didn't find it. Forward to aliasthis if (ad.aliasthis && !isRecursiveAliasThis(e.att1, e.e1.type)) { /* Rewrite op(e1) as: * op(e1.aliasthis) */ if (auto e1 = resolveAliasThis(sc, e.e1, true)) { result = e.copy(); (cast(UnaExp)result).e1 = e1; result = result.op_overload(sc); return; } } } } override void visit(BinExp e) { //printf("BinExp::op_overload() (%s)\n", e.toChars()); Identifier id = opId(e); Identifier id_r = opId_r(e); Expressions args1; Expressions args2; int argsset = 0; AggregateDeclaration ad1 = isAggregate(e.e1.type); AggregateDeclaration ad2 = isAggregate(e.e2.type); if (e.op == EXP.assign && ad1 == ad2) { StructDeclaration sd = ad1.isStructDeclaration(); if (sd && (!sd.hasIdentityAssign || /* Do a blit if we can and the rvalue is something like .init, * where a postblit is not necessary. */ (sd.hasBlitAssign && !e.e2.isLvalue()))) { /* This is bitwise struct assignment. */ return; } } Dsymbol s = null; Dsymbol s_r = null; Objects* tiargs = null; if (e.op == EXP.plusPlus || e.op == EXP.minusMinus) { // Bug4099 fix if (ad1 && search_function(ad1, Id.opUnary)) return; } if (e.op != EXP.equal && e.op != EXP.notEqual && e.op != EXP.assign && e.op != EXP.plusPlus && e.op != EXP.minusMinus) { /* Try opBinary and opBinaryRight */ if (ad1) { s = search_function(ad1, Id.opBinary); if (s && !s.isTemplateDeclaration()) { e.e1.error("`%s.opBinary` isn't a template", e.e1.toChars()); result = ErrorExp.get(); return; } } if (ad2) { s_r = search_function(ad2, Id.opBinaryRight); if (s_r && !s_r.isTemplateDeclaration()) { e.e2.error("`%s.opBinaryRight` isn't a template", e.e2.toChars()); result = ErrorExp.get(); return; } if (s_r && s_r == s) // https://issues.dlang.org/show_bug.cgi?id=12778 s_r = null; } // Set tiargs, the template argument list, which will be the operator string if (s || s_r) { id = Id.opBinary; id_r = Id.opBinaryRight; tiargs = opToArg(sc, e.op); } } if (!s && !s_r) { // Try the D1-style operators, deprecated if (ad1 && id) { s = search_function(ad1, id); if (s && id != Id.assign) { // @@@DEPRECATED_2.098@@@. // Deprecated in 2.088 // Make an error in 2.098 if (id == Id.postinc || id == Id.postdec) e.deprecation("`%s` is deprecated. Use `opUnary(string op)() if (op == \"%s\")` instead.", id.toChars(), EXPtoString(e.op).ptr); else e.deprecation("`%s` is deprecated. Use `opBinary(string op)(...) if (op == \"%s\")` instead.", id.toChars(), EXPtoString(e.op).ptr); } } if (ad2 && id_r) { s_r = search_function(ad2, id_r); // https://issues.dlang.org/show_bug.cgi?id=12778 // If both x.opBinary(y) and y.opBinaryRight(x) found, // and they are exactly same symbol, x.opBinary(y) should be preferred. if (s_r && s_r == s) s_r = null; if (s_r) { // @@@DEPRECATED_2.098@@@. // Deprecated in 2.088 // Make an error in 2.098 e.deprecation("`%s` is deprecated. Use `opBinaryRight(string op)(...) if (op == \"%s\")` instead.", id_r.toChars(), EXPtoString(e.op).ptr); } } } if (s || s_r) { /* Try: * a.opfunc(b) * b.opfunc_r(a) * and see which is better. */ args1.setDim(1); args1[0] = e.e1; expandTuples(&args1); args2.setDim(1); args2[0] = e.e2; expandTuples(&args2); argsset = 1; MatchAccumulator m; if (s) { functionResolve(m, s, e.loc, sc, tiargs, e.e1.type, &args2); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) { result = ErrorExp.get(); return; } } FuncDeclaration lastf = m.lastf; if (s_r) { functionResolve(m, s_r, e.loc, sc, tiargs, e.e2.type, &args1); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) { result = ErrorExp.get(); return; } } if (m.count > 1) { // Error, ambiguous e.error("overloads `%s` and `%s` both match argument list for `%s`", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars()); } else if (m.last == MATCH.nomatch) { if (tiargs) goto L1; m.lastf = null; } if (e.op == EXP.plusPlus || e.op == EXP.minusMinus) { // Kludge because operator overloading regards e++ and e-- // as unary, but it's implemented as a binary. // Rewrite (e1 ++ e2) as e1.postinc() // Rewrite (e1 -- e2) as e1.postdec() result = build_overload(e.loc, sc, e.e1, null, m.lastf ? m.lastf : s); } else if (lastf && m.lastf == lastf || !s_r && m.last == MATCH.nomatch) { // Rewrite (e1 op e2) as e1.opfunc(e2) result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s); } else { // Rewrite (e1 op e2) as e2.opfunc_r(e1) result = build_overload(e.loc, sc, e.e2, e.e1, m.lastf ? m.lastf : s_r); } return; } L1: version (all) { // Retained for D1 compatibility if (isCommutative(e.op) && !tiargs) { s = null; s_r = null; if (ad1 && id_r) { s_r = search_function(ad1, id_r); } if (ad2 && id) { s = search_function(ad2, id); if (s && s == s_r) // https://issues.dlang.org/show_bug.cgi?id=12778 s = null; } if (s || s_r) { /* Try: * a.opfunc_r(b) * b.opfunc(a) * and see which is better. */ if (!argsset) { args1.setDim(1); args1[0] = e.e1; expandTuples(&args1); args2.setDim(1); args2[0] = e.e2; expandTuples(&args2); } MatchAccumulator m; if (s_r) { functionResolve(m, s_r, e.loc, sc, tiargs, e.e1.type, &args2); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) { result = ErrorExp.get(); return; } } FuncDeclaration lastf = m.lastf; if (s) { functionResolve(m, s, e.loc, sc, tiargs, e.e2.type, &args1); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) { result = ErrorExp.get(); return; } } if (m.count > 1) { // Error, ambiguous e.error("overloads `%s` and `%s` both match argument list for `%s`", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars()); } else if (m.last == MATCH.nomatch) { m.lastf = null; } if (lastf && m.lastf == lastf || !s && m.last == MATCH.nomatch) { // Rewrite (e1 op e2) as e1.opfunc_r(e2) result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s_r); } else { // Rewrite (e1 op e2) as e2.opfunc(e1) result = build_overload(e.loc, sc, e.e2, e.e1, m.lastf ? m.lastf : s); // When reversing operands of comparison operators, // need to reverse the sense of the op if (pop) *pop = reverseRelation(e.op); } return; } } } Expression tempResult; if (!(e.op == EXP.assign && ad2 && ad1 == ad2)) // https://issues.dlang.org/show_bug.cgi?id=2943 { result = checkAliasThisForLhs(ad1, sc, e); if (result) { /* https://issues.dlang.org/show_bug.cgi?id=19441 * * alias this may not be used for partial assignment. * If a struct has a single member which is aliased this * directly or aliased to a ref getter function that returns * the mentioned member, then alias this may be * used since the object will be fully initialised. * If the struct is nested, the context pointer is considered * one of the members, hence the `ad1.fields.dim == 2 && ad1.vthis` * condition. */ if (e.op != EXP.assign || e.e1.op == EXP.type) return; if (ad1.fields.dim == 1 || (ad1.fields.dim == 2 && ad1.vthis)) { auto var = ad1.aliasthis.sym.isVarDeclaration(); if (var && var.type == ad1.fields[0].type) return; auto func = ad1.aliasthis.sym.isFuncDeclaration(); auto tf = cast(TypeFunction)(func.type); if (tf.isref && ad1.fields[0].type == tf.next) return; } tempResult = result; } } if (!(e.op == EXP.assign && ad1 && ad1 == ad2)) // https://issues.dlang.org/show_bug.cgi?id=2943 { result = checkAliasThisForRhs(ad2, sc, e); if (result) return; } // @@@DEPRECATED_2019-02@@@ // 1. Deprecation for 1 year // 2. Turn to error after if (tempResult) { // move this line where tempResult is assigned to result and turn to error when derecation period is over e.deprecation("Cannot use `alias this` to partially initialize variable `%s` of type `%s`. Use `%s`", e.e1.toChars(), ad1.toChars(), (cast(BinExp)tempResult).e1.toChars()); // delete this line when deprecation period is over result = tempResult; } } override void visit(EqualExp e) { //printf("EqualExp::op_overload() (%s)\n", e.toChars()); Type t1 = e.e1.type.toBasetype(); Type t2 = e.e2.type.toBasetype(); /* Array equality is handled by expressionSemantic() potentially * lowering to object.__equals(), which takes care of overloaded * operators for the element types. */ if ((t1.ty == Tarray || t1.ty == Tsarray) && (t2.ty == Tarray || t2.ty == Tsarray)) { return; } /* Check for class equality with null literal or typeof(null). */ if (t1.ty == Tclass && e.e2.op == EXP.null_ || t2.ty == Tclass && e.e1.op == EXP.null_) { e.error("use `%s` instead of `%s` when comparing with `null`", EXPtoString(e.op == EXP.equal ? EXP.identity : EXP.notIdentity).ptr, EXPtoString(e.op).ptr); result = ErrorExp.get(); return; } if (t1.ty == Tclass && t2.ty == Tnull || t1.ty == Tnull && t2.ty == Tclass) { // Comparing a class with typeof(null) should not call opEquals return; } /* Check for class equality. */ if (t1.ty == Tclass && t2.ty == Tclass) { ClassDeclaration cd1 = t1.isClassHandle(); ClassDeclaration cd2 = t2.isClassHandle(); if (!(cd1.classKind == ClassKind.cpp || cd2.classKind == ClassKind.cpp)) { /* Rewrite as: * .object.opEquals(e1, e2) */ Expression e1x = e.e1; Expression e2x = e.e2; /* The explicit cast is necessary for interfaces * https://issues.dlang.org/show_bug.cgi?id=4088 */ Type to = ClassDeclaration.object.getType(); if (cd1.isInterfaceDeclaration()) e1x = new CastExp(e.loc, e.e1, t1.isMutable() ? to : to.constOf()); if (cd2.isInterfaceDeclaration()) e2x = new CastExp(e.loc, e.e2, t2.isMutable() ? to : to.constOf()); result = new IdentifierExp(e.loc, Id.empty); result = new DotIdExp(e.loc, result, Id.object); result = new DotIdExp(e.loc, result, Id.eq); result = new CallExp(e.loc, result, e1x, e2x); if (e.op == EXP.notEqual) result = new NotExp(e.loc, result); result = result.expressionSemantic(sc); return; } } result = compare_overload(e, sc, Id.eq, null); if (result) { if (lastComma(result).op == EXP.call && e.op == EXP.notEqual) { result = new NotExp(result.loc, result); result = result.expressionSemantic(sc); } return; } /* Check for pointer equality. */ if (t1.ty == Tpointer || t2.ty == Tpointer) { /* Rewrite: * ptr1 == ptr2 * as: * ptr1 is ptr2 * * This is just a rewriting for deterministic AST representation * as the backend input. */ auto op2 = e.op == EXP.equal ? EXP.identity : EXP.notIdentity; result = new IdentityExp(op2, e.loc, e.e1, e.e2); result = result.expressionSemantic(sc); return; } /* Check for struct equality without opEquals. */ if (t1.ty == Tstruct && t2.ty == Tstruct) { auto sd = (cast(TypeStruct)t1).sym; if (sd != (cast(TypeStruct)t2).sym) return; import dmd.clone : needOpEquals; if (!global.params.fieldwise && !needOpEquals(sd)) { // Use bitwise equality. auto op2 = e.op == EXP.equal ? EXP.identity : EXP.notIdentity; result = new IdentityExp(op2, e.loc, e.e1, e.e2); result = result.expressionSemantic(sc); return; } /* Do memberwise equality. * https://dlang.org/spec/expression.html#equality_expressions * Rewrite: * e1 == e2 * as: * e1.tupleof == e2.tupleof * * If sd is a nested struct, and if it's nested in a class, it will * also compare the parent class's equality. Otherwise, compares * the identity of parent context through void*. */ if (e.att1 && t1.equivalent(e.att1)) return; if (e.att2 && t2.equivalent(e.att2)) return; e = cast(EqualExp)e.copy(); if (!e.att1) e.att1 = t1; if (!e.att2) e.att2 = t2; e.e1 = new DotIdExp(e.loc, e.e1, Id._tupleof); e.e2 = new DotIdExp(e.loc, e.e2, Id._tupleof); auto sc2 = sc.push(); sc2.flags |= SCOPE.noaccesscheck; result = e.expressionSemantic(sc2); sc2.pop(); /* https://issues.dlang.org/show_bug.cgi?id=15292 * if the rewrite result is same with the original, * the equality is unresolvable because it has recursive definition. */ if (result.op == e.op && (cast(EqualExp)result).e1.type.toBasetype() == t1) { e.error("cannot compare `%s` because its auto generated member-wise equality has recursive definition", t1.toChars()); result = ErrorExp.get(); } return; } /* Check for tuple equality. */ if (e.e1.op == EXP.tuple && e.e2.op == EXP.tuple) { auto tup1 = cast(TupleExp)e.e1; auto tup2 = cast(TupleExp)e.e2; size_t dim = tup1.exps.dim; if (dim != tup2.exps.dim) { e.error("mismatched tuple lengths, `%d` and `%d`", cast(int)dim, cast(int)tup2.exps.dim); result = ErrorExp.get(); return; } if (dim == 0) { // zero-length tuple comparison should always return true or false. result = IntegerExp.createBool(e.op == EXP.equal); } else { for (size_t i = 0; i < dim; i++) { auto ex1 = (*tup1.exps)[i]; auto ex2 = (*tup2.exps)[i]; auto eeq = new EqualExp(e.op, e.loc, ex1, ex2); eeq.att1 = e.att1; eeq.att2 = e.att2; if (!result) result = eeq; else if (e.op == EXP.equal) result = new LogicalExp(e.loc, EXP.andAnd, result, eeq); else result = new LogicalExp(e.loc, EXP.orOr, result, eeq); } assert(result); } result = Expression.combine(tup1.e0, tup2.e0, result); result = result.expressionSemantic(sc); return; } } override void visit(CmpExp e) { //printf("CmpExp:: () (%s)\n", e.toChars()); result = compare_overload(e, sc, Id.cmp, pop); } /********************************* * Operator overloading for op= */ override void visit(BinAssignExp e) { //printf("BinAssignExp::op_overload() (%s)\n", e.toChars()); if (e.e1.op == EXP.array) { ArrayExp ae = cast(ArrayExp)e.e1; ae.e1 = ae.e1.expressionSemantic(sc); ae.e1 = resolveProperties(sc, ae.e1); Expression ae1old = ae.e1; const(bool) maybeSlice = (ae.arguments.dim == 0 || ae.arguments.dim == 1 && (*ae.arguments)[0].op == EXP.interval); IntervalExp ie = null; if (maybeSlice && ae.arguments.dim) { assert((*ae.arguments)[0].op == EXP.interval); ie = cast(IntervalExp)(*ae.arguments)[0]; } while (true) { if (ae.e1.op == EXP.error) { result = ae.e1; return; } Expression e0 = null; Expression ae1save = ae.e1; ae.lengthVar = null; Type t1b = ae.e1.type.toBasetype(); AggregateDeclaration ad = isAggregate(t1b); if (!ad) break; if (search_function(ad, Id.opIndexOpAssign)) { // Deal with $ result = resolveOpDollar(sc, ae, &e0); if (!result) // (a[i..j] op= e2) might be: a.opSliceOpAssign!(op)(e2, i, j) goto Lfallback; if (result.op == EXP.error) return; result = e.e2.expressionSemantic(sc); if (result.op == EXP.error) return; e.e2 = result; /* Rewrite a[arguments] op= e2 as: * a.opIndexOpAssign!(op)(e2, arguments) */ Expressions* a = ae.arguments.copy(); a.insert(0, e.e2); Objects* tiargs = opToArg(sc, e.op); result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opIndexOpAssign, tiargs); result = new CallExp(e.loc, result, a); if (maybeSlice) // (a[] op= e2) might be: a.opSliceOpAssign!(op)(e2) result = result.trySemantic(sc); else result = result.expressionSemantic(sc); if (result) { result = Expression.combine(e0, result); return; } } Lfallback: if (maybeSlice && search_function(ad, Id.opSliceOpAssign)) { // Deal with $ result = resolveOpDollar(sc, ae, ie, &e0); if (result.op == EXP.error) return; result = e.e2.expressionSemantic(sc); if (result.op == EXP.error) return; e.e2 = result; /* Rewrite (a[i..j] op= e2) as: * a.opSliceOpAssign!(op)(e2, i, j) */ auto a = new Expressions(); a.push(e.e2); if (ie) { a.push(ie.lwr); a.push(ie.upr); } Objects* tiargs = opToArg(sc, e.op); result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opSliceOpAssign, tiargs); result = new CallExp(e.loc, result, a); result = result.expressionSemantic(sc); result = Expression.combine(e0, result); return; } // Didn't find it. Forward to aliasthis if (ad.aliasthis && !isRecursiveAliasThis(ae.att1, ae.e1.type)) { /* Rewrite (a[arguments] op= e2) as: * a.aliasthis[arguments] op= e2 */ ae.e1 = resolveAliasThis(sc, ae1save, true); if (ae.e1) continue; } break; } ae.e1 = ae1old; // recovery ae.lengthVar = null; } result = e.binSemanticProp(sc); if (result) return; // Don't attempt 'alias this' if an error occurred if (e.e1.type.ty == Terror || e.e2.type.ty == Terror) { result = ErrorExp.get(); return; } Identifier id = opId(e); Expressions args2; AggregateDeclaration ad1 = isAggregate(e.e1.type); Dsymbol s = null; Objects* tiargs = null; /* Try opOpAssign */ if (ad1) { s = search_function(ad1, Id.opOpAssign); if (s && !s.isTemplateDeclaration()) { e.error("`%s.opOpAssign` isn't a template", e.e1.toChars()); result = ErrorExp.get(); return; } } // Set tiargs, the template argument list, which will be the operator string if (s) { id = Id.opOpAssign; tiargs = opToArg(sc, e.op); } // Try D1-style operator overload, deprecated if (!s && ad1 && id) { s = search_function(ad1, id); if (s) { // @@@DEPRECATED_2.098@@@. // Deprecated in 2.088 // Make an error in 2.098 scope char[] op = EXPtoString(e.op).dup; op[$-1] = '\0'; // remove trailing `=` e.deprecation("`%s` is deprecated. Use `opOpAssign(string op)(...) if (op == \"%s\")` instead.", id.toChars(), op.ptr); } } if (s) { /* Try: * a.opOpAssign(b) */ args2.setDim(1); args2[0] = e.e2; expandTuples(&args2); MatchAccumulator m; if (s) { functionResolve(m, s, e.loc, sc, tiargs, e.e1.type, &args2); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) { result = ErrorExp.get(); return; } } if (m.count > 1) { // Error, ambiguous e.error("overloads `%s` and `%s` both match argument list for `%s`", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars()); } else if (m.last == MATCH.nomatch) { if (tiargs) goto L1; m.lastf = null; } // Rewrite (e1 op e2) as e1.opOpAssign(e2) result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s); return; } L1: result = checkAliasThisForLhs(ad1, sc, e); if (result || !s) // no point in trying Rhs alias-this if there's no overload of any kind in lhs return; result = checkAliasThisForRhs(isAggregate(e.e2.type), sc, e); } } if (pop) *pop = e.op; scope OpOverload v = new OpOverload(sc, pop); e.accept(v); return v.result; } /****************************************** * Common code for overloading of EqualExp and CmpExp */ private Expression compare_overload(BinExp e, Scope* sc, Identifier id, EXP* pop) { //printf("BinExp::compare_overload(id = %s) %s\n", id.toChars(), e.toChars()); AggregateDeclaration ad1 = isAggregate(e.e1.type); AggregateDeclaration ad2 = isAggregate(e.e2.type); Dsymbol s = null; Dsymbol s_r = null; if (ad1) { s = search_function(ad1, id); } if (ad2) { s_r = search_function(ad2, id); if (s == s_r) s_r = null; } Objects* tiargs = null; if (s || s_r) { /* Try: * a.opEquals(b) * b.opEquals(a) * and see which is better. */ Expressions args1 = Expressions(1); args1[0] = e.e1; expandTuples(&args1); Expressions args2 = Expressions(1); args2[0] = e.e2; expandTuples(&args2); MatchAccumulator m; if (0 && s && s_r) { printf("s : %s\n", s.toPrettyChars()); printf("s_r: %s\n", s_r.toPrettyChars()); } if (s) { functionResolve(m, s, e.loc, sc, tiargs, e.e1.type, &args2); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) return ErrorExp.get(); } FuncDeclaration lastf = m.lastf; int count = m.count; if (s_r) { functionResolve(m, s_r, e.loc, sc, tiargs, e.e2.type, &args1); if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors)) return ErrorExp.get(); } if (m.count > 1) { /* The following if says "not ambiguous" if there's one match * from s and one from s_r, in which case we pick s. * This doesn't follow the spec, but is a workaround for the case * where opEquals was generated from templates and we cannot figure * out if both s and s_r came from the same declaration or not. * The test case is: * import std.typecons; * void main() { * assert(tuple("has a", 2u) == tuple("has a", 1)); * } */ if (!(m.lastf == lastf && m.count == 2 && count == 1)) { // Error, ambiguous e.error("overloads `%s` and `%s` both match argument list for `%s`", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars()); } } else if (m.last == MATCH.nomatch) { m.lastf = null; } Expression result; if (lastf && m.lastf == lastf || !s_r && m.last == MATCH.nomatch) { // Rewrite (e1 op e2) as e1.opfunc(e2) result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s); } else { // Rewrite (e1 op e2) as e2.opfunc_r(e1) result = build_overload(e.loc, sc, e.e2, e.e1, m.lastf ? m.lastf : s_r); // When reversing operands of comparison operators, // need to reverse the sense of the op if (pop) *pop = reverseRelation(e.op); } return result; } /* * https://issues.dlang.org/show_bug.cgi?id=16657 * at this point, no matching opEquals was found for structs, * so we should not follow the alias this comparison code. */ if ((e.op == EXP.equal || e.op == EXP.notEqual) && ad1 == ad2) return null; Expression result = checkAliasThisForLhs(ad1, sc, e); return result ? result : checkAliasThisForRhs(isAggregate(e.e2.type), sc, e); } /*********************************** * Utility to build a function call out of this reference and argument. */ Expression build_overload(const ref Loc loc, Scope* sc, Expression ethis, Expression earg, Dsymbol d) { assert(d); Expression e; Declaration decl = d.isDeclaration(); if (decl) e = new DotVarExp(loc, ethis, decl, false); else e = new DotIdExp(loc, ethis, d.ident); e = new CallExp(loc, e, earg); e = e.expressionSemantic(sc); return e; } /*************************************** * Search for function funcid in aggregate ad. */ Dsymbol search_function(ScopeDsymbol ad, Identifier funcid) { Dsymbol s = ad.search(Loc.initial, funcid); if (s) { //printf("search_function: s = '%s'\n", s.kind()); Dsymbol s2 = s.toAlias(); //printf("search_function: s2 = '%s'\n", s2.kind()); FuncDeclaration fd = s2.isFuncDeclaration(); if (fd && fd.type.ty == Tfunction) return fd; TemplateDeclaration td = s2.isTemplateDeclaration(); if (td) return td; } return null; } /************************************** * Figure out what is being foreach'd over by looking at the ForeachAggregate. * Params: * sc = context * isForeach = true for foreach, false for foreach_reverse * feaggr = ForeachAggregate * sapply = set to function opApply/opApplyReverse, or delegate, or null. * Overload resolution is not done. * Returns: * true if successfully figured it out; feaggr updated with semantic analysis. * false for failed, which is an error. */ bool inferForeachAggregate(Scope* sc, bool isForeach, ref Expression feaggr, out Dsymbol sapply) { //printf("inferForeachAggregate(%s)\n", feaggr.toChars()); bool sliced; Type att = null; auto aggr = feaggr; while (1) { aggr = aggr.expressionSemantic(sc); aggr = resolveProperties(sc, aggr); aggr = aggr.optimize(WANTvalue); if (!aggr.type || aggr.op == EXP.error) return false; Type tab = aggr.type.toBasetype(); switch (tab.ty) { case Tarray: // https://dlang.org/spec/statement.html#foreach_over_arrays case Tsarray: // https://dlang.org/spec/statement.html#foreach_over_arrays case Ttuple: // https://dlang.org/spec/statement.html#foreach_over_tuples case Taarray: // https://dlang.org/spec/statement.html#foreach_over_associative_arrays break; case Tclass: case Tstruct: { AggregateDeclaration ad = (tab.ty == Tclass) ? (cast(TypeClass)tab).sym : (cast(TypeStruct)tab).sym; if (!sliced) { sapply = search_function(ad, isForeach ? Id.apply : Id.applyReverse); if (sapply) { // https://dlang.org/spec/statement.html#foreach_over_struct_and_classes // opApply aggregate break; } if (feaggr.op != EXP.type) { /* See if rewriting `aggr` to `aggr[]` will work */ Expression rinit = new ArrayExp(aggr.loc, feaggr); rinit = rinit.trySemantic(sc); if (rinit) // if it worked { aggr = rinit; sliced = true; // only try it once continue; } } } if (ad.search(Loc.initial, isForeach ? Id.Ffront : Id.Fback)) { // https://dlang.org/spec/statement.html#foreach-with-ranges // range aggregate break; } if (ad.aliasthis) { if (isRecursiveAliasThis(att, tab)) // error, circular alias this return false; aggr = resolveAliasThis(sc, aggr); continue; } return false; } case Tdelegate: // https://dlang.org/spec/statement.html#foreach_over_delegates if (aggr.op == EXP.delegate_) { sapply = (cast(DelegateExp)aggr).func; } break; case Terror: break; default: return false; } feaggr = aggr; return true; } assert(0); } /***************************************** * Given array of foreach parameters and an aggregate type, * find best opApply overload, * if any of the parameter types are missing, attempt to infer * them from the aggregate type. * Params: * fes = the foreach statement * sc = context * sapply = null or opApply or delegate * Returns: * false for errors */ bool inferApplyArgTypes(ForeachStatement fes, Scope* sc, ref Dsymbol sapply) { if (!fes.parameters || !fes.parameters.dim) return false; if (sapply) // prefer opApply { foreach (Parameter p; *fes.parameters) { if (p.type) { p.type = p.type.typeSemantic(fes.loc, sc); p.type = p.type.addStorageClass(p.storageClass); } } // Determine ethis for sapply Expression ethis; Type tab = fes.aggr.type.toBasetype(); if (tab.ty == Tclass || tab.ty == Tstruct) ethis = fes.aggr; else { assert(tab.ty == Tdelegate && fes.aggr.op == EXP.delegate_); ethis = (cast(DelegateExp)fes.aggr).e1; } /* Look for like an * int opApply(int delegate(ref Type [, ...]) dg); * overload */ if (FuncDeclaration fd = sapply.isFuncDeclaration()) { auto fdapply = findBestOpApplyMatch(ethis, fd, fes.parameters); if (fdapply) { // Fill in any missing types on foreach parameters[] matchParamsToOpApply(cast(TypeFunction)fdapply.type, fes.parameters, true); sapply = fdapply; return true; } return false; } return sapply !is null; } Parameter p = (*fes.parameters)[0]; Type taggr = fes.aggr.type; assert(taggr); Type tab = taggr.toBasetype(); switch (tab.ty) { case Tarray: case Tsarray: case Ttuple: if (fes.parameters.dim == 2) { if (!p.type) { p.type = Type.tsize_t; // key type p.type = p.type.addStorageClass(p.storageClass); } p = (*fes.parameters)[1]; } if (!p.type && tab.ty != Ttuple) { p.type = tab.nextOf(); // value type p.type = p.type.addStorageClass(p.storageClass); } break; case Taarray: { TypeAArray taa = cast(TypeAArray)tab; if (fes.parameters.dim == 2) { if (!p.type) { p.type = taa.index; // key type p.type = p.type.addStorageClass(p.storageClass); if (p.storageClass & STC.ref_) // key must not be mutated via ref p.type = p.type.addMod(MODFlags.const_); } p = (*fes.parameters)[1]; } if (!p.type) { p.type = taa.next; // value type p.type = p.type.addStorageClass(p.storageClass); } break; } case Tclass: case Tstruct: { AggregateDeclaration ad = (tab.ty == Tclass) ? (cast(TypeClass)tab).sym : (cast(TypeStruct)tab).sym; if (fes.parameters.dim == 1) { if (!p.type) { /* Look for a front() or back() overload */ Identifier id = (fes.op == TOK.foreach_) ? Id.Ffront : Id.Fback; Dsymbol s = ad.search(Loc.initial, id); FuncDeclaration fd = s ? s.isFuncDeclaration() : null; if (fd) { // Resolve inout qualifier of front type p.type = fd.type.nextOf(); if (p.type) { p.type = p.type.substWildTo(tab.mod); p.type = p.type.addStorageClass(p.storageClass); } } else if (s && s.isTemplateDeclaration()) { } else if (s && s.isDeclaration()) p.type = (cast(Declaration)s).type; else break; } break; } break; } case Tdelegate: if (!matchParamsToOpApply(cast(TypeFunction)tab.nextOf(), fes.parameters, true)) return false; break; default: break; // ignore error, caught later } return true; } /********************************************* * Find best overload match on fstart given ethis and parameters[]. * Params: * ethis = expression to use for `this` * fstart = opApply or foreach delegate * parameters = ForeachTypeList (i.e. foreach parameters) * Returns: * best match if there is one, null if error */ private FuncDeclaration findBestOpApplyMatch(Expression ethis, FuncDeclaration fstart, Parameters* parameters) { MOD mod = ethis.type.mod; MATCH match = MATCH.nomatch; FuncDeclaration fd_best; FuncDeclaration fd_ambig; overloadApply(fstart, (Dsymbol s) { auto f = s.isFuncDeclaration(); if (!f) return 0; // continue auto tf = cast(TypeFunction)f.type; MATCH m = MATCH.exact; if (f.isThis()) { if (!MODimplicitConv(mod, tf.mod)) m = MATCH.nomatch; else if (mod != tf.mod) m = MATCH.constant; } if (!matchParamsToOpApply(tf, parameters, false)) m = MATCH.nomatch; if (m > match) { fd_best = f; fd_ambig = null; match = m; } else if (m == match && m > MATCH.nomatch) { assert(fd_best); auto bestTf = fd_best.type.isTypeFunction(); assert(bestTf); // Found another overload with different attributes? // e.g. @system vs. @safe opApply bool ambig = tf.attributesEqual(bestTf); // opApplies with identical attributes could still accept // different function bodies as delegate // => different parameters or attributes if (ambig) { // Fetch the delegates that receive the function body auto tfBody = tf.parameterList[0].type.isTypeDelegate().next; assert(tfBody); auto bestBody = bestTf.parameterList[0].type.isTypeDelegate().next; assert(bestBody); // Ignore covariant matches, as later on it can be redone // after the opApply delegate has its attributes inferred. ambig = !(tfBody.covariant(bestBody) == Covariant.yes || bestBody.covariant(tfBody) == Covariant.yes); } if (ambig) fd_ambig = f; // not covariant, so ambiguous } return 0; // continue }); if (fd_ambig) { .error(ethis.loc, "`%s.%s` matches more than one declaration:\n`%s`: `%s`\nand:\n`%s`: `%s`", ethis.toChars(), fstart.ident.toChars(), fd_best.loc.toChars(), fd_best.type.toChars(), fd_ambig.loc.toChars(), fd_ambig.type.toChars()); return null; } return fd_best; } /****************************** * Determine if foreach parameters match opApply parameters. * Infer missing foreach parameter types from type of opApply delegate. * Params: * tf = type of opApply or delegate * parameters = foreach parameters * infer = infer missing parameter types * Returns: * true for match for this function * false for no match for this function */ private bool matchParamsToOpApply(TypeFunction tf, Parameters* parameters, bool infer) { enum nomatch = false; /* opApply/delegate has exactly one parameter, and that parameter * is a delegate that looks like: * int opApply(int delegate(ref Type [, ...]) dg); */ if (tf.parameterList.length != 1) return nomatch; /* Get the type of opApply's dg parameter */ Parameter p0 = tf.parameterList[0]; if (p0.type.ty != Tdelegate) return nomatch; TypeFunction tdg = cast(TypeFunction)p0.type.nextOf(); assert(tdg.ty == Tfunction); /* We now have tdg, the type of the delegate. * tdg's parameters must match that of the foreach arglist (i.e. parameters). * Fill in missing types in parameters. */ const nparams = tdg.parameterList.length; if (nparams == 0 || nparams != parameters.dim || tdg.parameterList.varargs != VarArg.none) return nomatch; // parameter mismatch foreach (u, p; *parameters) { Parameter param = tdg.parameterList[u]; if (p.type) { if (!p.type.equals(param.type)) return nomatch; } else if (infer) { p.type = param.type; p.type = p.type.addStorageClass(p.storageClass); } } return true; } /** * Reverse relational operator, eg >= becomes <= * Note this is not negation. * Params: * op = comparison operator to reverse * Returns: * reverse of op */ private EXP reverseRelation(EXP op) pure { switch (op) { case EXP.greaterOrEqual: op = EXP.lessOrEqual; break; case EXP.greaterThan: op = EXP.lessThan; break; case EXP.lessOrEqual: op = EXP.greaterOrEqual; break; case EXP.lessThan: op = EXP.greaterThan; break; default: break; } return op; }
D
import dnats.dnatsclient; import core.thread; import core.atomic; import std.stdio; import std.conv : to; import std.datetime.stopwatch; immutable uint messagesCount = 100000; int main() { auto clientAThread = new Thread({ auto client = new NATSClient(); // Connect with default settings: client.connect((in ServerInfo serverInfo){ for (uint i = 0; i < messagesCount; ++i) { client.publish("COMMON", "Hello! This is a message #" ~ to!string(i)); } }); Thread.sleep(dur!("msecs")(80)); // Wait for subscriber client.runIOLoop(()=>client.totalMessagesSent == messagesCount); writeln("Total messages count sent: ", client.totalMessagesSent); }); auto clientBThread = new Thread({ auto client = new NATSClient(); void onConnect(in ServerInfo serverInfo) { client.subscribe("COMMON", "SUBS1", (in NATSMessage msg){ assert(msg.msg == "Hello! This is a message #" ~ to!string(client.totalMessagesReceived - 1)); }); } client.connect(&onConnect); client.runIOLoop(()=>client.totalMessagesReceived == messagesCount); }); clientBThread.start(); clientAThread.start(); auto sw = StopWatch(AutoStart.yes); clientAThread.join(); clientBThread.join(); writeln("Took: ", sw.peek().total!"msecs", "ms"); return 0; }
D
instance MENU_MAIN(C_MENU_DEF) { backpic = MENU_BACK_PIC; musictheme = "SYS_Menu"; items[0] = "MENUITEM_MAIN_HEADLINE"; items[1] = "MENUITEM_MAIN_NEWGAME"; items[2] = "MENUITEM_MAIN_SAVEGAME_LOAD"; items[3] = "MENUITEM_MAIN_SAVEGAME_SAVE"; items[4] = "MENUITEM_MAIN_RESUME"; items[5] = "MENUITEM_MAIN_OPTIONS"; items[6] = "MENUITEM_MAIN_INTRO"; items[7] = "MENUITEM_MAIN_CREDITS"; items[8] = "MENUITEM_MAIN_EXIT"; defaultoutgame = 2; defaultingame = 3; flags = flags | MENU_SHOW_INFO; }; const int MENU_MAIN_DY = 550; const int MENU_MAIN_Y = 2500; instance MENUITEM_MAIN_NEWGAME(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Новая игра"; text[1] = "Начать новое приключение"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 0); dimx = 8100; dimy = 750; onselaction[0] = SEL_ACTION_CLOSE; onselaction_s[0] = "NEW_GAME"; flags = flags | IT_TXT_CENTER; }; instance MENUITEM_MAIN_SAVEGAME_LOAD(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Загрузка игры"; text[1] = "Продолжить сохраненную игру"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 1); dimx = 8100; dimy = 750; onselaction_s[0] = "MENU_SAVEGAME_LOAD"; onselaction[0] = SEL_ACTION_STARTMENU; flags = flags | IT_TXT_CENTER; }; instance MENUITEM_MAIN_SAVEGAME_SAVE(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Сохранение игры"; text[1] = "Сохранение текущей игры"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 2); dimx = 8100; dimy = 750; onselaction_s[0] = "MENU_SAVEGAME_SAVE"; onselaction[0] = SEL_ACTION_STARTMENU; flags = flags | IT_TXT_CENTER | IT_ONLY_IN_GAME; }; instance MENUITEM_MAIN_RESUME(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Продолжить"; text[1] = "Продолжить текущую игру"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 3); dimx = 8192; dimy = 750; onselaction[0] = SEL_ACTION_BACK; flags = flags | IT_TXT_CENTER | IT_ONLY_IN_GAME; }; instance MENUITEM_MAIN_OPTIONS(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Опции"; text[1] = "Опции графики, звука и игры"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 4); dimx = 8100; dimy = 750; onselaction[0] = SEL_ACTION_STARTMENU; onselaction_s[0] = "MENU_OPTIONS"; flags = flags | IT_TXT_CENTER; }; instance MENUITEM_MAIN_INTRO(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Заставка"; text[1] = "Проиграть начальный ролик"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 5); dimx = 8100; dimy = 750; onselaction[0] = SEL_ACTION_UNDEF; oneventaction[1] = showintro; flags = flags | IT_TXT_CENTER; }; instance MENUITEM_MAIN_CREDITS(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Титры"; text[1] = "Разработчики игры"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 6); dimx = 8100; dimy = 750; onselaction[0] = SEL_ACTION_UNDEF; oneventaction[1] = showcredits; flags = flags | IT_TXT_CENTER; }; instance MENUITEM_MAIN_EXIT(C_MENU_ITEM_DEF) { backpic = MENU_ITEM_BACK_PIC; text[0] = "Выйти из игры"; text[1] = "Выйти из Gothic II"; posx = 0; posy = MENU_MAIN_Y + (MENU_MAIN_DY * 7); dimx = 8100; dimy = 750; onselaction[0] = SEL_ACTION_STARTMENU; onselaction_s[0] = "MENU_LEAVE_GAME"; flags = flags | IT_TXT_CENTER; }; instance MENUITEM_MAIN_HEADLINE(C_MENU_ITEM_DEF) { backpic = "menu_gothic.tga"; posx = 250; posy = 500; dimx = 7900; dimy = 2300; alphamode = "BLEND"; alpha = 255; flags = flags | IT_TXT_CENTER; flags = flags & ~IT_SELECTABLE; }; func int showintro() { PlayVideo("intro.bik"); return 1; }; func int showcredits() { PlayVideo("g2_classic_credits.bik"); PlayVideo("credits2.bik"); return 1; };
D
module avr.util.delay; // version = AvrLibcDelay; /* Copyright (c) 2002, Marek Michalkiewicz Copyright (c) 2007 Joerg Wunsch All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holders nor the names of 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. */ /* $Id: delay_basic.h 2453 2014-10-19 08:18:11Z saaadhu $ */ /* Ported and adapted to D */ import ldc.attributes; struct BasicDelay { pragma(inline, true) @section(".progmem.data.inlines_basicdelay") : /** Delay loop using an 8-bit counter `count`, so up to 256 iterations are possible. (The value 256 would have to be passed as 0.) The loop executes three CPU cycles per iteration, not including the overhead the compiler needs to setup the counter register. Thus, at a CPU speed of 1 MHz, delays of up to 768 microseconds can be achieved. */ static void loop8(ubyte count) { import ldc.llvmasm : __asm; cast(void) __asm!ubyte(` 1: dec $0 brne 1b `, "=r,0", count); } /** Delay loop using a 16-bit counter `count`, so up to 65536 iterations are possible. (The value 65536 would have to be passed as 0.) The loop executes four CPU cycles per iteration, not including the overhead the compiler requires to setup the counter register pair. Thus, at a CPU speed of 1 MHz, delays of up to about 262.1 milliseconds can be achieved. */ static void loop16(ushort count) { import ldc.llvmasm : __asm; cast(void) __asm!ushort(` 1: sbiw $0,1 brne 1b `, "=w,0", count); } } enum KHz = 1000; enum MHz = 1000 * KHz; version (AvrLibcDelay) { extern (C) void __builtin_avr_delay_cycles(uint); } struct FrequencyDelay(int frequency) { pragma(inline, true) @section(".progmem.data.inlines_delay_" ~ frequency.stringof) : static void delayUsecs(double us)() { version (AvrLibcDelay) { enum ticks = cast(uint)(frequency / 1.0e6 * us); __builtin_avr_delay_cycles(ticks); } else { enum tmp1 = (frequency / 3.0e6) * us; enum tmp2 = (frequency / 4.0e6) * us; static if (tmp1 < 1) BasicDelay.loop8(1); else static if (tmp2 > 65535) delayMsecs!(us / 1000.0)(); else static if (tmp1 > 255) BasicDelay.loop16(cast(ushort) tmp2); else BasicDelay.loop8(cast(ubyte) tmp1); } } static void delayMsecs(double ms)() { version (AvrLibcDelay) { enum ticks = cast(uint)(frequency / 1.0e3 * ms); __builtin_avr_delay_cycles(ticks); } else { enum tmp = (frequency / 4.0e3) * ms; static if (tmp < 1.0) BasicDelay.loop8(1); else static if (tmp > 65535) { ushort ticks = cast(ushort) ms * 10; enum tens = (frequency / 4.0e3) / 10; while (ticks) { BasicDelay.loop16(cast(ushort) tens); ticks--; } } else BasicDelay.loop16(cast(ushort) tmp); } } }
D
module graphic.graphic; /* A simple graphic object, i.e., an instance of Cutbit that is drawn to * a certain position on a torbit. This is not about graphic sets from L1, * ONML etc., see level/gra_set.h for that. */ import std.conv; // rounding/chopping double to int import std.math; import std.string : format; // for assert error only import basics.alleg5; import basics.help; // rounding float to a good int import basics.topology; import graphic.cutbit; import graphic.torbit; class Graphic { private: Point _loc; bool _mirror; double _rot; int _xf; int _yf; public: const(Cutbit) cutbit; const(Topology) env; this(const(Cutbit) cb, const(Topology) to, Point newLoc = Point(0, 0)) { cutbit = cb; env = to; _loc = env ? env.wrap(newLoc) : newLoc; _rot = 0.0; } Graphic clone() const { return new Graphic(this); } this(in Graphic rhs) { assert (rhs); cutbit = rhs.cutbit; env = rhs.env; _loc = rhs.loc; _mirror = rhs._mirror; _rot = rhs._rot; _xf = rhs._xf; _yf = rhs._yf; } @property const(Albit) albit() const { return cutbit.albit; } // Phase these out eventually, replace with loc() below @property int x() const { return _loc.x; } @property int y() const { return _loc.y; } @property bool mirror () const { return _mirror; } @property double rotation() const { return _rot; } @property bool mirror (bool b) { return _mirror = b; } @property double rotation(double dbl) { return _rot = fmod(dbl,4);} // This looks dumb, why not make _xf/_yf public? Lixxie overrides these, // because it wants to choose the frame to draw even while const. // This is bad design, maybe the Lixxie shouldn't even inherit from this. @property int xf() const { return _xf; } @property int yf() const { return _yf; } @property int xf(in int i) { return _xf = i; } @property int yf(in int i) { return _yf = i; } @property Point loc() const { return _loc; } @property Point loc(in Point newLoc) { return _loc = env ? env.wrap(newLoc) : newLoc; } @property int xl() const { return (_rot == 0 || _rot == 2) ? cutbit.xl : cutbit.yl; } @property int yl() const { return (_rot == 0 || _rot == 2) ? cutbit.yl : cutbit.xl; } @property int xfs() const { return cutbit ? cutbit.xfs : 0; } @property int yfs() const { return cutbit ? cutbit.yfs : 0; } bool isLastFrame() const { return ! cutbit.frameExists(_xf + 1, _yf); } bool frameExists(in int which_xf, in int which_yf) const { return cutbit.frameExists(which_xf, which_yf); } void draw() const { assert (env, "can't draw, no target environment specified"); // This calls the virtual xf(), yf() instead of using _xf, _yf. // We want to allow Lixxie to override that with frame and ac. cutbit.draw(_loc, xf, yf, _mirror, _rot); } // Ignore (Topology env) and mirr/rotat; and blit immediately. // Only used for mouse cursor and replay sign. void drawToCurrentAlbitNotTorbit() const { cutbit.drawToCurrentAlbitNotTorbit(_loc, _xf, _yf); } }
D
/Users/kimhyewon/Documents/Server/tennis/build/tennis.build/Debug/Leaf.build/Objects-normal/x86_64/Link.o : /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Argument.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Byte+Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Constants.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Context.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/HTMLEscape.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/LeafComponent.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/LeafError.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Link.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/List.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Node+Rendered.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/NSData+File.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Parameter.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem+Render.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem+Spawn.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/Buffer.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/BufferProtocol.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/BasicTag.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Tag.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/TagTemplate.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Else.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Embed.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Equal.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Export.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Extend.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/If.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Import.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Index.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Loop.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Raw.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Uppercased.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Node.framework/Modules/Node.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/PathIndexable.framework/Modules/PathIndexable.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Polymorphic.framework/Modules/Polymorphic.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/tennis.build/Debug/Leaf.build/Objects-normal/x86_64/Link~partial.swiftmodule : /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Argument.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Byte+Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Constants.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Context.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/HTMLEscape.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/LeafComponent.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/LeafError.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Link.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/List.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Node+Rendered.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/NSData+File.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Parameter.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem+Render.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem+Spawn.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/Buffer.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/BufferProtocol.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/BasicTag.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Tag.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/TagTemplate.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Else.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Embed.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Equal.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Export.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Extend.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/If.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Import.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Index.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Loop.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Raw.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Uppercased.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Node.framework/Modules/Node.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/PathIndexable.framework/Modules/PathIndexable.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Polymorphic.framework/Modules/Polymorphic.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/tennis.build/Debug/Leaf.build/Objects-normal/x86_64/Link~partial.swiftdoc : /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Argument.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Byte+Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Constants.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Context.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/HTMLEscape.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/LeafComponent.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/LeafError.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Link.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/List.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Node+Rendered.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/NSData+File.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Parameter.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem+Render.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem+Spawn.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Stem.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/Buffer.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Buffer/BufferProtocol.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/BasicTag.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Tag.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/TagTemplate.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Else.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Embed.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Equal.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Export.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Extend.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/If.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Import.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Index.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Loop.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Raw.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Uppercased.swift /Users/kimhyewon/Documents/Server/tennis/Packages/Leaf-1.0.3/Sources/Leaf/Tag/Models/Variable.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Node.framework/Modules/Node.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/PathIndexable.framework/Modules/PathIndexable.swiftmodule/x86_64.swiftmodule /Users/kimhyewon/Documents/Server/tennis/build/Debug/Polymorphic.framework/Modules/Polymorphic.swiftmodule/x86_64.swiftmodule
D
/Users/yinheng/Desktop/code/node/rs/demo/target/debug/build/proc-macro-error-1b50383bbefc2953/build_script_build-1b50383bbefc2953: /Users/yinheng/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-1.0.4/build.rs /Users/yinheng/Desktop/code/node/rs/demo/target/debug/build/proc-macro-error-1b50383bbefc2953/build_script_build-1b50383bbefc2953.d: /Users/yinheng/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-1.0.4/build.rs /Users/yinheng/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-1.0.4/build.rs:
D
module combindings.comptr; import combindings.glue; import core.sys.windows.windows; // Similar implementation to WRL ComPtr // https://docs.microsoft.com/en-us/cpp/cppcx/wrl/comptr-class?view=vs-2019 struct ComPtr( T : IUnknown, bool bStrong = true ) { alias InterfaceType = T; enum StrongRef = bStrong; ~this() { ptr_.ReleaseAndNull; } this( InterfaceType obj ) { ptr_ = obj; InternalAddRef(); } this( ref ComPtr obj ) { ptr_ = obj.ptr_; InternalAddRef(); } this( bool bNewStrong )( ref ComPtr!( InterfaceType, bNewStrong ) obj ) { static if( bStrong ) { static assert( bNewStrong, "Attempting to upgrade weak reference to strong, this is not supported." ); } ptr_ = obj.ptr_; InternalAddRef(); } this( NewType, bool bNewStrong )( ref ComPtr!( NewType, bNewStrong ) obj ) { static if( bStrong ) { static assert( bNewStrong, "Attempting to upgrade weak reference to strong, this is not supported." ); } QueryInterface( obj.ptr_, ptr_ ); InternalAddRef(); } auto As( NewType )() { return ComPtr!NewType( this ); } auto AsWeak( NewType )() { return ComPtr!( NewType, false )( this ); } bool Valid() const { return _ptr !is null; } static if( StrongRef ) { auto Release() { return ptr_.ReleaseAndNull(); } package void InternalAddRef() { if( Valid() ) ptr_.AddRef; } } else { auto Release() { _ptr = null; return 0; } package void InternalAddRef() { } } package InterfaceType ptr_; alias ptr_ this; } alias ComPtrWeak = PartialRight!( ComPtr, false );
D
// Written in the D programming language. /** This module provides logging utilities. Use Log class static methods. Synopsis: ---- import dlangui.core.logger; // setup: // use stderror for logging setStderrLogger(); // set log level setLogLevel(LogLeve.Debug); // usage: // log debug message Log.d("mouse clicked at ", x, ",", y); // log error message Log.e("exception while reading file", e); ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module dlangui.core.logger; import std.stdio; import std.datetime : SysTime, Clock; /// Log levels enum LogLevel : int { /// Fatal error, cannot resume Fatal, /// Error Error, /// Warning Warn, /// Informational message Info, /// Debug message Debug, /// Tracing message Trace } /// Returns timestamp in milliseconds since 1970 UTC similar to Java System.currentTimeMillis() @property long currentTimeMillis() { return std.datetime.Clock.currStdTime / 10000; } /** Logging utilities Setup example: ---- // use stderror for logging setStderrLogger(); // set log level setLogLevel(LogLeve.Debug); ---- Logging example: ---- // log debug message Log.d("mouse clicked at ", x, ",", y); // log error message Log.e("exception while reading file", e); ---- */ import core.sync.mutex; class Log { static __gshared private LogLevel logLevel = LogLevel.Info; static __gshared private std.stdio.File * logFile = null; static __gshared private Mutex _mutex = null; static public @property Mutex mutex() { if (_mutex is null) _mutex = new Mutex(); return _mutex; } /// Redirects output to stdout static public void setStdoutLogger() { synchronized(mutex) { logFile = &stdout; } } /// Redirects output to stderr static public void setStderrLogger() { synchronized(mutex) { logFile = &stderr; } } /// Redirects output to file static public void setFileLogger(File * file) { synchronized(mutex) { if (logFile !is null && logFile != &stdout && logFile != &stderr) { logFile.close(); destroy(logFile); logFile = null; } logFile = file; if (logFile !is null) logFile.writeln("DlangUI log file"); } } /// Sets log level (one of LogLevel) static public void setLogLevel(LogLevel level) { synchronized(mutex) { logLevel = level; i("Log level changed to ", level); } } /// Log level to name helper function static public string logLevelName(LogLevel level) { switch (level) with(LogLevel) { case Fatal: return "F"; case Error: return "E"; case Warn: return "W"; case Info: return "I"; case Debug: return "D"; case Trace: return "V"; default: return "?"; } } /// Log message with arbitrary log level static public void log(S...)(LogLevel level, S args) { if (logLevel >= level && logFile !is null && logFile.isOpen) { SysTime ts = Clock.currTime(); logFile.writef("%04d-%02d-%02d %02d:%02d:%02d.%03d %s ", ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second, ts.fracSecs.split!("msecs").msecs, logLevelName(level)); logFile.writeln(args); logFile.flush(); } } /// Log verbose / trace message static public void v(S...)(S args) { synchronized(mutex) { if (logLevel >= LogLevel.Trace && logFile !is null && logFile.isOpen) log(LogLevel.Trace, args); } } /// Log debug message static public void d(S...)(S args) { synchronized(mutex) { if (logLevel >= LogLevel.Debug && logFile !is null && logFile.isOpen) log(LogLevel.Debug, args); } } /// Log info message static public void i(S...)(S args) { synchronized(mutex) { if (logLevel >= LogLevel.Info && logFile !is null && logFile.isOpen) log(LogLevel.Info, args); } } /// Log warn message static public void w(S...)(S args) { synchronized(mutex) { if (logLevel >= LogLevel.Warn && logFile !is null && logFile.isOpen) log(LogLevel.Warn, args); } } /// Log error message static public void e(S...)(S args) { synchronized(mutex) { if (logLevel >= LogLevel.Error && logFile !is null && logFile.isOpen) log(LogLevel.Error, args); } } /// Log fatal error message static public void f(S...)(S args) { synchronized(mutex) { if (logLevel >= LogLevel.Fatal && logFile !is null && logFile.isOpen) log(LogLevel.Fatal, args); } } } debug { private static __gshared bool _appShuttingDown = false; @property bool appShuttingDown() { return _appShuttingDown; } /// for debug purposes - sets shutdown flag to log widgets not destroyed in time. void setAppShuttingDownFlag() { _appShuttingDown = true; } } void onResourceDestroyWhileShutdown(string resourceName, string objname = null) { Log.e("Resource leak: destroying resource while shutdown! ", resourceName, " ", objname); }
D
module danode.serverconfig; import std.stdio : writeln, writefln; import std.string : chomp, format, split, strip, toLower, join, indexOf; import danode.filesystem : FileInfo; struct ServerConfig { string[string] data; this(FileInfo file, string def = "no") { string[] elements; foreach(line; split(file.content, "\n")){ if(chomp(strip(line)) != "" && line[0] != '#'){ elements = split(line, "="); string key = toLower(chomp(strip(elements[0]))); if(elements.length == 1){ data[key] = def; }else if(elements.length >= 2){ data[key] = toLower(chomp(strip(join(elements[1 .. $], "=")))); } } } } } unittest { import std.stdio : writefln; writefln("[FILE] %s", __FILE__); }
D
/* REQUIRED_ARGS: -wi TEST_OUTPUT: --- fail_compilation/cerrors.d(11): Error: C preprocessor directive `#if` is not supported, use `version` or `static if` fail_compilation/cerrors.d(11): Error: declaration expected, not `#` fail_compilation/cerrors.d(15): Warning: C preprocessor directive `#endif` is not supported fail_compilation/cerrors.d(15): Error: declaration expected, not `#` --- */ #if 1 void test(wchar_t u); #endif // https://issues.dlang.org/show_bug.cgi?id=23792 enum s1 = q{ #if 1 #include <test> };
D
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Utilities/FileIO.swift.o : /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionData.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Thread.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/URLEncoded.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/ServeCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/RoutesCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/BootCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Method.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionCache.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ResponseCodable.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/RequestCodable.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Middleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Middleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/FileMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/DateMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Response.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/AnyResponse.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServerConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/HTTPMethod+String.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Path.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Request+Session.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Session.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Application.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Function.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/VaporProvider.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Responder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/BasicResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ApplicationResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/PlaintextEncoder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/ParametersContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/QueryContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/EngineRouter.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/Server.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/RunningServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Error.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Logging/Logger+LogError.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Sessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/MemorySessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentCoders.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/HTTPStatus.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Redirect.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/SingleValueGet.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Config+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Services+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/Client.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/FoundationClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Content.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/Request.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /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/NIOOpenSSL.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/HTTP.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOTLS.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/Command.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/Console.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/Logging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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 /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/WebSocket.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/TemplateKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOSHA1/include/c_nio_sha1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.7.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rsa.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/c_nio_zlib.h /usr/local/Cellar/libressl/2.7.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ec.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.7.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.7.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bn.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.7.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.7.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.7.4/include/openssl/buffer.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.7.4/include/openssl/err.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.7.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslv.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509_vfy.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-ssl-support.git--2359138821295600615/module.modulemap /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 /Users/work/Projects/Hello/.build/checkouts/crypto.git-7980259129511365902/Sources/libbcrypt/include/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/Vapor.build/FileIO~partial.swiftmodule : /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionData.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Thread.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/URLEncoded.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/ServeCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/RoutesCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/BootCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Method.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionCache.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ResponseCodable.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/RequestCodable.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Middleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Middleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/FileMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/DateMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Response.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/AnyResponse.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServerConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/HTTPMethod+String.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Path.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Request+Session.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Session.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Application.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Function.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/VaporProvider.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Responder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/BasicResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ApplicationResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/PlaintextEncoder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/ParametersContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/QueryContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/EngineRouter.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/Server.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/RunningServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Error.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Logging/Logger+LogError.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Sessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/MemorySessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentCoders.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/HTTPStatus.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Redirect.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/SingleValueGet.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Config+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Services+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/Client.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/FoundationClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Content.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/Request.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /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/NIOOpenSSL.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/HTTP.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOTLS.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/Command.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/Console.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/Logging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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 /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/WebSocket.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/TemplateKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOSHA1/include/c_nio_sha1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.7.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rsa.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/c_nio_zlib.h /usr/local/Cellar/libressl/2.7.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ec.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.7.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.7.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bn.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.7.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.7.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.7.4/include/openssl/buffer.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.7.4/include/openssl/err.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.7.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslv.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509_vfy.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-ssl-support.git--2359138821295600615/module.modulemap /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 /Users/work/Projects/Hello/.build/checkouts/crypto.git-7980259129511365902/Sources/libbcrypt/include/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/Vapor.build/FileIO~partial.swiftdoc : /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionData.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Thread.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/URLEncoded.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/ServeCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/RoutesCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/BootCommand.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Method.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionCache.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ResponseCodable.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/RequestCodable.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Middleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Middleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/FileMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/DateMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Response.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/AnyResponse.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServerConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/SessionsConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentConfig.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/HTTPMethod+String.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Path.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Request+Session.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Session.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Application.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Function.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/VaporProvider.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Responder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/BasicResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/ApplicationResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/PlaintextEncoder.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/ParametersContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/QueryContainer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/EngineRouter.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/Server.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/NIOServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Server/RunningServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Error.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Logging/Logger+LogError.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Sessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/MemorySessions.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/ContentCoders.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/HTTPStatus.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Response/Redirect.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/SingleValueGet.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Config+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Services/Services+Default.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/Client.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Client/FoundationClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Router+Content.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Request/Request.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Vapor+View.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /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/NIOOpenSSL.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/HTTP.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOTLS.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/Command.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/Console.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/Logging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/URLEncodedForm.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Validation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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 /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/WebSocket.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/TemplateKit.swiftmodule /Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOSHA1/include/c_nio_sha1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.7.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rsa.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOZlib/include/c_nio_zlib.h /usr/local/Cellar/libressl/2.7.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ec.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.7.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.7.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bn.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.7.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.7.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.7.4/include/openssl/buffer.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.7.4/include/openssl/err.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.7.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslv.h /Users/work/Projects/Hello/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509_vfy.h /Users/work/Projects/Hello/.build/checkouts/swift-nio-ssl-support.git--2359138821295600615/module.modulemap /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 /Users/work/Projects/Hello/.build/checkouts/crypto.git-7980259129511365902/Sources/libbcrypt/include/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D
a member of any of about two dozen Native American peoples called `Pueblos' by the Spanish because they live in pueblos (villages built of adobe and rock) a city in Colorado to the south of Colorado Springs a communal village built by Indians in the southwestern United States
D
func void B_MM_AssessWarn() { if((self.aivar[AIV_MM_REAL_ID] == ID_ORCBF) && (ALLBIGFIGHTERSORC < 70)) { return; }; if(self.guild > GIL_SEPERATOR_ORC) { if(Npc_IsInState(self,ZS_MM_Attack)) { return; }; if(Wld_GetGuildAttitude(self.guild,other.guild) == ATT_FRIENDLY) { Npc_ClearAIQueue(self); Npc_SetTarget(self,victim); B_ClearPerceptions(self); AI_StartState(self,ZS_MM_Attack,0,""); return; }; return; }; if(other.guild < GIL_SEPERATOR_HUM) { return; }; if(Npc_GetHeightToNpc(self,other) > PERC_DIST_HEIGHT) { return; }; if(Npc_IsInState(self,ZS_MM_Attack)) { if(C_PredatorFoundPrey(self,other) && (self.aivar[AIV_MM_PRIORITY] == PRIO_EAT)) { Npc_ClearAIQueue(self); Npc_SetTarget(self,other); } else { other = Hlp_GetNpc(self.aivar[AIV_LASTTARGET]); }; return; }; if((self.guild == other.guild) && (self.aivar[AIV_MM_Packhunter] == TRUE)) { if((self.guild == GIL_WOLF) && (victim.guild == GIL_WOLF) && Npc_IsPlayer(victim)) { return; }; if(Npc_IsInState(other,ZS_MM_Attack)) { Npc_ClearAIQueue(self); Npc_SetTarget(self,victim); B_ClearPerceptions(self); AI_StartState(self,ZS_MM_Attack,0,""); return; }; if(Npc_IsInState(other,ZS_MM_ThreatenEnemy)) { AI_SetWalkMode(self,NPC_RUN); AI_GotoNpc(self,victim); return; }; }; };
D
/Users/jorisw/Documents/XCode/SnapchatClone/Build/Intermediates/SnapchatClone.build/Debug-iphoneos/SnapchatClone.build/Objects-normal/arm64/AddImageViewController.o : /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AppDelegate.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AddImageViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/SelectUserTableViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/SnapsTableViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AuthViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/Firebase/Core/Sources/Firebase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/Firebase/Core/Sources/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Build/Intermediates/SnapchatClone.build/Debug-iphoneos/SnapchatClone.build/Objects-normal/arm64/AddImageViewController~partial.swiftmodule : /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AppDelegate.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AddImageViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/SelectUserTableViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/SnapsTableViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AuthViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/Firebase/Core/Sources/Firebase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/Firebase/Core/Sources/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Build/Intermediates/SnapchatClone.build/Debug-iphoneos/SnapchatClone.build/Objects-normal/arm64/AddImageViewController~partial.swiftdoc : /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AppDelegate.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AddImageViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/SelectUserTableViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/SnapsTableViewController.swift /Users/jorisw/Documents/XCode/SnapchatClone/SnapchatClone/AuthViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/Firebase/Core/Sources/Firebase.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/jorisw/Documents/XCode/SnapchatClone/Pods/Firebase/Core/Sources/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/jorisw/Documents/XCode/SnapchatClone/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap
D
module startup; version(GNU) { static import gcc.attribute; // we need this to get the section, weak and alias attributes void wfi(){ version(ALLOW_WFI){ asm{ "wfi"; } } } } else version(LDC) { import ldc.llvmasm; void wfi(){ version(ALLOW_WFI){ __asm("wfi"); } } } import core.stdc.config; // we need this for c_ulong, so we can get symbols from the linker-script import core.stdc.stdint; // these are the types normally used on microcontrollers // Create convenience enums and aliases for the weak and alias attributes: enum isr_vector = gcc.attribute.attribute("section",".isr_vector.ro"); enum naked = gcc.attribute.attribute("naked"); enum weak = gcc.attribute.attribute("weak"); alias Tuple(A...) = A; alias rst = Tuple!(weak, gcc.attribute.attribute("alias", "defaultResetHandler")); alias exc = Tuple!(weak, gcc.attribute.attribute("alias", "defaultExceptionHandler")); // The following symbols are provided by our linker-script: extern(C) extern __gshared c_ulong _stack; // initial stack address extern(C) extern __gshared c_ulong _siccmram; // pointer to read-only data that needs to be copied to CCMRAM extern(C) extern __gshared c_ulong _sccmram; // start address of .ccmram section (somewhere within CCMRAM) extern(C) extern __gshared c_ulong _eccmram; // end address of .ccmram section (somewhere within CCMRAM) extern(C) extern __gshared c_ulong _sirelocated; // pointer to read-only data that needs to be copied to normal SRAM extern(C) extern __gshared c_ulong _srelocated; // start address of .relocated section (somewhere within SRAM) extern(C) extern __gshared c_ulong _erelocated; // end address of .relocated section (somewhere within SRAM) extern(C) extern __gshared c_ulong _szeroed; // start address of .zeroed section (somewhere within SRAM or CCMRAM) extern(C) extern __gshared c_ulong _ezeroed; // end address of .zeroed section (somewhere within SRAM or CCMRAM) // Create a convenience alias for our vector functions: //alias extern(C) const void function() VectorFunc; // currently, this won't work for me alias extern(C) const void *VectorFunc; // so I'm using a void* instead. BootRAM = 0xF108F85F; @rst extern(C) void Reset_Handler(); @exc extern(C) void NMI_Handler(); @exc extern(C) void HardFault_Handler(); @exc extern(C) void MemManage_Handler(); @exc extern(C) void BusFault_Handler(); @exc extern(C) void UsageFault_Handler(); @exc extern(C) void SVC_Handler(); @exc extern(C) void DebugMon_Handler(); @exc extern(C) void PendSV_Handler(); @exc extern(C) void SysTick_Handler(); @exc extern(C) void WWDG_IRQHandler(); @exc extern(C) void PVD_IRQHandler(); @exc extern(C) void TAMPER_IRQHandler(); @exc extern(C) void RTC_IRQHandler(); @exc extern(C) void FLASH_IRQHandler(); @exc extern(C) void RCC_IRQHandler(); @exc extern(C) void EXTI0_IRQHandler(); @exc extern(C) void EXTI1_IRQHandler(); @exc extern(C) void EXTI2_IRQHandler(); @exc extern(C) void EXTI3_IRQHandler(); @exc extern(C) void EXTI4_IRQHandler(); @exc extern(C) void DMA1_Channel1_IRQHandler(); @exc extern(C) void DMA1_Channel2_IRQHandler(); @exc extern(C) void DMA1_Channel3_IRQHandler(); @exc extern(C) void DMA1_Channel4_IRQHandler(); @exc extern(C) void DMA1_Channel5_IRQHandler(); @exc extern(C) void DMA1_Channel6_IRQHandler(); @exc extern(C) void DMA1_Channel7_IRQHandler(); @exc extern(C) void ADC1_IRQHandler(); @exc extern(C) void EXTI9_5_IRQHandler(); @exc extern(C) void TIM1_BRK_TIM15_IRQHandler(); @exc extern(C) void TIM1_UP_TIM16_IRQHandler(); @exc extern(C) void TIM1_TRG_COM_TIM17_IRQHandler(); @exc extern(C) void TIM1_CC_IRQHandler(); @exc extern(C) void TIM2_IRQHandler(); @exc extern(C) void TIM3_IRQHandler(); @exc extern(C) void TIM4_IRQHandler(); @exc extern(C) void I2C1_EV_IRQHandler(); @exc extern(C) void I2C1_ER_IRQHandler(); @exc extern(C) void I2C2_EV_IRQHandler(); @exc extern(C) void I2C2_ER_IRQHandler(); @exc extern(C) void SPI1_IRQHandler(); @exc extern(C) void SPI2_IRQHandler(); @exc extern(C) void USART1_IRQHandler(); @exc extern(C) void USART2_IRQHandler(); @exc extern(C) void USART3_IRQHandler(); @exc extern(C) void EXTI15_10_IRQHandler(); @exc extern(C) void RTC_Alarm_IRQHandler(); @exc extern(C) void CEC_IRQHandler(); @exc extern(C) void TIM6_DAC_IRQHandler(); @exc extern(C) void TIM7_IRQHandler(); @isr_vector VectorFunc[116] g_pfnVectors = [ cast(VectorFunc)&_stack, /* -16 $0000 Initial Stack Pointer */ &Reset_Handler, /* -15 $0004 Reset Vector */ &NMI_Handler, /* -14 $0008 Non Maskable Interrupt Vector */ &HardFault_Handler, /* -13 $000c Hard Fault Vector */ &MemManage_Handler, /* -12 $0010 Memory Protection Unit Fault Vector */ &BusFault_Handler, /* -11 $0014 Bus Fault Vector */ &UsageFault_Handler, /* -10 $0018 Usage Fault Vector */ cast(VectorFunc)0, /* -9 $001c Reserved */ cast(VectorFunc)0, /* -8 $0020 Reserved */ cast(VectorFunc)0, /* -7 $0024 Reserved */ cast(VectorFunc)0, /* -6 $0028 Reserved */ &SVC_Handler, /* -5 $002c SuperVisor Call Vector */ &DebugMon_Handler, /* -4 $0030 Debug Monitor Vector */ cast(VectorFunc)0, /* -3 $0034 Reserved */ &PendSV_Handler, /* -2 $0038 Pending SuperVisor Vector */ &SysTick_Handler, /* -1 $003c System Tick Vector */ &WWDG_IRQHandler, /* 0 $0040 Windowed WatchDog */ &PVD_IRQHandler, /* 1 $0044 PVD through EXTI Line detection */ &TAMPER_IRQHandler, /* 2 $0048 Tamper */ &RTC_IRQHandler, /* 3 $004c Real Time Clock */ &FLASH_IRQHandler, /* 4 $0050 FLASH */ &RCC_IRQHandler, /* 5 $0054 Reset and Clock Configuration */ &EXTI0_IRQHandler, /* 6 $0058 External Interrupt Line 0 */ &EXTI1_IRQHandler, /* 7 $005c External Interrupt Line 1 */ &EXTI2_IRQHandler, /* 8 $0060 External Interrupt Line 2 */ &EXTI3_IRQHandler, /* 9 $0064 External Interrupt Line 3 */ &EXTI4_IRQHandler, /* 10 $0068 EXTI Line4 */ &DMA1_Channel1_IRQHandler, /* 11 $006c DMA1 Channel 1 */ &DMA1_Channel2_IRQHandler, /* 12 $0070 DMA1 Channel 2 */ &DMA1_Channel3_IRQHandler, /* 13 $0074 DMA1 Channel 3 */ &DMA1_Channel4_IRQHandler, /* 14 $0078 DMA1 Channel 4 */ &DMA1_Channel5_IRQHandler, /* 15 $007c DMA1 Channel 5 */ &DMA1_Channel6_IRQHandler, /* 16 $0080 DMA1 Channel 6 */ &DMA1_Channel7_IRQHandler, /* 17 $0084 DMA1 Channel 7 */ &ADC1_IRQHandler, /* 18 $0088 ADC1 */ cast(VectorFunc)0, /* 19 $008c Reserved */ cast(VectorFunc)0, /* 20 $0090 Reserved */ cast(VectorFunc)0, /* 21 $0094 Reserved */ cast(VectorFunc)0, /* 22 $0098 Reserved */ &EXTI9_5_IRQHandler, /* 23 $009c External Line[9:5]s */ &TIM1_BRK_TIM15_IRQHandler, /* 24 $00a0 TIM1 Break and TIM15 */ &TIM1_UP_TIM16_IRQHandler, /* 25 $00a4 TIM1 Update and TIM16 */ &TIM1_TRG_COM_TIM17_IRQHandler, /* 26 $00a8 TIM1 Trigger and Commutation and TIM17 */ &TIM1_CC_IRQHandler, /* 27 $00ac TIM1 Capture Compare */ &TIM2_IRQHandler, /* 28 $00b0 TIM2 */ &TIM3_IRQHandler, /* 29 $00b4 TIM3 */ &TIM4_IRQHandler, /* 30 $00b8 TIM4 */ &I2C1_EV_IRQHandler, /* 31 $00bc I2C1 Event */ &I2C1_ER_IRQHandler, /* 32 $00c0 I2C1 Error */ &I2C2_EV_IRQHandler, /* 33 $00c4 I2C2 Event */ &I2C2_ER_IRQHandler, /* 34 $00c8 I2C2 Error */ &SPI1_IRQHandler, /* 35 $00cc SPI1 */ &SPI2_IRQHandler, /* 36 $00d0 SPI2 */ &USART1_IRQHandler, /* 37 $00d4 USART1 */ &USART2_IRQHandler, /* 38 $00d8 USART2 */ &USART3_IRQHandler, /* 39 $00dc USART3 */ &EXTI15_10_IRQHandler, /* 40 $00e0 External Interrupt Lines[15:10] */ &RTC_Alarm_IRQHandler, /* 41 $00e4 RTC Alarm (A and B) through EXTI Line */ &CEC_IRQHandler, /* 42 $00e8 CEC */ cast(VectorFunc)0, /* 43 $00ec Reserved */ cast(VectorFunc)0, /* 44 $00f0 Reserved */ cast(VectorFunc)0, /* 45 $00f4 Reserved */ cast(VectorFunc)0, /* 46 $00f8 Reserved */ cast(VectorFunc)0, /* 47 $00fc Reserved */ cast(VectorFunc)0, /* 48 $0100 Reserved */ cast(VectorFunc)0, /* 49 $0104 Reserved */ cast(VectorFunc)0, /* 50 $0108 Reserved */ cast(VectorFunc)0, /* 51 $010c Reserved */ cast(VectorFunc)0, /* 52 $0110 Reserved */ cast(VectorFunc)0, /* 53 $0114 Reserved */ &TIM6_DAC_IRQHandler, /* 54 $0118 TIM6 and DAC */ &TIM7_IRQHandler, /* 55 $011c TIM7 */ cast(VectorFunc)0, /* 56 $0120 Reserved */ cast(VectorFunc)0, /* 57 $0124 Reserved */ cast(VectorFunc)0, /* 58 $0128 Reserved */ cast(VectorFunc)0, /* 59 $012c Reserved */ cast(VectorFunc)0, /* 60 $0130 Reserved */ cast(VectorFunc)0, /* 61 $0134 Reserved */ cast(VectorFunc)0, /* 62 $0138 Reserved */ cast(VectorFunc)0, /* 63 $013c Reserved */ cast(VectorFunc)0, /* 64 $0140 Reserved */ cast(VectorFunc)0, /* 65 $0144 Reserved */ cast(VectorFunc)0, /* 66 $0148 Reserved */ cast(VectorFunc)0, /* 67 $014c Reserved */ cast(VectorFunc)0, /* 68 $0150 Reserved */ cast(VectorFunc)0, /* 69 $0154 Reserved */ cast(VectorFunc)0, /* 70 $0158 Reserved */ cast(VectorFunc)0, /* 71 $015c Reserved */ cast(VectorFunc)0, /* 72 $0160 Reserved */ cast(VectorFunc)0, /* 73 $0164 Reserved */ cast(VectorFunc)0, /* 74 $0168 Reserved */ cast(VectorFunc)0, /* 75 $016c Reserved */ cast(VectorFunc)0, /* 76 $0170 Reserved */ cast(VectorFunc)0, /* 77 $0174 Reserved */ cast(VectorFunc)0, /* 78 $0178 Reserved */ cast(VectorFunc)0, /* 79 $017c Reserved */ cast(VectorFunc)0, /* 80 $0180 Reserved */ cast(VectorFunc)0, /* 81 $0184 Reserved */ cast(VectorFunc)0, /* 82 $0188 Reserved */ cast(VectorFunc)0, /* 83 $018c Reserved */ cast(VectorFunc)0, /* 84 $0190 Reserved */ cast(VectorFunc)0, /* 85 $0194 Reserved */ cast(VectorFunc)0, /* 86 $0198 Reserved */ cast(VectorFunc)0, /* 87 $019c Reserved */ cast(VectorFunc)0, /* 88 $01a0 Reserved */ cast(VectorFunc)0, /* 89 $01a4 Reserved */ cast(VectorFunc)0, /* 90 $01a8 Reserved */ cast(VectorFunc)0, /* 91 $01ac Reserved */ cast(VectorFunc)0, /* 92 $01b0 Reserved */ cast(VectorFunc)0, /* 93 $01b4 Reserved */ cast(VectorFunc)0, /* 94 $01b8 Reserved */ cast(VectorFunc)0, /* 95 $01bc Reserved */ cast(VectorFunc)0, /* 96 $01c0 Reserved */ cast(VectorFunc)0, /* 97 $01c4 Reserved */ cast(VectorFunc)0, /* 98 $01c8 Reserved */ cast(VectorFunc)BootRAM, /* 99 $01cc */ ]; @weak extern(C) void LowLevelInit(); @weak extern(C) void SystemInit(); @weak extern(C) void __libc_init_array(); @weak extern(C) extern __gshared c_ulong SystemCoreClock; extern(C) void main(); void copyBlock(const(void) *aSource, void *aDestination, void *aDestinationEnd) { const(uint32_t) *s = cast(const(uint32_t) *)aSource; uint32_t *d = cast(uint32_t *)aDestination; uint32_t *e = cast(uint32_t *)aDestinationEnd; while(d < e) { *d++ = *s++; } } void zeroBlock(void *aDestination, void *aDestinationEnd) { uint32_t *d = cast(uint32_t *)aDestination; uint32_t *e = cast(uint32_t *)aDestinationEnd; while(d < e) { *d++ = 0; } } @naked extern(C) void defaultResetHandler() /* we can mark this naked, as it never returns and should never save any registers on the stack */ { uint32_t saveFreq; LowLevelInit(); SystemInit(); saveFreq = SystemCoreClock; copyBlock(&_siccmram, &_sccmram, &_eccmram); copyBlock(&_sirelocated, &_srelocated, &_erelocated); zeroBlock(&_szeroed, &_ezeroed); __libc_init_array(); if(&SystemCoreClock) SystemCoreClock = saveFreq; main(); defaultExceptionHandler(); } @naked extern(C) void defaultExceptionHandler() { while(true) { wfi(); } }
D
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwt.events.SelectionEvent; import dwt.widgets.Event; import dwt.widgets.Widget; import dwt.events.TypedEvent; import tango.text.convert.Format; import dwt.dwthelper.utils; /** * Instances of this class are sent as a result of * widgets being selected. * <p> * Note: The fields that are filled in depend on the widget. * </p> * * @see SelectionListener * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class SelectionEvent : TypedEvent { /** * The item that was selected. */ public Widget item; /** * Extra detail information about the selection, depending on the widget. * * <p><b>Sash</b><ul> * <li>{@link dwt.DWT#DRAG}</li> * </ul></p><p><b>ScrollBar and Slider</b><ul> * <li>{@link dwt.DWT#DRAG}</li> * <li>{@link dwt.DWT#HOME}</li> * <li>{@link dwt.DWT#END}</li> * <li>{@link dwt.DWT#ARROW_DOWN}</li> * <li>{@link dwt.DWT#ARROW_UP}</li> * <li>{@link dwt.DWT#PAGE_DOWN}</li> * <li>{@link dwt.DWT#PAGE_UP}</li> * </ul></p><p><b>Table and Tree</b><ul> * <li>{@link dwt.DWT#CHECK}</li> * </ul></p><p><b>Text</b><ul> * <li>{@link dwt.DWT#CANCEL}</li> * </ul></p><p><b>CoolItem and ToolItem</b><ul> * <li>{@link dwt.DWT#ARROW}</li> * </ul></p> */ public int detail; /** * The x location of the selected area. */ public int x; /** * The y location of selected area. */ public int y; /** * The width of selected area. */ public int width; /** * The height of selected area. */ public int height; /** * The state of the keyboard modifier keys at the time * the event was generated. */ public int stateMask; /** * The text of the hyperlink that was selected. * This will be either the text of the hyperlink or the value of its HREF, * if one was specified. * * @see dwt.widgets.Link#setText(String) * @since 3.1 */ public String text; /** * A flag indicating whether the operation should be allowed. * Setting this field to <code>false</code> will cancel the * operation, depending on the widget. */ public bool doit; //static final long serialVersionUID = 3976735856884987953L; /** * Constructs a new instance of this class based on the * information in the given untyped event. * * @param e the untyped event containing the information */ public this(Event e) { super(e); this.item = e.item; this.x = e.x; this.y = e.y; this.width = e.width; this.height = e.height; this.detail = e.detail; this.stateMask = e.stateMask; this.text = e.text; this.doit = e.doit; } /** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ public override String toString() { return Format( "{} item={} detail={} x={} y={} width={} height={} stateMask={} text={} doit={}}", super.toString[ 0 .. $-2 ], item, detail, x, y, width, height, stateMask, text, doit ); } }
D
module database.misc; import std.json; import std.traits, std.conv, std.format, std.array; import fullMessage, contactsList; public import database.sql : DbInt; struct AtTimestamp(T) { SignalTime ts; T val; void update(SignalTime newTs, T newVal) { if (newTs < ts) return; val = newVal; ts = newTs; } alias val this; }
D
/** なんちゃってXMLパーサ。CTFEコンパチ。 * Version: 0.0003(dmd2.069)(dmd2.070.0) * Date: 2016-Jan-21 23:46:06 * Authors: KUMA * License: CC0 */ /** Bugs: CTFE時には、Ns.uri 及び Ns.ns はnull。 これは CTFE 時に toHash/toEquals が呼び出されないから。 dmd2.068.2 $(OL $(LI std.typecos.Rebindable doesn't work at CTFE.) $(LI An AA doesn't execute toHash/opEquals at CTFE.) $(LI A lambda expression miss its outer environment at CTFE.) ) **/ module sworks.xml; import sworks.util.cached_buffer; import sworks.base.ctfe; debug import std.stdio : writeln; //============================================================================== /// XML 構造を表現するルートクラス abstract class AXML { /// XML文字列を返す。 @property @trusted pure abstract override string toString() const; /// deep duplication @property @trusted abstract AXML dup() const; /// 登場順に要素を巡回する。 int opApply(scope int delegate(AXML) dg) { return dg(this); } /// ditto int opApply(scope int delegate(in AXML) dg) const { return dg(this); } } /// 中身の文字列 class XMLText : AXML { /// 中身 string text; /// @trusted @nogc pure nothrow this(string t) { text = t; } // @property @trusted pure nothrow override string toString() const { return text; } // @property @trusted pure nothrow override XMLText dup() const { return new XMLText(text); } } /// 要素。 class XML : AXML { /// 要素の名前 /// XML_PARSER_PROPERTY.LOWER_CASE では全て小文字で格納される。 Ns name; /// 属性 Attribute attr; /// 子要素 AXML[] children; /// @trusted @nogc pure nothrow this() const { } /// @trusted @nogc pure nothrow this(in Ns n) { name = n; } /// @trusted @nogc pure nothrow this(in Ns n, Attribute a, AXML[] c = null) { name = n; attr = a; children = c; } // @property @trusted override XML dup() const { return new XML(name, attr.dup, dupChildren); } @property @trusted AXML[] dupChildren() const { auto nc = new AXML[children.length]; for (size_t i = 0; i < children.length; ++i) nc[i] = children[i].dup; return nc; } /// 登場順に要素を巡回する。 @trusted override int opApply(scope int delegate(AXML) dg) { auto result = dg(this); if (result) return result; for (size_t i = 0; i < children.length; ++i) { result = children[i].opApply(dg); if (result) break; } return result; } /// ditto @trusted override int opApply(scope int delegate(in AXML) dg) const { auto result = dg(this); if (result) return result; for (size_t i = 0; i < children.length; ++i) { result = children[i].opApply(dg); if (result) break; } return result; } // @property @trusted pure override string toString() const { import std.string : join; if (0 < children.length) { auto buf = new string[children.length+2]; auto n = name.toString; buf[0] = ["<", n, " ", attr.toString, ">"].join; buf[$-1] = ["</", n, ">"].join; foreach (i, child; children) buf[i+1] = child.toString; return buf.join("\n"); } else return ["<", name.toString, " ", attr.toString, " />"].join; } // @property @trusted pure nothrow private string getOpenTagString() { import std.string : join; return ["<", name.toString, ">"].join; } } //------------------------------------------------------------------------------ // /// 要素内で最初に出てくる文字列を返す。 @trusted string searchText(in AXML tag) { if (tag is null) return null; foreach (t; tag) if (auto tt = cast(XMLText)t) return tt.text; return null; } /// 要素内に含まれる全ての文字列を返す。 @trusted string[] searchAllText(in AXML tag) { if (tag is null) return null; import std.array : Appender; Appender!(string[]) buf; foreach (t; tag) if (auto tt = cast(XMLText)t) buf.put(tt.text); return buf.data; } //------------------------------------------------------------------------------ /** 名前空間つきのん。 $(UL $(LI opEquals に関して、$(BR) オペランドの両方の uri がある場合、 value と uri の両方が一致したときに true。$(BR) オペランドの少なくとも一方の uri がない場合、 value が一致したときに true。$(BR) 名前空間名に関しては比較してません。 ) $(LI toHash に関して。$(BR) hash値は core.internal.hashOf(value) の値を使っています。$(BR) uri や、ns はhash値に影響しません。$(BR) ) ) **/ struct Ns { string value; /// 名前空間名を含まない。 alias value this; string uri; /// ネームスペースの参照先のURI string ns; /// 名前空間名 @trusted @nogc pure nothrow { /// @property bool empty() const { return 0 == value.length; } /// bool opEquals(in string r) const { return value == r; } /// bool opEquals(in ref Ns r) const { return value == r.value && (r.uri.length == 0 || uri.length == 0 || uri == r.uri); } } /// value の hash を取る。(uriとnsは無関係) @property @trusted pure nothrow size_t toHash() const { import core.internal.hash : hashOf; return value.hashOf; } /// @property @trusted pure nothrow string toString() const { import std.string : join; if (0 < ns.length) { return [ns, ":", value].join; } else return value; } /// @property @trusted pure nothrow string toFullString() const { import std.string : join; return [ns, ":", value, ":", uri].join; } } /// suger @trusted @nogc pure nothrow Ns ns(in string v) { return Ns(v); } //------------------------------------------------------------------------------ // std.typecons.Rebindable が CTFE できないのでかわり。 struct Rebindable(T) if (is(T == class) || is(T == interface)) { import std.traits : Unqual; alias U = Unqual!T; private U stripped; @trusted pure nothrow @nogc { void opAssign(in U another) { stripped = cast(U)another; } void opAssign(typeof(this) another) { stripped = cast(U)another.stripped; } this(in U v){ opAssign(v); } ref inout(U) get() inout { return stripped; } } alias get this; } /** 属性 値は std.typecons.Rebindable によって格納されている。 値を変更する場合は新しい AttributeValue インスタンスで上書きすべきで、 取り出した AttributeValue インスタンスの中身を変えるべきでない。 Bugs: CTFE 時に問題アリアリ。 dmd2.068.2 $(OL $(LI std.typecos.Rebindable doesn't work at CTFE.) $(LI An AA doesn't execute toHash/opEquals at CTFE.) ) **/ struct Attribute { //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // BUG. // import std.typecons : Rebindable; // NO CTFE private alias A = Rebindable!(const AttributeValue); private A[Ns] _payload; // 中身 /// @trusted { /** shallow copy だが、値が const であることが保証されているため、 * deep copy 相当 */ pure Attribute dup() const { return Attribute(cast(A[Ns])_payload.dup); } /// 文字列として値を取り出す。 string opIndex(in Ns nn) const { if (auto pv = nn in _payload) return (*pv).toString; return null; } /// ditto string opIndex(in string nn) const { if (auto pv = Ns(nn) in _payload) return (*pv).toString; return null; } } /// 属性値を合成する。右辺値優先 @trusted pure void overwrite(in ref Attribute r) { foreach (key, val; r._payload) _payload[key] = A(val); } /// @trusted @nogc pure nothrow auto opBinaryRight(string OP : "in")(in string n) const { return Ns(n) in _payload; } /// ditto @trusted @nogc pure nothrow auto opBinaryRight(string OP : "in")(in Ns nn) const { return nn in _payload; } @trusted pure nothrow { /// 属性値を代入する。 auto opIndexAssign(in AttributeValue v, in Ns nn) { _payload[nn] = A(v); return v; } /// ditto auto opIndexAssign(in AttributeValue v, in string n) { _payload[Ns(n)] = A(v); return v; } } /// 属性値としての文字列を得る。 @trusted pure string toString() const { import std.array : Appender, join; Appender!(string[]) buf; foreach (key, one; _payload) buf.put([key.toString, "=\"", one.toString, "\""].join); return buf.data.join(" "); } /// CSSの中身っぽい文字列として得る。 @trusted pure string toCSSString() const { import std.array : Appender, join; Appender!(string[]) buf; foreach (key, one; _payload) buf.put([key.toString, ":", one.toString, ";"].join); return buf.data.join(" "); } @trusted pure { /// 値の中身(IntValue.valueとか)を得る。 /// エントリがなかった場合、null ではなく初期値が返るので注意。 auto get(T = StringValue, U = typeof(T.value)) (in Ns nn, lazy U def = U.init) const { static if (is(T == StringValue)) { if (auto pv = nn in _payload) return pv.toString; return def; } else { if (auto pv = nn in _payload) if (auto v = (cast(const(T))(*pv))) return v.value; return def; } } /// ditto auto get(T = StringValue, U = typeof(T.value)) (in string nn, lazy U def = U.init) const { static if (is(T == StringValue)) { if (auto pv = Ns(nn) in _payload) return pv.toString; return def; } else { if (auto pv = Ns(nn) in _payload) if (auto v = (cast(const(T))(*pv))) return v.value; return def; } } /// const(AttributeValue) 型のインスタンスとして得る。 /// エントリがなかった場合は null が返る。 auto getAs(T = AttributeValue)(in Ns nn) const if (!is(T == enum)) { if (auto pv = nn in _payload) return cast(const(T))(*pv); return null; } /// ditto auto getAs(T = AttributeValue)(in string nn) const if (!is(T == enum)) { if (auto pv = Ns(nn) in _payload) return cast(const(T))(*pv); return null; } /** 値を文字列として取り出し、std.conv.to によって enum へと変換する。 * エントリがなかった場合は enum の初期値が返る。 */ T getAs(T)(in string key) const if (is(T == enum)) { import std.conv : to; import std.string : toUpper; if (auto pv = Ns(key) in _payload) return pv.toString.toUpper.to!T; return T.init; } } /// 属性値を巡回する。 int opApply(scope int delegate(in AttributeValue) dg) const { int result = 0; foreach (one; _payload) { result = dg(one); if (result) break; } return result; } /// ditto int opApply(scope int delegate(in Ns, in AttributeValue) dg) const { int result = 0; foreach (key, one; _payload) { result = dg(key, one.get); if (result) break; } return result; } @property pure nothrow Ns[] keys() const { return _payload.keys; } } //------------------------------------------------------------------------------ /** 属性の値のルートクラス * * それぞれの中身の名前を value で統一しておくと、良いことがある。 * $(LINK #sworks.xml.Attribute.get) */ abstract class AttributeValue { /// 文字列表現 @property @trusted pure /// override string toString() const { return null; } } /// class IntValue : AttributeValue { /// int value; /// @trusted @nogc pure nothrow this(in int v) { value = v; } @property @trusted pure nothrow override string toString() const { import std.conv : to; return value.to!string; } } /// class UintValue : AttributeValue { /// uint value; /// @trusted @nogc pure nothrow this(in uint v) { value = v; } @property @trusted pure nothrow override string toString() const { import std.conv : to; return value.to!string; } } /// class FloatValue : AttributeValue { /// float value; /// @trusted @nogc pure nothrow this(in float v) { value = v; } /// $(LINK #sworks.base.ctfe.toFixefPointString)を使っているので注意。 @property @trusted pure nothrow override string toString() const { return value.toFixedPointString!8; } } /// class StringValue : AttributeValue { /// string value; /// @trusted @nogc pure nothrow this(in string s) { value = s; } @property @trusted @nogc pure nothrow override string toString() const { return value; } } /// class ClassValue : AttributeValue { /// string[] value; /// @trusted @nogc pure nothrow this(string[] cs) { value = cs; } @property @trusted pure nothrow override string toString() const { import std.string : join; return value.join(" "); } } /// class XMLValue : AttributeValue { const AXML value; /// /// @trusted @nogc pure nothrow this(in AXML v){ value = v; } @property @trusted pure override string toString() const { return value.toString; } } /// class ColorValue : UintValue { /// @trusted @nogc pure nothrow this(in uint v) { super(v); } @property @trusted pure nothrow override string toString() const { char[9] buf; buf[0] = '#'; for (size_t i = 0; i < 8; ++i) { auto b = 0xf & (value >> (i*4)); if (b < 10) buf[$-i-1] = cast(char)('0' + b); else buf[$-i-1] = cast(char)('A' + (b-10)); } return buf.idup; } } /// class LengthValue : FloatValue { /// @trusted @nogc pure nothrow: this(in float v) { super(v); } /// @trusted @nogc pure nothrow float toInch(in ref UnitLength ul) const { return value / ul.ppi; } /// @trusted @nogc pure nothrow int toPixel(in ref UnitLength) const { return cast(int)value; } } /// class InchValue : LengthValue { /// @trusted @nogc pure nothrow: this(in float v) { super(v); } // @trusted @nogc pure nothrow override float toInch(in ref UnitLength) const { return value; } // @trusted @nogc pure nothrow override int toPixel(in ref UnitLength ul) const { return cast(int)(value * ul.ppi); } } /// class EMValue : LengthValue { /// @trusted @nogc pure nothrow: this(in float v) { super(v); } // @trusted @nogc pure nothrow override float toInch(in ref UnitLength ul) const { return value * ul.em / ul.ppi; } // @trusted @nogc pure nothrow override int toPixel(in ref UnitLength ul) const { return cast(int)(value * ul.em); } } /// class EXValue : LengthValue { /// @trusted @nogc pure nothrow: this(in float v) { super(v); } // @trusted @nogc pure nothrow override float toInch(in ref UnitLength ul) const { return value * ul.ex / ul.ppi; } // @trusted @nogc pure nothrow override int toPixel(in ref UnitLength ul) const { return cast(int)(value * ul.ex); } } /// class PercentageValue : LengthValue { /// @trusted @nogc pure nothrow: this(in float v) { super(v); } // @trusted @nogc pure nothrow override float toInch(in ref UnitLength ul) const { return value * ul.size / ul.ppi; } // @trusted @nogc pure nothrow override int toPixel(in ref UnitLength ul) const { return cast(int)(value * ul.size); } } //------------------------------------------------------------------------------ /// 長さの取り扱い /// $(LINK http://www.w3.org/TR/css3-values/) struct UnitLength { float size = 100; /// base value for percentage value, in pixels. float em = 15; /// font size in pixel float ex = 15; /// font height in pixel float ppi = 90; /// userSpaceOnUse per inch. /// userSpaceOnUse may equal to pixel. } /// struct UnitHV { UnitLength h; /// UnitLength v; /// } //------------------------------------------------------------------------------ // // CSS // //------------------------------------------------------------------------------ /// $LINK2(http://www.w3.org/Style/CSS/, CSS)を格納する。 class CSS : XML { @trusted @nogc pure nothrow this(Ns n) {super(n);} /// @trusted @nogc pure nothrow this(Ns n, AXML[] s = null) { super(n); children = s; } // @property @trusted override CSS dup() const { return new CSS(name, dupChildren); } } /// CSSの一つのルールとその中身を表現する。 class CSSAttr : AXML { const(Attribute) attr; /// const(Rule) rule; /// @trusted @nogc pure nothrow this(in Attribute a, in Rule r){ attr = a; rule = r; } @property @trusted override CSSAttr dup() const { return cast(CSSAttr)this; } /// @property @trusted pure override string toString() const { import std.string : join; return [rule.toString, " { ", attr.toCSSString, " }"].join; } } /// CSSの適用ルール abstract class Rule { /// xml がルールに適合するとき戻り値が true abstract bool match(in ref XML xml, XML[] parents) const; /// 文字列表現 @property @trusted pure nothrow abstract override string toString() const; } /// 要素名でマッチ class NameRule : Rule { /// private const string name; /// @trusted @nogc pure nothrow: this(in string n){ name = n; } // override bool match(in ref XML xml, XML[] parents) const {return xml.name == name; } // @property @nogc pure nothrow override string toString() const { return name; } } /// id属性の値でマッチ class IdRule : Rule { private const string id; /// /// @trusted @nogc pure nothrow this(in string i){ id = i; } @trusted override bool match(in ref XML xml, XML[] parents) const { return xml.attr["id"] == id; } // @property @trusted pure nothrow override string toString() const { return "#" ~ id; } } /** class 属性の値でマッチ。 * * このルールを使う為には、class 属性の値が ClassValue である必要がある。 * (== xml.attr.getAs!ClassValue("class") が非nullである必要がある。) */ class ClassRule : Rule { /// private const string name; /// @trusted @nogc pure nothrow this(in string c){ name = c; } @trusted override bool match(in ref XML xml, XML[] parents) const { foreach (one; xml.attr.get!ClassValue("class")) if (one == name) return true; return false; } @property @trusted pure nothrow override string toString() const { return "." ~ name; } } /// 直上の親がルールに適合するかどうか。 class ParentRule : Rule { /// private const(Rule) rule; /// @trusted @nogc pure nothrow this(in Rule r){ rule = r; } @trusted override bool match(in ref XML xml, XML[] parents) const { return 0 < parents.length && rule.match(parents[$-1], parents[0..$-1]); } @property @trusted pure nothrow override string toString() const { return rule.toString ~ " > "; } } /// 遡った親がルールに適合するかどうか。 class AncestorRule : Rule { private const(Rule) rule; @trusted @nogc pure nothrow this(in Rule r){ rule = r; } @trusted override bool match(in ref XML xml, XML[] parents) const { for (size_t i = 0; i < parents.length; ++i) if (rule.match(parents[$-i-1], parents[0..$-i-1])) return true; return false; } @property @trusted pure nothrow override string toString() const { return rule.toString ~ " "; } } /// 全てのルールが適合するか。 class AndRule : Rule { /// private const(Rule)[] rules; /// @trusted @nogc pure nothrow this(const(Rule)[] r){ rules = r; } @trusted override bool match(in ref XML xml, XML[] parents) const { foreach (r; rules) if (!r.match(xml, parents)) return false; return true; } @property @trusted pure nothrow override string toString() const { import std.string : join; auto buf = new string[rules.length]; foreach (i, one; rules) buf[i] = one.toString; return buf.join; } } /// class OrRule : Rule { private const(Rule)[] rules; @trusted @nogc pure nothrow this(const(Rule)[] r){ rules = r; } @trusted override bool match(in ref XML xml, XML[] parents) const { foreach (r; rules) if (r.match(xml, parents)) return true; return false; } @property @trusted pure nothrow override string toString() const { import std.string : join; auto buf = new string[rules.length]; foreach (i, one; rules) buf[i] = one.toString; return buf.join; } } //============================================================================== //------------------------------------------------------------------------------ // // XMLのパーサ関連 // //------------------------------------------------------------------------------ //============================================================================== /// パーサの挙動を決定する。 enum XML_PARSER_PROPERTY { STANDARD = 0x00, /// LOWER_CASE = 0x01, /// 要素名と属性名を小文字で統一する。 OMITTABLE_CLOSETAG = 0x02, /// } /** もう少し細かいパーサの挙動を制御する。 style 属性のみの専用のパーサを設けている。 **/ class XMLParserInfo { XML current; /// 現在の要素が代入される。 XML parent; /// 親。 diveCopy によって代入される。 string[string] ns; /// namespace。diveCopy によって代入される。 /// @trusted @nogc pure nothrow this() const { } /// ditto @trusted pure nothrow this(string defns){ ns = ["": defns, "xmlns": ""]; } /// ditto @trusted @nogc pure nothrow this(string[string] v){ ns = v; } // @trusted @nogc pure nothrow private this(XML c, XML p, string[string] v) { current = c; parent = p; ns = v; } /** XML構造の入れ子を下る度に呼び出される。 この関数を override し、current.name に応じて戻り値の型を変えることで パーサの挙動を途中から変更できる。 HTMLの中に、inline SVGが登場するような場合、current.name == "svg" の場合は、SVGInfo を返すようにするとイイ感じになる。 この関数が呼ばれるタイミングでは、current.attrの中身は未解決。 ネームスペースのスコープの問題があるので、自身と同じ型で続けてパースを したい場合でもインスタンスを分けておくべき。 **/ @trusted pure XMLParserInfo dive(Ns n) { return new XMLParserInfo(new XML(n), current, ns.dup); } /** 継承した関数から呼び出す。 parent の値を設定し、nsのdupを代入してくれる。 Params: i = あたらしいパーサ c = 現在パース中のxml。 **/ @trusted pure protected XMLParserInfo diveCopyTo(XMLParserInfo i, XML c) { i.current = c; i.parent = current; i.ns = ns.dup; return i; } /** 属性パーサのカスタム用 継承クラスでこの関数を override することでパーサの挙動を変更する。 Params: buf = ここに読み取るべき文字列が入っている。 クォートに到達したら empty になる。 buf.peek でアクセスするとクォート以降の文字列も 読み取ってしまう。 この関数が呼び出される前後に buf.flush が呼ばれる。 name = 属性の名前 **/ @trusted AttributeValue attrValueParser(TICache!char buf, in Ns n) { return buf.munchStringValue; } /** タグ以外の文字列のパーサカスタム用 * * 継承クラスでこの関数を override することでパーサの挙動を変更する。 * * Params: * buf = 次のタグに達したら buf.empty になる。 * 文字実体参照は解決されない。 * cache.peekでは次のタグ以降も読み取ってしまう。 * この関数が呼び出される前後に buf.flush が呼び出される。 * この関数終了後に、buf.empty になるまで buf.popFront が呼び出さ * れる。 */ @trusted AXML contentsParser(TICache!char buf) { import std.string : strip; for (; !buf.empty; buf.push){} return new XMLText(buf.istack.strip.expandEntity); } /** style 属性のパースに。 * * この関数は、style属性の内部の各要素を、http://www.w3.org/Style/CSS/ * の名前空間で属性値へと展開する。 * * 内部で #(LINK #sworks.xml.XMLParserInfo.styleValueParser) を呼び出す。 * * Bugs: * dmd2.068.2 * <ol> * <li> A lambda expression miss its outer environment at CTFE.</li> * </ol> */ @trusted protected void parseStyle(TICache!char buf) { import std.ascii : isWhite; alias A = AttributeValue; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // BUG typeof(this) T = this; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! for (; !buf.empty;) { buf.flush; auto key = buf.munchStyleKey; auto val = buf.enterPart!(char, STRIP.LOOSE) //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (";", b=>T.styleValueParser(b, key), false); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! if (val !is null) current.attr[key] = val; } } /** style属性の値をパースする。 * * $(LINK #sworks.xml.XMLParserInfo.parseStyle) から呼び出される。 */ @trusted protected AttributeValue styleValueParser(TICache!char buf, in Ns) { return buf.munchStringValue; } } /** UTF8 文字列 を $(LINK2 #sworks.xml.AXML, AXMLクラス)にする。 * * Returns: * 最初の要素とその中身のみを返す。 */ @trusted AXML toXML(XML_PARSER_PROPERTY P = XML_PARSER_PROPERTY.STANDARD) (string buf, XMLParserInfo info = null) { return buf.toCache.toXML!P(info); } /// ditto @trusted AXML toXML(XML_PARSER_PROPERTY P = XML_PARSER_PROPERTY.STANDARD) (TICache!char buf, XMLParserInfo info = null) { if (info is null) info = new XMLParserInfo(["xmlns": ""]); return buf.parseXML!P(info); } /** UTF8 文字列 を $(LINK2 #sworks.xml.XML, XML構造体)にする。 * Returns: * name が空の XML構造体の children にパース結果を入れて返す。 */ XML toXMLs(XML_PARSER_PROPERTY P = XML_PARSER_PROPERTY.STANDARD) (string buf, XMLParserInfo info = null) { return buf.toCache.toXMLs!P(info);} /// ditto XML toXMLs(XML_PARSER_PROPERTY P = XML_PARSER_PROPERTY.STANDARD) (TICache!char buf, XMLParserInfo info = null) { if (info is null) info = new XMLParserInfo(["xmlns": ""]); auto xml = new XML; for (; !buf.empty;) if (auto c = buf.parseXML!P(info)) xml.children ~= c; return xml; } //------------------------------------------------------------------------------ // // TICache!char の suger // //------------------------------------------------------------------------------ /** 長さの切り出し。 * * $(LINK http://www.w3.org/TR/2008/REC-CSS2-20080411/syndata.html#length-units) */ @trusted AttributeValue munchLength(TICache!char buf) { auto f = buf.munchFloating; buf.stripLeftWhite; switch(buf.front) { case '%': return new PercentageValue(f * 0.01); case '"': case ';': return new LengthValue(f); default: } switch(buf.peek(2)) { case "em": return new EMValue(f); case "ex": return new EXValue(f); case "px": return new LengthValue(f); case "in": return new InchValue(f); case "cm": return new InchValue(f / 2.54); case "mm": return new InchValue(f / 25.4); case "pt": return new InchValue(f / 72); case "pc": return new InchValue(f / 6); default: } return new LengthValue(f); } /// 色のパース @trusted ColorValue munchColor(TICache!char buf) { buf.stripLeftWhite; if ('#' == buf.front) { buf.popFront; uint i = 0; uint counter = 0; uint color; for (auto c = buf.front; !buf.empty; c = buf.popFront, ++counter) { i <<= 4; if ('0' <= c && c <= '9') i += (c - '0'); else if ('a' <= c && c <= 'f') i += (c - 'a' + 10); else if ('A' <= c && c <= 'F') i += (c - 'A' + 10); } if (3 == counter) i = ((i & 0x00000f00) << 12) | ((i & 0x00000f00) << 8) | ((i & 0x000000f0) << 8) | ((i & 0x000000f0) << 4) | ((i & 0x0000000f) << 4) | ((i & 0x0000000f)); color = (i & 0xff00ff00) | ((i & 0xff0000)>>16) | ((i & 0xff)<<16); return new ColorValue(color); } else if ("url(#" == buf.peek(5)) return null; else if (buf.peekPop("none")) return null; else { auto w = buf.toWORD; if (auto pc = w in COLOR) return new ColorValue(*pc); else throw new Exception("an unexpected word as color : " ~ w); } return null; } /// @trusted ClassValue munchClassValue(TICache!char buf) { string[] val; for (; !buf.empty;) { buf.stripLeftWhite; auto c = buf.toWORD; if (0 < c.length) val ~= c; } return new ClassValue(val); } /// @trusted StringValue munchStringValue(TICache!char buf) { import std.string : strip; for (; !buf.empty; buf.push){} return new StringValue(buf.istack.strip); } /// 文字実体参照を解決する。 &amp;amp; &amp;gt; &amp;lt; に対応している。 @trusted pure string expandEntity(const(char)[] buf) { import std.algorithm : find; import std.array : Appender; Appender!string result; result.reserve(buf.length); for (;;) { auto r = buf.find("&"); if (0 == r.length) { result.put(buf); break; } result.put(buf[0..$-r.length]); buf = r[1..$]; r = buf.find(";"); if (0 == r.length) { result.put("&"); result.put(buf); break; } switch(buf[0..$-r.length]) { case "amp": result.put("&"); break; case "lt": result.put("<"); break; case "gt": result.put(">"); break; default: throw new Exception("undefined entity: \"" ~ buf[0..$-r.length].idup ~ "\""); } buf = r[1..$]; } return result.data; } //------------------------------------------------------------------------------ // // XMLパーサ用ツール // //------------------------------------------------------------------------------ /* buf から XML をパースする。ここの挙動はカスタムしない。 Params: buf = $(LINK #sworks.base.cached_buffer.TICache). ここから XML を取り出す。 info = 現在のパース情報(現在の要素とか)を格納している。 Returns: 最後に出会ったタグを返す。 この関数の戻り値としてのみ $(LINK #sworks.xml.XMLClose) というクラスが 存在する。 **/ @trusted private AXML parseXML(XML_PARSER_PROPERTY P = XML_PARSER_PROPERTY.STANDARD) (TICache!char buf, XMLParserInfo info) { enum LC = P & XML_PARSER_PROPERTY.LOWER_CASE; enum OC = P & XML_PARSER_PROPERTY.OMITTABLE_CLOSETAG; import std.string : strip; static if (LC) import std.uni : toLower; buf.stripLeftXMLWhite; if (buf.empty) return null; // 何もなかった else if (buf.peekPop("<![CDATA[")) // js とか css で使うやつ。 return buf.enterPart!(char, STRIP.STRICT)("]]>", b=>info.contentsParser(b)); else if ('<' == buf.front) // タグに出会った { // ここで info の参照先が変わる(diveが呼ばれる)可能性あり。 auto tag = buf.munchTag!LC(info); // タグの取り出し if (auto otag = info.current) // 開始タグだった { // 中身のパース for (; !buf.empty;) { // 中身を1個パース auto child = buf.parseXML!P(info); if (auto ctag = cast(XMLClose)child) // 終了タグがきた。 { if (otag.name != ctag.name) // 終了タグと開始タグが違う。 { static if (!OC) throw new Exception( otag.getOpenTagString ~ "!=" ~ ctag.toString); if (auto p = info.parent) // 親がある場合は親に追加 { p.children ~= otag; p.children ~= otag.children; otag.children = null; } return ctag; // 終了タグを親に通知 } break; } else if (child !is null) // 終了タグじゃないのがきた。 otag.children ~= child; } } return tag; } else // 文字列に出会った return buf.enterPart!(char, STRIP.NONE)("<", b=>info.contentsParser(b)); return null; } // パース途中で使うだけのん。 private class XMLClose : AXML { // Ns name; // @trusted @nogc pure nothrow this(Ns n){ name = n; } override @property @trusted pure string toString() const { import std.string : join; return ["</", name, ">"].join; } override @property @trusted @disable AXML dup() const { return null; } } // バッファ先頭からタグを切り出す。 // OPEN TAG だった場合は、info.current に XML を代入する。 // それ以外では info.current には null が代入される。 @trusted private AXML munchTag(bool LC)(TICache!char buf, ref XMLParserInfo info) { assert(info !is null); assert('<' == buf.front); if ('/' == buf.popFront) // CLOSE TAG { buf.popFront; auto name = buf.munchNs!LC(info.ns, info.ns.get("", "")); buf.findSkip('>'); info.current = null; return new XMLClose(name); } // OPEN TAG info = info.dive(buf.munchNs!LC(info.ns, info.ns.get("", ""))); buf.parseAttributes!LC(info); // EMPTY TAG if (buf.peekPop("/>")) { auto x = info.current; info.current = null; return x; } // AN ELEMENT MAY HAVE CONTENTS else if (buf.peekPop(">")) return info.current; else throw new Exception("unterminated element tag <" ~ info.current.name ~ ">. the front is '" ~ buf.front ~ "'"); assert(0); } // 属性切り出し // Params: // LC = all keys are lower case, if true. @trusted private void parseAttributes(bool LC)(TICache!char buf, XMLParserInfo info) { assert(info !is null); alias A = AttributeValue; static if (LC) import std.uni : toLower; A val; for (;;) { buf.stripLeftWhite; if (buf.empty) break; else if ('>' == buf.front || '/' == buf.front) break; auto key = buf.munchNs!LC(info.ns, info.current.name.uri); if (key.empty) break; buf.stripLeftWhite; if ('=' == buf.front) { buf.popFront; buf.stripLeftWhite; val = buf.enterString!char("\"", b=>info.attrValueParser(b, key)); } else val = new StringValue(key); if (val !is null) { info.current.attr[key] = val; // xmlns属性の処理 if (key == "xmlns") { auto n = val.toString; info.ns[""] = n; if (info.current.name.ns.length == 0) info.current.name.uri = n; } else if (key.ns == "xmlns") { auto n = val.toString; info.ns[key] = n; if (info.current.name.ns == key.value) info.current.name.uri = n; } } } } // style 属性の中身の名前部分を切り出す。 @trusted private Ns munchStyleKey(TICache!char buf) { buf.stripLeftCSSWhite; auto key = buf.munchUntil!"a==':' || a == ' ' || a == '\t'"; buf.findSkip(':'); buf.stripLeftCSSWhite; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // BUG if (__ctfe) return Ns(key); else return Ns(key, CSS_URI); } // 文字列先頭から XML における、空白、コメントなどを取り除く。 @trusted private void stripLeftXMLWhite(TICache!char buf) { import std.exception : enforce; for (;;) { buf.stripLeftWhite; if (buf.empty) break; else if ('<' != buf.front) break; else if (buf.peekPop("<!--")) buf.findSkip("-->").enforce("unterminated comment block."); else if ("<![" == buf.peek(3)) break; else if (buf.peekPop("<!", "<?")) buf.findSkip('>').enforce("unterminated declaration element."); else break; } } // 先頭1トークン切り出し private alias munchToken = munchUntil!(q{!(('a' <= a && a <= 'z') || ('A' <= a && a <= 'Z') || ('0' <= a && a <= '9') || '_' == a || '-' == a)}, char); // 名前空間付き名の切り出し。 // LC = makes all names lower case, if true. @trusted private Ns munchNs(bool LC)(TICache!char buf, string[string] ns, lazy string def = "") { import std.string : toLower; import std.exception : enforce; buf.stripLeftWhite; static if (LC) //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // why idup needed? under linux, dmd2.069.2 auto t1 = buf.munchToken.idup.toLower; else auto t1 = buf.munchToken; if (buf.front == ':') // ネームスペース切り出し。 { buf.popFront; auto t2 = buf.munchToken; static if (LC) t2 = t2.toLower; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // BUG if (__ctfe) return Ns(t2); else { auto puri = enforce(t1 in ns, t1 ~ " is not in namespace."); return Ns(t2, *puri, t1); } } else // ネームスペースなかった。 { //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // BUG if (__ctfe) return Ns(t1); else return Ns(t1, def); } } //------------------------------------------------------------------------------ // 色名データベース @trusted @nogc pure nothrow private uint rgb(uint r, uint g, uint b) { return r | g << 8 | b << 16; } // $(LINK, http://www.w3.org/TR/SVG/types.html#ColorKeywords#ColorKeywords) enum COLOR = ["aliceblue": rgb(240, 248, 255), "antiquewhite": rgb(250, 235, 215), "aqua": rgb(0, 255, 255), "aquamarine": rgb(127, 255, 212), "azure": rgb(240, 255, 255), "beige": rgb(245, 245, 220), "bisque": rgb(255, 228, 196), "black": rgb(0, 0, 0), "blanchedalmond": rgb(255, 235, 205), "blue": rgb(0, 0, 255), "blueviolet": rgb(138, 43, 226), "brown": rgb(165, 42, 42), "burlywood": rgb(222, 184, 135), "cadetblue": rgb(95, 158, 160), "chartreuse": rgb(127, 255, 0), "chocolate": rgb(210, 105, 30), "coral": rgb(255, 127, 80), "cornflowerblue": rgb(100, 149, 237), "cornsilk": rgb(255, 248, 220), "crimson": rgb(220, 20, 60), "cyan": rgb(0, 255, 255), "darkblue": rgb(0, 0, 139), "darkcyan": rgb(0, 139, 139), "darkgoldenrod": rgb(184, 134, 11), "darkgray": rgb(169, 169, 169), "darkgreen": rgb(0, 100, 0), "darkgrey": rgb(169, 169, 169), "darkkhaki": rgb(189, 183, 107), "darkmagenta": rgb(139, 0, 139), "darkolivegreen": rgb(85, 107, 47), "darkorange": rgb(255, 140, 0), "darkorchid": rgb(153, 50, 204), "darkred": rgb(139, 0, 0), "darksalmon": rgb(233, 150, 122), "darkseagreen": rgb(143, 188, 143), "darkslateblue": rgb(72, 61, 139), "darkslategray": rgb(47, 79, 79), "darkslategrey": rgb(47, 79, 79), "darkturquoise": rgb(0, 206, 209), "darkviolet": rgb(148, 0, 211), "deeppink": rgb(255, 20, 147), "deepskyblue": rgb(0, 191, 255), "dimgray": rgb(105, 105, 105), "dimgrey": rgb(105, 105, 105), "dodgerblue": rgb(30, 144, 255), "firebrick": rgb(178, 34, 34), "floralwhite": rgb(255, 250, 240), "forestgreen": rgb(34, 139, 34), "fuchsia": rgb(255, 0, 255), "gainsboro": rgb(220, 220, 220), "ghostwhite": rgb(248, 248, 255), "gold": rgb(255, 215, 0), "goldenrod": rgb(218, 165, 32), "gray": rgb(128, 128, 128), "grey": rgb(128, 128, 128), "green": rgb(0, 128, 0), "greenyellow": rgb(173, 255, 47), "honeydew": rgb(240, 255, 240), "hotpink": rgb(255, 105, 180), "indianred": rgb(205, 92, 92), "indigo": rgb(75, 0, 130), "ivory": rgb(255, 255, 240), "khaki": rgb(240, 230, 140), "lavender": rgb(230, 230, 250), "lavenderblush": rgb(255, 240, 245), "lawngreen": rgb(124, 252, 0), "lemonchiffon": rgb(255, 250, 205), "lightblue": rgb(173, 216, 230), "lightcoral": rgb(240, 128, 128), "lightcyan": rgb(224, 255, 255), "lightgoldenrodyellow": rgb(250, 250, 210), "lightgray": rgb(211, 211, 211), "lightgreen": rgb(144, 238, 144), "lightgrey": rgb(211, 211, 211), "lightpink": rgb(255, 182, 193), "lightsalmon": rgb(255, 160, 122), "lightseagreen": rgb(32, 178, 170), "lightskyblue": rgb(135, 206, 250), "lightslategray": rgb(119, 136, 153), "lightslategrey": rgb(119, 136, 153), "lightsteelblue": rgb(176, 196, 222), "lightyellow": rgb(255, 255, 224), "lime": rgb(0, 255, 0), "limegreen": rgb(50, 205, 50), "linen": rgb(250, 240, 230), "magenta": rgb(255, 0, 255), "maroon": rgb(128, 0, 0), "mediumaquamarine": rgb(102, 205, 170), "mediumblue": rgb(0, 0, 205), "mediumorchid": rgb(186, 85, 211), "mediumpurple": rgb(147, 112, 219), "mediumseagreen": rgb(60, 179, 113), "mediumslateblue": rgb(123, 104, 238), "mediumspringgreen": rgb(0, 250, 154), "mediumturquoise": rgb(72, 209, 204), "mediumvioletred": rgb(199, 21, 133), "midnightblue": rgb(25, 25, 112), "mintcream": rgb(245, 255, 250), "mistyrose": rgb(255, 228, 225), "moccasin": rgb(255, 228, 181), "navajowhite": rgb(255, 222, 173), "navy": rgb(0, 0, 128), "oldlace": rgb(253, 245, 230), "olive": rgb(128, 128, 0), "olivedrab": rgb(107, 142, 35), "orange": rgb(255, 165, 0), "orangered": rgb(255, 69, 0), "orchid": rgb(218, 112, 214), "palegoldenrod": rgb(238, 232, 170), "palegreen": rgb(152, 251, 152), "paleturquoise": rgb(175, 238, 238), "palevioletred": rgb(219, 112, 147), "papayawhip": rgb(255, 239, 213), "peachpuff": rgb(255, 218, 185), "peru": rgb(205, 133, 63), "pink": rgb(255, 192, 203), "plum": rgb(221, 160, 221), "powderblue": rgb(176, 224, 230), "purple": rgb(128, 0, 128), "red": rgb(255, 0, 0), "rosybrown": rgb(188, 143, 143), "royalblue": rgb(65, 105, 225), "saddlebrown": rgb(139, 69, 19), "salmon": rgb(250, 128, 114), "sandybrown": rgb(244, 164, 96), "seagreen": rgb(46, 139, 87), "seashell": rgb(255, 245, 238), "sienna": rgb(160, 82, 45), "silver": rgb(192, 192, 192), "skyblue": rgb(135, 206, 235), "slateblue": rgb(106, 90, 205), "slategray": rgb(112, 128, 144), "slategrey": rgb(112, 128, 144), "snow": rgb(255, 250, 250), "springgreen": rgb(0, 255, 127), "steelblue": rgb(70, 130, 180), "tan": rgb(210, 180, 140), "teal": rgb(0, 128, 128), "thistle": rgb(216, 191, 216), "tomato": rgb(255, 99, 71), "turquoise": rgb(64, 224, 208), "violet": rgb(238, 130, 238), "wheat": rgb(245, 222, 179), "white": rgb(255, 255, 255), "whitesmoke": rgb(245, 245, 245), "yellow": rgb(255, 255, 0), "yellowgreen": rgb(154, 205, 50) ]; //============================================================================== //------------------------------------------------------------------------------ // // CSS パーサ // //------------------------------------------------------------------------------ //============================================================================== /// enum CSS_URI = "http://www.w3.org/Style/CSS/"; @trusted AXML[] toCSS(TICache!char buf, XMLParserInfo info) { import std.array : Appender; Appender!(AXML[]) attr; for (; !buf.empty;) if (auto rule = buf.munchRule) attr.put(new CSSAttr(buf.toCSSAttr(info), rule)); return attr.data; } // @trusted private Attribute toCSSAttr(TICache!char buf, XMLParserInfo info) { import std.string : strip; buf.stripLeftCSSWhite; assert(buf.empty || '{' == buf.front, buf.peekBetter); buf.popFront; return buf.enterPart!(char, STRIP.STRICT)("}", (b) { Attribute attr; for (; !b.empty;) { b.enterPart!(char, STRIP.LOOSE)(";", (b2) { auto key = b2.munchStyleKey; auto val = info.styleValueParser(b2, key); if (val !is null) attr[key] = val; }, false); } return attr; }); } // @trusted private void stripLeftCSSWhite(TICache!char buf) { import std.exception : enforce; for (;;) { buf.stripLeftWhite; if (buf.empty) break; else if (buf.peekPop("/*")) buf.findSkip("*/").enforce("unterminated comment block."); else break; } } // @trusted private Rule munchRule(TICache!char buf) { import std.ascii : isWhite; Rule r; for (; !buf.empty;) { buf.stripLeftCSSWhite; bool parentFlag = false; if ('>' == buf.front) { parentFlag = true; buf.popFront; buf.stripLeftCSSWhite; } else if ('{' == buf.front) break; Rule[] r2; for (; !buf.empty;) { if (buf.front.isWhite) break; else if ('{' == buf.front) break; else if ('#' == buf.front) { buf.popFront; r2 ~= new IdRule(buf.toWORD); } else if ('.' == buf.front) { buf.popFront; r2 ~= new ClassRule(buf.toWORD); } else { r2 ~= new NameRule(buf.toWORD); } } if (r is null) { if (1 < r2.length) r = new AndRule(r2); else if (0 < r2.length) r = r2[0]; } else if (parentFlag) r = new AndRule(new ParentRule(r) ~ r2); else r = new AndRule(new AncestorRule(r) ~ r2); } return r; } //############################################################################## // compile to do unittest: // dmd -Isrc -debug -debug=BUGCHECK_4 -unittest -main src\sworks\xml.d .\src\sworks\base\aio.d .\src\sworks\base\cached_buffer.d .\src\sworks\base\ctfe.d;./xml.exe // Assertion failure: '0' on line 3135 in file 'interpret.c' debug(BUGCHECK_1) unittest { class A { int a; this(int v) { a = v; } } enum a = () { scope auto a = new A(2); return 3; }(); a.writeln; } // Error: non-constant expression [1:2]. debug(BUGCHECK_2) unittest { class A { int[int] a; this(int[int] i){ a = i; }} enum { a = new A([1:2]), } a.writeln; } // Error 42: Symbol Undefined. debug(BUGCHECK_3) unittest { enum e = { struct A{int[] x;} A[] a; return a ~ A(); }(); e.writeln; } //toHash doesn't execute at CTFE. debug(BUGCHECK_4) unittest { struct S { int v; bool opEquals(in ref S r) const { return true; } size_t toHash() const { return 0; } } string func() { int[S] s; s[S(5)] = 10; if (S(6) in s) return "OK"; else return "NG"; } enum A = func; auto B = func; writeln("BUGCHECK_4"); writeln("compile time: ", A); writeln("run time: ", B); } //############################################################################## debug(xml): struct Dummy { AXML xml; } void main() { enum sample = q"EOS <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="12cm" height="3cm" viewBox="0 0 1200 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <desc>Example Use04 - 'use' with CSS styling</desc> <defs style=" /* rule 9 */ stroke-miterlimit: 10" > <path id="MyPath" d="M300 50 L900 50 L900 250 L300 250" class="MyPathClass" style=" /* rule 10 */ stroke-dasharray:300,100" /> </defs> <style type="text/css"> <![CDATA[ /* rule 1 */ #MyUse { fill: blue } /* rule 2 */ #MyPath { stroke: red } /* rule 3 */ use { fill-opacity: .5 } /* rule 4 */ path { stroke-opacity: .5 } /* rule 5 */ .MyUseClass { stroke-linecap: round } /* rule 6 */ .MyPathClass { stroke-linejoin: bevel } /* rule 7 */ use > path { shape-rendering: optimizeQuality } /* rule 8 */ g > path { visibility: hidden } ]]> </style> <rect x="0" y="0" width="1200" height="300" style="fill:none; stroke:blue; stroke-width:3"/> <g style=" /* rule 11 */ stroke-width:40"> <use id="MyUse" xlink:href="#MyPath" class="MyUseClass" style="/* rule 12 */ stroke-dashoffset:50" /> </g> </svg> EOS"; enum XPP1 = XML_PARSER_PROPERTY.LOWER_CASE; enum XPP2 = XML_PARSER_PROPERTY.OMITTABLE_CLOSETAG; enum XPP3 = XML_PARSER_PROPERTY.OMITTABLE_CLOSETAG | XML_PARSER_PROPERTY.LOWER_CASE; enum xml = sample.toXML.toString; xml.writeln; // foreach (one; xml) // foreach (name, val; one.attr) writeln(name.value, "=", val.bareValue); }
D
/home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/Async.build/Future+Transform.swift.o : /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Async+NIO.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Variadic.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Deprecated.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Void.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/FutureType.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Collection+Future.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+DoCatch.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Global.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Transform.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Flatten.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Map.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Worker.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/QueueHandler.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/AsyncError.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Exports.swift /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/NIO.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Glibc.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/NIOConcurrencyHelpers.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/share/swift/usr/lib/swift/linux/x86_64/glibc.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOSHA1.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOOpenSSL.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CCryptoOpenSSL.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOZlib.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIODarwin.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOHTTPParser.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOAtomics.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOLinux.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio-zlib-support/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/Async.build/Future+Transform~partial.swiftmodule : /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Async+NIO.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Variadic.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Deprecated.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Void.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/FutureType.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Collection+Future.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+DoCatch.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Global.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Transform.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Flatten.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Map.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Worker.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/QueueHandler.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/AsyncError.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Exports.swift /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/NIO.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Glibc.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/NIOConcurrencyHelpers.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/share/swift/usr/lib/swift/linux/x86_64/glibc.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOSHA1.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOOpenSSL.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CCryptoOpenSSL.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOZlib.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIODarwin.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOHTTPParser.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOAtomics.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOLinux.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio-zlib-support/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/Async.build/Future+Transform~partial.swiftdoc : /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Async+NIO.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Variadic.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Deprecated.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Void.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/FutureType.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Collection+Future.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+DoCatch.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Global.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Transform.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Flatten.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Future+Map.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Worker.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/QueueHandler.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/AsyncError.swift /home/juliobrz/Git/PixelCanvas/.build/checkouts/core/Sources/Async/Exports.swift /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/NIO.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Glibc.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/NIOConcurrencyHelpers.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/share/swift/usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/share/swift/usr/lib/swift/linux/x86_64/glibc.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOSHA1.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOOpenSSL.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CCryptoOpenSSL.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOZlib.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIODarwin.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOHTTPParser.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOAtomics.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/x86_64-unknown-linux/debug/CNIOLinux.build/module.modulemap /home/juliobrz/Git/PixelCanvas/.build/checkouts/swift-nio-zlib-support/module.modulemap
D
module symlist; import std.stdio, std.array, std.traits, std.conv, std.json, std.format, std.algorithm; import iz.memory; import dparse.lexer, dparse.ast, dparse.parser; import common; private __gshared bool deep = void; /** * Serializes the symbols in the standard output */ void listSymbols(const(Module) mod, AstErrors errors, bool deep = true) { mixin(logCall); symlist.deep = deep; alias SL = SymbolListBuilder!(ListFmt.Pas); SL.addAstErrors(errors); SL sl = construct!(SL); sl.visit(mod); sl.serialize.writeln; } private: enum ListFmt { Pas, Json } enum SymbolType { _alias, _class, _enum, _error, _function, _interface, _import, _mixin, // (template decl) _struct, _template, _union, _unittest, _variable, _warning } string makeSymbolTypeArray() { string result = "string[SymbolType.max + 1] symbolTypeStrings = ["; foreach(st; EnumMembers!SymbolType) result ~= `"` ~ to!string(st) ~ `",`; result ~= "];"; return result; } mixin(makeSymbolTypeArray); class SymbolListBuilder(ListFmt Fmt): ASTVisitor { static if (Fmt == ListFmt.Pas) { static Appender!string pasStream; } else { static JSONValue json; static JSONValue* jarray; } static uint utc; alias visit = ASTVisitor.visit; static this() { static if (Fmt == ListFmt.Pas) { pasStream.put("object TSymbolList\rsymbols=<"); } else { json = parseJSON("[]"); jarray = &json; } } static void addAstErrors(AstErrors errors) { foreach(error; errors) { string type = (error.type == ErrorType.error) ? symbolTypeStrings[SymbolType._error] : symbolTypeStrings[SymbolType._warning]; static if (Fmt == ListFmt.Pas) { pasStream.put("\ritem\r"); pasStream.put(format("line=%d\r", error.line)); pasStream.put(format("col=%d\r", error.column)); pasStream.put(format("name='%s'\r", patchPascalString(error.message))); pasStream.put(format("symType=%s\r", type)); pasStream.put("end"); } else { JSONValue item = parseJSON("{}"); item["line"] = JSONValue(error.line); item["col"] = JSONValue(error.column); item["name"] = JSONValue(error.message); item["type"] = JSONValue(type); jarray.array ~= item; } } } final string serialize() { static if (Fmt == ListFmt.Pas) { pasStream.put(">\rend"); return pasStream.data; } else { JSONValue result = parseJSON("{}"); result["items"] = json; version (assert) return result.toPrettyString; else return result.toString; } } /// visitor implementation if the declaration has a "name". final void namedVisitorImpl(DT, SymbolType st, bool dig = true)(const(DT) dt) if (__traits(hasMember, DT, "name")) { static if (Fmt == ListFmt.Pas) { pasStream.put("\ritem\r"); pasStream.put(format("line=%d\r", dt.name.line)); pasStream.put(format("col=%d\r", dt.name.column)); pasStream.put(format("name='%s'\r", dt.name.text)); pasStream.put("symType=" ~ symbolTypeStrings[st] ~ "\r"); static if (dig) if (deep) { pasStream.put("subs = <"); dt.accept(this); pasStream.put(">\r"); } pasStream.put("end"); } else { JSONValue item = parseJSON("{}"); item["line"] = JSONValue(dt.name.line); item["col"] = JSONValue(dt.name.column); item["name"] = JSONValue(dt.name.text); item["type"] = JSONValue(symbolTypeStrings[st]); static if (dig) if (deep) { JSONValue subs = parseJSON("[]"); const JSONValue* old = jarray; jarray = &subs; dt.accept(this); item["items"] = subs; jarray = old; } json.array ~= item; } } /// visitor implementation for special cases. final void otherVisitorImpl(DT, bool dig = true) (const(DT) dt, SymbolType st, string name, size_t line, size_t col) { static if (Fmt == ListFmt.Pas) { pasStream.put("\ritem\r"); pasStream.put(format("line=%d\r", line)); pasStream.put(format("col=%d\r", col)); pasStream.put(format("name='%s'\r", name)); pasStream.put("symType=" ~ symbolTypeStrings[st] ~ "\r"); static if (dig) { pasStream.put("subs = <"); dt.accept(this); pasStream.put(">\r"); } pasStream.put("end"); } else { JSONValue item = parseJSON("{}"); item["line"] = JSONValue(line); item["col"] = JSONValue(col); item["name"] = JSONValue(name); item["type"] = JSONValue(symbolTypeStrings[st]); static if (dig) { JSONValue subs = parseJSON("[]"); const JSONValue* old = jarray; jarray = &subs; dt.accept(this); item["items"] = subs; jarray = old; } json.array ~= item; } } final override void visit(const AliasDeclaration decl) { if (decl.initializers.length) namedVisitorImpl!(AliasInitializer, SymbolType._alias)(decl.initializers[0]); } final override void visit(const AnonymousEnumMember decl) { namedVisitorImpl!(AnonymousEnumMember, SymbolType._enum)(decl); } final override void visit(const AnonymousEnumDeclaration decl) { decl.accept(this); } final override void visit(const AutoDeclaration decl) { if (decl.identifiers.length) { otherVisitorImpl(decl, SymbolType._variable, decl.identifiers[0].text, decl.identifiers[0].line, decl.identifiers[0].column); } } final override void visit(const ClassDeclaration decl) { namedVisitorImpl!(ClassDeclaration, SymbolType._class)(decl); } final override void visit(const Constructor decl) { otherVisitorImpl(decl, SymbolType._function, "ctor", decl.line, decl.column); } final override void visit(const Destructor decl) { otherVisitorImpl(decl, SymbolType._function, "dtor", decl.line, decl.column); } final override void visit(const EnumDeclaration decl) { namedVisitorImpl!(EnumDeclaration, SymbolType._enum)(decl); } final override void visit(const EponymousTemplateDeclaration decl) { namedVisitorImpl!(EponymousTemplateDeclaration, SymbolType._template)(decl); } final override void visit(const FunctionDeclaration decl) { namedVisitorImpl!(FunctionDeclaration, SymbolType._function)(decl); } final override void visit(const InterfaceDeclaration decl) { namedVisitorImpl!(InterfaceDeclaration, SymbolType._interface)(decl); } final override void visit(const ImportDeclaration decl) { foreach (const(SingleImport) si; decl.singleImports) { if (!si.identifierChain.identifiers.length) continue; otherVisitorImpl(decl, SymbolType._import, si.identifierChain.identifiers.map!(a => a.text).join("."), si.identifierChain.identifiers[0].line, si.identifierChain.identifiers[0].column); } if (decl.importBindings) with (decl.importBindings.singleImport) otherVisitorImpl(decl, SymbolType._import, identifierChain.identifiers.map!(a => a.text).join("."), identifierChain.identifiers[0].line, identifierChain.identifiers[0].column); } final override void visit(const MixinTemplateDeclaration decl) { namedVisitorImpl!(TemplateDeclaration, SymbolType._mixin)(decl.templateDeclaration); } final override void visit(const StructDeclaration decl) { namedVisitorImpl!(StructDeclaration, SymbolType._struct)(decl); } final override void visit(const TemplateDeclaration decl) { namedVisitorImpl!(TemplateDeclaration, SymbolType._template)(decl); } final override void visit(const UnionDeclaration decl) { namedVisitorImpl!(UnionDeclaration, SymbolType._union)(decl); } final override void visit(const Unittest decl) { otherVisitorImpl(decl, SymbolType._unittest, format("test%.4d",utc++), decl.line, decl.column); } final override void visit(const VariableDeclaration decl) { if (decl.declarators) foreach (elem; decl.declarators) namedVisitorImpl!(Declarator, SymbolType._variable, false)(elem); else if (decl.autoDeclaration) visit(decl.autoDeclaration); } final override void visit(const StaticConstructor decl) { otherVisitorImpl(decl, SymbolType._function, "static ctor", decl.line, decl.column); } final override void visit(const StaticDestructor decl) { otherVisitorImpl(decl, SymbolType._function, "static dtor", decl.line, decl.column); } final override void visit(const SharedStaticConstructor decl) { otherVisitorImpl(decl, SymbolType._function, "shared static ctor", decl.line, decl.column); } final override void visit(const SharedStaticDestructor decl) { otherVisitorImpl(decl, SymbolType._function, "shared static dtor", decl.line, decl.column); } }
D
module arcana.grammar.ast.relational_node; import arcana.grammar.token; import arcana.grammar.ast.binary_node; import arcana.grammar.ast.expression_node; class RelationalNode : BinaryNode { this(ExpressionNode left, Token operator, ExpressionNode right) { super(left, operator, right); } }
D
/Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Intermediates/poloniex.build/Debug-iphonesimulator/poloniex.build/Objects-normal/x86_64/CoinPairs.o : /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerDetail.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerListVC.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/ChartCell.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/CoinPairs.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/ExampleDefaults.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/AppDelegate.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerCell.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/Env.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/SwiftOnoneSupport.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Modules/SwiftCharts.swiftmodule/x86_64.swiftmodule /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Headers/SwiftCharts-Swift.h /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Headers/SwiftCharts-umbrella.h /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Modules/module.modulemap /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Intermediates/poloniex.build/Debug-iphonesimulator/poloniex.build/Objects-normal/x86_64/CoinPairs~partial.swiftmodule : /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerDetail.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerListVC.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/ChartCell.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/CoinPairs.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/ExampleDefaults.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/AppDelegate.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerCell.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/Env.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/SwiftOnoneSupport.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Modules/SwiftCharts.swiftmodule/x86_64.swiftmodule /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Headers/SwiftCharts-Swift.h /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Headers/SwiftCharts-umbrella.h /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Modules/module.modulemap /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Intermediates/poloniex.build/Debug-iphonesimulator/poloniex.build/Objects-normal/x86_64/CoinPairs~partial.swiftdoc : /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerDetail.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerListVC.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/ChartCell.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/CoinPairs.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/ExampleDefaults.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/AppDelegate.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/TickerCell.swift /Users/florin-alexandru/Documents/ioscourse/poloniex/poloniex/Env.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/SwiftOnoneSupport.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/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Modules/SwiftCharts.swiftmodule/x86_64.swiftmodule /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Headers/SwiftCharts-Swift.h /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Headers/SwiftCharts-umbrella.h /Users/florin-alexandru/Documents/ioscourse/poloniex/DerivedData/poloniex/Build/Products/Debug-iphonesimulator/SwiftCharts/SwiftCharts.framework/Modules/module.modulemap
D
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/Transformer.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/Transformer~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/Transformer~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
/******************************************************************************* Stats corresponding to validators Copyright: Copyright (c) 2019-2021 BOSAGORA Foundation All rights reserved. License: MIT License. See LICENSE for details. *******************************************************************************/ module agora.stats.Validator; import agora.stats.Stats; /// public struct ValidatorCountStatsValue { public ulong agora_validators_gauge; } /// public struct ValidatorPreimagesStatsLabel { public string key; } /// public struct ValidatorPreimagesStatsValue { public ulong agora_preimages_counter; } /// public alias ValidatorCountStats = Stats!(ValidatorCountStatsValue, NoLabel); /// public alias ValidatorPreimagesStats = Stats!(ValidatorPreimagesStatsValue, ValidatorPreimagesStatsLabel);
D
module kgl3n.intersect; import kgl3n.aabb; import kgl3n.frustum; import kgl3n.linearcomponent; import kgl3n.math : abs; import kgl3n.vector; import std.algorithm.comparison : min, max; bool testIntersection(in Line line, in AABB aabb) { auto nInv = 1 / line.d; auto t1 = (aabb.min - line.p) * nInv; auto t2 = (aabb.max - line.p) * nInv; auto tMin = componentMin(t1, t2); auto tMax = componentMax(t1, t2); return min(tMax[0], tMax[1], tMax[2]) >= max(tMin[0], tMin[1], tMin[2]); } bool testIntersection(in Ray ray, in AABB aabb) { auto nInv = 1 / ray.d; auto t1 = (aabb.min - ray.p) * nInv; auto t2 = (aabb.max - ray.p) * nInv; auto tMin = componentMin(t1, t2); auto tMax = componentMax(t1, t2); auto minTMax = min(tMax[0], tMax[1], tMax[2]); return minTMax >= 0 && minTMax >= max(tMin[0], tMin[1], tMin[2]); } bool testIntersection(in Frustum frustum, in AABB aabb) { auto hextent = aabb.halfExtent; auto center = aabb.center; foreach(plane; frustum.planes) { float d = dot(center, plane.p.xyz); float r = dot(hextent, abs(plane.p.xyz)); if(d + r < -plane.p.w) { return false; } } return true; }
D
/** * Implementation of support routines for synchronized blocks. * * Copyright: Copyright Digital Mars 2000 - 2011. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Walter Bright, Sean Kelly */ /* Copyright Digital Mars 2000 - 2011. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module rt.critical_; private { debug(PRINTF) import core.stdc.stdio; import core.stdc.stdlib; version( linux ) { version = USE_PTHREADS; } else version( FreeBSD ) { version = USE_PTHREADS; } else version( OSX ) { version = USE_PTHREADS; } else version( Solaris ) { version = USE_PTHREADS; } version( Windows ) { import core.sys.windows.windows; /* We don't initialize critical sections unless we actually need them. * So keep a linked list of the ones we do use, and in the static destructor * code, walk the list and release them. */ struct D_CRITICAL_SECTION { D_CRITICAL_SECTION *next; CRITICAL_SECTION cs; } } else version( USE_PTHREADS ) { import core.sys.posix.pthread; /* We don't initialize critical sections unless we actually need them. * So keep a linked list of the ones we do use, and in the static destructor * code, walk the list and release them. */ struct D_CRITICAL_SECTION { D_CRITICAL_SECTION *next; pthread_mutex_t cs; } } else version( NoSystem ) { /* Stub declaration. */ struct D_CRITICAL_SECTION { } } else { static assert(0, "Unsupported platform"); } } /* ================================= Win32 ============================ */ version( Windows ) { /****************************************** * Enter/exit critical section. */ static __gshared D_CRITICAL_SECTION *dcs_list; static __gshared D_CRITICAL_SECTION critical_section; static __gshared int inited; extern (C) void _d_criticalenter(D_CRITICAL_SECTION *dcs) { if (!dcs_list) { _STI_critical_init(); atexit(&_STD_critical_term); } debug(PRINTF) printf("_d_criticalenter(dcs = x%x)\n", dcs); if (!dcs.next) { EnterCriticalSection(&critical_section.cs); if (!dcs.next) // if, in the meantime, another thread didn't set it { dcs.next = dcs_list; dcs_list = dcs; InitializeCriticalSection(&dcs.cs); } LeaveCriticalSection(&critical_section.cs); } EnterCriticalSection(&dcs.cs); } extern (C) void _d_criticalexit(D_CRITICAL_SECTION *dcs) { debug(PRINTF) printf("_d_criticalexit(dcs = x%x)\n", dcs); LeaveCriticalSection(&dcs.cs); } extern (C) void _STI_critical_init() { if (!inited) { debug(PRINTF) printf("_STI_critical_init()\n"); InitializeCriticalSection(&critical_section.cs); dcs_list = &critical_section; inited = 1; } } extern (C) void _STD_critical_term() { if (inited) { debug(PRINTF) printf("_STI_critical_term()\n"); while (dcs_list) { debug(PRINTF) printf("\tlooping... %x\n", dcs_list); DeleteCriticalSection(&dcs_list.cs); dcs_list = dcs_list.next; } inited = 0; } } } /* ================================= linux ============================ */ version( USE_PTHREADS ) { /****************************************** * Enter/exit critical section. */ static __gshared D_CRITICAL_SECTION *dcs_list; static __gshared D_CRITICAL_SECTION critical_section; static __gshared pthread_mutexattr_t _criticals_attr; extern (C) void _d_criticalenter(D_CRITICAL_SECTION *dcs) { if (!dcs_list) { _STI_critical_init(); atexit(&_STD_critical_term); } debug(PRINTF) printf("_d_criticalenter(dcs = x%x)\n", dcs); if (!dcs.next) { pthread_mutex_lock(&critical_section.cs); if (!dcs.next) // if, in the meantime, another thread didn't set it { dcs.next = dcs_list; dcs_list = dcs; pthread_mutex_init(&dcs.cs, &_criticals_attr); } pthread_mutex_unlock(&critical_section.cs); } pthread_mutex_lock(&dcs.cs); } extern (C) void _d_criticalexit(D_CRITICAL_SECTION *dcs) { debug(PRINTF) printf("_d_criticalexit(dcs = x%x)\n", dcs); pthread_mutex_unlock(&dcs.cs); } extern (C) void _STI_critical_init() { if (!dcs_list) { debug(PRINTF) printf("_STI_critical_init()\n"); pthread_mutexattr_init(&_criticals_attr); pthread_mutexattr_settype(&_criticals_attr, PTHREAD_MUTEX_RECURSIVE); // The global critical section doesn't need to be recursive pthread_mutex_init(&critical_section.cs, null); dcs_list = &critical_section; } } extern (C) void _STD_critical_term() { if (dcs_list) { debug(PRINTF) printf("_STI_critical_term()\n"); while (dcs_list) { debug(PRINTF) printf("\tlooping... %x\n", dcs_list); pthread_mutex_destroy(&dcs_list.cs); dcs_list = dcs_list.next; } } } } /* ================================= No System ============================ */ version( NoSystem ) { /****************************************** * Enter/exit critical section. */ extern (C) void _d_criticalenter(D_CRITICAL_SECTION *dcs) { debug(PRINTF) printf("_d_criticalenter(dcs = x%x)\n", dcs); } extern (C) void _d_criticalexit(D_CRITICAL_SECTION *dcs) { debug(PRINTF) printf("_d_criticalexit(dcs = x%x)\n", dcs); } extern (C) void _STI_critical_init() { debug(PRINTF) printf("_STI_critical_init()\n"); } extern (C) void _STD_critical_term() { debug(PRINTF) printf("_STI_critical_term()\n"); } }
D
module android.java.java.security.spec.AlgorithmParameterSpec_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.java.lang.Class_d_interface; final class AlgorithmParameterSpec : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import import0.Class getClass(); @Import int hashCode(); @Import bool equals(IJavaObject); @Import @JavaName("toString") string toString_(); override string toString() { return arsd.jni.javaObjectToString(this); } @Import void notify(); @Import void notifyAll(); @Import void wait(long); @Import void wait(long, int); @Import void wait(); mixin IJavaObjectImplementation!(false); public static immutable string _javaParameterString = "Ljava/security/spec/AlgorithmParameterSpec;"; }
D
private import std.stdio; private import std.string; private import Quest; private import extent.ExtentResolver; private import force_resolver.ForceResolver; private import std.algorithm; import common; void main(string[] args) { auto q = new Quest( //["1", "2", "2", "1"], //["1", "2", "2", "1"], ["2 1 3 19", "1 2 4 17", "1 3 16", "1 4 18", "5 13", "3 10", "2 1 4 2", "1 2 3 1", "2 2 2", "2 3 2", "2 2 2", "2 3 1 2", "2 2 3 3 1", "3 4 2 4", "6 2 1 2", "1 1 2", "1 1 2", "2 4 1", "3 2 3 1", "2 1 1 1 2 1", "5 2 2", "2 2 6", "1 1 2 7", "2 1 2 7", "1 1 2 9", "1 1 9", "1 11", "2 2 12", "3 3 6", "2 2 1 8"], ["3 3 2 1", "1 4 3", "2 2 1", "5 2 2 2", "3 5 3 1 1", "1 1 4 3 2", "2 1 2 2 3 2", "2 1 3 2 1 2 1 1", "1 7 1 7", "1 2 2 1 1 1 4 1", "2 1", "1 2 1", "1 1 2 1", "2 1 2 1 1", "4 1 3", "4 3 3 3", "4 6 4", "5 3", "5 3", "5 7 4", "6 3 3 3", "6 7 4", "7 5 4", "7 6", "8 7", "10 7", "6 5 10", "6 3 1 5", "7 5", "8 6"], //["5 3 4 2 2 3", "4 3 4 1 3 3", "3 2 3 3 3 4", "4 4 6 3 2 2", "3 3 2 1 3 3 2", "3 2 3 4 3 6 1", "3 3 2 3 3 2", "2 3 3 3 3 2", "2 2 3 2 3 2", "3 1 4 5 2 1 2", "4 2 3 4 2 2 1", "3 4 4 1 1 1 1 1", "10 2 1 2", "3 2 4 5 1 5", "2 5 2 2 2 9", "2 4 2 5 8 1 2", "1 16 2 2 1 1", "1 1 3 5 3 2 2", "1 4 2 2 1 4 2", "1 8 1 2 2 7", "1 1 2 2 2 1 2 4", "4 2 1 1 1 2", "1 6 2", "3 1 3 2", "5 4 1 1", "1 6 4 1 2", "1 3 5 1 5 1", "1 3 4 2 4", "4 11 1", "1 12 2 3"], //["20 1 1 1", "16 1 1 3", "7 5 2 2 2 1 1", "2 1 1 1 2 2 1 2 4", "1 1 1 12 4 1", "2 2 3 9 5 3", "1 1 2 3 4 2 1 3 2", "2 2 2 6 1 6 5", "1 1 1 1 5 2 9", "1 1 2 2 3 2 2 8", "2 1 3 1 2 1 3 1 4", "1 1 2 2 3 2 2", "2 1 2 3 3 5", "1 4 2 4 2 3", "1 1 1 2 6 2 2", "2 1 1 3 4 2 3", "1 1 3 2 2 2 1 2", "1 3 3 2 1 2 2 3 1", "1 2 2 3 4 2 1", "1 2 5 3", "2 5 1 1 1 1", "1 2 2 6 2", "3 2 1 4 1", "2 1 6 5", "3 2 1 3 3", "1 3 2 2 4", "5 6 4", "3 3 2 1 2", "5 3 4 9", "6 16 2"], //["5", "5", "4 5 5", "7 1 4 5", "10 5 2 4", "7 7 3 4", "8 4 3 5", "7 2 3 5 4", "8 2 2 7 3", "4 1 2 1 4 4 2", "3 2 3 1 1 1 5 2", "2 4 1 1 4 3 2 1", "2 2 1 1 1 2 1 1", "2 3 1 1 2 1 1", "2 2 1 1 1 4 3 2 1", "2 4 3 2 1 6 2", "3 2 2 1 3 7 3", "4 1 2 1 1 3 4 3", "7 2 5 4 1", "8 2 3 2", "8 2 2 4 4", "9 2 4 5", "10 6 6", "10 3 4", "11 1 4 2 3", "12 2 1 1 3", "12 2 4", "9 7 5", "6 5", "5"], //["15", "18", "6 9", "6 2 2 9", "5 5 9", "6 2 1 2 10", "25", "7 10", "5 9 8", "3 4 5 7", "3 3 2 2 3 6", "4 2 5", "3 3 3 2 5", "2 1 1 2 1 2 3", "3 1 3 1 3 6", "1 2 1 1 1 1 1 1 4 2", "1 2 1 6 3 3 1 1", "1 2 2 1 2 2 2 1", "1 1 1 2 1 1 1", "2 1 2 1 2 2 1", "1 4 5 1 1", "1 5 6 2", "2 13 3", "1 12 2", "1 3 3 2", "7 1 1 9", "8 2 2 1 11", "10 4 7 6", "5 5 3 3 4", "4 3 7 3 3"], " "); auto r = new ForceResolver(new ExtentResolver(q)); //auto r = new ExtentResolver(q); try { r.checkUp(); writeln(q); } finally { //writeln(q); } } unittest { auto F = Cell.Fill; auto E = Cell.Empty; void test(bool show, string[] vHints, string[] hHints, Cell[][] expected) { auto q = new Quest( vHints, hHints, " "); auto r = new ExtentResolver(q); r.checkUp(); if (show) { writeln("=-=-="); writeln(q); } assert(q.cells == expected); } test(false, ["2", "2", "1"], ["3", "2"], [[F,F,F],[F,F,E]]); test(false, ["3", "2", "1"], ["3", "2", "1"], [[F,F,F],[F,F,E],[F,E,E]]); test(false, ["2 4 1","1 1 1","1 1 1","1 3 1","5","3 1","5","2 1","1 2","2"], ["2 3","1 6","4","2 1 2","1 8","1 1","3","1","2","1 1"], [ [F,F,E,E,F,F,F,E,E,E], [F,E,E,F,F,F,F,F,F,E], [E,E,E,E,F,F,F,F,E,E], [E,E,E,F,F,E,F,E,F,F], [F,E,F,F,F,F,F,F,F,F], [F,E,E,F,E,E,E,E,E,E], [F,F,F,E,E,E,E,E,E,E], [F,E,E,E,E,E,E,E,E,E], [E,F,F,E,E,E,E,E,E,E], [F,E,E,F,E,E,E,E,E,E] ]); test(false, ["1","1","6","7","1 8","9","3 5","4 9","3 9","9 2","1 4 2","7","6","1","1"], ["1","3","5","7","1 1","1 1","5","7","9","11","13","1 3 2 2 1","3 2 2","3 6","3 6"], [ [E,E,E,E,E,E,E,F,E,E,E,E,E,E,E], [E,E,E,E,E,E,F,F,F,E,E,E,E,E,E], [E,E,E,E,E,F,F,F,F,F,E,E,E,E,E], [E,E,E,E,F,F,F,F,F,F,F,E,E,E,E], [E,E,E,E,E,F,E,E,E,F,E,E,E,E,E], [E,E,E,E,E,F,E,E,E,F,E,E,E,E,E], [E,E,E,E,E,F,F,F,F,F,E,E,E,E,E], [E,E,E,E,F,F,F,F,F,F,F,E,E,E,E], [E,E,E,F,F,F,F,F,F,F,F,F,E,E,E], [E,E,F,F,F,F,F,F,F,F,F,F,F,E,E], [E,F,F,F,F,F,F,F,F,F,F,F,F,F,E], [F,E,F,F,F,E,E,F,F,E,E,F,F,E,F], [E,E,F,F,F,E,E,F,F,E,E,F,F,E,E], [E,E,F,F,F,E,E,F,F,F,F,F,F,E,E], [E,E,F,F,F,E,E,F,F,F,F,F,F,E,E]]); test(true, ["2","1","1","1","1","1", "1", "1", "1", "2"], ["3 2 1", "1 2 3"], [ [F,F,F,E,E,F,F,E,E,F], [F,E,E,F,F,E,E,F,F,F] ]); }
D
# FIXED socket.obj: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/socket.c socket.obj: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/datatypes.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/cc3100/platform/ek-tm4c123gxl/user.h socket.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include/string.h socket.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include/linkage.h socket.obj: C:/Users/dwsch/workspace_v7/cc3100/platform/ek-tm4c123gxl/board.h socket.obj: C:/Users/dwsch/workspace_v7/cc3100/platform/ek-tm4c123gxl/spi.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/../source/nonos.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/../source/objInclusion.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/../source/datatypes.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/trace.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/fs.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/socket.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/netapp.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/wlan.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/device.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/netcfg.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/wlan_rx_filters.h socket.obj: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h socket.obj: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/protocol.h socket.obj: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/driver.h C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/socket.c: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/datatypes.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/cc3100/platform/ek-tm4c123gxl/user.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include/string.h: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include/linkage.h: C:/Users/dwsch/workspace_v7/cc3100/platform/ek-tm4c123gxl/board.h: C:/Users/dwsch/workspace_v7/cc3100/platform/ek-tm4c123gxl/spi.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/../source/nonos.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/../source/objInclusion.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/../source/datatypes.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/trace.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/fs.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/socket.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/netapp.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/wlan.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/device.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/netcfg.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/wlan_rx_filters.h: C:/Users/dwsch/workspace_v7/CC3100/simplelink/include/simplelink.h: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/protocol.h: C:/Users/dwsch/code/Embedded/Help/CC3100/simplelink/source/driver.h:
D
var items_list = List(10,9,0,29,1); var min = find_min(items_list){ var min = 0; for(var i = 1;i<items_list.len();i++){ if(items_list(i)<min){ min = items_list(i); } } return min; } print("minimum value is: "+min(items_list)); ```bash minimum value is: 0 ```
D
/Users/hiro/Desktop/SwiftPractic/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/FormatIndicatedCacheSerializer.o : /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/String+MD5.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Resource.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Image.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageCache.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageTransition.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageDownloader.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Placeholder.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/KingfisherManager.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImagePrefetcher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageModifier.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/RequestModifier.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ThreadHelper.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Filter.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/CacheSerializer.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/FormatIndicatedCacheSerializer.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageProcessor.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Indicator.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/AnimatedImageView.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Box.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Accelerate.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/os.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/Accelerate.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/os.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/hiro/Desktop/SwiftPractic/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Kingfisher.h /Users/hiro/Desktop/SwiftPractic/build/Pods.build/Debug-iphonesimulator/Kingfisher.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/hiro/Desktop/SwiftPractic/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/FormatIndicatedCacheSerializer~partial.swiftmodule : /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/String+MD5.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Resource.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Image.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageCache.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageTransition.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageDownloader.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Placeholder.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/KingfisherManager.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImagePrefetcher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageModifier.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/RequestModifier.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ThreadHelper.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Filter.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/CacheSerializer.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/FormatIndicatedCacheSerializer.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageProcessor.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Indicator.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/AnimatedImageView.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Box.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Accelerate.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/os.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/Accelerate.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/os.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/hiro/Desktop/SwiftPractic/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Kingfisher.h /Users/hiro/Desktop/SwiftPractic/build/Pods.build/Debug-iphonesimulator/Kingfisher.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/hiro/Desktop/SwiftPractic/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/FormatIndicatedCacheSerializer~partial.swiftdoc : /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/String+MD5.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Resource.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Image.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageCache.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageTransition.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageDownloader.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Placeholder.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/KingfisherManager.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImagePrefetcher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Kingfisher.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageModifier.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/RequestModifier.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ThreadHelper.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Filter.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/CacheSerializer.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/FormatIndicatedCacheSerializer.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/ImageProcessor.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Indicator.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/AnimatedImageView.swift /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Box.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Accelerate.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/os.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/Accelerate.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/os.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/hiro/Desktop/SwiftPractic/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/hiro/Desktop/SwiftPractic/Pods/Kingfisher/Sources/Kingfisher.h /Users/hiro/Desktop/SwiftPractic/build/Pods.build/Debug-iphonesimulator/Kingfisher.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
/home/tim/src/solana/solana-name-server/src/target/bpfel-unknown-unknown/release/deps/lazy_static-8c71b2621f26b8b5.rmeta: /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /home/tim/src/solana/solana-name-server/src/target/bpfel-unknown-unknown/release/deps/liblazy_static-8c71b2621f26b8b5.rlib: /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /home/tim/src/solana/solana-name-server/src/target/bpfel-unknown-unknown/release/deps/lazy_static-8c71b2621f26b8b5.d: /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs: /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:
D
module bindbc.imgui.bind.imgui; import core.stdc.stdio; import core.stdc.stdarg; import bindbc.sdl; import bindbc.glfw; alias ImGuiTreeNodeFlags = int; struct ImGuiDockRequest; alias ImU32 = uint; alias ImGuiNavDirSourceFlags = int; alias ImGuiDockNodeFlags = int; alias ImGuiSizeCallback = void function(ImGuiSizeCallbackData* data);; alias ImGuiButtonFlags = int; alias ImGuiNextWindowDataFlags = int; alias ImGuiColumnsFlags = int; alias ImGuiLayoutType = int; alias ImS8 = byte; alias ImGuiSliderFlags = int; alias ImU64 = ulong; alias ImGuiItemFlags = int; alias ImGuiDataAuthority = int; alias ImWchar = ImWchar16; alias ImGuiConfigFlags = int; alias ImGuiID = uint; alias ImGuiKeyModFlags = int; alias ImGuiMouseButton = int; alias ImGuiItemStatusFlags = int; alias ImGuiInputTextCallback = int function(ImGuiInputTextCallbackData* data);; alias ImDrawIdx = ushort; alias ImPoolIdx = int; alias ImGuiTabItemFlags = int; alias ImGuiTooltipFlags = int; alias ImGuiStyleVar = int; alias ImDrawCallback = void function(const ImDrawList* parent_list,const ImDrawCmd* cmd);; struct ImGuiDockNodeSettings; alias ImDrawCornerFlags = int; alias ImGuiComboFlags = int; alias ImS32 = int; alias ImGuiFocusedFlags = int; alias ImGuiDragDropFlags = int; alias ImGuiSeparatorFlags = int; alias ImGuiCol = int; alias ImGuiSelectableFlags = int; alias ImGuiKey = int; alias ImGuiMouseCursor = int; alias ImGuiTabBarFlags = int; alias ImGuiWindowFlags = int; alias ImGuiNavInput = int; alias ImU16 = ushort; alias ImGuiInputTextFlags = int; alias ImWchar16 = ushort; alias ImS64 = long; alias ImGuiNavHighlightFlags = int; alias ImGuiTextFlags = int; alias ImWchar32 = uint; alias ImFileHandle = FILE*; alias ImGuiPopupFlags = int; alias ImU8 = char; alias ImGuiDataType = int; alias ImGuiHoveredFlags = int; alias ImTextureID = void*; alias ImDrawListFlags = int; alias ImGuiViewportFlags = int; alias ImGuiNavMoveFlags = int; alias ImGuiBackendFlags = int; alias ImGuiDir = int; alias ImGuiCond = int; alias ImFontAtlasFlags = int; alias ImGuiColorEditFlags = int; alias ImGuiNextItemDataFlags = int; alias ImS16 = short; struct ImVector { int Size; int Capacity; void* Data; } struct ImVector_char { int Size; int Capacity; char* Data; } struct ImVector_ImGuiDockRequest { int Size; int Capacity; ImGuiDockRequest* Data; } struct ImVector_ImGuiPopupData { int Size; int Capacity; ImGuiPopupData* Data; } struct ImVector_ImGuiItemFlags { int Size; int Capacity; ImGuiItemFlags* Data; } struct ImVector_ImFontConfig { int Size; int Capacity; ImFontConfig* Data; } struct ImVector_ImDrawChannel { int Size; int Capacity; ImDrawChannel* Data; } struct ImVector_ImFontAtlasCustomRect { int Size; int Capacity; ImFontAtlasCustomRect* Data; } struct ImVector_ImDrawListPtr { int Size; int Capacity; ImDrawList** Data; } struct ImPool_ImGuiTabBar { ImGuiTabBar Buf; ImGuiStorage Map; ImPoolIdx FreeIdx; } struct ImVector_ImFontGlyph { int Size; int Capacity; ImFontGlyph* Data; } struct ImVector_ImGuiTabItem { int Size; int Capacity; ImGuiTabItem* Data; } struct ImVector_const_charPtr { int Size; int Capacity; const char** Data; } struct ImVector_ImGuiStyleMod { int Size; int Capacity; ImGuiStyleMod* Data; } struct ImVector_ImFontPtr { int Size; int Capacity; ImFont** Data; } struct ImVector_ImDrawIdx { int Size; int Capacity; ImDrawIdx* Data; } struct ImVector_float { int Size; int Capacity; float* Data; } struct ImVector_ImWchar { int Size; int Capacity; ImWchar* Data; } struct ImVector_ImU32 { int Size; int Capacity; ImU32* Data; } struct ImVector_ImVec2 { int Size; int Capacity; ImVec2* Data; } struct ImVector_ImGuiPtrOrIndex { int Size; int Capacity; ImGuiPtrOrIndex* Data; } struct ImVector_ImVec4 { int Size; int Capacity; ImVec4* Data; } struct ImVector_ImGuiWindowPtr { int Size; int Capacity; ImGuiWindow** Data; } struct ImVector_ImGuiTextRange { int Size; int Capacity; ImGuiTextRange* Data; } struct ImVector_ImDrawCmd { int Size; int Capacity; ImDrawCmd* Data; } struct ImVector_ImGuiColumnData { int Size; int Capacity; ImGuiColumnData* Data; } struct ImVector_ImGuiPlatformMonitor { int Size; int Capacity; ImGuiPlatformMonitor* Data; } struct ImChunkStream_ImGuiWindowSettings { ImGuiWindowSettings Buf; } struct ImVector_ImGuiStoragePair { int Size; int Capacity; ImGuiStoragePair* Data; } struct ImVector_ImGuiViewportPPtr { int Size; int Capacity; ImGuiViewportP** Data; } struct ImVector_ImGuiDockNodeSettings { int Size; int Capacity; ImGuiDockNodeSettings* Data; } struct ImVector_ImGuiViewportPtr { int Size; int Capacity; ImGuiViewport** Data; } struct ImVector_ImDrawVert { int Size; int Capacity; ImDrawVert* Data; } struct ImVector_ImGuiShrinkWidthItem { int Size; int Capacity; ImGuiShrinkWidthItem* Data; } struct ImVector_ImGuiColumns { int Size; int Capacity; ImGuiColumns* Data; } struct ImVector_ImTextureID { int Size; int Capacity; ImTextureID* Data; } struct ImVector_ImGuiID { int Size; int Capacity; ImGuiID* Data; } struct ImVector_ImGuiSettingsHandler { int Size; int Capacity; ImGuiSettingsHandler* Data; } struct ImVector_unsigned_char { int Size; int Capacity; char* Data; } struct ImVector_ImGuiGroupData { int Size; int Capacity; ImGuiGroupData* Data; } struct ImVector_ImGuiColorMod { int Size; int Capacity; ImGuiColorMod* Data; } alias ImGuiLayoutType_ = int; enum { ImGuiLayoutType_Horizontal = 0, ImGuiLayoutType_Vertical = 1, } alias ImGuiNextItemDataFlags_ = int; enum { ImGuiNextItemDataFlags_None = 0, ImGuiNextItemDataFlags_HasWidth = 1, ImGuiNextItemDataFlags_HasOpen = 2, } alias ImGuiItemStatusFlags_ = int; enum { ImGuiItemStatusFlags_None = 0, ImGuiItemStatusFlags_HoveredRect = 1, ImGuiItemStatusFlags_HasDisplayRect = 2, ImGuiItemStatusFlags_Edited = 4, ImGuiItemStatusFlags_ToggledSelection = 8, ImGuiItemStatusFlags_ToggledOpen = 16, ImGuiItemStatusFlags_HasDeactivated = 32, ImGuiItemStatusFlags_Deactivated = 64, } alias ImGuiSliderFlagsPrivate_ = int; enum { ImGuiSliderFlags_Vertical = 1048576, ImGuiSliderFlags_ReadOnly = 2097152, } alias ImGuiInputReadMode = int; enum { ImGuiInputReadMode_Down = 0, ImGuiInputReadMode_Pressed = 1, ImGuiInputReadMode_Released = 2, ImGuiInputReadMode_Repeat = 3, ImGuiInputReadMode_RepeatSlow = 4, ImGuiInputReadMode_RepeatFast = 5, } alias ImGuiMouseButton_ = int; enum { ImGuiMouseButton_Left = 0, ImGuiMouseButton_Right = 1, ImGuiMouseButton_Middle = 2, ImGuiMouseButton_COUNT = 5, } alias ImGuiDockNodeFlagsPrivate_ = int; enum { ImGuiDockNodeFlags_DockSpace = 1024, ImGuiDockNodeFlags_CentralNode = 2048, ImGuiDockNodeFlags_NoTabBar = 4096, ImGuiDockNodeFlags_HiddenTabBar = 8192, ImGuiDockNodeFlags_NoWindowMenuButton = 16384, ImGuiDockNodeFlags_NoCloseButton = 32768, ImGuiDockNodeFlags_NoDocking = 65536, ImGuiDockNodeFlags_NoDockingSplitMe = 131072, ImGuiDockNodeFlags_NoDockingSplitOther = 262144, ImGuiDockNodeFlags_NoDockingOverMe = 524288, ImGuiDockNodeFlags_NoDockingOverOther = 1048576, ImGuiDockNodeFlags_NoResizeX = 2097152, ImGuiDockNodeFlags_NoResizeY = 4194304, ImGuiDockNodeFlags_SharedFlagsInheritMask_ = -1, ImGuiDockNodeFlags_NoResizeFlagsMask_ = 6291488, ImGuiDockNodeFlags_LocalFlagsMask_ = 6421616, ImGuiDockNodeFlags_LocalFlagsTransferMask_ = 6420592, ImGuiDockNodeFlags_SavedFlagsMask_ = 6421536, } alias ImGuiDataAuthority_ = int; enum { ImGuiDataAuthority_Auto = 0, ImGuiDataAuthority_DockNode = 1, ImGuiDataAuthority_Window = 2, } alias ImGuiNavDirSourceFlags_ = int; enum { ImGuiNavDirSourceFlags_None = 0, ImGuiNavDirSourceFlags_Keyboard = 1, ImGuiNavDirSourceFlags_PadDPad = 2, ImGuiNavDirSourceFlags_PadLStick = 4, } alias ImGuiTabBarFlagsPrivate_ = int; enum { ImGuiTabBarFlags_DockNode = 1048576, ImGuiTabBarFlags_IsFocused = 2097152, ImGuiTabBarFlags_SaveSettings = 4194304, } alias ImGuiTooltipFlags_ = int; enum { ImGuiTooltipFlags_None = 0, ImGuiTooltipFlags_OverridePreviousTooltip = 1, } alias ImGuiTabItemFlags_ = int; enum { ImGuiTabItemFlags_None = 0, ImGuiTabItemFlags_UnsavedDocument = 1, ImGuiTabItemFlags_SetSelected = 2, ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 4, ImGuiTabItemFlags_NoPushId = 8, ImGuiTabItemFlags_NoTooltip = 16, ImGuiTabItemFlags_NoReorder = 32, ImGuiTabItemFlags_Leading = 64, ImGuiTabItemFlags_Trailing = 128, } alias ImGuiPopupPositionPolicy = int; enum { ImGuiPopupPositionPolicy_Default = 0, ImGuiPopupPositionPolicy_ComboBox = 1, ImGuiPopupPositionPolicy_Tooltip = 2, } alias ImGuiConfigFlags_ = int; enum { ImGuiConfigFlags_None = 0, ImGuiConfigFlags_NavEnableKeyboard = 1, ImGuiConfigFlags_NavEnableGamepad = 2, ImGuiConfigFlags_NavEnableSetMousePos = 4, ImGuiConfigFlags_NavNoCaptureKeyboard = 8, ImGuiConfigFlags_NoMouse = 16, ImGuiConfigFlags_NoMouseCursorChange = 32, ImGuiConfigFlags_DockingEnable = 64, ImGuiConfigFlags_ViewportsEnable = 1024, ImGuiConfigFlags_DpiEnableScaleViewports = 16384, ImGuiConfigFlags_DpiEnableScaleFonts = 32768, ImGuiConfigFlags_IsSRGB = 1048576, ImGuiConfigFlags_IsTouchScreen = 2097152, } alias ImGuiKeyModFlags_ = int; enum { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = 1, ImGuiKeyModFlags_Shift = 2, ImGuiKeyModFlags_Alt = 4, ImGuiKeyModFlags_Super = 8, } alias ImGuiDataTypePrivate_ = int; enum { ImGuiDataType_String = 11, ImGuiDataType_Pointer = 12, ImGuiDataType_ID = 13, } alias ImGuiNavInput_ = int; enum { ImGuiNavInput_Activate = 0, ImGuiNavInput_Cancel = 1, ImGuiNavInput_Input = 2, ImGuiNavInput_Menu = 3, ImGuiNavInput_DpadLeft = 4, ImGuiNavInput_DpadRight = 5, ImGuiNavInput_DpadUp = 6, ImGuiNavInput_DpadDown = 7, ImGuiNavInput_LStickLeft = 8, ImGuiNavInput_LStickRight = 9, ImGuiNavInput_LStickUp = 10, ImGuiNavInput_LStickDown = 11, ImGuiNavInput_FocusPrev = 12, ImGuiNavInput_FocusNext = 13, ImGuiNavInput_TweakSlow = 14, ImGuiNavInput_TweakFast = 15, ImGuiNavInput_KeyMenu_ = 16, ImGuiNavInput_KeyLeft_ = 17, ImGuiNavInput_KeyRight_ = 18, ImGuiNavInput_KeyUp_ = 19, ImGuiNavInput_KeyDown_ = 20, ImGuiNavInput_COUNT = 21, ImGuiNavInput_InternalStart_ = 16, } alias ImGuiTreeNodeFlags_ = int; enum { ImGuiTreeNodeFlags_None = 0, ImGuiTreeNodeFlags_Selected = 1, ImGuiTreeNodeFlags_Framed = 2, ImGuiTreeNodeFlags_AllowItemOverlap = 4, ImGuiTreeNodeFlags_NoTreePushOnOpen = 8, ImGuiTreeNodeFlags_NoAutoOpenOnLog = 16, ImGuiTreeNodeFlags_DefaultOpen = 32, ImGuiTreeNodeFlags_OpenOnDoubleClick = 64, ImGuiTreeNodeFlags_OpenOnArrow = 128, ImGuiTreeNodeFlags_Leaf = 256, ImGuiTreeNodeFlags_Bullet = 512, ImGuiTreeNodeFlags_FramePadding = 1024, ImGuiTreeNodeFlags_SpanAvailWidth = 2048, ImGuiTreeNodeFlags_SpanFullWidth = 4096, ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 8192, ImGuiTreeNodeFlags_CollapsingHeader = 26, } alias ImGuiDir_ = int; enum { ImGuiDir_None = -1, ImGuiDir_Left = 0, ImGuiDir_Right = 1, ImGuiDir_Up = 2, ImGuiDir_Down = 3, ImGuiDir_COUNT = 4, } alias ImGuiNavMoveFlags_ = int; enum { ImGuiNavMoveFlags_None = 0, ImGuiNavMoveFlags_LoopX = 1, ImGuiNavMoveFlags_LoopY = 2, ImGuiNavMoveFlags_WrapX = 4, ImGuiNavMoveFlags_WrapY = 8, ImGuiNavMoveFlags_AllowCurrentNavId = 16, ImGuiNavMoveFlags_AlsoScoreVisibleSet = 32, ImGuiNavMoveFlags_ScrollToEdge = 64, } alias ImGuiTextFlags_ = int; enum { ImGuiTextFlags_None = 0, ImGuiTextFlags_NoWidthForLargeClippedText = 1, } alias ImGuiColorEditFlags_ = int; enum { ImGuiColorEditFlags_None = 0, ImGuiColorEditFlags_NoAlpha = 2, ImGuiColorEditFlags_NoPicker = 4, ImGuiColorEditFlags_NoOptions = 8, ImGuiColorEditFlags_NoSmallPreview = 16, ImGuiColorEditFlags_NoInputs = 32, ImGuiColorEditFlags_NoTooltip = 64, ImGuiColorEditFlags_NoLabel = 128, ImGuiColorEditFlags_NoSidePreview = 256, ImGuiColorEditFlags_NoDragDrop = 512, ImGuiColorEditFlags_NoBorder = 1024, ImGuiColorEditFlags_AlphaBar = 65536, ImGuiColorEditFlags_AlphaPreview = 131072, ImGuiColorEditFlags_AlphaPreviewHalf = 262144, ImGuiColorEditFlags_HDR = 524288, ImGuiColorEditFlags_DisplayRGB = 1048576, ImGuiColorEditFlags_DisplayHSV = 2097152, ImGuiColorEditFlags_DisplayHex = 4194304, ImGuiColorEditFlags_Uint8 = 8388608, ImGuiColorEditFlags_Float = 16777216, ImGuiColorEditFlags_PickerHueBar = 33554432, ImGuiColorEditFlags_PickerHueWheel = 67108864, ImGuiColorEditFlags_InputRGB = 134217728, ImGuiColorEditFlags_InputHSV = 268435456, ImGuiColorEditFlags__OptionsDefault = 177209344, ImGuiColorEditFlags__DisplayMask = 7340032, ImGuiColorEditFlags__DataTypeMask = 25165824, ImGuiColorEditFlags__PickerMask = 100663296, ImGuiColorEditFlags__InputMask = 402653184, } alias ImGuiTabBarFlags_ = int; enum { ImGuiTabBarFlags_None = 0, ImGuiTabBarFlags_Reorderable = 1, ImGuiTabBarFlags_AutoSelectNewTabs = 2, ImGuiTabBarFlags_TabListPopupButton = 4, ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 8, ImGuiTabBarFlags_NoTabListScrollingButtons = 16, ImGuiTabBarFlags_NoTooltip = 32, ImGuiTabBarFlags_FittingPolicyResizeDown = 64, ImGuiTabBarFlags_FittingPolicyScroll = 128, ImGuiTabBarFlags_FittingPolicyMask_ = 192, ImGuiTabBarFlags_FittingPolicyDefault_ = 64, } alias ImDrawListFlags_ = int; enum { ImDrawListFlags_None = 0, ImDrawListFlags_AntiAliasedLines = 1, ImDrawListFlags_AntiAliasedLinesUseTex = 2, ImDrawListFlags_AntiAliasedFill = 4, ImDrawListFlags_AllowVtxOffset = 8, } alias ImGuiWindowFlags_ = int; enum { ImGuiWindowFlags_None = 0, ImGuiWindowFlags_NoTitleBar = 1, ImGuiWindowFlags_NoResize = 2, ImGuiWindowFlags_NoMove = 4, ImGuiWindowFlags_NoScrollbar = 8, ImGuiWindowFlags_NoScrollWithMouse = 16, ImGuiWindowFlags_NoCollapse = 32, ImGuiWindowFlags_AlwaysAutoResize = 64, ImGuiWindowFlags_NoBackground = 128, ImGuiWindowFlags_NoSavedSettings = 256, ImGuiWindowFlags_NoMouseInputs = 512, ImGuiWindowFlags_MenuBar = 1024, ImGuiWindowFlags_HorizontalScrollbar = 2048, ImGuiWindowFlags_NoFocusOnAppearing = 4096, ImGuiWindowFlags_NoBringToFrontOnFocus = 8192, ImGuiWindowFlags_AlwaysVerticalScrollbar = 16384, ImGuiWindowFlags_AlwaysHorizontalScrollbar = 32768, ImGuiWindowFlags_AlwaysUseWindowPadding = 65536, ImGuiWindowFlags_NoNavInputs = 262144, ImGuiWindowFlags_NoNavFocus = 524288, ImGuiWindowFlags_UnsavedDocument = 1048576, ImGuiWindowFlags_NoDocking = 2097152, ImGuiWindowFlags_NoNav = 786432, ImGuiWindowFlags_NoDecoration = 43, ImGuiWindowFlags_NoInputs = 786944, ImGuiWindowFlags_NavFlattened = 8388608, ImGuiWindowFlags_ChildWindow = 16777216, ImGuiWindowFlags_Tooltip = 33554432, ImGuiWindowFlags_Popup = 67108864, ImGuiWindowFlags_Modal = 134217728, ImGuiWindowFlags_ChildMenu = 268435456, ImGuiWindowFlags_DockNodeHost = 536870912, } alias ImGuiCond_ = int; enum { ImGuiCond_None = 0, ImGuiCond_Always = 1, ImGuiCond_Once = 2, ImGuiCond_FirstUseEver = 4, ImGuiCond_Appearing = 8, } alias ImGuiSelectableFlags_ = int; enum { ImGuiSelectableFlags_None = 0, ImGuiSelectableFlags_DontClosePopups = 1, ImGuiSelectableFlags_SpanAllColumns = 2, ImGuiSelectableFlags_AllowDoubleClick = 4, ImGuiSelectableFlags_Disabled = 8, ImGuiSelectableFlags_AllowItemOverlap = 16, } alias ImGuiNextWindowDataFlags_ = int; enum { ImGuiNextWindowDataFlags_None = 0, ImGuiNextWindowDataFlags_HasPos = 1, ImGuiNextWindowDataFlags_HasSize = 2, ImGuiNextWindowDataFlags_HasContentSize = 4, ImGuiNextWindowDataFlags_HasCollapsed = 8, ImGuiNextWindowDataFlags_HasSizeConstraint = 16, ImGuiNextWindowDataFlags_HasFocus = 32, ImGuiNextWindowDataFlags_HasBgAlpha = 64, ImGuiNextWindowDataFlags_HasScroll = 128, ImGuiNextWindowDataFlags_HasViewport = 256, ImGuiNextWindowDataFlags_HasDock = 512, ImGuiNextWindowDataFlags_HasWindowClass = 1024, } alias ImGuiStyleVar_ = int; enum { ImGuiStyleVar_Alpha = 0, ImGuiStyleVar_WindowPadding = 1, ImGuiStyleVar_WindowRounding = 2, ImGuiStyleVar_WindowBorderSize = 3, ImGuiStyleVar_WindowMinSize = 4, ImGuiStyleVar_WindowTitleAlign = 5, ImGuiStyleVar_ChildRounding = 6, ImGuiStyleVar_ChildBorderSize = 7, ImGuiStyleVar_PopupRounding = 8, ImGuiStyleVar_PopupBorderSize = 9, ImGuiStyleVar_FramePadding = 10, ImGuiStyleVar_FrameRounding = 11, ImGuiStyleVar_FrameBorderSize = 12, ImGuiStyleVar_ItemSpacing = 13, ImGuiStyleVar_ItemInnerSpacing = 14, ImGuiStyleVar_IndentSpacing = 15, ImGuiStyleVar_ScrollbarSize = 16, ImGuiStyleVar_ScrollbarRounding = 17, ImGuiStyleVar_GrabMinSize = 18, ImGuiStyleVar_GrabRounding = 19, ImGuiStyleVar_TabRounding = 20, ImGuiStyleVar_ButtonTextAlign = 21, ImGuiStyleVar_SelectableTextAlign = 22, ImGuiStyleVar_COUNT = 23, } alias ImDrawCornerFlags_ = int; enum { ImDrawCornerFlags_None = 0, ImDrawCornerFlags_TopLeft = 1, ImDrawCornerFlags_TopRight = 2, ImDrawCornerFlags_BotLeft = 4, ImDrawCornerFlags_BotRight = 8, ImDrawCornerFlags_Top = 3, ImDrawCornerFlags_Bot = 12, ImDrawCornerFlags_Left = 5, ImDrawCornerFlags_Right = 10, ImDrawCornerFlags_All = 15, } alias ImGuiComboFlags_ = int; enum { ImGuiComboFlags_None = 0, ImGuiComboFlags_PopupAlignLeft = 1, ImGuiComboFlags_HeightSmall = 2, ImGuiComboFlags_HeightRegular = 4, ImGuiComboFlags_HeightLarge = 8, ImGuiComboFlags_HeightLargest = 16, ImGuiComboFlags_NoArrowButton = 32, ImGuiComboFlags_NoPreview = 64, ImGuiComboFlags_HeightMask_ = 30, } alias ImGuiBackendFlags_ = int; enum { ImGuiBackendFlags_None = 0, ImGuiBackendFlags_HasGamepad = 1, ImGuiBackendFlags_HasMouseCursors = 2, ImGuiBackendFlags_HasSetMousePos = 4, ImGuiBackendFlags_RendererHasVtxOffset = 8, ImGuiBackendFlags_PlatformHasViewports = 1024, ImGuiBackendFlags_HasMouseHoveredViewport = 2048, ImGuiBackendFlags_RendererHasViewports = 4096, } alias ImFontAtlasFlags_ = int; enum { ImFontAtlasFlags_None = 0, ImFontAtlasFlags_NoPowerOfTwoHeight = 1, ImFontAtlasFlags_NoMouseCursors = 2, ImFontAtlasFlags_NoBakedLines = 4, } alias ImGuiItemFlags_ = int; enum { ImGuiItemFlags_None = 0, ImGuiItemFlags_NoTabStop = 1, ImGuiItemFlags_ButtonRepeat = 2, ImGuiItemFlags_Disabled = 4, ImGuiItemFlags_NoNav = 8, ImGuiItemFlags_NoNavDefaultFocus = 16, ImGuiItemFlags_SelectableDontClosePopup = 32, ImGuiItemFlags_MixedValue = 64, ImGuiItemFlags_ReadOnly = 128, ImGuiItemFlags_Default_ = 0, } alias ImGuiNavLayer = int; enum { ImGuiNavLayer_Main = 0, ImGuiNavLayer_Menu = 1, ImGuiNavLayer_COUNT = 2, } alias ImGuiDockNodeState = int; enum { ImGuiDockNodeState_Unknown = 0, ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow = 1, ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing = 2, ImGuiDockNodeState_HostWindowVisible = 3, } alias ImGuiAxis = int; enum { ImGuiAxis_None = -1, ImGuiAxis_X = 0, ImGuiAxis_Y = 1, } alias ImGuiButtonFlagsPrivate_ = int; enum { ImGuiButtonFlags_PressedOnClick = 16, ImGuiButtonFlags_PressedOnClickRelease = 32, ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 64, ImGuiButtonFlags_PressedOnRelease = 128, ImGuiButtonFlags_PressedOnDoubleClick = 256, ImGuiButtonFlags_PressedOnDragDropHold = 512, ImGuiButtonFlags_Repeat = 1024, ImGuiButtonFlags_FlattenChildren = 2048, ImGuiButtonFlags_AllowItemOverlap = 4096, ImGuiButtonFlags_DontClosePopups = 8192, ImGuiButtonFlags_Disabled = 16384, ImGuiButtonFlags_AlignTextBaseLine = 32768, ImGuiButtonFlags_NoKeyModifiers = 65536, ImGuiButtonFlags_NoHoldingActiveId = 131072, ImGuiButtonFlags_NoNavFocus = 262144, ImGuiButtonFlags_NoHoveredOnFocus = 524288, ImGuiButtonFlags_PressedOnMask_ = 1008, ImGuiButtonFlags_PressedOnDefault_ = 32, } alias ImGuiDragDropFlags_ = int; enum { ImGuiDragDropFlags_None = 0, ImGuiDragDropFlags_SourceNoPreviewTooltip = 1, ImGuiDragDropFlags_SourceNoDisableHover = 2, ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 4, ImGuiDragDropFlags_SourceAllowNullID = 8, ImGuiDragDropFlags_SourceExtern = 16, ImGuiDragDropFlags_SourceAutoExpirePayload = 32, ImGuiDragDropFlags_AcceptBeforeDelivery = 1024, ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 2048, ImGuiDragDropFlags_AcceptNoPreviewTooltip = 4096, ImGuiDragDropFlags_AcceptPeekOnly = 3072, } alias ImGuiLogType = int; enum { ImGuiLogType_None = 0, ImGuiLogType_TTY = 1, ImGuiLogType_File = 2, ImGuiLogType_Buffer = 3, ImGuiLogType_Clipboard = 4, } alias ImGuiNavForward = int; enum { ImGuiNavForward_None = 0, ImGuiNavForward_ForwardQueued = 1, ImGuiNavForward_ForwardActive = 2, } alias ImGuiNavHighlightFlags_ = int; enum { ImGuiNavHighlightFlags_None = 0, ImGuiNavHighlightFlags_TypeDefault = 1, ImGuiNavHighlightFlags_TypeThin = 2, ImGuiNavHighlightFlags_AlwaysDraw = 4, ImGuiNavHighlightFlags_NoRounding = 8, } alias ImGuiTreeNodeFlagsPrivate_ = int; enum { ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1048576, } alias ImGuiFocusedFlags_ = int; enum { ImGuiFocusedFlags_None = 0, ImGuiFocusedFlags_ChildWindows = 1, ImGuiFocusedFlags_RootWindow = 2, ImGuiFocusedFlags_AnyWindow = 4, ImGuiFocusedFlags_RootAndChildWindows = 3, } alias ImGuiTabItemFlagsPrivate_ = int; enum { ImGuiTabItemFlags_NoCloseButton = 1048576, ImGuiTabItemFlags_Button = 2097152, ImGuiTabItemFlags_Unsorted = 4194304, ImGuiTabItemFlags_Preview = 8388608, } alias ImGuiSliderFlags_ = int; enum { ImGuiSliderFlags_None = 0, ImGuiSliderFlags_AlwaysClamp = 16, ImGuiSliderFlags_Logarithmic = 32, ImGuiSliderFlags_NoRoundToFormat = 64, ImGuiSliderFlags_NoInput = 128, ImGuiSliderFlags_InvalidMask_ = 1879048207, } alias ImGuiDataType_ = int; enum { ImGuiDataType_S8 = 0, ImGuiDataType_U8 = 1, ImGuiDataType_S16 = 2, ImGuiDataType_U16 = 3, ImGuiDataType_S32 = 4, ImGuiDataType_U32 = 5, ImGuiDataType_S64 = 6, ImGuiDataType_U64 = 7, ImGuiDataType_Float = 8, ImGuiDataType_Double = 9, ImGuiDataType_COUNT = 10, } alias ImGuiKey_ = int; enum { ImGuiKey_Tab = 0, ImGuiKey_LeftArrow = 1, ImGuiKey_RightArrow = 2, ImGuiKey_UpArrow = 3, ImGuiKey_DownArrow = 4, ImGuiKey_PageUp = 5, ImGuiKey_PageDown = 6, ImGuiKey_Home = 7, ImGuiKey_End = 8, ImGuiKey_Insert = 9, ImGuiKey_Delete = 10, ImGuiKey_Backspace = 11, ImGuiKey_Space = 12, ImGuiKey_Enter = 13, ImGuiKey_Escape = 14, ImGuiKey_KeyPadEnter = 15, ImGuiKey_A = 16, ImGuiKey_C = 17, ImGuiKey_V = 18, ImGuiKey_X = 19, ImGuiKey_Y = 20, ImGuiKey_Z = 21, ImGuiKey_COUNT = 22, } alias ImGuiCol_ = int; enum { ImGuiCol_Text = 0, ImGuiCol_TextDisabled = 1, ImGuiCol_WindowBg = 2, ImGuiCol_ChildBg = 3, ImGuiCol_PopupBg = 4, ImGuiCol_Border = 5, ImGuiCol_BorderShadow = 6, ImGuiCol_FrameBg = 7, ImGuiCol_FrameBgHovered = 8, ImGuiCol_FrameBgActive = 9, ImGuiCol_TitleBg = 10, ImGuiCol_TitleBgActive = 11, ImGuiCol_TitleBgCollapsed = 12, ImGuiCol_MenuBarBg = 13, ImGuiCol_ScrollbarBg = 14, ImGuiCol_ScrollbarGrab = 15, ImGuiCol_ScrollbarGrabHovered = 16, ImGuiCol_ScrollbarGrabActive = 17, ImGuiCol_CheckMark = 18, ImGuiCol_SliderGrab = 19, ImGuiCol_SliderGrabActive = 20, ImGuiCol_Button = 21, ImGuiCol_ButtonHovered = 22, ImGuiCol_ButtonActive = 23, ImGuiCol_Header = 24, ImGuiCol_HeaderHovered = 25, ImGuiCol_HeaderActive = 26, ImGuiCol_Separator = 27, ImGuiCol_SeparatorHovered = 28, ImGuiCol_SeparatorActive = 29, ImGuiCol_ResizeGrip = 30, ImGuiCol_ResizeGripHovered = 31, ImGuiCol_ResizeGripActive = 32, ImGuiCol_Tab = 33, ImGuiCol_TabHovered = 34, ImGuiCol_TabActive = 35, ImGuiCol_TabUnfocused = 36, ImGuiCol_TabUnfocusedActive = 37, ImGuiCol_DockingPreview = 38, ImGuiCol_DockingEmptyBg = 39, ImGuiCol_PlotLines = 40, ImGuiCol_PlotLinesHovered = 41, ImGuiCol_PlotHistogram = 42, ImGuiCol_PlotHistogramHovered = 43, ImGuiCol_TextSelectedBg = 44, ImGuiCol_DragDropTarget = 45, ImGuiCol_NavHighlight = 46, ImGuiCol_NavWindowingHighlight = 47, ImGuiCol_NavWindowingDimBg = 48, ImGuiCol_ModalWindowDimBg = 49, ImGuiCol_COUNT = 50, } alias ImGuiButtonFlags_ = int; enum { ImGuiButtonFlags_None = 0, ImGuiButtonFlags_MouseButtonLeft = 1, ImGuiButtonFlags_MouseButtonRight = 2, ImGuiButtonFlags_MouseButtonMiddle = 4, ImGuiButtonFlags_MouseButtonMask_ = 7, ImGuiButtonFlags_MouseButtonDefault_ = 1, } alias ImGuiViewportFlags_ = int; enum { ImGuiViewportFlags_None = 0, ImGuiViewportFlags_NoDecoration = 1, ImGuiViewportFlags_NoTaskBarIcon = 2, ImGuiViewportFlags_NoFocusOnAppearing = 4, ImGuiViewportFlags_NoFocusOnClick = 8, ImGuiViewportFlags_NoInputs = 16, ImGuiViewportFlags_NoRendererClear = 32, ImGuiViewportFlags_TopMost = 64, ImGuiViewportFlags_Minimized = 128, ImGuiViewportFlags_NoAutoMerge = 256, ImGuiViewportFlags_CanHostOtherWindows = 512, } alias ImGuiSelectableFlagsPrivate_ = int; enum { ImGuiSelectableFlags_NoHoldingActiveID = 1048576, ImGuiSelectableFlags_SelectOnClick = 2097152, ImGuiSelectableFlags_SelectOnRelease = 4194304, ImGuiSelectableFlags_SpanAvailWidth = 8388608, ImGuiSelectableFlags_DrawHoveredWhenHeld = 16777216, ImGuiSelectableFlags_SetNavIdOnHover = 33554432, ImGuiSelectableFlags_NoPadWithHalfSpacing = 67108864, } alias ImGuiInputSource = int; enum { ImGuiInputSource_None = 0, ImGuiInputSource_Mouse = 1, ImGuiInputSource_Nav = 2, ImGuiInputSource_NavKeyboard = 3, ImGuiInputSource_NavGamepad = 4, ImGuiInputSource_COUNT = 5, } alias ImGuiMouseCursor_ = int; enum { ImGuiMouseCursor_None = -1, ImGuiMouseCursor_Arrow = 0, ImGuiMouseCursor_TextInput = 1, ImGuiMouseCursor_ResizeAll = 2, ImGuiMouseCursor_ResizeNS = 3, ImGuiMouseCursor_ResizeEW = 4, ImGuiMouseCursor_ResizeNESW = 5, ImGuiMouseCursor_ResizeNWSE = 6, ImGuiMouseCursor_Hand = 7, ImGuiMouseCursor_NotAllowed = 8, ImGuiMouseCursor_COUNT = 9, } alias ImGuiPlotType = int; enum { ImGuiPlotType_Lines = 0, ImGuiPlotType_Histogram = 1, } alias ImGuiColumnsFlags_ = int; enum { ImGuiColumnsFlags_None = 0, ImGuiColumnsFlags_NoBorder = 1, ImGuiColumnsFlags_NoResize = 2, ImGuiColumnsFlags_NoPreserveWidths = 4, ImGuiColumnsFlags_NoForceWithinWindow = 8, ImGuiColumnsFlags_GrowParentContentsSize = 16, } alias ImGuiDockNodeFlags_ = int; enum { ImGuiDockNodeFlags_None = 0, ImGuiDockNodeFlags_KeepAliveOnly = 1, ImGuiDockNodeFlags_NoDockingInCentralNode = 4, ImGuiDockNodeFlags_PassthruCentralNode = 8, ImGuiDockNodeFlags_NoSplit = 16, ImGuiDockNodeFlags_NoResize = 32, ImGuiDockNodeFlags_AutoHideTabBar = 64, } alias ImGuiInputTextFlags_ = int; enum { ImGuiInputTextFlags_None = 0, ImGuiInputTextFlags_CharsDecimal = 1, ImGuiInputTextFlags_CharsHexadecimal = 2, ImGuiInputTextFlags_CharsUppercase = 4, ImGuiInputTextFlags_CharsNoBlank = 8, ImGuiInputTextFlags_AutoSelectAll = 16, ImGuiInputTextFlags_EnterReturnsTrue = 32, ImGuiInputTextFlags_CallbackCompletion = 64, ImGuiInputTextFlags_CallbackHistory = 128, ImGuiInputTextFlags_CallbackAlways = 256, ImGuiInputTextFlags_CallbackCharFilter = 512, ImGuiInputTextFlags_AllowTabInput = 1024, ImGuiInputTextFlags_CtrlEnterForNewLine = 2048, ImGuiInputTextFlags_NoHorizontalScroll = 4096, ImGuiInputTextFlags_AlwaysInsertMode = 8192, ImGuiInputTextFlags_ReadOnly = 16384, ImGuiInputTextFlags_Password = 32768, ImGuiInputTextFlags_NoUndoRedo = 65536, ImGuiInputTextFlags_CharsScientific = 131072, ImGuiInputTextFlags_CallbackResize = 262144, ImGuiInputTextFlags_CallbackEdit = 524288, ImGuiInputTextFlags_Multiline = 1048576, ImGuiInputTextFlags_NoMarkEdited = 2097152, } alias ImGuiPopupFlags_ = int; enum { ImGuiPopupFlags_None = 0, ImGuiPopupFlags_MouseButtonLeft = 0, ImGuiPopupFlags_MouseButtonRight = 1, ImGuiPopupFlags_MouseButtonMiddle = 2, ImGuiPopupFlags_MouseButtonMask_ = 31, ImGuiPopupFlags_MouseButtonDefault_ = 1, ImGuiPopupFlags_NoOpenOverExistingPopup = 32, ImGuiPopupFlags_NoOpenOverItems = 64, ImGuiPopupFlags_AnyPopupId = 128, ImGuiPopupFlags_AnyPopupLevel = 256, ImGuiPopupFlags_AnyPopup = 384, } alias ImGuiSeparatorFlags_ = int; enum { ImGuiSeparatorFlags_None = 0, ImGuiSeparatorFlags_Horizontal = 1, ImGuiSeparatorFlags_Vertical = 2, ImGuiSeparatorFlags_SpanAllColumns = 4, } alias ImGuiHoveredFlags_ = int; enum { ImGuiHoveredFlags_None = 0, ImGuiHoveredFlags_ChildWindows = 1, ImGuiHoveredFlags_RootWindow = 2, ImGuiHoveredFlags_AnyWindow = 4, ImGuiHoveredFlags_AllowWhenBlockedByPopup = 8, ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 32, ImGuiHoveredFlags_AllowWhenOverlapped = 64, ImGuiHoveredFlags_AllowWhenDisabled = 128, ImGuiHoveredFlags_RectOnly = 104, ImGuiHoveredFlags_RootAndChildWindows = 3, } struct ImGuiSizeCallbackData { void* UserData; ImVec2 Pos; ImVec2 CurrentSize; ImVec2 DesiredSize; } struct ImGuiShrinkWidthItem { int Index; float Width; } struct ImGuiStyleMod { ImGuiStyleVar VarIdx; union { int[2] BackupInt; float[2] BackupFloat;} ; } struct ImRect { ImVec2 Min; ImVec2 Max; } struct ImFontGlyphRangesBuilder { ImVector_ImU32 UsedChars; } struct ImGuiDataTypeTempStorage { ImU8[8] Data; } struct ImGuiIO { ImGuiConfigFlags ConfigFlags; ImGuiBackendFlags BackendFlags; ImVec2 DisplaySize; float DeltaTime; float IniSavingRate; const char* IniFilename; const char* LogFilename; float MouseDoubleClickTime; float MouseDoubleClickMaxDist; float MouseDragThreshold; int[ImGuiKey_COUNT] KeyMap; float KeyRepeatDelay; float KeyRepeatRate; void* UserData; ImFontAtlas* Fonts; float FontGlobalScale; bool FontAllowUserScaling; ImFont* FontDefault; ImVec2 DisplayFramebufferScale; bool ConfigDockingNoSplit; bool ConfigDockingWithShift; bool ConfigDockingAlwaysTabBar; bool ConfigDockingTransparentPayload; bool ConfigViewportsNoAutoMerge; bool ConfigViewportsNoTaskBarIcon; bool ConfigViewportsNoDecoration; bool ConfigViewportsNoDefaultParent; bool MouseDrawCursor; bool ConfigMacOSXBehaviors; bool ConfigInputTextCursorBlink; bool ConfigWindowsResizeFromEdges; bool ConfigWindowsMoveFromTitleBarOnly; float ConfigWindowsMemoryCompactTimer; const char* BackendPlatformName; const char* BackendRendererName; void* BackendPlatformUserData; void* BackendRendererUserData; void* BackendLanguageUserData; const char* function(void* user_data) GetClipboardTextFn; void function(void* user_data,const char* text) SetClipboardTextFn; void* ClipboardUserData; void* RenderDrawListsFnUnused; ImVec2 MousePos; bool[5] MouseDown; float MouseWheel; float MouseWheelH; ImGuiID MouseHoveredViewport; bool KeyCtrl; bool KeyShift; bool KeyAlt; bool KeySuper; bool[512] KeysDown; float[ImGuiNavInput_COUNT] NavInputs; bool WantCaptureMouse; bool WantCaptureKeyboard; bool WantTextInput; bool WantSetMousePos; bool WantSaveIniSettings; bool NavActive; bool NavVisible; float Framerate; int MetricsRenderVertices; int MetricsRenderIndices; int MetricsRenderWindows; int MetricsActiveWindows; int MetricsActiveAllocations; ImVec2 MouseDelta; ImGuiKeyModFlags KeyMods; ImVec2 MousePosPrev; ImVec2[5] MouseClickedPos; double[5] MouseClickedTime; bool[5] MouseClicked; bool[5] MouseDoubleClicked; bool[5] MouseReleased; bool[5] MouseDownOwned; bool[5] MouseDownWasDoubleClick; float[5] MouseDownDuration; float[5] MouseDownDurationPrev; ImVec2[5] MouseDragMaxDistanceAbs; float[5] MouseDragMaxDistanceSqr; float[512] KeysDownDuration; float[512] KeysDownDurationPrev; float[ImGuiNavInput_COUNT] NavInputsDownDuration; float[ImGuiNavInput_COUNT] NavInputsDownDurationPrev; float PenPressure; ImWchar16 InputQueueSurrogate; ImVector_ImWchar InputQueueCharacters; } struct ImGuiTextFilter { char[256] InputBuf; ImVector_ImGuiTextRange Filters; int CountGrep; } struct ImGuiDataTypeInfo { size_t Size; const char* Name; const char* PrintFmt; const char* ScanFmt; } struct ImFontAtlasCustomRect { ushort Width; ushort Height; ushort X; ushort Y; uint GlyphID; float GlyphAdvanceX; ImVec2 GlyphOffset; ImFont* Font; } struct ImGuiColumns { ImGuiID ID; ImGuiColumnsFlags Flags; bool IsFirstFrame; bool IsBeingResized; int Current; int Count; float OffMinX; float OffMaxX; float LineMinY; float LineMaxY; float HostCursorPosY; float HostCursorMaxPosX; ImRect HostInitialClipRect; ImRect HostBackupClipRect; ImRect HostBackupParentWorkRect; ImVector_ImGuiColumnData Columns; ImDrawListSplitter Splitter; } struct ImGuiWindow { char* Name; ImGuiID ID; ImGuiWindowFlags Flags; ImGuiWindowFlags FlagsPreviousFrame; ImGuiWindowClass WindowClass; ImGuiViewportP* Viewport; ImGuiID ViewportId; ImVec2 ViewportPos; int ViewportAllowPlatformMonitorExtend; ImVec2 Pos; ImVec2 Size; ImVec2 SizeFull; ImVec2 ContentSize; ImVec2 ContentSizeExplicit; ImVec2 WindowPadding; float WindowRounding; float WindowBorderSize; int NameBufLen; ImGuiID MoveId; ImGuiID ChildId; ImVec2 Scroll; ImVec2 ScrollMax; ImVec2 ScrollTarget; ImVec2 ScrollTargetCenterRatio; ImVec2 ScrollTargetEdgeSnapDist; ImVec2 ScrollbarSizes; bool ScrollbarX; bool ScrollbarY; bool ViewportOwned; bool Active; bool WasActive; bool WriteAccessed; bool Collapsed; bool WantCollapseToggle; bool SkipItems; bool Appearing; bool Hidden; bool IsFallbackWindow; bool HasCloseButton; byte ResizeBorderHeld; short BeginCount; short BeginOrderWithinParent; short BeginOrderWithinContext; ImGuiID PopupId; ImS8 AutoFitFramesX; ImS8 AutoFitFramesY; ImS8 AutoFitChildAxises; bool AutoFitOnlyGrows; ImGuiDir AutoPosLastDirection; int HiddenFramesCanSkipItems; int HiddenFramesCannotSkipItems; ImGuiCond SetWindowPosAllowFlags; ImGuiCond SetWindowSizeAllowFlags; ImGuiCond SetWindowCollapsedAllowFlags; ImGuiCond SetWindowDockAllowFlags; ImVec2 SetWindowPosVal; ImVec2 SetWindowPosPivot; ImVector_ImGuiID IDStack; ImGuiWindowTempData DC; ImRect OuterRectClipped; ImRect InnerRect; ImRect InnerClipRect; ImRect WorkRect; ImRect ParentWorkRect; ImRect ClipRect; ImRect ContentRegionRect; ImVec2ih HitTestHoleSize; ImVec2ih HitTestHoleOffset; int LastFrameActive; int LastFrameJustFocused; float LastTimeActive; float ItemWidthDefault; ImGuiStorage StateStorage; ImVector_ImGuiColumns ColumnsStorage; float FontWindowScale; float FontDpiScale; int SettingsOffset; ImDrawList* DrawList; ImDrawList DrawListInst; ImGuiWindow* ParentWindow; ImGuiWindow* RootWindow; ImGuiWindow* RootWindowDockStop; ImGuiWindow* RootWindowForTitleBarHighlight; ImGuiWindow* RootWindowForNav; ImGuiWindow* NavLastChildNavWindow; ImGuiID[ImGuiNavLayer_COUNT] NavLastIds; ImRect[ImGuiNavLayer_COUNT] NavRectRel; bool MemoryCompacted; int MemoryDrawListIdxCapacity; int MemoryDrawListVtxCapacity; ImGuiDockNode* DockNode; ImGuiDockNode* DockNodeAsHost; ImGuiID DockId; ImGuiItemStatusFlags DockTabItemStatusFlags; ImRect DockTabItemRect; short DockOrder; bool DockIsActive; bool DockTabIsVisible; bool DockTabWantClose; } struct ImGuiPopupData { ImGuiID PopupId; ImGuiWindow* Window; ImGuiWindow* SourceWindow; int OpenFrameCount; ImGuiID OpenParentId; ImVec2 OpenPopupPos; ImVec2 OpenMousePos; } struct ImGuiTabBar { ImVector_ImGuiTabItem Tabs; ImGuiID ID; ImGuiID SelectedTabId; ImGuiID NextSelectedTabId; ImGuiID VisibleTabId; int CurrFrameVisible; int PrevFrameVisible; ImRect BarRect; float LastTabContentHeight; float WidthAllTabs; float WidthAllTabsIdeal; float ScrollingAnim; float ScrollingTarget; float ScrollingTargetDistToVisibility; float ScrollingSpeed; float ScrollingRectMinX; float ScrollingRectMaxX; ImGuiTabBarFlags Flags; ImGuiID ReorderRequestTabId; ImS8 ReorderRequestDir; ImS8 TabsActiveCount; bool WantLayout; bool VisibleTabWasSubmitted; bool TabsAddedNew; short LastTabItemIdx; ImVec2 FramePadding; ImGuiTextBuffer TabsNames; } struct ImVec2 { float x; float y; } struct ImGuiPayload { void* Data; int DataSize; ImGuiID SourceId; ImGuiID SourceParentId; int DataFrameCount; char[32+1] DataType; bool Preview; bool Delivery; } struct ImBitVector { ImVector_ImU32 Storage; } struct ImDrawVert { ImVec2 pos; ImVec2 uv; ImU32 col; } struct ImGuiViewport { ImGuiID ID; ImGuiViewportFlags Flags; ImVec2 Pos; ImVec2 Size; ImVec2 WorkOffsetMin; ImVec2 WorkOffsetMax; float DpiScale; ImDrawData* DrawData; ImGuiID ParentViewportId; void* RendererUserData; void* PlatformUserData; void* PlatformHandle; void* PlatformHandleRaw; bool PlatformRequestMove; bool PlatformRequestResize; bool PlatformRequestClose; } struct ImGuiWindowClass { ImGuiID ClassId; ImGuiID ParentViewportId; ImGuiViewportFlags ViewportFlagsOverrideSet; ImGuiViewportFlags ViewportFlagsOverrideClear; ImGuiDockNodeFlags DockNodeFlagsOverrideSet; ImGuiDockNodeFlags DockNodeFlagsOverrideClear; bool DockingAlwaysTabBar; bool DockingAllowUnclassed; } struct StbTexteditRow { float x0; float x1; float baseline_y_delta; float ymin; float ymax; int num_chars; } struct ImGuiWindowTempData { ImVec2 CursorPos; ImVec2 CursorPosPrevLine; ImVec2 CursorStartPos; ImVec2 CursorMaxPos; ImVec2 CurrLineSize; ImVec2 PrevLineSize; float CurrLineTextBaseOffset; float PrevLineTextBaseOffset; ImVec1 Indent; ImVec1 ColumnsOffset; ImVec1 GroupOffset; ImGuiID LastItemId; ImGuiItemStatusFlags LastItemStatusFlags; ImRect LastItemRect; ImRect LastItemDisplayRect; ImGuiNavLayer NavLayerCurrent; int NavLayerActiveMask; int NavLayerActiveMaskNext; ImGuiID NavFocusScopeIdCurrent; bool NavHideHighlightOneFrame; bool NavHasScroll; bool MenuBarAppending; ImVec2 MenuBarOffset; ImGuiMenuColumns MenuColumns; int TreeDepth; ImU32 TreeJumpToParentOnPopMask; ImVector_ImGuiWindowPtr ChildWindows; ImGuiStorage* StateStorage; ImGuiColumns* CurrentColumns; ImGuiLayoutType LayoutType; ImGuiLayoutType ParentLayoutType; int FocusCounterRegular; int FocusCounterTabStop; ImGuiItemFlags ItemFlags; float ItemWidth; float TextWrapPos; ImVector_ImGuiItemFlags ItemFlagsStack; ImVector_float ItemWidthStack; ImVector_float TextWrapPosStack; ImVector_ImGuiGroupData GroupStack; short[6] StackSizesBackup; } struct StbUndoRecord { int where; int insert_length; int delete_length; int char_storage; } struct ImGuiGroupData { ImVec2 BackupCursorPos; ImVec2 BackupCursorMaxPos; ImVec1 BackupIndent; ImVec1 BackupGroupOffset; ImVec2 BackupCurrLineSize; float BackupCurrLineTextBaseOffset; ImGuiID BackupActiveIdIsAlive; bool BackupActiveIdPreviousFrameIsAlive; bool EmitItem; } struct ImGuiColorMod { ImGuiCol Col; ImVec4 BackupValue; } struct ImColor { ImVec4 Value; } struct ImGuiInputTextCallbackData { ImGuiInputTextFlags EventFlag; ImGuiInputTextFlags Flags; void* UserData; ImWchar EventChar; ImGuiKey EventKey; char* Buf; int BufTextLen; int BufSize; bool BufDirty; int CursorPos; int SelectionStart; int SelectionEnd; } struct ImGuiPlatformIO { void function(ImGuiViewport* vp) Platform_CreateWindow; void function(ImGuiViewport* vp) Platform_DestroyWindow; void function(ImGuiViewport* vp) Platform_ShowWindow; void function(ImGuiViewport* vp,ImVec2 pos) Platform_SetWindowPos; ImVec2 function(ImGuiViewport* vp) Platform_GetWindowPos; void function(ImGuiViewport* vp,ImVec2 size) Platform_SetWindowSize; ImVec2 function(ImGuiViewport* vp) Platform_GetWindowSize; void function(ImGuiViewport* vp) Platform_SetWindowFocus; bool function(ImGuiViewport* vp) Platform_GetWindowFocus; bool function(ImGuiViewport* vp) Platform_GetWindowMinimized; void function(ImGuiViewport* vp,const char* str) Platform_SetWindowTitle; void function(ImGuiViewport* vp,float alpha) Platform_SetWindowAlpha; void function(ImGuiViewport* vp) Platform_UpdateWindow; void function(ImGuiViewport* vp,void* render_arg) Platform_RenderWindow; void function(ImGuiViewport* vp,void* render_arg) Platform_SwapBuffers; float function(ImGuiViewport* vp) Platform_GetWindowDpiScale; void function(ImGuiViewport* vp) Platform_OnChangedViewport; void function(ImGuiViewport* vp,ImVec2 pos) Platform_SetImeInputPos; int function(ImGuiViewport* vp,ImU64 vk_inst,const void* vk_allocators,ImU64* out_vk_surface) Platform_CreateVkSurface; void function(ImGuiViewport* vp) Renderer_CreateWindow; void function(ImGuiViewport* vp) Renderer_DestroyWindow; void function(ImGuiViewport* vp,ImVec2 size) Renderer_SetWindowSize; void function(ImGuiViewport* vp,void* render_arg) Renderer_RenderWindow; void function(ImGuiViewport* vp,void* render_arg) Renderer_SwapBuffers; ImVector_ImGuiPlatformMonitor Monitors; ImGuiViewport* MainViewport; ImVector_ImGuiViewportPtr Viewports; } struct ImFontGlyph { uint Codepoint; uint Visible; float AdvanceX; float X0; float Y0; float X1; float Y1; float U0; float V0; float U1; float V1; } struct ImGuiNextItemData { ImGuiNextItemDataFlags Flags; float Width; ImGuiID FocusScopeId; ImGuiCond OpenCond; bool OpenVal; } struct ImFontAtlas { bool Locked; ImFontAtlasFlags Flags; ImTextureID TexID; int TexDesiredWidth; int TexGlyphPadding; char* TexPixelsAlpha8; uint* TexPixelsRGBA32; int TexWidth; int TexHeight; ImVec2 TexUvScale; ImVec2 TexUvWhitePixel; ImVector_ImFontPtr Fonts; ImVector_ImFontAtlasCustomRect CustomRects; ImVector_ImFontConfig ConfigData; ImVec4[(63)+1] TexUvLines; int PackIdMouseCursors; int PackIdLines; } struct ImGuiStyle { float Alpha; ImVec2 WindowPadding; float WindowRounding; float WindowBorderSize; ImVec2 WindowMinSize; ImVec2 WindowTitleAlign; ImGuiDir WindowMenuButtonPosition; float ChildRounding; float ChildBorderSize; float PopupRounding; float PopupBorderSize; ImVec2 FramePadding; float FrameRounding; float FrameBorderSize; ImVec2 ItemSpacing; ImVec2 ItemInnerSpacing; ImVec2 TouchExtraPadding; float IndentSpacing; float ColumnsMinSpacing; float ScrollbarSize; float ScrollbarRounding; float GrabMinSize; float GrabRounding; float LogSliderDeadzone; float TabRounding; float TabBorderSize; float TabMinWidthForCloseButton; ImGuiDir ColorButtonPosition; ImVec2 ButtonTextAlign; ImVec2 SelectableTextAlign; ImVec2 DisplayWindowPadding; ImVec2 DisplaySafeAreaPadding; float MouseCursorScale; bool AntiAliasedLines; bool AntiAliasedLinesUseTex; bool AntiAliasedFill; float CurveTessellationTol; float CircleSegmentMaxError; ImVec4[ImGuiCol_COUNT] Colors; } struct ImGuiTextRange { const char* b; const char* e; } struct ImGuiContext { bool Initialized; bool FontAtlasOwnedByContext; ImGuiIO IO; ImGuiPlatformIO PlatformIO; ImGuiStyle Style; ImGuiConfigFlags ConfigFlagsCurrFrame; ImGuiConfigFlags ConfigFlagsLastFrame; ImFont* Font; float FontSize; float FontBaseSize; ImDrawListSharedData DrawListSharedData; double Time; int FrameCount; int FrameCountEnded; int FrameCountPlatformEnded; int FrameCountRendered; bool WithinFrameScope; bool WithinFrameScopeWithImplicitWindow; bool WithinEndChild; bool TestEngineHookItems; ImGuiID TestEngineHookIdInfo; void* TestEngine; ImVector_ImGuiWindowPtr Windows; ImVector_ImGuiWindowPtr WindowsFocusOrder; ImVector_ImGuiWindowPtr WindowsTempSortBuffer; ImVector_ImGuiWindowPtr CurrentWindowStack; ImGuiStorage WindowsById; int WindowsActiveCount; ImGuiWindow* CurrentWindow; ImGuiWindow* HoveredWindow; ImGuiWindow* HoveredRootWindow; ImGuiWindow* HoveredWindowUnderMovingWindow; ImGuiDockNode* HoveredDockNode; ImGuiWindow* MovingWindow; ImGuiWindow* WheelingWindow; ImVec2 WheelingWindowRefMousePos; float WheelingWindowTimer; ImGuiID HoveredId; ImGuiID HoveredIdPreviousFrame; bool HoveredIdAllowOverlap; bool HoveredIdDisabled; float HoveredIdTimer; float HoveredIdNotActiveTimer; ImGuiID ActiveId; ImGuiID ActiveIdIsAlive; float ActiveIdTimer; bool ActiveIdIsJustActivated; bool ActiveIdAllowOverlap; bool ActiveIdNoClearOnFocusLoss; bool ActiveIdHasBeenPressedBefore; bool ActiveIdHasBeenEditedBefore; bool ActiveIdHasBeenEditedThisFrame; ImU32 ActiveIdUsingNavDirMask; ImU32 ActiveIdUsingNavInputMask; ImU64 ActiveIdUsingKeyInputMask; ImVec2 ActiveIdClickOffset; ImGuiWindow* ActiveIdWindow; ImGuiInputSource ActiveIdSource; int ActiveIdMouseButton; ImGuiID ActiveIdPreviousFrame; bool ActiveIdPreviousFrameIsAlive; bool ActiveIdPreviousFrameHasBeenEditedBefore; ImGuiWindow* ActiveIdPreviousFrameWindow; ImGuiID LastActiveId; float LastActiveIdTimer; ImGuiNextWindowData NextWindowData; ImGuiNextItemData NextItemData; ImVector_ImGuiColorMod ColorModifiers; ImVector_ImGuiStyleMod StyleModifiers; ImVector_ImFontPtr FontStack; ImVector_ImGuiPopupData OpenPopupStack; ImVector_ImGuiPopupData BeginPopupStack; ImVector_ImGuiViewportPPtr Viewports; float CurrentDpiScale; ImGuiViewportP* CurrentViewport; ImGuiViewportP* MouseViewport; ImGuiViewportP* MouseLastHoveredViewport; int ViewportFrontMostStampCount; ImGuiWindow* NavWindow; ImGuiID NavId; ImGuiID NavFocusScopeId; ImGuiID NavActivateId; ImGuiID NavActivateDownId; ImGuiID NavActivatePressedId; ImGuiID NavInputId; ImGuiID NavJustTabbedId; ImGuiID NavJustMovedToId; ImGuiID NavJustMovedToFocusScopeId; ImGuiKeyModFlags NavJustMovedToKeyMods; ImGuiID NavNextActivateId; ImGuiInputSource NavInputSource; ImRect NavScoringRect; int NavScoringCount; ImGuiNavLayer NavLayer; int NavIdTabCounter; bool NavIdIsAlive; bool NavMousePosDirty; bool NavDisableHighlight; bool NavDisableMouseHover; bool NavAnyRequest; bool NavInitRequest; bool NavInitRequestFromMove; ImGuiID NavInitResultId; ImRect NavInitResultRectRel; bool NavMoveRequest; ImGuiNavMoveFlags NavMoveRequestFlags; ImGuiNavForward NavMoveRequestForward; ImGuiKeyModFlags NavMoveRequestKeyMods; ImGuiDir NavMoveDir; ImGuiDir NavMoveDirLast; ImGuiDir NavMoveClipDir; ImGuiNavMoveResult NavMoveResultLocal; ImGuiNavMoveResult NavMoveResultLocalVisibleSet; ImGuiNavMoveResult NavMoveResultOther; ImGuiWindow* NavWrapRequestWindow; ImGuiNavMoveFlags NavWrapRequestFlags; ImGuiWindow* NavWindowingTarget; ImGuiWindow* NavWindowingTargetAnim; ImGuiWindow* NavWindowingListWindow; float NavWindowingTimer; float NavWindowingHighlightAlpha; bool NavWindowingToggleLayer; ImGuiWindow* FocusRequestCurrWindow; ImGuiWindow* FocusRequestNextWindow; int FocusRequestCurrCounterRegular; int FocusRequestCurrCounterTabStop; int FocusRequestNextCounterRegular; int FocusRequestNextCounterTabStop; bool FocusTabPressed; float DimBgRatio; ImGuiMouseCursor MouseCursor; bool DragDropActive; bool DragDropWithinSource; bool DragDropWithinTarget; ImGuiDragDropFlags DragDropSourceFlags; int DragDropSourceFrameCount; int DragDropMouseButton; ImGuiPayload DragDropPayload; ImRect DragDropTargetRect; ImGuiID DragDropTargetId; ImGuiDragDropFlags DragDropAcceptFlags; float DragDropAcceptIdCurrRectSurface; ImGuiID DragDropAcceptIdCurr; ImGuiID DragDropAcceptIdPrev; int DragDropAcceptFrameCount; ImGuiID DragDropHoldJustPressedId; ImVector_unsigned_char DragDropPayloadBufHeap; char[16] DragDropPayloadBufLocal; ImGuiTabBar* CurrentTabBar; ImPool_ImGuiTabBar TabBars; ImVector_ImGuiPtrOrIndex CurrentTabBarStack; ImVector_ImGuiShrinkWidthItem ShrinkWidthBuffer; ImVec2 LastValidMousePos; ImGuiInputTextState InputTextState; ImFont InputTextPasswordFont; ImGuiID TempInputId; ImGuiColorEditFlags ColorEditOptions; float ColorEditLastHue; float ColorEditLastSat; float[3] ColorEditLastColor; ImVec4 ColorPickerRef; float SliderCurrentAccum; bool SliderCurrentAccumDirty; bool DragCurrentAccumDirty; float DragCurrentAccum; float DragSpeedDefaultRatio; float ScrollbarClickDeltaToGrabCenter; int TooltipOverrideCount; ImVector_char ClipboardHandlerData; ImVector_ImGuiID MenusIdSubmittedThisFrame; ImVec2 PlatformImePos; ImVec2 PlatformImeLastPos; ImGuiViewportP* PlatformImePosViewport; char PlatformLocaleDecimalPoint; ImGuiDockContext DockContext; bool SettingsLoaded; float SettingsDirtyTimer; ImGuiTextBuffer SettingsIniData; ImVector_ImGuiSettingsHandler SettingsHandlers; ImChunkStream_ImGuiWindowSettings SettingsWindows; bool LogEnabled; ImGuiLogType LogType; ImFileHandle LogFile; ImGuiTextBuffer LogBuffer; float LogLinePosY; bool LogLineFirstItem; int LogDepthRef; int LogDepthToExpand; int LogDepthToExpandDefault; bool DebugItemPickerActive; ImGuiID DebugItemPickerBreakId; float[120] FramerateSecPerFrame; int FramerateSecPerFrameIdx; float FramerateSecPerFrameAccum; int WantCaptureMouseNextFrame; int WantCaptureKeyboardNextFrame; int WantTextInputNextFrame; char[1024*3+1] TempBuffer; } struct ImFontConfig { void* FontData; int FontDataSize; bool FontDataOwnedByAtlas; int FontNo; float SizePixels; int OversampleH; int OversampleV; bool PixelSnapH; ImVec2 GlyphExtraSpacing; ImVec2 GlyphOffset; const ImWchar* GlyphRanges; float GlyphMinAdvanceX; float GlyphMaxAdvanceX; bool MergeMode; uint RasterizerFlags; float RasterizerMultiply; ImWchar EllipsisChar; char[40] Name; ImFont* DstFont; } struct ImGuiColumnData { float OffsetNorm; float OffsetNormBeforeResize; ImGuiColumnsFlags Flags; ImRect ClipRect; } struct ImDrawListSharedData { ImVec2 TexUvWhitePixel; ImFont* Font; float FontSize; float CurveTessellationTol; float CircleSegmentMaxError; ImVec4 ClipRectFullscreen; ImDrawListFlags InitialFlags; ImVec2[12*1] ArcFastVtx; ImU8[64] CircleSegmentCounts; const ImVec4* TexUvLines; } struct ImDrawDataBuilder { ImVector_ImDrawListPtr[2] Layers; } struct ImGuiViewportP { ImGuiViewport _ImGuiViewport; int Idx; int LastFrameActive; int[2] LastFrameDrawLists; int LastFrontMostStampCount; ImGuiID LastNameHash; ImVec2 LastPos; float Alpha; float LastAlpha; short PlatformMonitor; bool PlatformWindowCreated; ImGuiWindow* Window; ImDrawList*[2] DrawLists; ImDrawData DrawDataP; ImDrawDataBuilder DrawDataBuilder; ImVec2 LastPlatformPos; ImVec2 LastPlatformSize; ImVec2 LastRendererSize; ImVec2 CurrWorkOffsetMin; ImVec2 CurrWorkOffsetMax; } struct ImVec1 { float x; } struct ImDrawData { bool Valid; ImDrawList** CmdLists; int CmdListsCount; int TotalIdxCount; int TotalVtxCount; ImVec2 DisplayPos; ImVec2 DisplaySize; ImVec2 FramebufferScale; ImGuiViewport* OwnerViewport; } struct ImGuiInputTextState { ImGuiID ID; int CurLenW; int CurLenA; ImVector_ImWchar TextW; ImVector_char TextA; ImVector_char InitialTextA; bool TextAIsValid; int BufCapacityA; float ScrollX; STB_TexteditState Stb; float CursorAnim; bool CursorFollow; bool SelectedAllMouseLock; bool Edited; ImGuiInputTextFlags UserFlags; ImGuiInputTextCallback UserCallback; void* UserCallbackData; } struct ImGuiPtrOrIndex { void* Ptr; int Index; } struct ImFont { ImVector_float IndexAdvanceX; float FallbackAdvanceX; float FontSize; ImVector_ImWchar IndexLookup; ImVector_ImFontGlyph Glyphs; const ImFontGlyph* FallbackGlyph; ImFontAtlas* ContainerAtlas; const ImFontConfig* ConfigData; short ConfigDataCount; ImWchar FallbackChar; ImWchar EllipsisChar; bool DirtyLookupTables; float Scale; float Ascent; float Descent; int MetricsTotalSurface; ImU8[(0xFFFF+1)/4096/8] Used4kPagesMap; } struct ImGuiOnceUponAFrame { int RefFrame; } struct ImGuiWindowSettings { ImGuiID ID; ImVec2ih Pos; ImVec2ih Size; ImVec2ih ViewportPos; ImGuiID ViewportId; ImGuiID DockId; ImGuiID ClassId; short DockOrder; bool Collapsed; bool WantApply; } struct ImVec4 { float x; float y; float z; float w; } struct ImGuiDockContext { ImGuiStorage Nodes; ImVector_ImGuiDockRequest Requests; ImVector_ImGuiDockNodeSettings NodesSettings; bool WantFullRebuild; } struct ImGuiNavMoveResult { ImGuiWindow* Window; ImGuiID ID; ImGuiID FocusScopeId; float DistBox; float DistCenter; float DistAxial; ImRect RectRel; } struct ImGuiSettingsHandler { const char* TypeName; ImGuiID TypeHash; void function(ImGuiContext* ctx,ImGuiSettingsHandler* handler) ClearAllFn; void function(ImGuiContext* ctx,ImGuiSettingsHandler* handler) ReadInitFn; void* function(ImGuiContext* ctx,ImGuiSettingsHandler* handler,const char* name) ReadOpenFn; void function(ImGuiContext* ctx,ImGuiSettingsHandler* handler,void* entry,const char* line) ReadLineFn; void function(ImGuiContext* ctx,ImGuiSettingsHandler* handler) ApplyAllFn; void function(ImGuiContext* ctx,ImGuiSettingsHandler* handler,ImGuiTextBuffer* out_buf) WriteAllFn; void* UserData; } struct ImDrawListSplitter { int _Current; int _Count; ImVector_ImDrawChannel _Channels; } struct STB_TexteditState { int cursor; int select_start; int select_end; char insert_mode; int row_count_per_page; char cursor_at_end_of_line; char initialized; char has_preferred_x; char single_line; char padding1; char padding2; char padding3; float preferred_x; StbUndoState undostate; } struct ImDrawList { ImVector_ImDrawCmd CmdBuffer; ImVector_ImDrawIdx IdxBuffer; ImVector_ImDrawVert VtxBuffer; ImDrawListFlags Flags; const ImDrawListSharedData* _Data; const char* _OwnerName; uint _VtxCurrentIdx; ImDrawVert* _VtxWritePtr; ImDrawIdx* _IdxWritePtr; ImVector_ImVec4 _ClipRectStack; ImVector_ImTextureID _TextureIdStack; ImVector_ImVec2 _Path; ImDrawCmd _CmdHeader; ImDrawListSplitter _Splitter; } struct ImGuiStoragePair { ImGuiID key; union { int val_i; float val_f; void* val_p;} ; } struct ImDrawChannel { ImVector_ImDrawCmd _CmdBuffer; ImVector_ImDrawIdx _IdxBuffer; } struct ImDrawCmd { ImVec4 ClipRect; ImTextureID TextureId; uint VtxOffset; uint IdxOffset; uint ElemCount; ImDrawCallback UserCallback; void* UserCallbackData; } struct ImGuiLastItemDataBackup { ImGuiID LastItemId; ImGuiItemStatusFlags LastItemStatusFlags; ImRect LastItemRect; ImRect LastItemDisplayRect; } struct StbUndoState { StbUndoRecord[99] undo_rec; ImWchar[999] undo_char; short undo_point; short redo_point; int undo_char_point; int redo_char_point; } struct ImGuiTextBuffer { ImVector_char Buf; } struct ImGuiListClipper { int DisplayStart; int DisplayEnd; int ItemsCount; int StepNo; float ItemsHeight; float StartPosY; } struct ImGuiMenuColumns { float Spacing; float Width; float NextWidth; float[3] Pos; float[3] NextWidths; } struct ImGuiDockNode { ImGuiID ID; ImGuiDockNodeFlags SharedFlags; ImGuiDockNodeFlags LocalFlags; ImGuiDockNode* ParentNode; ImGuiDockNode*[2] ChildNodes; ImVector_ImGuiWindowPtr Windows; ImGuiTabBar* TabBar; ImVec2 Pos; ImVec2 Size; ImVec2 SizeRef; ImGuiAxis SplitAxis; ImGuiWindowClass WindowClass; ImGuiDockNodeState State; ImGuiWindow* HostWindow; ImGuiWindow* VisibleWindow; ImGuiDockNode* CentralNode; ImGuiDockNode* OnlyNodeWithWindows; int LastFrameAlive; int LastFrameActive; int LastFrameFocused; ImGuiID LastFocusedNodeId; ImGuiID SelectedTabId; ImGuiID WantCloseTabId; ImGuiDataAuthority AuthorityForPos; ImGuiDataAuthority AuthorityForSize; ImGuiDataAuthority AuthorityForViewport; bool IsVisible; bool IsFocused; bool HasCloseButton; bool HasWindowMenuButton; bool EnableCloseButton; bool WantCloseAll; bool WantLockSizeOnce; bool WantMouseMove; bool WantHiddenTabBarUpdate; bool WantHiddenTabBarToggle; bool MarkedForPosSizeWrite; } struct ImVec2ih { short x; short y; } struct ImGuiNextWindowData { ImGuiNextWindowDataFlags Flags; ImGuiCond PosCond; ImGuiCond SizeCond; ImGuiCond CollapsedCond; ImGuiCond DockCond; ImVec2 PosVal; ImVec2 PosPivotVal; ImVec2 SizeVal; ImVec2 ContentSizeVal; ImVec2 ScrollVal; bool PosUndock; bool CollapsedVal; ImRect SizeConstraintRect; ImGuiSizeCallback SizeCallback; void* SizeCallbackUserData; float BgAlphaVal; ImGuiID ViewportId; ImGuiID DockId; ImGuiWindowClass WindowClass; ImVec2 MenuBarOffsetMinVal; } struct ImGuiPlatformMonitor { ImVec2 MainPos; ImVec2 MainSize; ImVec2 WorkPos; ImVec2 WorkSize; float DpiScale; } struct ImGuiStorage { ImVector_ImGuiStoragePair Data; } struct ImGuiTabItem { ImGuiID ID; ImGuiTabItemFlags Flags; ImGuiWindow* Window; int LastFrameVisible; int LastFrameSelected; float Offset; float Width; float ContentWidth; ImS16 NameOffset; ImS8 BeginOrder; ImS8 IndexDuringLayout; bool WantClose; } version(BindImGui_Static) { extern(C) @nogc nothrow { void ImDrawList_AddCircleFilled(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments); ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(); void igDockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window); ImDrawList* igGetForegroundDrawListNil(); ImDrawList* igGetForegroundDrawListViewportPtr(ImGuiViewport* viewport); ImDrawList* igGetForegroundDrawListWindowPtr(ImGuiWindow* window); const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); void igBringWindowToDisplayFront(ImGuiWindow* window); void igInitialize(ImGuiContext* context); int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self, int width, int height); bool igIsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold); void igSetWindowFontScale(float scale); bool igSliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); void igDestroyPlatformWindows(); void igImMax(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); void ImRect_GetTR(ImVec2* pOut, ImRect* self); const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); void ImGuiInputTextState_ClearSelection(ImGuiInputTextState* self); void ImFont_GrowIndex(ImFont* self, int new_size); void igClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); void ImFontAtlas_ClearInputData(ImFontAtlas* self); void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self); bool igIsMouseDragging(ImGuiMouseButton button, float lock_threshold); void igLoadIniSettingsFromDisk(const char* ini_filename); void igImBitArraySetBit(ImU32* arr, int n); const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self); void ImGuiTabBar_destroy(ImGuiTabBar* self); bool igDockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); void igSetClipboardText(const char* text); void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding, int rounding_corners_flags); void igFindBestWindowPosForPopup(ImVec2* pOut, ImGuiWindow* window); bool igRadioButtonBool(const char* label, bool active); bool igRadioButtonIntPtr(const char* label, int* v, int v_button); void ImGuiTextFilter_Clear(ImGuiTextFilter* self); void ImRect_TranslateX(ImRect* self, float dx); void igGetWindowPos(ImVec2* pOut); void igRenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); void ImGuiIO_ClearInputCharacters(ImGuiIO* self); void igSpacing(); void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self); void ImRect_TranslateY(ImRect* self, float dy); const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); bool igDataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format); void ImGuiInputTextState_destroy(ImGuiInputTextState* self); ImDrawData* igGetDrawData(); void igRenderRectFilledRangeH(ImDrawList* draw_list, const ImRect rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); void igPopItemWidth(); bool igIsWindowAppearing(); void igSetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond); ImGuiColumns* igFindOrCreateColumns(ImGuiWindow* window, ImGuiID id); void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self, ImGuiID key); int ImGuiInputTextState_GetRedoAvailCount(ImGuiInputTextState* self); bool igIsPopupOpenStr(const char* str_id, ImGuiPopupFlags flags); bool igIsPopupOpenID(ImGuiID id, ImGuiPopupFlags popup_flags); bool igInputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags); void igUnindent(float indent_w); bool igIsDragDropPayloadBeingAccepted(); float igGetFontSize(); float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self, float w0, float w1, float w2); void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self, const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max); float igGetFrameHeightWithSpacing(); void ImDrawListSplitter_destroy(ImDrawListSplitter* self); void igGetItemRectMax(ImVec2* pOut); bool igFocusableItemRegister(ImGuiWindow* window, ImGuiID id); bool igDragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); ImFont* igGetFont(); bool igDragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags); const char* igImStreolRange(const char* str, const char* str_end); void ImGuiStorage_Clear(ImGuiStorage* self); ImGuiID ImGuiWindow_GetIDStr(ImGuiWindow* self, const char* str, const char* str_end); ImGuiID ImGuiWindow_GetIDPtr(ImGuiWindow* self, const void* ptr); ImGuiID ImGuiWindow_GetIDInt(ImGuiWindow* self, int n); void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); void ImGuiDockNode_Rect(ImRect* pOut, ImGuiDockNode* self); ImGuiDockNode* igDockBuilderGetNode(ImGuiID node_id); bool igIsActiveIdUsingKey(ImGuiKey key); void igSetCursorScreenPos(const ImVec2 pos); const char* igImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); void igSetNextWindowViewport(ImGuiID viewport_id); const char* ImFont_GetDebugName(ImFont* self); bool igBeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags); bool igButtonEx(const char* label, const ImVec2 size_arg, ImGuiButtonFlags flags); void igTextEx(const char* text, const char* text_end, ImGuiTextFlags flags); bool ImGuiPayload_IsPreview(ImGuiPayload* self); void igLabelTextV(const char* label, const char* fmt, va_list args); const char* igImStrSkipBlank(const char* str); void igPushColumnsBackground(); ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context, const char* name); float igGetScrollMaxX(); void ImBitVector_Create(ImBitVector* self, int sz); void igCloseCurrentPopup(); void igImBitArraySetBitRange(ImU32* arr, int n, int n2); ImGuiViewport* igFindViewportByPlatformHandle(void* platform_handle); void igGetMouseDragDelta(ImVec2* pOut, ImGuiMouseButton button, float lock_threshold); void igSetWindowCollapsedBool(bool collapsed, ImGuiCond cond); void igSetWindowCollapsedStr(const char* name, bool collapsed, ImGuiCond cond); void igSetWindowCollapsedWindowPtr(ImGuiWindow* window, bool collapsed, ImGuiCond cond); bool igSplitterBehavior(const ImRect bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay); void igImBezierCalc(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, float t); bool ImGuiDockNode_IsDockSpace(ImGuiDockNode* self); void igTextDisabled(const char* fmt, ... ); void igFindBestWindowPosForPopupEx(ImVec2* pOut, const ImVec2 ref_pos, const ImVec2 size, ImGuiDir* last_dir, const ImRect r_outer, const ImRect r_avoid, ImGuiPopupPositionPolicy policy); void igShowUserGuide(); void igEndPopup(); void igClearActiveID(); bool igBeginChildFrame(ImGuiID id, const ImVec2 size, ImGuiWindowFlags flags); void ImGuiSettingsHandler_destroy(ImGuiSettingsHandler* self); void ImDrawList__ResetForNewFrame(ImDrawList* self); void ImGuiTextBuffer_append(ImGuiTextBuffer* self, const char* str, const char* str_end); int ImGuiInputTextState_GetUndoAvailCount(ImGuiInputTextState* self); void igEndFrame(); bool igIsRectVisibleNil(const ImVec2 size); bool igIsRectVisibleVec2(const ImVec2 rect_min, const ImVec2 rect_max); bool ImGuiTextRange_empty(ImGuiTextRange* self); void ImGuiInputTextState_ClearText(ImGuiInputTextState* self); void igPushFocusScope(ImGuiID id); bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self); float igCalcWrapWidthForPos(const ImVec2 pos, float wrap_pos_x); ImGuiID igGetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); int igImUpperPowerOfTwo(int v); bool igIsMouseClicked(ImGuiMouseButton button, bool repeat); void igColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v); void igSetNextWindowFocus(); ImFont* igGetDefaultFont(); const char* igGetClipboardText(); bool igIsAnyItemHovered(); ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(); bool igListBoxHeaderVec2(const char* label, const ImVec2 size); bool igListBoxHeaderInt(const char* label, int items_count, int height_in_items); int igImStrlenW(const ImWchar* str); ImGuiDockNode* igGetWindowDockNode(); bool igBeginPopup(const char* str_id, ImGuiWindowFlags flags); ImU64 igImFileGetSize(ImFileHandle file); ImGuiSettingsHandler* ImGuiSettingsHandler_ImGuiSettingsHandler(); bool igMenuItemBool(const char* label, const char* shortcut, bool selected, bool enabled); bool igMenuItemBoolPtr(const char* label, const char* shortcut, bool* p_selected, bool enabled); void igDockBuilderFinish(ImGuiID node_id); ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModInt(ImGuiStyleVar idx, int v); ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModFloat(ImGuiStyleVar idx, float v); ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModVec2(ImGuiStyleVar idx, ImVec2 v); void ImFontConfig_destroy(ImFontConfig* self); bool igBeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); bool igImCharIsBlankA(char c); void igImStrTrimBlanks(char* str); void ImGuiListClipper_End(ImGuiListClipper* self); void igResetMouseDragDelta(ImGuiMouseButton button); void igDestroyContext(ImGuiContext* ctx); void igSetNextWindowContentSize(const ImVec2 size); void igSaveIniSettingsToDisk(const char* ini_filename); void igGetWindowScrollbarRect(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis); bool igInputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); bool igIsClippedEx(const ImRect bb, ImGuiID id, bool clip_even_when_logged); ImGuiID igGetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self); ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(); bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self, ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2[2]*/*[2]*/ out_uv_border, ImVec2[2]*/*[2]*/ out_uv_fill); void igLogText(const char* fmt, ... ); bool igGetWindowAlwaysWantOwnTabBar(ImGuiWindow* window); bool igTabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible); void igBeginDockableDragDropTarget(ImGuiWindow* window); void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self); void igColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); float igGetTextLineHeightWithSpacing(); ImGuiColumnData* ImGuiColumnData_ImGuiColumnData(); void igPushStyleVarFloat(ImGuiStyleVar idx, float val); void igPushStyleVarVec2(ImGuiStyleVar idx, const ImVec2 val); bool igIsActiveIdUsingNavInput(ImGuiNavInput input); int igImStrnicmp(const char* str1, const char* str2, size_t count); ImGuiInputTextState* igGetInputTextState(ImGuiID id); const char* igFindRenderedTextEnd(const char* text, const char* text_end); void ImFontAtlas_ClearFonts(ImFontAtlas* self); void igTextColoredV(const ImVec4 col, const char* fmt, va_list args); bool igIsKeyReleased(int user_key_index); void igLogToClipboard(int auto_open_depth); const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self, size_t n); void igStyleColorsClassic(ImGuiStyle* dst); int ImGuiTabBar_GetTabOrder(ImGuiTabBar* self, const ImGuiTabItem* tab); bool igBegin(const char* name, bool* p_open, ImGuiWindowFlags flags); ImGuiLastItemDataBackup* ImGuiLastItemDataBackup_ImGuiLastItemDataBackup(); bool igButton(const char* label, const ImVec2 size); bool igBeginMenuBar(); bool igDataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); void igRenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash); void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self); void ImGuiMenuColumns_destroy(ImGuiMenuColumns* self); void igImStrncpy(char* dst, const char* src, size_t count); ImGuiNextWindowData* ImGuiNextWindowData_ImGuiNextWindowData(); bool igIsWindowNavFocusable(ImGuiWindow* window); bool igItemAdd(const ImRect bb, ImGuiID id, const ImRect* nav_bb); void igListBoxFooter(); float igGetScrollY(); float ImRect_GetWidth(ImRect* self); ImGuiItemStatusFlags igGetItemStatusFlags(); bool igSliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); const ImVec4* igGetStyleColorVec4(ImGuiCol idx); void igPopFocusScope(); void igTextColored(const ImVec4 col, const char* fmt, ... ); void igShutdown(ImGuiContext* context); void igDockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs); void ImRect_ClipWith(ImRect* self, const ImRect r); void ImRect_GetTL(ImVec2* pOut, ImRect* self); ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(); bool igInvisibleButton(const char* str_id, const ImVec2 size, ImGuiButtonFlags flags); void igSetWindowFocusNil(); void igSetWindowFocusStr(const char* name); void igScaleWindowsInViewport(ImGuiViewportP* viewport, float scale); void igRenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); void igImFontAtlasBuildInit(ImFontAtlas* atlas); void igRenderPlatformWindowsDefault(void* platform_render_arg, void* renderer_render_arg); void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self); ImGuiStyle* ImGuiStyle_ImGuiStyle(); bool ImGuiDockNode_IsHiddenTabBar(ImGuiDockNode* self); bool igIsMouseDown(ImGuiMouseButton button); ImFontConfig* ImFontConfig_ImFontConfig(); const char* ImGuiTabBar_GetTabName(ImGuiTabBar* self, const ImGuiTabItem* tab); void igNewLine(); ImGuiPlatformIO* igGetPlatformIO(); void igMemFree(void* ptr); int igCalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); void igNextColumn(); void igRenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding); void igLogButtons(); void igDockBuilderRemoveNode(ImGuiID node_id); void ImFont_ClearOutputData(ImFont* self); ImFont* ImFont_ImFont(); void igEndTabItem(); bool igVSliderFloat(const char* label, const ImVec2 size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); void igRenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); void igEndGroup(); bool igTreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end); void igPlotLinesFloatPtr(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride); void igPlotLinesFnFloatPtr(const char* label, float function(void* data,int idx) values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size); float igGetColumnNormFromOffset(const ImGuiColumns* columns, float offset); void igSetCurrentFont(ImFont* font); void igSetItemAllowOverlap(); bool ImGuiDockNode_IsCentralNode(ImGuiDockNode* self); void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self, ImGuiID key, void* default_val); bool igCheckboxFlags(const char* label, uint* flags, uint flags_value); ImGuiColumns* ImGuiColumns_ImGuiColumns(); void ImGuiNavMoveResult_Clear(ImGuiNavMoveResult* self); void ImRect_destroy(ImRect* self); void igImTriangleBarycentricCoords(const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p, float* out_u, float* out_v, float* out_w); void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self, const ImWchar* ranges); const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); const char* igGetVersion(); ImDrawList* ImDrawList_ImDrawList(const ImDrawListSharedData* shared_data); void igRenderTextEllipsis(ImDrawList* draw_list, const ImVec2 pos_min, const ImVec2 pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); void ImGuiListClipper_destroy(ImGuiListClipper* self); void igPushOverrideID(ImGuiID id); void igSetScrollYFloat(float scroll_y); void igSetScrollYWindowPtr(ImGuiWindow* window, float scroll_y); void igImMul(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); const char* ImFont_CalcWordWrapPositionA(ImFont* self, float scale, const char* text, const char* text_end, float wrap_width); bool igSmallButton(const char* label); void ImGuiWindow_destroy(ImGuiWindow* self); bool igComboStr_arr(const char* label, int* current_item, const(char)** items, int items_count, int popup_max_height_in_items); bool igComboStr(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items); bool igComboFnBoolPtr(const char* label, int* current_item, bool function(void* data,int idx,const char** out_text) items_getter, void* data, int items_count, int popup_max_height_in_items); bool igIsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent); float ImGuiWindow_CalcFontSize(ImGuiWindow* self); void ImDrawList_AddLine(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, ImU32 col, float thickness); void ImDrawList_AddCircle(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments, float thickness); void ImGuiInputTextState_SelectAll(ImGuiInputTextState* self); const char* igImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); int igImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); ImGuiTabBar* ImGuiTabBar_ImGuiTabBar(); void ImGuiViewport_GetCenter(ImVec2* pOut, ImGuiViewport* self); void igDebugDrawItemRect(ImU32 col); void igDockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size); bool igTreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags); void igSetMouseCursor(ImGuiMouseCursor cursor_type); void igBeginColumns(const char* str_id, int count, ImGuiColumnsFlags flags); ImGuiIO* igGetIO(); bool igDragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); int igImModPositive(int a, int b); void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self); void ImGuiPayload_destroy(ImGuiPayload* self); void igEndMenu(); float igImSaturate(float f); void ImDrawList_PrimRect(ImDrawList* self, const ImVec2 a, const ImVec2 b, ImU32 col); float igImLinearSweep(float current, float target, float speed); void igUpdateMouseMovingWindowNewFrame(); void ImDrawList_AddRectFilled(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners); void ImGuiPopupData_destroy(ImGuiPopupData* self); ImGuiSettingsHandler* igFindSettingsHandler(const char* type_name); bool igDragInt2(const char* label, int[2]*/*[2]*/ v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); void igBeginDocked(ImGuiWindow* window, bool* p_open); void igSetColorEditOptions(ImGuiColorEditFlags flags); bool igIsAnyMouseDown(); ImGuiDockContext* ImGuiDockContext_ImGuiDockContext(); void ImGuiTextFilter_Build(ImGuiTextFilter* self); void igTabItemCalcSize(ImVec2* pOut, const char* label, bool has_close_button); void igSetNextWindowCollapsed(bool collapsed, ImGuiCond cond); void igSetLastItemData(ImGuiWindow* window, ImGuiID item_id, ImGuiItemStatusFlags status_flags, const ImRect item_rect); void igLogToBuffer(int auto_open_depth); void* igImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes); const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); void ImGuiStyle_destroy(ImGuiStyle* self); void ImDrawList_destroy(ImDrawList* self); void ImVec4_destroy(ImVec4* self); void igRenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); bool igTreeNodeExStr(const char* label, ImGuiTreeNodeFlags flags); bool igTreeNodeExStrStr(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ... ); bool igTreeNodeExPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ... ); void ImBitVector_SetBit(ImBitVector* self, int n); void igSetColumnWidth(int column_index, float width); void ImGuiDockNode_destroy(ImGuiDockNode* self); void ImGuiNavMoveResult_destroy(ImGuiNavMoveResult* self); bool igIsItemClicked(ImGuiMouseButton mouse_button); void ImGuiColumnData_destroy(ImGuiColumnData* self); void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback, void* callback_data); void igGetMousePos(ImVec2* pOut); int igDataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); void igDockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); bool igImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec2 padding, const ImVec4 bg_col, const ImVec4 tint_col); ImGuiID igGetWindowResizeID(ImGuiWindow* window, int n); void igBullet(); void igRenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); ImGuiID igGetHoveredID(); void igGetWindowContentRegionMin(ImVec2* pOut); void ImDrawList_AddNgonFilled(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments); bool igDragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); ImGuiDockNode* ImGuiDockNode_ImGuiDockNode(ImGuiID id); void igSetCursorPos(const ImVec2 local_pos); void igEndColumns(); void igSetTooltip(const char* fmt, ... ); void ImGuiViewportP_destroy(ImGuiViewportP* self); bool igBeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dock_node); void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); bool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self); ImGuiDockNode* igDockNodeGetRootNode(ImGuiDockNode* node); bool ImGuiDockNode_IsSplitNode(ImGuiDockNode* self); float igCalcItemWidth(); void igDockContextRebuildNodes(ImGuiContext* ctx); void igPushItemWidth(float item_width); bool igScrollbarEx(const ImRect bb, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float avail_v, float contents_v, ImDrawCornerFlags rounding_corners); void ImDrawList_ChannelsMerge(ImDrawList* self); void igSetAllocatorFunctions(void* function(size_t sz,void* user_data) alloc_func, void function(void* ptr,void* user_data) free_func, void* user_data); const ImFontGlyph* ImFont_FindGlyph(ImFont* self, ImWchar c); int igDockNodeGetDepth(const ImGuiDockNode* node); void igDebugStartItemPicker(); void ImGuiNextWindowData_destroy(ImGuiNextWindowData* self); bool ImGuiPayload_IsDelivery(ImGuiPayload* self); const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); bool ImRect_Overlaps(ImRect* self, const ImRect r); void igCaptureMouseFromApp(bool want_capture_mouse_value); ImU32 igImHashData(const void* data, size_t data_size, ImU32 seed); void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self, int pos, const char* text, const char* text_end); bool igDragFloat2(const char* label, float[2]*/*[2]*/ v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); void igTreePushOverrideID(ImGuiID id); void igUpdateHoveredWindowAndCaptureFlags(); void ImGuiWindowTempData_destroy(ImGuiWindowTempData* self); void ImFont_destroy(ImFont* self); void igEndMenuBar(); void igGetWindowSize(ImVec2* pOut); bool igInputInt4(const char* label, int[4]*/*[4]*/ v, ImGuiInputTextFlags flags); void igShowViewportThumbnails(); float igImSignFloat(float x); double igImSigndouble(double x); void igLabelText(const char* label, const char* fmt, ... ); ImGuiMouseCursor igGetMouseCursor(); bool igIsMouseDoubleClicked(ImGuiMouseButton button); void ImGuiColumns_destroy(ImGuiColumns* self); void ImDrawList_PathClear(ImDrawList* self); void ImDrawCmd_destroy(ImDrawCmd* self); ImGuiStorage* igGetStateStorage(); bool igInputInt2(const char* label, int[2]*/*[2]*/ v, ImGuiInputTextFlags flags); ImU64 igImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); void igSetNextWindowScroll(const ImVec2 scroll); float igGetFrameHeight(); ImU64 igImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); bool igInputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); bool igTreeNodeExVStr(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args); bool igTreeNodeExVPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args); bool igIsAnyItemFocused(); void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self); ImVec2ih* ImVec2ih_ImVec2ihNil(); ImVec2ih* ImVec2ih_ImVec2ihshort(short _x, short _y); ImVec2ih* ImVec2ih_ImVec2ihVec2(const ImVec2 rhs); void igDockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); ImVec1* ImVec1_ImVec1Nil(); ImVec1* ImVec1_ImVec1Float(float _x); void igCalcItemSize(ImVec2* pOut, ImVec2 size, float default_w, float default_h); bool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self); void igPopStyleColor(int count); bool igColorEdit4(const char* label, float[4]*/*[4]*/ col, ImGuiColorEditFlags flags); int igPlotEx(ImGuiPlotType plot_type, const char* label, float function(void* data,int idx) values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size); void igGetCursorStartPos(ImVec2* pOut); ImGuiID igDockSpaceOverViewport(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self); bool ImFontAtlas_IsBuilt(ImFontAtlas* self); const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self); ImVec4* ImVec4_ImVec4Nil(); ImVec4* ImVec4_ImVec4Float(float _x, float _y, float _z, float _w); ImGuiID ImGuiWindow_GetIDNoKeepAliveStr(ImGuiWindow* self, const char* str, const char* str_end); ImGuiID ImGuiWindow_GetIDNoKeepAlivePtr(ImGuiWindow* self, const void* ptr); ImGuiID ImGuiWindow_GetIDNoKeepAliveInt(ImGuiWindow* self, int n); void ImFont_BuildLookupTable(ImFont* self); void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self, const char* fmt, va_list args); bool igDragInt4(const char* label, int[4]*/*[4]*/ v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); bool ImGuiDockNode_IsEmpty(ImGuiDockNode* self); void igClearIniSettings(); void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self, const ImVec2 pos); ImGuiIO* ImGuiIO_ImGuiIO(); void igSetNextWindowClass(const ImGuiWindowClass* window_class); bool igBeginDragDropTarget(); int igImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); int igImStricmp(const char* str1, const char* str2); void igMarkItemEdited(ImGuiID id); bool igIsWindowFocused(ImGuiFocusedFlags flags); void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self, const char* str); void igSetCurrentContext(ImGuiContext* ctx); void igColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); void igImBezierClosestPoint(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 p, int num_segments); void igImTriangleClosestPoint(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p); bool igSliderInt4(const char* label, int[4]*/*[4]*/ v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); void igGetItemRectMin(ImVec2* pOut); void ImDrawList_PrimReserve(ImDrawList* self, int idx_count, int vtx_count); ImGuiMenuColumns* ImGuiMenuColumns_ImGuiMenuColumns(); ImGuiDockNode* igDockBuilderGetCentralNode(ImGuiID node_id); ImGuiWindowTempData* ImGuiWindowTempData_ImGuiWindowTempData(); void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); void ImGuiViewport_GetWorkSize(ImVec2* pOut, ImGuiViewport* self); ImGuiViewport* igGetWindowViewport(); void igSetStateStorage(ImGuiStorage* storage); void ImGuiStorage_SetAllInt(ImGuiStorage* self, int val); bool ImGuiListClipper_Step(ImGuiListClipper* self); void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self); void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytes_count); void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self); void igShowDemoWindow(bool* p_open); float igImPowFloat(float x, float y); double igImPowdouble(double x, double y); void ImGuiTextRange_destroy(ImGuiTextRange* self); void ImGuiStorage_SetVoidPtr(ImGuiStorage* self, ImGuiID key, void* val); float igImInvLength(const ImVec2 lhs, float fail_value); bool igCloseButton(ImGuiID id, const ImVec2 pos); void ImDrawList_PushTextureID(ImDrawList* self, ImTextureID texture_id); void ImDrawList_PathLineTo(ImDrawList* self, const ImVec2 pos); void igSetWindowHitTestHole(ImGuiWindow* window, const ImVec2 pos, const ImVec2 size); void igSeparatorEx(ImGuiSeparatorFlags flags); void ImRect_AddVec2(ImRect* self, const ImVec2 p); void ImRect_AddRect(ImRect* self, const ImRect r); void igShowMetricsWindow(bool* p_open); void ImDrawList__PopUnusedDrawCmd(ImDrawList* self); void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p_min, const ImVec2 p_max, const ImVec2 uv_min, const ImVec2 uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners); void ImGuiStyleMod_destroy(ImGuiStyleMod* self); void ImGuiStorage_BuildSortByKey(ImGuiStorage* self); void ImDrawList_PathRect(ImDrawList* self, const ImVec2 rect_min, const ImVec2 rect_max, float rounding, ImDrawCornerFlags rounding_corners); bool igInputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2 size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); bool igColorEdit3(const char* label, float[3]*/*[3]*/ col, ImGuiColorEditFlags flags); void ImColor_destroy(ImColor* self); ImGuiDockNodeFlags ImGuiDockNode_GetMergedFlags(ImGuiDockNode* self); bool igIsItemToggledSelection(); bool igTabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); bool igIsKeyPressedMap(ImGuiKey key, bool repeat); void igLogFinish(); void igGetItemRectSize(ImVec2* pOut); const char* igImParseFormatFindStart(const char* format); bool igDragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); ImDrawData* ImDrawData_ImDrawData(); float igImDot(const ImVec2 a, const ImVec2 b); void ImGuiColumns_Clear(ImGuiColumns* self); void igMarkIniSettingsDirtyNil(); void igMarkIniSettingsDirtyWindowPtr(ImGuiWindow* window); float igGetWindowWidth(); void igBulletTextV(const char* fmt, va_list args); void igDockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector_ImGuiID* out_node_remap_pairs); void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* draw_list, int channel_idx); void ImGuiStorage_SetBool(ImGuiStorage* self, ImGuiID key, bool val); void igAlignTextToFramePadding(); bool igIsWindowHovered(ImGuiHoveredFlags flags); void igDockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector_const_charPtr* in_window_remap_pairs); void ImDrawList_PathBezierCurveTo(ImDrawList* self, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, int num_segments); void ImRect_GetCenter(ImVec2* pOut, ImRect* self); float igGetWindowContentRegionWidth(); void ImDrawList_PathArcTo(ImDrawList* self, const ImVec2 center, float radius, float a_min, float a_max, int num_segments); bool igIsAnyItemActive(); void igPushTextWrapPos(float wrap_local_pos_x); float igGetTreeNodeToLabelSpacing(); void igSameLine(float offset_from_start_x, float spacing); void igStyleColorsDark(ImGuiStyle* dst); void igTabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int dir); void igDummy(const ImVec2 size); ImGuiID igGetItemID(); bool igImageButton(ImTextureID user_texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, int frame_padding, const ImVec4 bg_col, const ImVec4 tint_col); void igGetWindowContentRegionMax(ImVec2* pOut); int igGetKeyPressedAmount(int key_index, float repeat_delay, float rate); void igRenderTextClipped(const ImVec2 pos_min, const ImVec2 pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2 alignment, const ImRect* clip_rect); bool igImIsPowerOfTwo(int v); void igSetNextWindowSizeConstraints(const ImVec2 size_min, const ImVec2 size_max, ImGuiSizeCallback custom_callback, void* custom_callback_data); const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self, ImWchar c); bool igShowStyleSelector(const char* label); void igFocusableItemUnregister(ImGuiWindow* window); void igNavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect bb_rel, ImGuiNavMoveFlags move_flags); void igSetNavIDWithRectRel(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect rect_rel); void igNavInitWindow(ImGuiWindow* window, bool force_reinit); void igDockContextUpdateDocking(ImGuiContext* ctx); ImFileHandle igImFileOpen(const char* filename, const char* mode); void igEndDragDropTarget(); ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(); void ImDrawListSharedData_destroy(ImDrawListSharedData* self); bool ImFontAtlas_Build(ImFontAtlas* self); void igSetScrollFromPosXFloat(float local_x, float center_x_ratio); void igSetScrollFromPosXWindowPtr(ImGuiWindow* window, float local_x, float center_x_ratio); bool igIsKeyPressed(int user_key_index, bool repeat); void igEndTooltip(); ImGuiWindowSettings* igFindWindowSettings(ImGuiID id); void igKeepAliveID(ImGuiID id); float igGetColumnOffsetFromNorm(const ImGuiColumns* columns, float offset_norm); bool ImFont_IsLoaded(ImFont* self); bool igBeginDragDropSource(ImGuiDragDropFlags flags); void ImBitVector_ClearBit(ImBitVector* self, int n); float igGetCursorPosX(); void igPushFont(ImFont* font); void igSetScrollFromPosYFloat(float local_y, float center_y_ratio); void igSetScrollFromPosYWindowPtr(ImGuiWindow* window, float local_y, float center_y_ratio); bool igColorButton(const char* desc_id, const ImVec4 col, ImGuiColorEditFlags flags, ImVec2 size); const ImGuiPayload* igAcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags); void igDockContextShutdown(ImGuiContext* ctx); void ImDrawList_PopClipRect(ImDrawList* self); float igGetScrollMaxY(); ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairInt(ImGuiID _key, int _val_i); ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairFloat(ImGuiID _key, float _val_f); ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairPtr(ImGuiID _key, void* _val_p); void igEndMainMenuBar(); ImGuiPlatformMonitor* ImGuiPlatformMonitor_ImGuiPlatformMonitor(); void ImGuiViewportP_GetMainRect(ImRect* pOut, ImGuiViewportP* self); bool igIsItemActive(); void igShowAboutWindow(bool* p_open); void igSetNextItemWidth(float item_width); const char* igImStrchrRange(const char* str_begin, const char* str_end, char c); void igGetContentRegionAvail(ImVec2* pOut); ImGuiPayload* ImGuiPayload_ImGuiPayload(); bool igCheckbox(const char* label, bool* v); ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeNil(); ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeStr(const char* _b, const char* _e); void ImFontAtlas_destroy(ImFontAtlas* self); void ImGuiMenuColumns_Update(ImGuiMenuColumns* self, int count, float spacing, bool clear); void igCalcWindowExpectedSize(ImVec2* pOut, ImGuiWindow* window); void igGcCompactTransientWindowBuffers(ImGuiWindow* window); void igNavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); ImGuiWindow* igGetCurrentWindow(); bool igIsWindowDocked(); void ImVec2_destroy(ImVec2* self); ImGuiID igGetIDStr(const char* str_id); ImGuiID igGetIDStrStr(const char* str_id_begin, const char* str_id_end); ImGuiID igGetIDPtr(const void* ptr_id); void igImFontAtlasBuildMultiplyCalcLookupTable(char[256]*/*[256]*/ out_table, float in_multiply_factor); bool igSetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond); void igPushStyleColorU32(ImGuiCol idx, ImU32 col); void igPushStyleColorVec4(ImGuiCol idx, const ImVec4 col); ImFontAtlas* ImFontAtlas_ImFontAtlas(); void igBeginGroup(); float ImGuiMenuColumns_CalcExtraSpace(ImGuiMenuColumns* self, float avail_w); void igGetContentRegionMax(ImVec2* pOut); void igEndChildFrame(); void igActivateItem(ImGuiID id); void igPopStyleVar(int count); void ImDrawList_PushClipRectFullScreen(ImDrawList* self); bool ImRect_ContainsVec2(ImRect* self, const ImVec2 p); bool ImRect_ContainsRect(ImRect* self, const ImRect r); ImDrawList* igGetBackgroundDrawListNil(); ImDrawList* igGetBackgroundDrawListViewportPtr(ImGuiViewport* viewport); void igSetColumnOffset(int column_index, float offset_x); void igSetKeyboardFocusHere(int offset); void igLoadIniSettingsFromMemory(const char* ini_data, size_t ini_size); void igIndent(float indent_w); void igSetNextWindowSize(const ImVec2 size, ImGuiCond cond); bool igInputFloat3(const char* label, float[3]*/*[3]*/ v, const char* format, ImGuiInputTextFlags flags); bool igIsKeyDown(int user_key_index); void igTextV(const char* fmt, va_list args); void igTextUnformatted(const char* text, const char* text_end); float igImLengthSqrVec2(const ImVec2 lhs); float igImLengthSqrVec4(const ImVec4 lhs); bool ImGuiTextFilter_Draw(ImGuiTextFilter* self, const char* label, float width); void igFocusWindow(ImGuiWindow* window); void igPushClipRect(const ImVec2 clip_rect_min, const ImVec2 clip_rect_max, bool intersect_with_current_clip_rect); ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(); bool igBeginMainMenuBar(); void ImRect_GetBR(ImVec2* pOut, ImRect* self); bool igCollapsingHeaderTreeNodeFlags(const char* label, ImGuiTreeNodeFlags flags); bool igCollapsingHeaderBoolPtr(const char* label, bool* p_open, ImGuiTreeNodeFlags flags); ImGuiWindow* igGetCurrentWindowRead(); bool igSliderInt3(const char* label, int[3]*/*[3]*/ v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); void igTabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window); bool igTabItemButton(const char* label, ImGuiTabItemFlags flags); int igImFormatString(char* buf, size_t buf_size, const char* fmt, ... ); bool igIsMouseReleased(ImGuiMouseButton button); void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self); ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(); void ImGuiIO_AddInputCharacter(ImGuiIO* self, uint c); bool igTabBarProcessReorder(ImGuiTabBar* tab_bar); float igGetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode); void igClearDragDrop(); float igGetTextLineHeight(); void igDataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); void ImDrawList_AddQuadFilled(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col); void igSetNextWindowBgAlpha(float alpha); void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self); ImGuiNextItemData* ImGuiNextItemData_ImGuiNextItemData(); void igLogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end); bool igBeginMenu(const char* label, bool enabled); int* ImGuiStorage_GetIntRef(ImGuiStorage* self, ImGuiID key, int default_val); int igImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); void igEndCombo(); bool igIsNavInputTest(ImGuiNavInput n, ImGuiInputReadMode rm); void igImage(ImTextureID user_texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec4 tint_col, const ImVec4 border_col); void ImDrawList_AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, bool closed, float thickness); bool igTreeNodeStr(const char* label); bool igTreeNodeStrStr(const char* str_id, const char* fmt, ... ); bool igTreeNodePtr(const void* ptr_id, const char* fmt, ... ); void igPopClipRect(); void ImDrawList_PushClipRect(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect); void igImBitArrayClearBit(ImU32* arr, int n); bool igArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags); bool igSelectableBool(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2 size); bool igSelectableBoolPtr(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2 size); void igBeginTooltipEx(ImGuiWindowFlags extra_flags, ImGuiTooltipFlags tooltip_flags); ImGuiID igGetFocusID(); void ImDrawData_DeIndexAllBuffers(ImDrawData* self); ImDrawCmd* ImDrawCmd_ImDrawCmd(); void ImDrawData_ScaleClipRects(ImDrawData* self, const ImVec2 fb_scale); void igSetNextItemOpen(bool is_open, ImGuiCond cond); int igDataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); void igTabItemBackground(ImDrawList* draw_list, const ImRect bb, ImGuiTabItemFlags flags, ImU32 col); void ImDrawList_AddTriangle(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col, float thickness); void igDockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs); bool igTempInputIsActive(ImGuiID id); void igLogToFile(int auto_open_depth, const char* filename); void ImGuiNextItemData_destroy(ImGuiNextItemData* self); void ImGuiViewportP_ClearRequestFlags(ImGuiViewportP* self); ImGuiKeyModFlags igGetMergedKeyModFlags(); void igSetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond); void ImRect_ToVec4(ImVec4* pOut, ImRect* self); void igPushMultiItemsWidths(int components, float width_full); ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); ImColor* ImColor_ImColorNil(); ImColor* ImColor_ImColorInt(int r, int g, int b, int a); ImColor* ImColor_ImColorU32(ImU32 rgba); ImColor* ImColor_ImColorFloat(float r, float g, float b, float a); ImColor* ImColor_ImColorVec4(const ImVec4 col); ImGuiID igDockContextGenNodeID(ImGuiContext* ctx); void ImDrawList__ClearFreeMemory(ImDrawList* self); void igSetNavID(ImGuiID id, int nav_layer, ImGuiID focus_scope_id); ImDrawList* igGetWindowDrawList(); void ImRect_GetBL(ImVec2* pOut, ImRect* self); void igImBezierClosestPointCasteljau(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 p, float tess_tol); bool igIsMousePosValid(const ImVec2* mouse_pos); float ImGuiStorage_GetFloat(ImGuiStorage* self, ImGuiID key, float default_val); bool ImGuiDockNode_IsLeafNode(ImGuiDockNode* self); bool igSliderFloat4(const char* label, float[4]*/*[4]*/ v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); bool igIsItemDeactivatedAfterEdit(); void igPlotHistogramFloatPtr(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride); void igPlotHistogramFnFloatPtr(const char* label, float function(void* data,int idx) values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size); bool igIsItemEdited(); void igShowStyleEditor(ImGuiStyle* reference); ImGuiID igGetFocusScopeID(); void igTextWrappedV(const char* fmt, va_list args); void ImGuiLastItemDataBackup_destroy(ImGuiLastItemDataBackup* self); void ImGuiTextBuffer_appendf(ImGuiTextBuffer* self, const char* fmt, ... ); int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2 offset); bool igDebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); ImU32 igImAlphaBlendColors(ImU32 col_a, ImU32 col_b); bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self, ImGuiID key, bool default_val); bool igBeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags); void igSetScrollXFloat(float scroll_x); void igSetScrollXWindowPtr(ImGuiWindow* window, float scroll_x); void igRenderNavHighlight(const ImRect bb, ImGuiID id, ImGuiNavHighlightFlags flags); void igBringWindowToFocusFront(ImGuiWindow* window); bool igSliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); void igUpdateMouseMovingWindowEndFrame(); bool igInputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); void igGetContentRegionMaxAbs(ImVec2* pOut); bool igIsMouseHoveringRect(const ImVec2 r_min, const ImVec2 r_max, bool clip); void ImGuiLastItemDataBackup_Backup(ImGuiLastItemDataBackup* self); int igImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_remaining); bool igIsActiveIdUsingNavDir(ImGuiDir dir); void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count, float items_height); void igStartMouseMovingWindow(ImGuiWindow* window); bool igSliderInt2(const char* label, int[2]*/*[2]*/ v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); bool igIsItemHovered(ImGuiHoveredFlags flags); void ImGuiIO_destroy(ImGuiIO* self); void igEndDragDropSource(); const ImGuiPayload* igGetDragDropPayload(); void igPopButtonRepeat(); void ImGuiStorage_SetInt(ImGuiStorage* self, ImGuiID key, int val); void ImGuiWindow_MenuBarRect(ImRect* pOut, ImGuiWindow* self); int ImGuiStorage_GetInt(ImGuiStorage* self, ImGuiID key, int default_val); void igShowFontSelector(const char* label); void igDestroyPlatformWindow(ImGuiViewportP* viewport); void igImMin(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); void igPushButtonRepeat(bool repeat); float igImAbsFloat(float x); double igImAbsdouble(double x); void ImGuiWindow_Rect(ImRect* pOut, ImGuiWindow* self); void ImGuiViewportP_GetWorkRect(ImRect* pOut, ImGuiViewportP* self); void ImRect_Floor(ImRect* self); void igTreePushStr(const char* str_id); void igTreePushPtr(const void* ptr_id); ImU32 igColorConvertFloat4ToU32(const ImVec4 inItem); ImGuiStyle* igGetStyle(); void igGetCursorPos(ImVec2* pOut); int igGetFrameCount(); void ImDrawList_AddNgon(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments, float thickness); bool igIsItemActivated(); void igEnd(); void igTabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); ImGuiInputTextState* ImGuiInputTextState_ImGuiInputTextState(); float ImRect_GetHeight(ImRect* self); ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self, const ImFontConfig* font_cfg); void ImDrawList__OnChangedTextureID(ImDrawList* self); int igGetColumnsCount(); void igEndChild(); bool igNavMoveRequestButNoResultYet(); void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor); bool igArrowButton(const char* str_id, ImGuiDir dir); void igSetCursorPosY(float local_y); bool ImGuiDockNode_IsFloatingNode(ImGuiDockNode* self); ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_filter); void ImGuiStorage_SetFloat(ImGuiStorage* self, ImGuiID key, float val); void igShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2 a, const ImVec2 b, const ImVec2 uv_a, const ImVec2 uv_b, bool clamp); double igGetTime(); bool igBeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags); void igSetScrollHereX(float center_x_ratio); bool igSliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self); void igGetMousePosOnOpeningCurrentPopup(ImVec2* pOut); bool igVSliderScalar(const char* label, const ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); void igDockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos); void ImFont_RenderChar(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c); void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip); void igOpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags); void ImFontAtlas_SetTexID(ImFontAtlas* self, ImTextureID id); void ImFontAtlas_Clear(ImFontAtlas* self); void igBeginDockableDragDropSource(ImGuiWindow* window); bool ImBitVector_TestBit(ImBitVector* self, int n); void ImGuiTextFilter_destroy(ImGuiTextFilter* self); bool igBeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags); float igGetWindowDpiScale(); bool igInputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags); bool igDragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags); void ImVec2ih_destroy(ImVec2ih* self); void ImDrawList_GetClipRectMax(ImVec2* pOut, ImDrawList* self); bool igInputFloat2(const char* label, float[2]*/*[2]*/ v, const char* format, ImGuiInputTextFlags flags); void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self); char* ImGuiWindowSettings_GetName(ImGuiWindowSettings* self); void ImGuiLastItemDataBackup_Restore(ImGuiLastItemDataBackup* self); char* igImStrdup(const char* str); int igImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args); void igSetTooltipV(const char* fmt, va_list args); const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type); bool igVSliderInt(const char* label, const ImVec2 size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect clip_rect); ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(); ImGuiID igGetWindowDockID(); void igPopTextWrapPos(); void ImGuiWindowClass_destroy(ImGuiWindowClass* self); float ImGuiWindow_TitleBarHeight(ImGuiWindow* self); void ImDrawList_GetClipRectMin(ImVec2* pOut, ImDrawList* self); void ImDrawList_PathStroke(ImDrawList* self, ImU32 col, bool closed, float thickness); void igBeginTooltip(); void igOpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags); void ImDrawListSplitter_Merge(ImDrawListSplitter* self, ImDrawList* draw_list); float ImGuiWindow_MenuBarHeight(ImGuiWindow* self); void ImColor_HSV(ImColor* pOut, float h, float s, float v, float a); void igSetTabItemClosed(const char* tab_or_docked_window_label); void ImFont_AddGlyph(ImFont* self, const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); void igSetHoveredID(ImGuiID id); void igStartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node); void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self, const char* text, const char* text_end); void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self); ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(); char* igImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); bool ImGuiDockNode_IsNoTabBar(ImGuiDockNode* self); void igColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b); ImGuiID igDockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir); bool igColorPicker4(const char* label, float[4]*/*[4]*/ col, ImGuiColorEditFlags flags, const float* ref_col); bool igImBitArrayTestBit(const ImU32* arr, int n); ImGuiWindow* igFindWindowByID(ImGuiID id); bool igBeginDragDropTargetCustom(const ImRect bb, ImGuiID id); void ImGuiContext_destroy(ImGuiContext* self); bool igDragInt3(const char* label, int[3]*/*[3]*/ v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); ImU32 igImHashStr(const char* data, size_t data_size, ImU32 seed); void ImDrawList_AddTriangleFilled(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col); bool igTempInputScalar(const ImRect bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max); void igRenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale); void igImFontAtlasBuildRender1bppRectFromString(ImFontAtlas* atlas, int atlas_x, int atlas_y, int w, int h, const char* in_str, char in_marker_char, char in_marker_pixel_value); void igNewFrame(); ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(); void ImDrawList_ChannelsSetCurrent(ImDrawList* self, int n); void igClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); ImGuiContext* ImGuiContext_ImGuiContext(ImFontAtlas* shared_font_atlas); bool igSliderFloat2(const char* label, float[2]*/*[2]*/ v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); ImGuiPopupData* ImGuiPopupData_ImGuiPopupData(); void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 uv1, const ImVec2 uv2, const ImVec2 uv3, const ImVec2 uv4, ImU32 col); ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self, int index); void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self, char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel); void igGcAwakeTransientWindowBuffers(ImGuiWindow* window); void ImDrawList__OnChangedClipRect(ImDrawList* self); ImGuiWindowClass* ImGuiWindowClass_ImGuiWindowClass(); void igDockBuilderRemoveNodeChildNodes(ImGuiID node_id); ImGuiID igGetColumnsID(const char* str_id, int count); void igPushAllowKeyboardFocus(bool allow_keyboard_focus); void ImDrawList_PopTextureID(ImDrawList* self); void igColumns(int count, const char* id, bool border); void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self, ImWchar c); int igGetColumnIndex(); void igBringWindowToDisplayBack(ImGuiWindow* window); void ImDrawList_PrimVtx(ImDrawList* self, const ImVec2 pos, const ImVec2 uv, ImU32 col); void ImDrawListSplitter_Clear(ImDrawListSplitter* self); void ImDrawList_AddConvexPolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col); void igGetCursorScreenPos(ImVec2* pOut); bool igListBoxStr_arr(const char* label, int* current_item, const(char)** items, int items_count, int height_in_items); bool igListBoxFnBoolPtr(const char* label, int* current_item, bool function(void* data,int idx,const char** out_text) items_getter, void* data, int items_count, int height_in_items); void igPopItemFlag(); void igPopColumnsBackground(); void igLogBegin(ImGuiLogType type, int auto_open_depth); bool igTreeNodeVStr(const char* str_id, const char* fmt, va_list args); bool igTreeNodeVPtr(const void* ptr_id, const char* fmt, va_list args); void igRenderTextClippedEx(ImDrawList* draw_list, const ImVec2 pos_min, const ImVec2 pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2 alignment, const ImRect* clip_rect); void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self, ImWchar16 c); float* ImGuiStorage_GetFloatRef(ImGuiStorage* self, ImGuiID key, float default_val); const ImWchar* igImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); bool igSliderBehavior(const ImRect bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); void igValueBool(const char* prefix, bool b); void igValueInt(const char* prefix, int v); void igValueUint(const char* prefix, uint v); void igValueFloat(const char* prefix, float v, const char* float_format); bool igBeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags); void ImGuiViewport_destroy(ImGuiViewport* self); bool igIsNavInputDown(ImGuiNavInput n); void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self); void igRenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); bool igDragFloat4(const char* label, float[4]*/*[4]*/ v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); void ImDrawList__OnChangedVtxOffset(ImDrawList* self); void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); void igPushIDStr(const char* str_id); void igPushIDStrStr(const char* str_id_begin, const char* str_id_end); void igPushIDPtr(const void* ptr_id); void igPushIDInt(int int_id); bool igItemHoverable(const ImRect bb, ImGuiID id); ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); void igDockBuilderDockWindow(const char* window_name, ImGuiID node_id); void igImFontAtlasBuildMultiplyRectAlpha8(const char[256]*/*[256]*/ table, char* pixels, int x, int y, int w, int h, int stride); void igTextDisabledV(const char* fmt, va_list args); bool igInputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags); ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr(void* ptr); ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndexInt(int index); void igImLerpVec2Float(ImVec2* pOut, const ImVec2 a, const ImVec2 b, float t); void igImLerpVec2Vec2(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 t); void igImLerpVec4(ImVec4* pOut, const ImVec4 a, const ImVec4 b, float t); void igItemSizeVec2(const ImVec2 size, float text_baseline_y); void igItemSizeRect(const ImRect bb, float text_baseline_y); void ImColor_SetHSV(ImColor* self, float h, float s, float v, float a); bool ImFont_IsGlyphRangeUnused(ImFont* self, uint c_begin, uint c_last); int igImParseFormatPrecision(const char* format, int default_value); void igLogToTTY(int auto_open_depth); bool igButtonBehavior(const ImRect bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags); void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self, int key); float igImLogFloat(float x); double igImLogdouble(double x); void igSetFocusID(ImGuiID id, ImGuiWindow* window); ImGuiID igGetActiveID(); void igImLineClosestPoint(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 p); bool igIsItemVisible(); void igRender(); float igImTriangleArea(const ImVec2 a, const ImVec2 b, const ImVec2 c); bool igBeginChildStr(const char* str_id, const ImVec2 size, bool border, ImGuiWindowFlags flags); bool igBeginChildID(ImGuiID id, const ImVec2 size, bool border, ImGuiWindowFlags flags); void igStyleColorsLight(ImGuiStyle* dst); float igGetScrollX(); void igGetWindowAllowedExtentRect(ImRect* pOut, ImGuiWindow* window); void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self, char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel); ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(); void ImDrawData_destroy(ImDrawData* self); void ImFont_SetFallbackChar(ImFont* self, ImWchar c); const char* igSaveIniSettingsToMemory(size_t* out_ini_size); ImGuiNavMoveResult* ImGuiNavMoveResult_ImGuiNavMoveResult(); void igTabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); float igGetWindowHeight(); ImGuiViewport* igGetMainViewport(); bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self, const char* text, const char* text_end); ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, const char* filename, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); ImGuiContext* igGetCurrentContext(); void igColorConvertU32ToFloat4(ImVec4* pOut, ImU32 inItem); void ImDrawList_PathArcToFast(ImDrawList* self, const ImVec2 center, float radius, int a_min_of_12, int a_max_of_12); bool igDragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); const char* igGetStyleColorName(ImGuiCol idx); void igSetItemDefaultFocus(); void igCalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); void igSetNextWindowPos(const ImVec2 pos, ImGuiCond cond, const ImVec2 pivot); bool igDragFloat3(const char* label, float[3]*/*[3]*/ v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); void igCaptureKeyboardFromApp(bool want_capture_keyboard_value); bool igInputInt3(const char* label, int[3]*/*[3]*/ v, ImGuiInputTextFlags flags); void ImDrawData_Clear(ImDrawData* self); ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); void ImGuiStoragePair_destroy(ImGuiStoragePair* self); bool igIsItemToggledOpen(); void igShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); void ImDrawList_AddTextVec2(ImDrawList* self, const ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end); void ImDrawList_AddTextFontPtr(ImDrawList* self, const ImFont* font, float font_size, const ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect); void ImDrawList_PrimRectUV(ImDrawList* self, const ImVec2 a, const ImVec2 b, const ImVec2 uv_a, const ImVec2 uv_b, ImU32 col); void ImDrawList_PrimWriteIdx(ImDrawList* self, ImDrawIdx idx); bool ImGuiStorage_GetBool(ImGuiStorage* self, ImGuiID key, bool default_val); void igRenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding); ImGuiWindow* igFindWindowByName(const char* name); int igImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end); void igTextWrapped(const char* fmt, ... ); void igScrollToBringRectIntoView(ImVec2* pOut, ImGuiWindow* window, const ImRect item_rect); bool igInputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags); ImVec2* ImVec2_ImVec2Nil(); ImVec2* ImVec2_ImVec2Float(float _x, float _y); int ImGuiTextBuffer_size(ImGuiTextBuffer* self); const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); void igUpdatePlatformWindows(); void ImFontAtlas_ClearTexData(ImFontAtlas* self); float ImFont_GetCharAdvance(ImFont* self, ImWchar c); bool igSliderFloat3(const char* label, float[3]*/*[3]*/ v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); void ImDrawList_AddBezierCurve(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col, float thickness, int num_segments); void ImDrawList_PathFillConvex(ImDrawList* self, ImU32 col); ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(); void ImGuiTabItem_destroy(ImGuiTabItem* self); bool igSliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags); void igSetWindowPosVec2(const ImVec2 pos, ImGuiCond cond); void igSetWindowPosStr(const char* name, const ImVec2 pos, ImGuiCond cond); void igSetWindowPosWindowPtr(ImGuiWindow* window, const ImVec2 pos, ImGuiCond cond); bool igTempInputText(const ImRect bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); void igSetScrollHereY(float center_y_ratio); void igDockContextUpdateUndocking(ImGuiContext* ctx); ImGuiViewport* ImGuiViewport_ImGuiViewport(); void igProgressBar(float fraction, const ImVec2 size_arg, const char* overlay); ImDrawList* ImDrawList_CloneOutput(ImDrawList* self); void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self); void ImVec1_destroy(ImVec1* self); void igPushColumnClipRect(int column_index); void igDockBuilderCopyWindowSettings(const char* src_name, const char* dst_name); int igImTextCharFromUtf8(uint* out_char, const char* in_text, const char* in_text_end); ImRect* ImRect_ImRectNil(); ImRect* ImRect_ImRectVec2(const ImVec2 min, const ImVec2 max); ImRect* ImRect_ImRectVec4(const ImVec4 v); ImRect* ImRect_ImRectFloat(float x1, float y1, float x2, float y2); ImGuiWindow* igGetTopMostPopupModal(); void ImDrawListSplitter_Split(ImDrawListSplitter* self, ImDrawList* draw_list, int count); void igBulletText(const char* fmt, ... ); void igImFontAtlasBuildFinish(ImFontAtlas* atlas); void ImDrawList_AddQuad(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col, float thickness); void igDockSpace(ImGuiID id, const ImVec2 size, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); ImU32 igGetColorU32Col(ImGuiCol idx, float alpha_mul); ImU32 igGetColorU32Vec4(const ImVec4 col); ImU32 igGetColorU32U32(ImU32 col); ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self, const ImRect r_abs); void ImDrawList_AddDrawCmd(ImDrawList* self); void igUpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); bool igIsItemDeactivated(); void igSetCursorPosX(float local_x); bool igInputFloat4(const char* label, float[4]*/*[4]*/ v, const char* format, ImGuiInputTextFlags flags); void igSeparator(); void ImRect_Translate(ImRect* self, const ImVec2 d); void ImDrawList_PrimUnreserve(ImDrawList* self, int idx_count, int vtx_count); void igColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); bool ImRect_IsInverted(ImRect* self); int igGetKeyIndex(ImGuiKey imgui_key); ImGuiViewport* igFindViewportByID(ImGuiID id); void igPushItemFlag(ImGuiItemFlags option, bool enabled); void igScrollbar(ImGuiAxis axis); bool igImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas); void ImDrawList_PrimWriteVtx(ImDrawList* self, const ImVec2 pos, const ImVec2 uv, ImU32 col); void ImGuiDockContext_destroy(ImGuiDockContext* self); bool ImGuiPayload_IsDataType(ImGuiPayload* self, const char* type); void igSetActiveID(ImGuiID id, ImGuiWindow* window); void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges); void igTreePop(); void igSetWindowSizeVec2(const ImVec2 size, ImGuiCond cond); void igSetWindowSizeStr(const char* name, const ImVec2 size, ImGuiCond cond); void igSetWindowSizeWindowPtr(ImGuiWindow* window, const ImVec2 size, ImGuiCond cond); void ImFont_AddRemapChar(ImFont* self, ImWchar dst, ImWchar src, bool overwrite_dst); void igNavMoveRequestCancel(); void igTranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2 old_pos, const ImVec2 new_pos); void igText(const char* fmt, ... ); bool igCollapseButton(ImGuiID id, const ImVec2 pos, ImGuiDockNode* dock_node); void ImGuiWindow_TitleBarRect(ImRect* pOut, ImGuiWindow* self); bool igIsItemFocused(); void* igMemAlloc(size_t size); bool igColorPicker3(const char* label, float[3]*/*[3]*/ col, ImGuiColorEditFlags flags); void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self); float igGetColumnOffset(int column_index); void ImRect_GetSize(ImVec2* pOut, ImRect* self); bool igIsWindowCollapsed(); void ImGuiNextItemData_ClearFlags(ImGuiNextItemData* self); bool igBeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags); void ImRect_ExpandFloat(ImRect* self, const float amount); void ImRect_ExpandVec2(ImRect* self, const ImVec2 amount); void igOpenPopup(const char* str_id, ImGuiPopupFlags popup_flags); bool igImCharIsBlankW(uint c); void ImFont_SetGlyphVisible(ImFont* self, ImWchar c, bool visible); ImGuiWindowSettings* igFindOrCreateWindowSettings(const char* name); bool igInputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags); void ImDrawList_PrimQuadUV(ImDrawList* self, const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 d, const ImVec2 uv_a, const ImVec2 uv_b, const ImVec2 uv_c, const ImVec2 uv_d, ImU32 col); void igPopID(); void igEndTabBar(); void igPopAllowKeyboardFocus(); void ImDrawList_AddImage(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p_min, const ImVec2 p_max, const ImVec2 uv_min, const ImVec2 uv_max, ImU32 col); bool igBeginTabBar(const char* str_id, ImGuiTabBarFlags flags); float igGetCursorPosY(); void igCalcTextSize(ImVec2* pOut, const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width); void ImFont_CalcTextSizeA(ImVec2* pOut, ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining); void igImClamp(ImVec2* pOut, const ImVec2 v, const ImVec2 mn, ImVec2 mx); float igGetColumnWidth(int column_index); ImGuiTabItem* igTabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar); void ImGuiPayload_Clear(ImGuiPayload* self); void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self, int capacity); void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self); void ImRect_ClipWithFull(ImRect* self, const ImRect r); void ImGuiViewport_GetWorkPos(ImVec2* pOut, ImGuiViewport* self); void igGetFontTexUvWhitePixel(ImVec2* pOut); void ImDrawList_ChannelsSplit(ImDrawList* self, int count); void igPopFont(); bool igImTriangleContainsPoint(const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p); void igRenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding); float igImFloorFloat(float f); void igImFloorVec2(ImVec2* pOut, const ImVec2 v); void ImDrawList_AddRect(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners, float thickness); const char* igImParseFormatFindEnd(const char* format); void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self); void ImDrawListSharedData_SetCircleSegmentMaxError(ImDrawListSharedData* self, float max_error); void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self); void ImGuiTextRange_split(ImGuiTextRange* self, char separator, ImVector_ImGuiTextRange* outItem); void ImBitVector_Clear(ImBitVector* self); ImGuiID igDockBuilderAddNode(ImGuiID node_id, ImGuiDockNodeFlags flags); ImGuiWindowSettings* igCreateNewWindowSettings(const char* name); bool ImGuiDockNode_IsRootNode(ImGuiDockNode* self); void igDockContextInitialize(ImGuiContext* ctx); ImDrawListSharedData* igGetDrawListSharedData(); bool igBeginChildEx(const char* name, ImGuiID id, const ImVec2 size_arg, bool border, ImGuiWindowFlags flags); void ImGuiNextWindowData_ClearFlags(ImGuiNextWindowData* self); bool igImFileClose(ImFileHandle file); bool ImFontGlyphRangesBuilder_GetBit(ImFontGlyphRangesBuilder* self, size_t n); void igImRotate(ImVec2* pOut, const ImVec2 v, float cos_a, float sin_a); ImGuiDir igImGetDirQuadrantFromDelta(float dx, float dy); ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, const ImFontConfig* font_cfg); void igGetNavInputAmount2d(ImVec2* pOut, ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor); } extern(C) @nogc nothrow { void ImGui_ImplSDL2_Shutdown(); void ImGui_ImplOpenGL3_DestroyFontsTexture(); bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window, void* sdl_gl_context); bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); bool ImGui_ImplOpenGL3_CreateFontsTexture(); void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor, int event); void ImGui_ImplGlfw_NewFrame(); bool ImGui_ImplOpenGL2_CreateDeviceObjects(); bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); bool ImGui_ImplOpenGL2_Init(); bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks); bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); bool ImGui_ImplOpenGL3_CreateDeviceObjects(); void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, uint c); void ImGui_ImplOpenGL2_DestroyDeviceObjects(); bool ImGui_ImplOpenGL3_Init(const char* glsl_version); void ImGui_ImplOpenGL3_DestroyDeviceObjects(); void ImGui_ImplOpenGL3_NewFrame(); void ImGui_ImplOpenGL2_NewFrame(); bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks); void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods); void ImGui_ImplOpenGL3_Shutdown(); void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset); void ImGui_ImplSDL2_NewFrame(SDL_Window* window); bool ImGui_ImplOpenGL2_CreateFontsTexture(); void ImGui_ImplOpenGL2_Shutdown(); void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods); void ImGui_ImplGlfw_Shutdown(); void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); void ImGui_ImplOpenGL2_DestroyFontsTexture(); } } else { extern(C) @nogc nothrow { alias pImDrawList_AddCircleFilled = void function(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments); alias pImGuiPlatformIO_ImGuiPlatformIO = ImGuiPlatformIO* function(); alias pigDockContextQueueUndockWindow = void function(ImGuiContext* ctx, ImGuiWindow* window); alias pigGetForegroundDrawListNil = ImDrawList* function(); alias pigGetForegroundDrawListViewportPtr = ImDrawList* function(ImGuiViewport* viewport); alias pigGetForegroundDrawListWindowPtr = ImDrawList* function(ImGuiWindow* window); alias pImFontAtlas_GetGlyphRangesChineseFull = const ImWchar* function(ImFontAtlas* self); alias pigBringWindowToDisplayFront = void function(ImGuiWindow* window); alias pigInitialize = void function(ImGuiContext* context); alias pImFontAtlas_AddCustomRectRegular = int function(ImFontAtlas* self, int width, int height); alias pigIsMouseDragPastThreshold = bool function(ImGuiMouseButton button, float lock_threshold); alias pigSetWindowFontScale = void function(float scale); alias pigSliderFloat = bool function(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pigDestroyPlatformWindows = void function(); alias pigImMax = void function(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); alias pImRect_GetTR = void function(ImVec2* pOut, ImRect* self); alias pImFontAtlas_GetGlyphRangesThai = const ImWchar* function(ImFontAtlas* self); alias pImGuiInputTextState_ClearSelection = void function(ImGuiInputTextState* self); alias pImFont_GrowIndex = void function(ImFont* self, int new_size); alias pigClosePopupsOverWindow = void function(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); alias pImFontAtlas_ClearInputData = void function(ImFontAtlas* self); alias pImGuiWindowSettings_destroy = void function(ImGuiWindowSettings* self); alias pigIsMouseDragging = bool function(ImGuiMouseButton button, float lock_threshold); alias pigLoadIniSettingsFromDisk = void function(const char* ini_filename); alias pigImBitArraySetBit = void function(ImU32* arr, int n); alias pImGuiTextBuffer_end = const char* function(ImGuiTextBuffer* self); alias pImGuiTabBar_destroy = void function(ImGuiTabBar* self); alias pigDockContextCalcDropPosForDocking = bool function(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); alias pigSetClipboardText = void function(const char* text); alias pigRenderColorRectWithAlphaCheckerboard = void function(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding, int rounding_corners_flags); alias pigFindBestWindowPosForPopup = void function(ImVec2* pOut, ImGuiWindow* window); alias pigRadioButtonBool = bool function(const char* label, bool active); alias pigRadioButtonIntPtr = bool function(const char* label, int* v, int v_button); alias pImGuiTextFilter_Clear = void function(ImGuiTextFilter* self); alias pImRect_TranslateX = void function(ImRect* self, float dx); alias pigGetWindowPos = void function(ImVec2* pOut); alias pigRenderTextWrapped = void function(ImVec2 pos, const char* text, const char* text_end, float wrap_width); alias pImGuiIO_ClearInputCharacters = void function(ImGuiIO* self); alias pigSpacing = void function(); alias pImDrawDataBuilder_FlattenIntoSingleLayer = void function(ImDrawDataBuilder* self); alias pImRect_TranslateY = void function(ImRect* self, float dy); alias pImGuiTextBuffer_c_str = const char* function(ImGuiTextBuffer* self); alias pigTabBarFindTabByID = ImGuiTabItem* function(ImGuiTabBar* tab_bar, ImGuiID tab_id); alias pigDataTypeApplyOpFromText = bool function(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format); alias pImGuiInputTextState_destroy = void function(ImGuiInputTextState* self); alias pigGetDrawData = ImDrawData* function(); alias pigRenderRectFilledRangeH = void function(ImDrawList* draw_list, const ImRect rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); alias pigPopItemWidth = void function(); alias pigIsWindowAppearing = bool function(); alias pigSetWindowDock = void function(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond); alias pigFindOrCreateColumns = ImGuiColumns* function(ImGuiWindow* window, ImGuiID id); alias pImGuiStorage_GetVoidPtr = void* function(ImGuiStorage* self, ImGuiID key); alias pImGuiInputTextState_GetRedoAvailCount = int function(ImGuiInputTextState* self); alias pigIsPopupOpenStr = bool function(const char* str_id, ImGuiPopupFlags flags); alias pigIsPopupOpenID = bool function(ImGuiID id, ImGuiPopupFlags popup_flags); alias pigInputDouble = bool function(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags); alias pigUnindent = void function(float indent_w); alias pigIsDragDropPayloadBeingAccepted = bool function(); alias pigGetFontSize = float function(); alias pImGuiMenuColumns_DeclColumns = float function(ImGuiMenuColumns* self, float w0, float w1, float w2); alias pImFontAtlas_CalcCustomRectUV = void function(ImFontAtlas* self, const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max); alias pigGetFrameHeightWithSpacing = float function(); alias pImDrawListSplitter_destroy = void function(ImDrawListSplitter* self); alias pigGetItemRectMax = void function(ImVec2* pOut); alias pigFocusableItemRegister = bool function(ImGuiWindow* window, ImGuiID id); alias pigDragInt = bool function(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigGetFont = ImFont* function(); alias pigDragFloatRange2 = bool function(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags); alias pigImStreolRange = const char* function(const char* str, const char* str_end); alias pImGuiStorage_Clear = void function(ImGuiStorage* self); alias pImGuiWindow_GetIDStr = ImGuiID function(ImGuiWindow* self, const char* str, const char* str_end); alias pImGuiWindow_GetIDPtr = ImGuiID function(ImGuiWindow* self, const void* ptr); alias pImGuiWindow_GetIDInt = ImGuiID function(ImGuiWindow* self, int n); alias pigImFontAtlasBuildPackCustomRects = void function(ImFontAtlas* atlas, void* stbrp_context_opaque); alias pImGuiDockNode_Rect = void function(ImRect* pOut, ImGuiDockNode* self); alias pigDockBuilderGetNode = ImGuiDockNode* function(ImGuiID node_id); alias pigIsActiveIdUsingKey = bool function(ImGuiKey key); alias pigSetCursorScreenPos = void function(const ImVec2 pos); alias pigImStristr = const char* function(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); alias pigSetNextWindowViewport = void function(ImGuiID viewport_id); alias pImFont_GetDebugName = const char* function(ImFont* self); alias pigBeginPopupContextWindow = bool function(const char* str_id, ImGuiPopupFlags popup_flags); alias pigButtonEx = bool function(const char* label, const ImVec2 size_arg, ImGuiButtonFlags flags); alias pigTextEx = void function(const char* text, const char* text_end, ImGuiTextFlags flags); alias pImGuiPayload_IsPreview = bool function(ImGuiPayload* self); alias pigLabelTextV = void function(const char* label, const char* fmt, va_list args); alias pigImStrSkipBlank = const char* function(const char* str); alias pigPushColumnsBackground = void function(); alias pImGuiWindow_ImGuiWindow = ImGuiWindow* function(ImGuiContext* context, const char* name); alias pigGetScrollMaxX = float function(); alias pImBitVector_Create = void function(ImBitVector* self, int sz); alias pigCloseCurrentPopup = void function(); alias pigImBitArraySetBitRange = void function(ImU32* arr, int n, int n2); alias pigFindViewportByPlatformHandle = ImGuiViewport* function(void* platform_handle); alias pigGetMouseDragDelta = void function(ImVec2* pOut, ImGuiMouseButton button, float lock_threshold); alias pigSetWindowCollapsedBool = void function(bool collapsed, ImGuiCond cond); alias pigSetWindowCollapsedStr = void function(const char* name, bool collapsed, ImGuiCond cond); alias pigSetWindowCollapsedWindowPtr = void function(ImGuiWindow* window, bool collapsed, ImGuiCond cond); alias pigSplitterBehavior = bool function(const ImRect bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay); alias pigImBezierCalc = void function(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, float t); alias pImGuiDockNode_IsDockSpace = bool function(ImGuiDockNode* self); alias pigTextDisabled = void function(const char* fmt, ... ); alias pigFindBestWindowPosForPopupEx = void function(ImVec2* pOut, const ImVec2 ref_pos, const ImVec2 size, ImGuiDir* last_dir, const ImRect r_outer, const ImRect r_avoid, ImGuiPopupPositionPolicy policy); alias pigShowUserGuide = void function(); alias pigEndPopup = void function(); alias pigClearActiveID = void function(); alias pigBeginChildFrame = bool function(ImGuiID id, const ImVec2 size, ImGuiWindowFlags flags); alias pImGuiSettingsHandler_destroy = void function(ImGuiSettingsHandler* self); alias pImDrawList__ResetForNewFrame = void function(ImDrawList* self); alias pImGuiTextBuffer_append = void function(ImGuiTextBuffer* self, const char* str, const char* str_end); alias pImGuiInputTextState_GetUndoAvailCount = int function(ImGuiInputTextState* self); alias pigEndFrame = void function(); alias pigIsRectVisibleNil = bool function(const ImVec2 size); alias pigIsRectVisibleVec2 = bool function(const ImVec2 rect_min, const ImVec2 rect_max); alias pImGuiTextRange_empty = bool function(ImGuiTextRange* self); alias pImGuiInputTextState_ClearText = void function(ImGuiInputTextState* self); alias pigPushFocusScope = void function(ImGuiID id); alias pImGuiInputTextCallbackData_HasSelection = bool function(ImGuiInputTextCallbackData* self); alias pigCalcWrapWidthForPos = float function(const ImVec2 pos, float wrap_pos_x); alias pigGetIDWithSeed = ImGuiID function(const char* str_id_begin, const char* str_id_end, ImGuiID seed); alias pigImUpperPowerOfTwo = int function(int v); alias pigIsMouseClicked = bool function(ImGuiMouseButton button, bool repeat); alias pigColorConvertRGBtoHSV = void function(float r, float g, float b, float* out_h, float* out_s, float* out_v); alias pigSetNextWindowFocus = void function(); alias pigGetDefaultFont = ImFont* function(); alias pigGetClipboardText = const char* function(); alias pigIsAnyItemHovered = bool function(); alias pImGuiListClipper_ImGuiListClipper = ImGuiListClipper* function(); alias pigListBoxHeaderVec2 = bool function(const char* label, const ImVec2 size); alias pigListBoxHeaderInt = bool function(const char* label, int items_count, int height_in_items); alias pigImStrlenW = int function(const ImWchar* str); alias pigGetWindowDockNode = ImGuiDockNode* function(); alias pigBeginPopup = bool function(const char* str_id, ImGuiWindowFlags flags); alias pigImFileGetSize = ImU64 function(ImFileHandle file); alias pImGuiSettingsHandler_ImGuiSettingsHandler = ImGuiSettingsHandler* function(); alias pigMenuItemBool = bool function(const char* label, const char* shortcut, bool selected, bool enabled); alias pigMenuItemBoolPtr = bool function(const char* label, const char* shortcut, bool* p_selected, bool enabled); alias pigDockBuilderFinish = void function(ImGuiID node_id); alias pImGuiStyleMod_ImGuiStyleModInt = ImGuiStyleMod* function(ImGuiStyleVar idx, int v); alias pImGuiStyleMod_ImGuiStyleModFloat = ImGuiStyleMod* function(ImGuiStyleVar idx, float v); alias pImGuiStyleMod_ImGuiStyleModVec2 = ImGuiStyleMod* function(ImGuiStyleVar idx, ImVec2 v); alias pImFontConfig_destroy = void function(ImFontConfig* self); alias pigBeginPopupEx = bool function(ImGuiID id, ImGuiWindowFlags extra_flags); alias pigImCharIsBlankA = bool function(char c); alias pigImStrTrimBlanks = void function(char* str); alias pImGuiListClipper_End = void function(ImGuiListClipper* self); alias pigResetMouseDragDelta = void function(ImGuiMouseButton button); alias pigDestroyContext = void function(ImGuiContext* ctx); alias pigSetNextWindowContentSize = void function(const ImVec2 size); alias pigSaveIniSettingsToDisk = void function(const char* ini_filename); alias pigGetWindowScrollbarRect = void function(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis); alias pigInputTextMultiline = bool function(const char* label, char* buf, size_t buf_size, const ImVec2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); alias pigIsClippedEx = bool function(const ImRect bb, ImGuiID id, bool clip_even_when_logged); alias pigGetWindowScrollbarID = ImGuiID function(ImGuiWindow* window, ImGuiAxis axis); alias pImGuiTextFilter_IsActive = bool function(ImGuiTextFilter* self); alias pImDrawListSharedData_ImDrawListSharedData = ImDrawListSharedData* function(); alias pImFontAtlas_GetMouseCursorTexData = bool function(ImFontAtlas* self, ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2[2]*/*[2]*/ out_uv_border, ImVec2[2]*/*[2]*/ out_uv_fill); alias pigLogText = void function(const char* fmt, ... ); alias pigGetWindowAlwaysWantOwnTabBar = bool function(ImGuiWindow* window); alias pigTabItemLabelAndCloseButton = bool function(ImDrawList* draw_list, const ImRect bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible); alias pigBeginDockableDragDropTarget = void function(ImGuiWindow* window); alias pImGuiPlatformMonitor_destroy = void function(ImGuiPlatformMonitor* self); alias pigColorEditOptionsPopup = void function(const float* col, ImGuiColorEditFlags flags); alias pigGetTextLineHeightWithSpacing = float function(); alias pImGuiColumnData_ImGuiColumnData = ImGuiColumnData* function(); alias pigPushStyleVarFloat = void function(ImGuiStyleVar idx, float val); alias pigPushStyleVarVec2 = void function(ImGuiStyleVar idx, const ImVec2 val); alias pigIsActiveIdUsingNavInput = bool function(ImGuiNavInput input); alias pigImStrnicmp = int function(const char* str1, const char* str2, size_t count); alias pigGetInputTextState = ImGuiInputTextState* function(ImGuiID id); alias pigFindRenderedTextEnd = const char* function(const char* text, const char* text_end); alias pImFontAtlas_ClearFonts = void function(ImFontAtlas* self); alias pigTextColoredV = void function(const ImVec4 col, const char* fmt, va_list args); alias pigIsKeyReleased = bool function(int user_key_index); alias pigLogToClipboard = void function(int auto_open_depth); alias pImFontAtlas_GetGlyphRangesKorean = const ImWchar* function(ImFontAtlas* self); alias pImFontGlyphRangesBuilder_SetBit = void function(ImFontGlyphRangesBuilder* self, size_t n); alias pigStyleColorsClassic = void function(ImGuiStyle* dst); alias pImGuiTabBar_GetTabOrder = int function(ImGuiTabBar* self, const ImGuiTabItem* tab); alias pigBegin = bool function(const char* name, bool* p_open, ImGuiWindowFlags flags); alias pImGuiLastItemDataBackup_ImGuiLastItemDataBackup = ImGuiLastItemDataBackup* function(); alias pigButton = bool function(const char* label, const ImVec2 size); alias pigBeginMenuBar = bool function(); alias pigDataTypeClamp = bool function(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); alias pigRenderText = void function(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash); alias pImFontGlyphRangesBuilder_Clear = void function(ImFontGlyphRangesBuilder* self); alias pImGuiMenuColumns_destroy = void function(ImGuiMenuColumns* self); alias pigImStrncpy = void function(char* dst, const char* src, size_t count); alias pImGuiNextWindowData_ImGuiNextWindowData = ImGuiNextWindowData* function(); alias pigIsWindowNavFocusable = bool function(ImGuiWindow* window); alias pigItemAdd = bool function(const ImRect bb, ImGuiID id, const ImRect* nav_bb); alias pigListBoxFooter = void function(); alias pigGetScrollY = float function(); alias pImRect_GetWidth = float function(ImRect* self); alias pigGetItemStatusFlags = ImGuiItemStatusFlags function(); alias pigSliderScalar = bool function(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); alias pigGetStyleColorVec4 = const ImVec4* function(ImGuiCol idx); alias pigPopFocusScope = void function(); alias pigTextColored = void function(const ImVec4 col, const char* fmt, ... ); alias pigShutdown = void function(ImGuiContext* context); alias pigDockBuilderRemoveNodeDockedWindows = void function(ImGuiID node_id, bool clear_settings_refs); alias pImRect_ClipWith = void function(ImRect* self, const ImRect r); alias pImRect_GetTL = void function(ImVec2* pOut, ImRect* self); alias pImDrawListSplitter_ImDrawListSplitter = ImDrawListSplitter* function(); alias pigInvisibleButton = bool function(const char* str_id, const ImVec2 size, ImGuiButtonFlags flags); alias pigSetWindowFocusNil = void function(); alias pigSetWindowFocusStr = void function(const char* name); alias pigScaleWindowsInViewport = void function(ImGuiViewportP* viewport, float scale); alias pigRenderMouseCursor = void function(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); alias pigImFontAtlasBuildInit = void function(ImFontAtlas* atlas); alias pigRenderPlatformWindowsDefault = void function(void* platform_render_arg, void* renderer_render_arg); alias pImDrawListSplitter_ClearFreeMemory = void function(ImDrawListSplitter* self); alias pImGuiStyle_ImGuiStyle = ImGuiStyle* function(); alias pImGuiDockNode_IsHiddenTabBar = bool function(ImGuiDockNode* self); alias pigIsMouseDown = bool function(ImGuiMouseButton button); alias pImFontConfig_ImFontConfig = ImFontConfig* function(); alias pImGuiTabBar_GetTabName = const char* function(ImGuiTabBar* self, const ImGuiTabItem* tab); alias pigNewLine = void function(); alias pigGetPlatformIO = ImGuiPlatformIO* function(); alias pigMemFree = void function(void* ptr); alias pigCalcTypematicRepeatAmount = int function(float t0, float t1, float repeat_delay, float repeat_rate); alias pigNextColumn = void function(); alias pigRenderFrame = void function(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding); alias pigLogButtons = void function(); alias pigDockBuilderRemoveNode = void function(ImGuiID node_id); alias pImFont_ClearOutputData = void function(ImFont* self); alias pImFont_ImFont = ImFont* function(); alias pigEndTabItem = void function(); alias pigVSliderFloat = bool function(const char* label, const ImVec2 size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pigRenderArrowPointingAt = void function(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); alias pigEndGroup = void function(); alias pigTreeNodeBehavior = bool function(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end); alias pigPlotLinesFloatPtr = void function(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride); alias pigPlotLinesFnFloatPtr = void function(const char* label, float function(void* data,int idx) values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size); alias pigGetColumnNormFromOffset = float function(const ImGuiColumns* columns, float offset); alias pigSetCurrentFont = void function(ImFont* font); alias pigSetItemAllowOverlap = void function(); alias pImGuiDockNode_IsCentralNode = bool function(ImGuiDockNode* self); alias pImGuiStorage_GetVoidPtrRef = void** function(ImGuiStorage* self, ImGuiID key, void* default_val); alias pigCheckboxFlags = bool function(const char* label, uint* flags, uint flags_value); alias pImGuiColumns_ImGuiColumns = ImGuiColumns* function(); alias pImGuiNavMoveResult_Clear = void function(ImGuiNavMoveResult* self); alias pImRect_destroy = void function(ImRect* self); alias pigImTriangleBarycentricCoords = void function(const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p, float* out_u, float* out_v, float* out_w); alias pImFontGlyphRangesBuilder_AddRanges = void function(ImFontGlyphRangesBuilder* self, const ImWchar* ranges); alias pImFontAtlas_GetGlyphRangesVietnamese = const ImWchar* function(ImFontAtlas* self); alias pigGetVersion = const char* function(); alias pImDrawList_ImDrawList = ImDrawList* function(const ImDrawListSharedData* shared_data); alias pigRenderTextEllipsis = void function(ImDrawList* draw_list, const ImVec2 pos_min, const ImVec2 pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); alias pImGuiListClipper_destroy = void function(ImGuiListClipper* self); alias pigPushOverrideID = void function(ImGuiID id); alias pigSetScrollYFloat = void function(float scroll_y); alias pigSetScrollYWindowPtr = void function(ImGuiWindow* window, float scroll_y); alias pigImMul = void function(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); alias pImFont_CalcWordWrapPositionA = const char* function(ImFont* self, float scale, const char* text, const char* text_end, float wrap_width); alias pigSmallButton = bool function(const char* label); alias pImGuiWindow_destroy = void function(ImGuiWindow* self); alias pigComboStr_arr = bool function(const char* label, int* current_item, const(char)** items, int items_count, int popup_max_height_in_items); alias pigComboStr = bool function(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items); alias pigComboFnBoolPtr = bool function(const char* label, int* current_item, bool function(void* data,int idx,const char** out_text) items_getter, void* data, int items_count, int popup_max_height_in_items); alias pigIsWindowChildOf = bool function(ImGuiWindow* window, ImGuiWindow* potential_parent); alias pImGuiWindow_CalcFontSize = float function(ImGuiWindow* self); alias pImDrawList_AddLine = void function(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, ImU32 col, float thickness); alias pImDrawList_AddCircle = void function(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments, float thickness); alias pImGuiInputTextState_SelectAll = void function(ImGuiInputTextState* self); alias pigImParseFormatTrimDecorations = const char* function(const char* format, char* buf, size_t buf_size); alias pigImTextCountUtf8BytesFromChar = int function(const char* in_text, const char* in_text_end); alias pImGuiTabBar_ImGuiTabBar = ImGuiTabBar* function(); alias pImGuiViewport_GetCenter = void function(ImVec2* pOut, ImGuiViewport* self); alias pigDebugDrawItemRect = void function(ImU32 col); alias pigDockBuilderSetNodeSize = void function(ImGuiID node_id, ImVec2 size); alias pigTreeNodeBehaviorIsOpen = bool function(ImGuiID id, ImGuiTreeNodeFlags flags); alias pigSetMouseCursor = void function(ImGuiMouseCursor cursor_type); alias pigBeginColumns = void function(const char* str_id, int count, ImGuiColumnsFlags flags); alias pigGetIO = ImGuiIO* function(); alias pigDragBehavior = bool function(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); alias pigImModPositive = int function(int a, int b); alias pImFontAtlasCustomRect_destroy = void function(ImFontAtlasCustomRect* self); alias pImGuiPayload_destroy = void function(ImGuiPayload* self); alias pigEndMenu = void function(); alias pigImSaturate = float function(float f); alias pImDrawList_PrimRect = void function(ImDrawList* self, const ImVec2 a, const ImVec2 b, ImU32 col); alias pigImLinearSweep = float function(float current, float target, float speed); alias pigUpdateMouseMovingWindowNewFrame = void function(); alias pImDrawList_AddRectFilled = void function(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners); alias pImGuiPopupData_destroy = void function(ImGuiPopupData* self); alias pigFindSettingsHandler = ImGuiSettingsHandler* function(const char* type_name); alias pigDragInt2 = bool function(const char* label, int[2]*/*[2]*/ v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigBeginDocked = void function(ImGuiWindow* window, bool* p_open); alias pigSetColorEditOptions = void function(ImGuiColorEditFlags flags); alias pigIsAnyMouseDown = bool function(); alias pImGuiDockContext_ImGuiDockContext = ImGuiDockContext* function(); alias pImGuiTextFilter_Build = void function(ImGuiTextFilter* self); alias pigTabItemCalcSize = void function(ImVec2* pOut, const char* label, bool has_close_button); alias pigSetNextWindowCollapsed = void function(bool collapsed, ImGuiCond cond); alias pigSetLastItemData = void function(ImGuiWindow* window, ImGuiID item_id, ImGuiItemStatusFlags status_flags, const ImRect item_rect); alias pigLogToBuffer = void function(int auto_open_depth); alias pigImFileLoadToMemory = void* function(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes); alias pImFontAtlas_GetGlyphRangesCyrillic = const ImWchar* function(ImFontAtlas* self); alias pImGuiStyle_destroy = void function(ImGuiStyle* self); alias pImDrawList_destroy = void function(ImDrawList* self); alias pImVec4_destroy = void function(ImVec4* self); alias pigRenderCheckMark = void function(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); alias pigTreeNodeExStr = bool function(const char* label, ImGuiTreeNodeFlags flags); alias pigTreeNodeExStrStr = bool function(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ... ); alias pigTreeNodeExPtr = bool function(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ... ); alias pImBitVector_SetBit = void function(ImBitVector* self, int n); alias pigSetColumnWidth = void function(int column_index, float width); alias pImGuiDockNode_destroy = void function(ImGuiDockNode* self); alias pImGuiNavMoveResult_destroy = void function(ImGuiNavMoveResult* self); alias pigIsItemClicked = bool function(ImGuiMouseButton mouse_button); alias pImGuiColumnData_destroy = void function(ImGuiColumnData* self); alias pImDrawList_AddCallback = void function(ImDrawList* self, ImDrawCallback callback, void* callback_data); alias pigGetMousePos = void function(ImVec2* pOut); alias pigDataTypeCompare = int function(ImGuiDataType data_type, const void* arg_1, const void* arg_2); alias pigDockContextQueueUndockNode = void function(ImGuiContext* ctx, ImGuiDockNode* node); alias pigImageButtonEx = bool function(ImGuiID id, ImTextureID texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec2 padding, const ImVec4 bg_col, const ImVec4 tint_col); alias pigGetWindowResizeID = ImGuiID function(ImGuiWindow* window, int n); alias pigBullet = void function(); alias pigRenderArrowDockMenu = void function(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); alias pigGetHoveredID = ImGuiID function(); alias pigGetWindowContentRegionMin = void function(ImVec2* pOut); alias pImDrawList_AddNgonFilled = void function(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments); alias pigDragScalar = bool function(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); alias pImGuiDockNode_ImGuiDockNode = ImGuiDockNode* function(ImGuiID id); alias pigSetCursorPos = void function(const ImVec2 local_pos); alias pigEndColumns = void function(); alias pigSetTooltip = void function(const char* fmt, ... ); alias pImGuiViewportP_destroy = void function(ImGuiViewportP* self); alias pigBeginTabBarEx = bool function(ImGuiTabBar* tab_bar, const ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dock_node); alias pigShadeVertsLinearColorGradientKeepAlpha = void function(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); alias pImGuiInputTextState_HasSelection = bool function(ImGuiInputTextState* self); alias pigDockNodeGetRootNode = ImGuiDockNode* function(ImGuiDockNode* node); alias pImGuiDockNode_IsSplitNode = bool function(ImGuiDockNode* self); alias pigCalcItemWidth = float function(); alias pigDockContextRebuildNodes = void function(ImGuiContext* ctx); alias pigPushItemWidth = void function(float item_width); alias pigScrollbarEx = bool function(const ImRect bb, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float avail_v, float contents_v, ImDrawCornerFlags rounding_corners); alias pImDrawList_ChannelsMerge = void function(ImDrawList* self); alias pigSetAllocatorFunctions = void function(void* function(size_t sz,void* user_data) alloc_func, void function(void* ptr,void* user_data) free_func, void* user_data); alias pImFont_FindGlyph = const ImFontGlyph* function(ImFont* self, ImWchar c); alias pigDockNodeGetDepth = int function(const ImGuiDockNode* node); alias pigDebugStartItemPicker = void function(); alias pImGuiNextWindowData_destroy = void function(ImGuiNextWindowData* self); alias pImGuiPayload_IsDelivery = bool function(ImGuiPayload* self); alias pImFontAtlas_GetGlyphRangesJapanese = const ImWchar* function(ImFontAtlas* self); alias pImRect_Overlaps = bool function(ImRect* self, const ImRect r); alias pigCaptureMouseFromApp = void function(bool want_capture_mouse_value); alias pigImHashData = ImU32 function(const void* data, size_t data_size, ImU32 seed); alias pImGuiInputTextCallbackData_InsertChars = void function(ImGuiInputTextCallbackData* self, int pos, const char* text, const char* text_end); alias pigDragFloat2 = bool function(const char* label, float[2]*/*[2]*/ v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pigTreePushOverrideID = void function(ImGuiID id); alias pigUpdateHoveredWindowAndCaptureFlags = void function(); alias pImGuiWindowTempData_destroy = void function(ImGuiWindowTempData* self); alias pImFont_destroy = void function(ImFont* self); alias pigEndMenuBar = void function(); alias pigGetWindowSize = void function(ImVec2* pOut); alias pigInputInt4 = bool function(const char* label, int[4]*/*[4]*/ v, ImGuiInputTextFlags flags); alias pigShowViewportThumbnails = void function(); alias pigImSignFloat = float function(float x); alias pigImSigndouble = double function(double x); alias pigLabelText = void function(const char* label, const char* fmt, ... ); alias pigGetMouseCursor = ImGuiMouseCursor function(); alias pigIsMouseDoubleClicked = bool function(ImGuiMouseButton button); alias pImGuiColumns_destroy = void function(ImGuiColumns* self); alias pImDrawList_PathClear = void function(ImDrawList* self); alias pImDrawCmd_destroy = void function(ImDrawCmd* self); alias pigGetStateStorage = ImGuiStorage* function(); alias pigInputInt2 = bool function(const char* label, int[2]*/*[2]*/ v, ImGuiInputTextFlags flags); alias pigImFileRead = ImU64 function(void* data, ImU64 size, ImU64 count, ImFileHandle file); alias pigSetNextWindowScroll = void function(const ImVec2 scroll); alias pigGetFrameHeight = float function(); alias pigImFileWrite = ImU64 function(const void* data, ImU64 size, ImU64 count, ImFileHandle file); alias pigInputText = bool function(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); alias pigTreeNodeExVStr = bool function(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args); alias pigTreeNodeExVPtr = bool function(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args); alias pigIsAnyItemFocused = bool function(); alias pImDrawDataBuilder_Clear = void function(ImDrawDataBuilder* self); alias pImVec2ih_ImVec2ihNil = ImVec2ih* function(); alias pImVec2ih_ImVec2ihshort = ImVec2ih* function(short _x, short _y); alias pImVec2ih_ImVec2ihVec2 = ImVec2ih* function(const ImVec2 rhs); alias pigDockContextQueueDock = void function(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); alias pImVec1_ImVec1Nil = ImVec1* function(); alias pImVec1_ImVec1Float = ImVec1* function(float _x); alias pigCalcItemSize = void function(ImVec2* pOut, ImVec2 size, float default_w, float default_h); alias pImFontAtlasCustomRect_IsPacked = bool function(ImFontAtlasCustomRect* self); alias pigPopStyleColor = void function(int count); alias pigColorEdit4 = bool function(const char* label, float[4]*/*[4]*/ col, ImGuiColorEditFlags flags); alias pigPlotEx = int function(ImGuiPlotType plot_type, const char* label, float function(void* data,int idx) values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size); alias pigGetCursorStartPos = void function(ImVec2* pOut); alias pigDockSpaceOverViewport = ImGuiID function(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); alias pImGuiInputTextCallbackData_destroy = void function(ImGuiInputTextCallbackData* self); alias pImFontAtlas_IsBuilt = bool function(ImFontAtlas* self); alias pImGuiTextBuffer_begin = const char* function(ImGuiTextBuffer* self); alias pImVec4_ImVec4Nil = ImVec4* function(); alias pImVec4_ImVec4Float = ImVec4* function(float _x, float _y, float _z, float _w); alias pImGuiWindow_GetIDNoKeepAliveStr = ImGuiID function(ImGuiWindow* self, const char* str, const char* str_end); alias pImGuiWindow_GetIDNoKeepAlivePtr = ImGuiID function(ImGuiWindow* self, const void* ptr); alias pImGuiWindow_GetIDNoKeepAliveInt = ImGuiID function(ImGuiWindow* self, int n); alias pImFont_BuildLookupTable = void function(ImFont* self); alias pImGuiTextBuffer_appendfv = void function(ImGuiTextBuffer* self, const char* fmt, va_list args); alias pigDragInt4 = bool function(const char* label, int[4]*/*[4]*/ v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pImGuiDockNode_IsEmpty = bool function(ImGuiDockNode* self); alias pigClearIniSettings = void function(); alias pImDrawList_PathLineToMergeDuplicate = void function(ImDrawList* self, const ImVec2 pos); alias pImGuiIO_ImGuiIO = ImGuiIO* function(); alias pigSetNextWindowClass = void function(const ImGuiWindowClass* window_class); alias pigBeginDragDropTarget = bool function(); alias pigImTextCountCharsFromUtf8 = int function(const char* in_text, const char* in_text_end); alias pImGuiTextBuffer_clear = void function(ImGuiTextBuffer* self); alias pigImStricmp = int function(const char* str1, const char* str2); alias pigMarkItemEdited = void function(ImGuiID id); alias pigIsWindowFocused = bool function(ImGuiFocusedFlags flags); alias pImGuiIO_AddInputCharactersUTF8 = void function(ImGuiIO* self, const char* str); alias pigSetCurrentContext = void function(ImGuiContext* ctx); alias pigColorTooltip = void function(const char* text, const float* col, ImGuiColorEditFlags flags); alias pigImBezierClosestPoint = void function(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 p, int num_segments); alias pigImTriangleClosestPoint = void function(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p); alias pigSliderInt4 = bool function(const char* label, int[4]*/*[4]*/ v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigGetItemRectMin = void function(ImVec2* pOut); alias pImDrawList_PrimReserve = void function(ImDrawList* self, int idx_count, int vtx_count); alias pImGuiMenuColumns_ImGuiMenuColumns = ImGuiMenuColumns* function(); alias pigDockBuilderGetCentralNode = ImGuiDockNode* function(ImGuiID node_id); alias pImGuiWindowTempData_ImGuiWindowTempData = ImGuiWindowTempData* function(); alias pImDrawList_AddRectFilledMultiColor = void function(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); alias pImGuiViewport_GetWorkSize = void function(ImVec2* pOut, ImGuiViewport* self); alias pigGetWindowViewport = ImGuiViewport* function(); alias pigSetStateStorage = void function(ImGuiStorage* storage); alias pImGuiStorage_SetAllInt = void function(ImGuiStorage* self, int val); alias pImGuiListClipper_Step = bool function(ImGuiListClipper* self); alias pImGuiOnceUponAFrame_destroy = void function(ImGuiOnceUponAFrame* self); alias pImGuiInputTextCallbackData_DeleteChars = void function(ImGuiInputTextCallbackData* self, int pos, int bytes_count); alias pigImFontAtlasBuildSetupFont = void function(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); alias pImGuiTextBuffer_empty = bool function(ImGuiTextBuffer* self); alias pigShowDemoWindow = void function(bool* p_open); alias pigImPowFloat = float function(float x, float y); alias pigImPowdouble = double function(double x, double y); alias pImGuiTextRange_destroy = void function(ImGuiTextRange* self); alias pImGuiStorage_SetVoidPtr = void function(ImGuiStorage* self, ImGuiID key, void* val); alias pigImInvLength = float function(const ImVec2 lhs, float fail_value); alias pigCloseButton = bool function(ImGuiID id, const ImVec2 pos); alias pImDrawList_PushTextureID = void function(ImDrawList* self, ImTextureID texture_id); alias pImDrawList_PathLineTo = void function(ImDrawList* self, const ImVec2 pos); alias pigSetWindowHitTestHole = void function(ImGuiWindow* window, const ImVec2 pos, const ImVec2 size); alias pigSeparatorEx = void function(ImGuiSeparatorFlags flags); alias pImRect_AddVec2 = void function(ImRect* self, const ImVec2 p); alias pImRect_AddRect = void function(ImRect* self, const ImRect r); alias pigShowMetricsWindow = void function(bool* p_open); alias pImDrawList__PopUnusedDrawCmd = void function(ImDrawList* self); alias pImDrawList_AddImageRounded = void function(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p_min, const ImVec2 p_max, const ImVec2 uv_min, const ImVec2 uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners); alias pImGuiStyleMod_destroy = void function(ImGuiStyleMod* self); alias pImGuiStorage_BuildSortByKey = void function(ImGuiStorage* self); alias pImDrawList_PathRect = void function(ImDrawList* self, const ImVec2 rect_min, const ImVec2 rect_max, float rounding, ImDrawCornerFlags rounding_corners); alias pigInputTextEx = bool function(const char* label, const char* hint, char* buf, int buf_size, const ImVec2 size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); alias pigColorEdit3 = bool function(const char* label, float[3]*/*[3]*/ col, ImGuiColorEditFlags flags); alias pImColor_destroy = void function(ImColor* self); alias pImGuiDockNode_GetMergedFlags = ImGuiDockNodeFlags function(ImGuiDockNode* self); alias pigIsItemToggledSelection = bool function(); alias pigTabItemEx = bool function(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); alias pigIsKeyPressedMap = bool function(ImGuiKey key, bool repeat); alias pigLogFinish = void function(); alias pigGetItemRectSize = void function(ImVec2* pOut); alias pigImParseFormatFindStart = const char* function(const char* format); alias pigDragScalarN = bool function(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); alias pImDrawData_ImDrawData = ImDrawData* function(); alias pigImDot = float function(const ImVec2 a, const ImVec2 b); alias pImGuiColumns_Clear = void function(ImGuiColumns* self); alias pigMarkIniSettingsDirtyNil = void function(); alias pigMarkIniSettingsDirtyWindowPtr = void function(ImGuiWindow* window); alias pigGetWindowWidth = float function(); alias pigBulletTextV = void function(const char* fmt, va_list args); alias pigDockBuilderCopyNode = void function(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector_ImGuiID* out_node_remap_pairs); alias pImDrawListSplitter_SetCurrentChannel = void function(ImDrawListSplitter* self, ImDrawList* draw_list, int channel_idx); alias pImGuiStorage_SetBool = void function(ImGuiStorage* self, ImGuiID key, bool val); alias pigAlignTextToFramePadding = void function(); alias pigIsWindowHovered = bool function(ImGuiHoveredFlags flags); alias pigDockBuilderCopyDockSpace = void function(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector_const_charPtr* in_window_remap_pairs); alias pImDrawList_PathBezierCurveTo = void function(ImDrawList* self, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, int num_segments); alias pImRect_GetCenter = void function(ImVec2* pOut, ImRect* self); alias pigGetWindowContentRegionWidth = float function(); alias pImDrawList_PathArcTo = void function(ImDrawList* self, const ImVec2 center, float radius, float a_min, float a_max, int num_segments); alias pigIsAnyItemActive = bool function(); alias pigPushTextWrapPos = void function(float wrap_local_pos_x); alias pigGetTreeNodeToLabelSpacing = float function(); alias pigSameLine = void function(float offset_from_start_x, float spacing); alias pigStyleColorsDark = void function(ImGuiStyle* dst); alias pigTabBarQueueReorder = void function(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int dir); alias pigDummy = void function(const ImVec2 size); alias pigGetItemID = ImGuiID function(); alias pigImageButton = bool function(ImTextureID user_texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, int frame_padding, const ImVec4 bg_col, const ImVec4 tint_col); alias pigGetWindowContentRegionMax = void function(ImVec2* pOut); alias pigGetKeyPressedAmount = int function(int key_index, float repeat_delay, float rate); alias pigRenderTextClipped = void function(const ImVec2 pos_min, const ImVec2 pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2 alignment, const ImRect* clip_rect); alias pigImIsPowerOfTwo = bool function(int v); alias pigSetNextWindowSizeConstraints = void function(const ImVec2 size_min, const ImVec2 size_max, ImGuiSizeCallback custom_callback, void* custom_callback_data); alias pImFont_FindGlyphNoFallback = const ImFontGlyph* function(ImFont* self, ImWchar c); alias pigShowStyleSelector = bool function(const char* label); alias pigFocusableItemUnregister = void function(ImGuiWindow* window); alias pigNavMoveRequestForward = void function(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect bb_rel, ImGuiNavMoveFlags move_flags); alias pigSetNavIDWithRectRel = void function(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect rect_rel); alias pigNavInitWindow = void function(ImGuiWindow* window, bool force_reinit); alias pigDockContextUpdateDocking = void function(ImGuiContext* ctx); alias pigImFileOpen = ImFileHandle function(const char* filename, const char* mode); alias pigEndDragDropTarget = void function(); alias pImGuiWindowSettings_ImGuiWindowSettings = ImGuiWindowSettings* function(); alias pImDrawListSharedData_destroy = void function(ImDrawListSharedData* self); alias pImFontAtlas_Build = bool function(ImFontAtlas* self); alias pigSetScrollFromPosXFloat = void function(float local_x, float center_x_ratio); alias pigSetScrollFromPosXWindowPtr = void function(ImGuiWindow* window, float local_x, float center_x_ratio); alias pigIsKeyPressed = bool function(int user_key_index, bool repeat); alias pigEndTooltip = void function(); alias pigFindWindowSettings = ImGuiWindowSettings* function(ImGuiID id); alias pigKeepAliveID = void function(ImGuiID id); alias pigGetColumnOffsetFromNorm = float function(const ImGuiColumns* columns, float offset_norm); alias pImFont_IsLoaded = bool function(ImFont* self); alias pigBeginDragDropSource = bool function(ImGuiDragDropFlags flags); alias pImBitVector_ClearBit = void function(ImBitVector* self, int n); alias pigGetCursorPosX = float function(); alias pigPushFont = void function(ImFont* font); alias pigSetScrollFromPosYFloat = void function(float local_y, float center_y_ratio); alias pigSetScrollFromPosYWindowPtr = void function(ImGuiWindow* window, float local_y, float center_y_ratio); alias pigColorButton = bool function(const char* desc_id, const ImVec4 col, ImGuiColorEditFlags flags, ImVec2 size); alias pigAcceptDragDropPayload = const ImGuiPayload* function(const char* type, ImGuiDragDropFlags flags); alias pigDockContextShutdown = void function(ImGuiContext* ctx); alias pImDrawList_PopClipRect = void function(ImDrawList* self); alias pigGetScrollMaxY = float function(); alias pImGuiStoragePair_ImGuiStoragePairInt = ImGuiStoragePair* function(ImGuiID _key, int _val_i); alias pImGuiStoragePair_ImGuiStoragePairFloat = ImGuiStoragePair* function(ImGuiID _key, float _val_f); alias pImGuiStoragePair_ImGuiStoragePairPtr = ImGuiStoragePair* function(ImGuiID _key, void* _val_p); alias pigEndMainMenuBar = void function(); alias pImGuiPlatformMonitor_ImGuiPlatformMonitor = ImGuiPlatformMonitor* function(); alias pImGuiViewportP_GetMainRect = void function(ImRect* pOut, ImGuiViewportP* self); alias pigIsItemActive = bool function(); alias pigShowAboutWindow = void function(bool* p_open); alias pigSetNextItemWidth = void function(float item_width); alias pigImStrchrRange = const char* function(const char* str_begin, const char* str_end, char c); alias pigGetContentRegionAvail = void function(ImVec2* pOut); alias pImGuiPayload_ImGuiPayload = ImGuiPayload* function(); alias pigCheckbox = bool function(const char* label, bool* v); alias pImGuiTextRange_ImGuiTextRangeNil = ImGuiTextRange* function(); alias pImGuiTextRange_ImGuiTextRangeStr = ImGuiTextRange* function(const char* _b, const char* _e); alias pImFontAtlas_destroy = void function(ImFontAtlas* self); alias pImGuiMenuColumns_Update = void function(ImGuiMenuColumns* self, int count, float spacing, bool clear); alias pigCalcWindowExpectedSize = void function(ImVec2* pOut, ImGuiWindow* window); alias pigGcCompactTransientWindowBuffers = void function(ImGuiWindow* window); alias pigNavMoveRequestTryWrapping = void function(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); alias pigGetCurrentWindow = ImGuiWindow* function(); alias pigIsWindowDocked = bool function(); alias pImVec2_destroy = void function(ImVec2* self); alias pigGetIDStr = ImGuiID function(const char* str_id); alias pigGetIDStrStr = ImGuiID function(const char* str_id_begin, const char* str_id_end); alias pigGetIDPtr = ImGuiID function(const void* ptr_id); alias pigImFontAtlasBuildMultiplyCalcLookupTable = void function(char[256]*/*[256]*/ out_table, float in_multiply_factor); alias pigSetDragDropPayload = bool function(const char* type, const void* data, size_t sz, ImGuiCond cond); alias pigPushStyleColorU32 = void function(ImGuiCol idx, ImU32 col); alias pigPushStyleColorVec4 = void function(ImGuiCol idx, const ImVec4 col); alias pImFontAtlas_ImFontAtlas = ImFontAtlas* function(); alias pigBeginGroup = void function(); alias pImGuiMenuColumns_CalcExtraSpace = float function(ImGuiMenuColumns* self, float avail_w); alias pigGetContentRegionMax = void function(ImVec2* pOut); alias pigEndChildFrame = void function(); alias pigActivateItem = void function(ImGuiID id); alias pigPopStyleVar = void function(int count); alias pImDrawList_PushClipRectFullScreen = void function(ImDrawList* self); alias pImRect_ContainsVec2 = bool function(ImRect* self, const ImVec2 p); alias pImRect_ContainsRect = bool function(ImRect* self, const ImRect r); alias pigGetBackgroundDrawListNil = ImDrawList* function(); alias pigGetBackgroundDrawListViewportPtr = ImDrawList* function(ImGuiViewport* viewport); alias pigSetColumnOffset = void function(int column_index, float offset_x); alias pigSetKeyboardFocusHere = void function(int offset); alias pigLoadIniSettingsFromMemory = void function(const char* ini_data, size_t ini_size); alias pigIndent = void function(float indent_w); alias pigSetNextWindowSize = void function(const ImVec2 size, ImGuiCond cond); alias pigInputFloat3 = bool function(const char* label, float[3]*/*[3]*/ v, const char* format, ImGuiInputTextFlags flags); alias pigIsKeyDown = bool function(int user_key_index); alias pigTextV = void function(const char* fmt, va_list args); alias pigTextUnformatted = void function(const char* text, const char* text_end); alias pigImLengthSqrVec2 = float function(const ImVec2 lhs); alias pigImLengthSqrVec4 = float function(const ImVec4 lhs); alias pImGuiTextFilter_Draw = bool function(ImGuiTextFilter* self, const char* label, float width); alias pigFocusWindow = void function(ImGuiWindow* window); alias pigPushClipRect = void function(const ImVec2 clip_rect_min, const ImVec2 clip_rect_max, bool intersect_with_current_clip_rect); alias pImGuiViewportP_ImGuiViewportP = ImGuiViewportP* function(); alias pigBeginMainMenuBar = bool function(); alias pImRect_GetBR = void function(ImVec2* pOut, ImRect* self); alias pigCollapsingHeaderTreeNodeFlags = bool function(const char* label, ImGuiTreeNodeFlags flags); alias pigCollapsingHeaderBoolPtr = bool function(const char* label, bool* p_open, ImGuiTreeNodeFlags flags); alias pigGetCurrentWindowRead = ImGuiWindow* function(); alias pigSliderInt3 = bool function(const char* label, int[3]*/*[3]*/ v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigTabBarAddTab = void function(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window); alias pigTabItemButton = bool function(const char* label, ImGuiTabItemFlags flags); alias pigImFormatString = int function(char* buf, size_t buf_size, const char* fmt, ... ); alias pigIsMouseReleased = bool function(ImGuiMouseButton button); alias pImGuiInputTextState_CursorClamp = void function(ImGuiInputTextState* self); alias pImFontAtlasCustomRect_ImFontAtlasCustomRect = ImFontAtlasCustomRect* function(); alias pImGuiIO_AddInputCharacter = void function(ImGuiIO* self, uint c); alias pigTabBarProcessReorder = bool function(ImGuiTabBar* tab_bar); alias pigGetNavInputAmount = float function(ImGuiNavInput n, ImGuiInputReadMode mode); alias pigClearDragDrop = void function(); alias pigGetTextLineHeight = float function(); alias pigDataTypeApplyOp = void function(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); alias pImDrawList_AddQuadFilled = void function(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col); alias pigSetNextWindowBgAlpha = void function(float alpha); alias pImGuiInputTextCallbackData_SelectAll = void function(ImGuiInputTextCallbackData* self); alias pImGuiNextItemData_ImGuiNextItemData = ImGuiNextItemData* function(); alias pigLogRenderedText = void function(const ImVec2* ref_pos, const char* text, const char* text_end); alias pigBeginMenu = bool function(const char* label, bool enabled); alias pImGuiStorage_GetIntRef = int* function(ImGuiStorage* self, ImGuiID key, int default_val); alias pigImTextCountUtf8BytesFromStr = int function(const ImWchar* in_text, const ImWchar* in_text_end); alias pigEndCombo = void function(); alias pigIsNavInputTest = bool function(ImGuiNavInput n, ImGuiInputReadMode rm); alias pigImage = void function(ImTextureID user_texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec4 tint_col, const ImVec4 border_col); alias pImDrawList_AddPolyline = void function(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, bool closed, float thickness); alias pigTreeNodeStr = bool function(const char* label); alias pigTreeNodeStrStr = bool function(const char* str_id, const char* fmt, ... ); alias pigTreeNodePtr = bool function(const void* ptr_id, const char* fmt, ... ); alias pigPopClipRect = void function(); alias pImDrawList_PushClipRect = void function(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect); alias pigImBitArrayClearBit = void function(ImU32* arr, int n); alias pigArrowButtonEx = bool function(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags); alias pigSelectableBool = bool function(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2 size); alias pigSelectableBoolPtr = bool function(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2 size); alias pigBeginTooltipEx = void function(ImGuiWindowFlags extra_flags, ImGuiTooltipFlags tooltip_flags); alias pigGetFocusID = ImGuiID function(); alias pImDrawData_DeIndexAllBuffers = void function(ImDrawData* self); alias pImDrawCmd_ImDrawCmd = ImDrawCmd* function(); alias pImDrawData_ScaleClipRects = void function(ImDrawData* self, const ImVec2 fb_scale); alias pigSetNextItemOpen = void function(bool is_open, ImGuiCond cond); alias pigDataTypeFormatString = int function(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); alias pigTabItemBackground = void function(ImDrawList* draw_list, const ImRect bb, ImGuiTabItemFlags flags, ImU32 col); alias pImDrawList_AddTriangle = void function(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col, float thickness); alias pigDockContextClearNodes = void function(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs); alias pigTempInputIsActive = bool function(ImGuiID id); alias pigLogToFile = void function(int auto_open_depth, const char* filename); alias pImGuiNextItemData_destroy = void function(ImGuiNextItemData* self); alias pImGuiViewportP_ClearRequestFlags = void function(ImGuiViewportP* self); alias pigGetMergedKeyModFlags = ImGuiKeyModFlags function(); alias pigSetNextWindowDockID = void function(ImGuiID dock_id, ImGuiCond cond); alias pImRect_ToVec4 = void function(ImVec4* pOut, ImRect* self); alias pigPushMultiItemsWidths = void function(int components, float width_full); alias pigCreateContext = ImGuiContext* function(ImFontAtlas* shared_font_atlas); alias pImColor_ImColorNil = ImColor* function(); alias pImColor_ImColorInt = ImColor* function(int r, int g, int b, int a); alias pImColor_ImColorU32 = ImColor* function(ImU32 rgba); alias pImColor_ImColorFloat = ImColor* function(float r, float g, float b, float a); alias pImColor_ImColorVec4 = ImColor* function(const ImVec4 col); alias pigDockContextGenNodeID = ImGuiID function(ImGuiContext* ctx); alias pImDrawList__ClearFreeMemory = void function(ImDrawList* self); alias pigSetNavID = void function(ImGuiID id, int nav_layer, ImGuiID focus_scope_id); alias pigGetWindowDrawList = ImDrawList* function(); alias pImRect_GetBL = void function(ImVec2* pOut, ImRect* self); alias pigImBezierClosestPointCasteljau = void function(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 p, float tess_tol); alias pigIsMousePosValid = bool function(const ImVec2* mouse_pos); alias pImGuiStorage_GetFloat = float function(ImGuiStorage* self, ImGuiID key, float default_val); alias pImGuiDockNode_IsLeafNode = bool function(ImGuiDockNode* self); alias pigSliderFloat4 = bool function(const char* label, float[4]*/*[4]*/ v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pigIsItemDeactivatedAfterEdit = bool function(); alias pigPlotHistogramFloatPtr = void function(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride); alias pigPlotHistogramFnFloatPtr = void function(const char* label, float function(void* data,int idx) values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size); alias pigIsItemEdited = bool function(); alias pigShowStyleEditor = void function(ImGuiStyle* reference); alias pigGetFocusScopeID = ImGuiID function(); alias pigTextWrappedV = void function(const char* fmt, va_list args); alias pImGuiLastItemDataBackup_destroy = void function(ImGuiLastItemDataBackup* self); alias pImGuiTextBuffer_appendf = void function(ImGuiTextBuffer* self, const char* fmt, ... ); alias pImFontAtlas_AddCustomRectFontGlyph = int function(ImFontAtlas* self, ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2 offset); alias pigDebugCheckVersionAndDataLayout = bool function(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); alias pigImAlphaBlendColors = ImU32 function(ImU32 col_a, ImU32 col_b); alias pImGuiStorage_GetBoolRef = bool* function(ImGuiStorage* self, ImGuiID key, bool default_val); alias pigBeginPopupContextVoid = bool function(const char* str_id, ImGuiPopupFlags popup_flags); alias pigSetScrollXFloat = void function(float scroll_x); alias pigSetScrollXWindowPtr = void function(ImGuiWindow* window, float scroll_x); alias pigRenderNavHighlight = void function(const ImRect bb, ImGuiID id, ImGuiNavHighlightFlags flags); alias pigBringWindowToFocusFront = void function(ImGuiWindow* window); alias pigSliderInt = bool function(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigUpdateMouseMovingWindowEndFrame = void function(); alias pigInputTextWithHint = bool function(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); alias pigGetContentRegionMaxAbs = void function(ImVec2* pOut); alias pigIsMouseHoveringRect = bool function(const ImVec2 r_min, const ImVec2 r_max, bool clip); alias pImGuiLastItemDataBackup_Backup = void function(ImGuiLastItemDataBackup* self); alias pigImTextStrFromUtf8 = int function(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_remaining); alias pigIsActiveIdUsingNavDir = bool function(ImGuiDir dir); alias pImGuiListClipper_Begin = void function(ImGuiListClipper* self, int items_count, float items_height); alias pigStartMouseMovingWindow = void function(ImGuiWindow* window); alias pigSliderInt2 = bool function(const char* label, int[2]*/*[2]*/ v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigIsItemHovered = bool function(ImGuiHoveredFlags flags); alias pImGuiIO_destroy = void function(ImGuiIO* self); alias pigEndDragDropSource = void function(); alias pigGetDragDropPayload = const ImGuiPayload* function(); alias pigPopButtonRepeat = void function(); alias pImGuiStorage_SetInt = void function(ImGuiStorage* self, ImGuiID key, int val); alias pImGuiWindow_MenuBarRect = void function(ImRect* pOut, ImGuiWindow* self); alias pImGuiStorage_GetInt = int function(ImGuiStorage* self, ImGuiID key, int default_val); alias pigShowFontSelector = void function(const char* label); alias pigDestroyPlatformWindow = void function(ImGuiViewportP* viewport); alias pigImMin = void function(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); alias pigPushButtonRepeat = void function(bool repeat); alias pigImAbsFloat = float function(float x); alias pigImAbsdouble = double function(double x); alias pImGuiWindow_Rect = void function(ImRect* pOut, ImGuiWindow* self); alias pImGuiViewportP_GetWorkRect = void function(ImRect* pOut, ImGuiViewportP* self); alias pImRect_Floor = void function(ImRect* self); alias pigTreePushStr = void function(const char* str_id); alias pigTreePushPtr = void function(const void* ptr_id); alias pigColorConvertFloat4ToU32 = ImU32 function(const ImVec4 inItem); alias pigGetStyle = ImGuiStyle* function(); alias pigGetCursorPos = void function(ImVec2* pOut); alias pigGetFrameCount = int function(); alias pImDrawList_AddNgon = void function(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments, float thickness); alias pigIsItemActivated = bool function(); alias pigEnd = void function(); alias pigTabBarCloseTab = void function(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); alias pImGuiInputTextState_ImGuiInputTextState = ImGuiInputTextState* function(); alias pImRect_GetHeight = float function(ImRect* self); alias pImFontAtlas_AddFontDefault = ImFont* function(ImFontAtlas* self, const ImFontConfig* font_cfg); alias pImDrawList__OnChangedTextureID = void function(ImDrawList* self); alias pigGetColumnsCount = int function(); alias pigEndChild = void function(); alias pigNavMoveRequestButNoResultYet = bool function(); alias pImGuiStyle_ScaleAllSizes = void function(ImGuiStyle* self, float scale_factor); alias pigArrowButton = bool function(const char* str_id, ImGuiDir dir); alias pigSetCursorPosY = void function(float local_y); alias pImGuiDockNode_IsFloatingNode = bool function(ImGuiDockNode* self); alias pImGuiTextFilter_ImGuiTextFilter = ImGuiTextFilter* function(const char* default_filter); alias pImGuiStorage_SetFloat = void function(ImGuiStorage* self, ImGuiID key, float val); alias pigShadeVertsLinearUV = void function(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2 a, const ImVec2 b, const ImVec2 uv_a, const ImVec2 uv_b, bool clamp); alias pigGetTime = double function(); alias pigBeginPopupContextItem = bool function(const char* str_id, ImGuiPopupFlags popup_flags); alias pigSetScrollHereX = void function(float center_x_ratio); alias pigSliderScalarN = bool function(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); alias pImFontAtlas_GetGlyphRangesChineseSimplifiedCommon = const ImWchar* function(ImFontAtlas* self); alias pigGetMousePosOnOpeningCurrentPopup = void function(ImVec2* pOut); alias pigVSliderScalar = bool function(const char* label, const ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); alias pigDockBuilderSetNodePos = void function(ImGuiID node_id, ImVec2 pos); alias pImFont_RenderChar = void function(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c); alias pImFont_RenderText = void function(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip); alias pigOpenPopupEx = void function(ImGuiID id, ImGuiPopupFlags popup_flags); alias pImFontAtlas_SetTexID = void function(ImFontAtlas* self, ImTextureID id); alias pImFontAtlas_Clear = void function(ImFontAtlas* self); alias pigBeginDockableDragDropSource = void function(ImGuiWindow* window); alias pImBitVector_TestBit = bool function(ImBitVector* self, int n); alias pImGuiTextFilter_destroy = void function(ImGuiTextFilter* self); alias pigBeginPopupModal = bool function(const char* name, bool* p_open, ImGuiWindowFlags flags); alias pigGetWindowDpiScale = float function(); alias pigInputFloat = bool function(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags); alias pigDragIntRange2 = bool function(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags); alias pImVec2ih_destroy = void function(ImVec2ih* self); alias pImDrawList_GetClipRectMax = void function(ImVec2* pOut, ImDrawList* self); alias pigInputFloat2 = bool function(const char* label, float[2]*/*[2]*/ v, const char* format, ImGuiInputTextFlags flags); alias pImDrawDataBuilder_ClearFreeMemory = void function(ImDrawDataBuilder* self); alias pImGuiWindowSettings_GetName = char* function(ImGuiWindowSettings* self); alias pImGuiLastItemDataBackup_Restore = void function(ImGuiLastItemDataBackup* self); alias pigImStrdup = char* function(const char* str); alias pigImFormatStringV = int function(char* buf, size_t buf_size, const char* fmt, va_list args); alias pigSetTooltipV = void function(const char* fmt, va_list args); alias pigDataTypeGetInfo = const ImGuiDataTypeInfo* function(ImGuiDataType data_type); alias pigVSliderInt = bool function(const char* label, const ImVec2 size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigSetWindowClipRectBeforeSetChannel = void function(ImGuiWindow* window, const ImRect clip_rect); alias pImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder = ImFontGlyphRangesBuilder* function(); alias pigGetWindowDockID = ImGuiID function(); alias pigPopTextWrapPos = void function(); alias pImGuiWindowClass_destroy = void function(ImGuiWindowClass* self); alias pImGuiWindow_TitleBarHeight = float function(ImGuiWindow* self); alias pImDrawList_GetClipRectMin = void function(ImVec2* pOut, ImDrawList* self); alias pImDrawList_PathStroke = void function(ImDrawList* self, ImU32 col, bool closed, float thickness); alias pigBeginTooltip = void function(); alias pigOpenPopupOnItemClick = void function(const char* str_id, ImGuiPopupFlags popup_flags); alias pImDrawListSplitter_Merge = void function(ImDrawListSplitter* self, ImDrawList* draw_list); alias pImGuiWindow_MenuBarHeight = float function(ImGuiWindow* self); alias pImColor_HSV = void function(ImColor* pOut, float h, float s, float v, float a); alias pigSetTabItemClosed = void function(const char* tab_or_docked_window_label); alias pImFont_AddGlyph = void function(ImFont* self, const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); alias pigSetHoveredID = void function(ImGuiID id); alias pigStartMouseMovingWindowOrNode = void function(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node); alias pImFontGlyphRangesBuilder_AddText = void function(ImFontGlyphRangesBuilder* self, const char* text, const char* text_end); alias pImGuiPtrOrIndex_destroy = void function(ImGuiPtrOrIndex* self); alias pImGuiInputTextCallbackData_ImGuiInputTextCallbackData = ImGuiInputTextCallbackData* function(); alias pigImStrdupcpy = char* function(char* dst, size_t* p_dst_size, const char* str); alias pImGuiDockNode_IsNoTabBar = bool function(ImGuiDockNode* self); alias pigColorConvertHSVtoRGB = void function(float h, float s, float v, float* out_r, float* out_g, float* out_b); alias pigDockBuilderSplitNode = ImGuiID function(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir); alias pigColorPicker4 = bool function(const char* label, float[4]*/*[4]*/ col, ImGuiColorEditFlags flags, const float* ref_col); alias pigImBitArrayTestBit = bool function(const ImU32* arr, int n); alias pigFindWindowByID = ImGuiWindow* function(ImGuiID id); alias pigBeginDragDropTargetCustom = bool function(const ImRect bb, ImGuiID id); alias pImGuiContext_destroy = void function(ImGuiContext* self); alias pigDragInt3 = bool function(const char* label, int[3]*/*[3]*/ v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); alias pigImHashStr = ImU32 function(const char* data, size_t data_size, ImU32 seed); alias pImDrawList_AddTriangleFilled = void function(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col); alias pigTempInputScalar = bool function(const ImRect bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max); alias pigRenderArrow = void function(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale); alias pigImFontAtlasBuildRender1bppRectFromString = void function(ImFontAtlas* atlas, int atlas_x, int atlas_y, int w, int h, const char* in_str, char in_marker_char, char in_marker_pixel_value); alias pigNewFrame = void function(); alias pImGuiTabItem_ImGuiTabItem = ImGuiTabItem* function(); alias pImDrawList_ChannelsSetCurrent = void function(ImDrawList* self, int n); alias pigClosePopupToLevel = void function(int remaining, bool restore_focus_to_window_under_popup); alias pImGuiContext_ImGuiContext = ImGuiContext* function(ImFontAtlas* shared_font_atlas); alias pigSliderFloat2 = bool function(const char* label, float[2]*/*[2]*/ v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pImGuiPopupData_ImGuiPopupData = ImGuiPopupData* function(); alias pImDrawList_AddImageQuad = void function(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 uv1, const ImVec2 uv2, const ImVec2 uv3, const ImVec2 uv4, ImU32 col); alias pImFontAtlas_GetCustomRectByIndex = ImFontAtlasCustomRect* function(ImFontAtlas* self, int index); alias pImFontAtlas_GetTexDataAsAlpha8 = void function(ImFontAtlas* self, char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel); alias pigGcAwakeTransientWindowBuffers = void function(ImGuiWindow* window); alias pImDrawList__OnChangedClipRect = void function(ImDrawList* self); alias pImGuiWindowClass_ImGuiWindowClass = ImGuiWindowClass* function(); alias pigDockBuilderRemoveNodeChildNodes = void function(ImGuiID node_id); alias pigGetColumnsID = ImGuiID function(const char* str_id, int count); alias pigPushAllowKeyboardFocus = void function(bool allow_keyboard_focus); alias pImDrawList_PopTextureID = void function(ImDrawList* self); alias pigColumns = void function(int count, const char* id, bool border); alias pImFontGlyphRangesBuilder_AddChar = void function(ImFontGlyphRangesBuilder* self, ImWchar c); alias pigGetColumnIndex = int function(); alias pigBringWindowToDisplayBack = void function(ImGuiWindow* window); alias pImDrawList_PrimVtx = void function(ImDrawList* self, const ImVec2 pos, const ImVec2 uv, ImU32 col); alias pImDrawListSplitter_Clear = void function(ImDrawListSplitter* self); alias pImDrawList_AddConvexPolyFilled = void function(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col); alias pigGetCursorScreenPos = void function(ImVec2* pOut); alias pigListBoxStr_arr = bool function(const char* label, int* current_item, const(char)** items, int items_count, int height_in_items); alias pigListBoxFnBoolPtr = bool function(const char* label, int* current_item, bool function(void* data,int idx,const char** out_text) items_getter, void* data, int items_count, int height_in_items); alias pigPopItemFlag = void function(); alias pigPopColumnsBackground = void function(); alias pigLogBegin = void function(ImGuiLogType type, int auto_open_depth); alias pigTreeNodeVStr = bool function(const char* str_id, const char* fmt, va_list args); alias pigTreeNodeVPtr = bool function(const void* ptr_id, const char* fmt, va_list args); alias pigRenderTextClippedEx = void function(ImDrawList* draw_list, const ImVec2 pos_min, const ImVec2 pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2 alignment, const ImRect* clip_rect); alias pImGuiIO_AddInputCharacterUTF16 = void function(ImGuiIO* self, ImWchar16 c); alias pImGuiStorage_GetFloatRef = float* function(ImGuiStorage* self, ImGuiID key, float default_val); alias pigImStrbolW = const ImWchar* function(const ImWchar* buf_mid_line, const ImWchar* buf_begin); alias pigSliderBehavior = bool function(const ImRect bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); alias pigValueBool = void function(const char* prefix, bool b); alias pigValueInt = void function(const char* prefix, int v); alias pigValueUint = void function(const char* prefix, uint v); alias pigValueFloat = void function(const char* prefix, float v, const char* float_format); alias pigBeginTabItem = bool function(const char* label, bool* p_open, ImGuiTabItemFlags flags); alias pImGuiViewport_destroy = void function(ImGuiViewport* self); alias pigIsNavInputDown = bool function(ImGuiNavInput n); alias pImGuiInputTextState_ClearFreeMemory = void function(ImGuiInputTextState* self); alias pigRenderBullet = void function(ImDrawList* draw_list, ImVec2 pos, ImU32 col); alias pigDragFloat4 = bool function(const char* label, float[4]*/*[4]*/ v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pImDrawList__OnChangedVtxOffset = void function(ImDrawList* self); alias pigFocusTopMostWindowUnderOne = void function(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); alias pigPushIDStr = void function(const char* str_id); alias pigPushIDStrStr = void function(const char* str_id_begin, const char* str_id_end); alias pigPushIDPtr = void function(const void* ptr_id); alias pigPushIDInt = void function(int int_id); alias pigItemHoverable = bool function(const ImRect bb, ImGuiID id); alias pImFontAtlas_AddFontFromMemoryTTF = ImFont* function(ImFontAtlas* self, void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); alias pigDockBuilderDockWindow = void function(const char* window_name, ImGuiID node_id); alias pigImFontAtlasBuildMultiplyRectAlpha8 = void function(const char[256]*/*[256]*/ table, char* pixels, int x, int y, int w, int h, int stride); alias pigTextDisabledV = void function(const char* fmt, va_list args); alias pigInputScalar = bool function(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags); alias pImGuiPtrOrIndex_ImGuiPtrOrIndexPtr = ImGuiPtrOrIndex* function(void* ptr); alias pImGuiPtrOrIndex_ImGuiPtrOrIndexInt = ImGuiPtrOrIndex* function(int index); alias pigImLerpVec2Float = void function(ImVec2* pOut, const ImVec2 a, const ImVec2 b, float t); alias pigImLerpVec2Vec2 = void function(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 t); alias pigImLerpVec4 = void function(ImVec4* pOut, const ImVec4 a, const ImVec4 b, float t); alias pigItemSizeVec2 = void function(const ImVec2 size, float text_baseline_y); alias pigItemSizeRect = void function(const ImRect bb, float text_baseline_y); alias pImColor_SetHSV = void function(ImColor* self, float h, float s, float v, float a); alias pImFont_IsGlyphRangeUnused = bool function(ImFont* self, uint c_begin, uint c_last); alias pigImParseFormatPrecision = int function(const char* format, int default_value); alias pigLogToTTY = void function(int auto_open_depth); alias pigButtonBehavior = bool function(const ImRect bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags); alias pImGuiInputTextState_OnKeyPressed = void function(ImGuiInputTextState* self, int key); alias pigImLogFloat = float function(float x); alias pigImLogdouble = double function(double x); alias pigSetFocusID = void function(ImGuiID id, ImGuiWindow* window); alias pigGetActiveID = ImGuiID function(); alias pigImLineClosestPoint = void function(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 p); alias pigIsItemVisible = bool function(); alias pigRender = void function(); alias pigImTriangleArea = float function(const ImVec2 a, const ImVec2 b, const ImVec2 c); alias pigBeginChildStr = bool function(const char* str_id, const ImVec2 size, bool border, ImGuiWindowFlags flags); alias pigBeginChildID = bool function(ImGuiID id, const ImVec2 size, bool border, ImGuiWindowFlags flags); alias pigStyleColorsLight = void function(ImGuiStyle* dst); alias pigGetScrollX = float function(); alias pigGetWindowAllowedExtentRect = void function(ImRect* pOut, ImGuiWindow* window); alias pImFontAtlas_GetTexDataAsRGBA32 = void function(ImFontAtlas* self, char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel); alias pImGuiOnceUponAFrame_ImGuiOnceUponAFrame = ImGuiOnceUponAFrame* function(); alias pImDrawData_destroy = void function(ImDrawData* self); alias pImFont_SetFallbackChar = void function(ImFont* self, ImWchar c); alias pigSaveIniSettingsToMemory = const char* function(size_t* out_ini_size); alias pImGuiNavMoveResult_ImGuiNavMoveResult = ImGuiNavMoveResult* function(); alias pigTabBarRemoveTab = void function(ImGuiTabBar* tab_bar, ImGuiID tab_id); alias pigGetWindowHeight = float function(); alias pigGetMainViewport = ImGuiViewport* function(); alias pImGuiTextFilter_PassFilter = bool function(ImGuiTextFilter* self, const char* text, const char* text_end); alias pImFontAtlas_AddFontFromMemoryCompressedBase85TTF = ImFont* function(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); alias pImFontAtlas_AddFontFromFileTTF = ImFont* function(ImFontAtlas* self, const char* filename, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); alias pigGetCurrentContext = ImGuiContext* function(); alias pigColorConvertU32ToFloat4 = void function(ImVec4* pOut, ImU32 inItem); alias pImDrawList_PathArcToFast = void function(ImDrawList* self, const ImVec2 center, float radius, int a_min_of_12, int a_max_of_12); alias pigDragFloat = bool function(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pigGetStyleColorName = const char* function(ImGuiCol idx); alias pigSetItemDefaultFocus = void function(); alias pigCalcListClipping = void function(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); alias pigSetNextWindowPos = void function(const ImVec2 pos, ImGuiCond cond, const ImVec2 pivot); alias pigDragFloat3 = bool function(const char* label, float[3]*/*[3]*/ v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pigCaptureKeyboardFromApp = void function(bool want_capture_keyboard_value); alias pigInputInt3 = bool function(const char* label, int[3]*/*[3]*/ v, ImGuiInputTextFlags flags); alias pImDrawData_Clear = void function(ImDrawData* self); alias pImFontAtlas_AddFontFromMemoryCompressedTTF = ImFont* function(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); alias pImGuiStoragePair_destroy = void function(ImGuiStoragePair* self); alias pigIsItemToggledOpen = bool function(); alias pigShrinkWidths = void function(ImGuiShrinkWidthItem* items, int count, float width_excess); alias pImDrawList_AddTextVec2 = void function(ImDrawList* self, const ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end); alias pImDrawList_AddTextFontPtr = void function(ImDrawList* self, const ImFont* font, float font_size, const ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect); alias pImDrawList_PrimRectUV = void function(ImDrawList* self, const ImVec2 a, const ImVec2 b, const ImVec2 uv_a, const ImVec2 uv_b, ImU32 col); alias pImDrawList_PrimWriteIdx = void function(ImDrawList* self, ImDrawIdx idx); alias pImGuiStorage_GetBool = bool function(ImGuiStorage* self, ImGuiID key, bool default_val); alias pigRenderFrameBorder = void function(ImVec2 p_min, ImVec2 p_max, float rounding); alias pigFindWindowByName = ImGuiWindow* function(const char* name); alias pigImTextStrToUtf8 = int function(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end); alias pigTextWrapped = void function(const char* fmt, ... ); alias pigScrollToBringRectIntoView = void function(ImVec2* pOut, ImGuiWindow* window, const ImRect item_rect); alias pigInputInt = bool function(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags); alias pImVec2_ImVec2Nil = ImVec2* function(); alias pImVec2_ImVec2Float = ImVec2* function(float _x, float _y); alias pImGuiTextBuffer_size = int function(ImGuiTextBuffer* self); alias pImFontAtlas_GetGlyphRangesDefault = const ImWchar* function(ImFontAtlas* self); alias pigUpdatePlatformWindows = void function(); alias pImFontAtlas_ClearTexData = void function(ImFontAtlas* self); alias pImFont_GetCharAdvance = float function(ImFont* self, ImWchar c); alias pigSliderFloat3 = bool function(const char* label, float[3]*/*[3]*/ v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); alias pImDrawList_AddBezierCurve = void function(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col, float thickness, int num_segments); alias pImDrawList_PathFillConvex = void function(ImDrawList* self, ImU32 col); alias pImGuiTextBuffer_ImGuiTextBuffer = ImGuiTextBuffer* function(); alias pImGuiTabItem_destroy = void function(ImGuiTabItem* self); alias pigSliderAngle = bool function(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags); alias pigSetWindowPosVec2 = void function(const ImVec2 pos, ImGuiCond cond); alias pigSetWindowPosStr = void function(const char* name, const ImVec2 pos, ImGuiCond cond); alias pigSetWindowPosWindowPtr = void function(ImGuiWindow* window, const ImVec2 pos, ImGuiCond cond); alias pigTempInputText = bool function(const ImRect bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); alias pigSetScrollHereY = void function(float center_y_ratio); alias pigDockContextUpdateUndocking = void function(ImGuiContext* ctx); alias pImGuiViewport_ImGuiViewport = ImGuiViewport* function(); alias pigProgressBar = void function(float fraction, const ImVec2 size_arg, const char* overlay); alias pImDrawList_CloneOutput = ImDrawList* function(ImDrawList* self); alias pImFontGlyphRangesBuilder_destroy = void function(ImFontGlyphRangesBuilder* self); alias pImVec1_destroy = void function(ImVec1* self); alias pigPushColumnClipRect = void function(int column_index); alias pigDockBuilderCopyWindowSettings = void function(const char* src_name, const char* dst_name); alias pigImTextCharFromUtf8 = int function(uint* out_char, const char* in_text, const char* in_text_end); alias pImRect_ImRectNil = ImRect* function(); alias pImRect_ImRectVec2 = ImRect* function(const ImVec2 min, const ImVec2 max); alias pImRect_ImRectVec4 = ImRect* function(const ImVec4 v); alias pImRect_ImRectFloat = ImRect* function(float x1, float y1, float x2, float y2); alias pigGetTopMostPopupModal = ImGuiWindow* function(); alias pImDrawListSplitter_Split = void function(ImDrawListSplitter* self, ImDrawList* draw_list, int count); alias pigBulletText = void function(const char* fmt, ... ); alias pigImFontAtlasBuildFinish = void function(ImFontAtlas* atlas); alias pImDrawList_AddQuad = void function(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col, float thickness); alias pigDockSpace = void function(ImGuiID id, const ImVec2 size, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); alias pigGetColorU32Col = ImU32 function(ImGuiCol idx, float alpha_mul); alias pigGetColorU32Vec4 = ImU32 function(const ImVec4 col); alias pigGetColorU32U32 = ImU32 function(ImU32 col); alias pImGuiWindow_GetIDFromRectangle = ImGuiID function(ImGuiWindow* self, const ImRect r_abs); alias pImDrawList_AddDrawCmd = void function(ImDrawList* self); alias pigUpdateWindowParentAndRootLinks = void function(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); alias pigIsItemDeactivated = bool function(); alias pigSetCursorPosX = void function(float local_x); alias pigInputFloat4 = bool function(const char* label, float[4]*/*[4]*/ v, const char* format, ImGuiInputTextFlags flags); alias pigSeparator = void function(); alias pImRect_Translate = void function(ImRect* self, const ImVec2 d); alias pImDrawList_PrimUnreserve = void function(ImDrawList* self, int idx_count, int vtx_count); alias pigColorPickerOptionsPopup = void function(const float* ref_col, ImGuiColorEditFlags flags); alias pImRect_IsInverted = bool function(ImRect* self); alias pigGetKeyIndex = int function(ImGuiKey imgui_key); alias pigFindViewportByID = ImGuiViewport* function(ImGuiID id); alias pigPushItemFlag = void function(ImGuiItemFlags option, bool enabled); alias pigScrollbar = void function(ImGuiAxis axis); alias pigImFontAtlasBuildWithStbTruetype = bool function(ImFontAtlas* atlas); alias pImDrawList_PrimWriteVtx = void function(ImDrawList* self, const ImVec2 pos, const ImVec2 uv, ImU32 col); alias pImGuiDockContext_destroy = void function(ImGuiDockContext* self); alias pImGuiPayload_IsDataType = bool function(ImGuiPayload* self, const char* type); alias pigSetActiveID = void function(ImGuiID id, ImGuiWindow* window); alias pImFontGlyphRangesBuilder_BuildRanges = void function(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges); alias pigTreePop = void function(); alias pigSetWindowSizeVec2 = void function(const ImVec2 size, ImGuiCond cond); alias pigSetWindowSizeStr = void function(const char* name, const ImVec2 size, ImGuiCond cond); alias pigSetWindowSizeWindowPtr = void function(ImGuiWindow* window, const ImVec2 size, ImGuiCond cond); alias pImFont_AddRemapChar = void function(ImFont* self, ImWchar dst, ImWchar src, bool overwrite_dst); alias pigNavMoveRequestCancel = void function(); alias pigTranslateWindowsInViewport = void function(ImGuiViewportP* viewport, const ImVec2 old_pos, const ImVec2 new_pos); alias pigText = void function(const char* fmt, ... ); alias pigCollapseButton = bool function(ImGuiID id, const ImVec2 pos, ImGuiDockNode* dock_node); alias pImGuiWindow_TitleBarRect = void function(ImRect* pOut, ImGuiWindow* self); alias pigIsItemFocused = bool function(); alias pigMemAlloc = void* function(size_t size); alias pigColorPicker3 = bool function(const char* label, float[3]*/*[3]*/ col, ImGuiColorEditFlags flags); alias pImGuiTextBuffer_destroy = void function(ImGuiTextBuffer* self); alias pigGetColumnOffset = float function(int column_index); alias pImRect_GetSize = void function(ImVec2* pOut, ImRect* self); alias pigIsWindowCollapsed = bool function(); alias pImGuiNextItemData_ClearFlags = void function(ImGuiNextItemData* self); alias pigBeginCombo = bool function(const char* label, const char* preview_value, ImGuiComboFlags flags); alias pImRect_ExpandFloat = void function(ImRect* self, const float amount); alias pImRect_ExpandVec2 = void function(ImRect* self, const ImVec2 amount); alias pigOpenPopup = void function(const char* str_id, ImGuiPopupFlags popup_flags); alias pigImCharIsBlankW = bool function(uint c); alias pImFont_SetGlyphVisible = void function(ImFont* self, ImWchar c, bool visible); alias pigFindOrCreateWindowSettings = ImGuiWindowSettings* function(const char* name); alias pigInputScalarN = bool function(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags); alias pImDrawList_PrimQuadUV = void function(ImDrawList* self, const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 d, const ImVec2 uv_a, const ImVec2 uv_b, const ImVec2 uv_c, const ImVec2 uv_d, ImU32 col); alias pigPopID = void function(); alias pigEndTabBar = void function(); alias pigPopAllowKeyboardFocus = void function(); alias pImDrawList_AddImage = void function(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p_min, const ImVec2 p_max, const ImVec2 uv_min, const ImVec2 uv_max, ImU32 col); alias pigBeginTabBar = bool function(const char* str_id, ImGuiTabBarFlags flags); alias pigGetCursorPosY = float function(); alias pigCalcTextSize = void function(ImVec2* pOut, const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width); alias pImFont_CalcTextSizeA = void function(ImVec2* pOut, ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining); alias pigImClamp = void function(ImVec2* pOut, const ImVec2 v, const ImVec2 mn, ImVec2 mx); alias pigGetColumnWidth = float function(int column_index); alias pigTabBarFindMostRecentlySelectedTabForActiveWindow = ImGuiTabItem* function(ImGuiTabBar* tab_bar); alias pImGuiPayload_Clear = void function(ImGuiPayload* self); alias pImGuiTextBuffer_reserve = void function(ImGuiTextBuffer* self, int capacity); alias pImGuiInputTextState_CursorAnimReset = void function(ImGuiInputTextState* self); alias pImRect_ClipWithFull = void function(ImRect* self, const ImRect r); alias pImGuiViewport_GetWorkPos = void function(ImVec2* pOut, ImGuiViewport* self); alias pigGetFontTexUvWhitePixel = void function(ImVec2* pOut); alias pImDrawList_ChannelsSplit = void function(ImDrawList* self, int count); alias pigPopFont = void function(); alias pigImTriangleContainsPoint = bool function(const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p); alias pigRenderRectFilledWithHole = void function(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding); alias pigImFloorFloat = float function(float f); alias pigImFloorVec2 = void function(ImVec2* pOut, const ImVec2 v); alias pImDrawList_AddRect = void function(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners, float thickness); alias pigImParseFormatFindEnd = const char* function(const char* format); alias pImGuiPlatformIO_destroy = void function(ImGuiPlatformIO* self); alias pImDrawListSharedData_SetCircleSegmentMaxError = void function(ImDrawListSharedData* self, float max_error); alias pImGuiInputTextCallbackData_ClearSelection = void function(ImGuiInputTextCallbackData* self); alias pImGuiTextRange_split = void function(ImGuiTextRange* self, char separator, ImVector_ImGuiTextRange* outItem); alias pImBitVector_Clear = void function(ImBitVector* self); alias pigDockBuilderAddNode = ImGuiID function(ImGuiID node_id, ImGuiDockNodeFlags flags); alias pigCreateNewWindowSettings = ImGuiWindowSettings* function(const char* name); alias pImGuiDockNode_IsRootNode = bool function(ImGuiDockNode* self); alias pigDockContextInitialize = void function(ImGuiContext* ctx); alias pigGetDrawListSharedData = ImDrawListSharedData* function(); alias pigBeginChildEx = bool function(const char* name, ImGuiID id, const ImVec2 size_arg, bool border, ImGuiWindowFlags flags); alias pImGuiNextWindowData_ClearFlags = void function(ImGuiNextWindowData* self); alias pigImFileClose = bool function(ImFileHandle file); alias pImFontGlyphRangesBuilder_GetBit = bool function(ImFontGlyphRangesBuilder* self, size_t n); alias pigImRotate = void function(ImVec2* pOut, const ImVec2 v, float cos_a, float sin_a); alias pigImGetDirQuadrantFromDelta = ImGuiDir function(float dx, float dy); alias pImFontAtlas_AddFont = ImFont* function(ImFontAtlas* self, const ImFontConfig* font_cfg); alias pigGetNavInputAmount2d = void function(ImVec2* pOut, ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor); __gshared { pImDrawList_AddCircleFilled ImDrawList_AddCircleFilled; pImGuiPlatformIO_ImGuiPlatformIO ImGuiPlatformIO_ImGuiPlatformIO; pigDockContextQueueUndockWindow igDockContextQueueUndockWindow; pigGetForegroundDrawListNil igGetForegroundDrawListNil; pigGetForegroundDrawListViewportPtr igGetForegroundDrawListViewportPtr; pigGetForegroundDrawListWindowPtr igGetForegroundDrawListWindowPtr; pImFontAtlas_GetGlyphRangesChineseFull ImFontAtlas_GetGlyphRangesChineseFull; pigBringWindowToDisplayFront igBringWindowToDisplayFront; pigInitialize igInitialize; pImFontAtlas_AddCustomRectRegular ImFontAtlas_AddCustomRectRegular; pigIsMouseDragPastThreshold igIsMouseDragPastThreshold; pigSetWindowFontScale igSetWindowFontScale; pigSliderFloat igSliderFloat; pigDestroyPlatformWindows igDestroyPlatformWindows; pigImMax igImMax; pImRect_GetTR ImRect_GetTR; pImFontAtlas_GetGlyphRangesThai ImFontAtlas_GetGlyphRangesThai; pImGuiInputTextState_ClearSelection ImGuiInputTextState_ClearSelection; pImFont_GrowIndex ImFont_GrowIndex; pigClosePopupsOverWindow igClosePopupsOverWindow; pImFontAtlas_ClearInputData ImFontAtlas_ClearInputData; pImGuiWindowSettings_destroy ImGuiWindowSettings_destroy; pigIsMouseDragging igIsMouseDragging; pigLoadIniSettingsFromDisk igLoadIniSettingsFromDisk; pigImBitArraySetBit igImBitArraySetBit; pImGuiTextBuffer_end ImGuiTextBuffer_end; pImGuiTabBar_destroy ImGuiTabBar_destroy; pigDockContextCalcDropPosForDocking igDockContextCalcDropPosForDocking; pigSetClipboardText igSetClipboardText; pigRenderColorRectWithAlphaCheckerboard igRenderColorRectWithAlphaCheckerboard; pigFindBestWindowPosForPopup igFindBestWindowPosForPopup; pigRadioButtonBool igRadioButtonBool; pigRadioButtonIntPtr igRadioButtonIntPtr; pImGuiTextFilter_Clear ImGuiTextFilter_Clear; pImRect_TranslateX ImRect_TranslateX; pigGetWindowPos igGetWindowPos; pigRenderTextWrapped igRenderTextWrapped; pImGuiIO_ClearInputCharacters ImGuiIO_ClearInputCharacters; pigSpacing igSpacing; pImDrawDataBuilder_FlattenIntoSingleLayer ImDrawDataBuilder_FlattenIntoSingleLayer; pImRect_TranslateY ImRect_TranslateY; pImGuiTextBuffer_c_str ImGuiTextBuffer_c_str; pigTabBarFindTabByID igTabBarFindTabByID; pigDataTypeApplyOpFromText igDataTypeApplyOpFromText; pImGuiInputTextState_destroy ImGuiInputTextState_destroy; pigGetDrawData igGetDrawData; pigRenderRectFilledRangeH igRenderRectFilledRangeH; pigPopItemWidth igPopItemWidth; pigIsWindowAppearing igIsWindowAppearing; pigSetWindowDock igSetWindowDock; pigFindOrCreateColumns igFindOrCreateColumns; pImGuiStorage_GetVoidPtr ImGuiStorage_GetVoidPtr; pImGuiInputTextState_GetRedoAvailCount ImGuiInputTextState_GetRedoAvailCount; pigIsPopupOpenStr igIsPopupOpenStr; pigIsPopupOpenID igIsPopupOpenID; pigInputDouble igInputDouble; pigUnindent igUnindent; pigIsDragDropPayloadBeingAccepted igIsDragDropPayloadBeingAccepted; pigGetFontSize igGetFontSize; pImGuiMenuColumns_DeclColumns ImGuiMenuColumns_DeclColumns; pImFontAtlas_CalcCustomRectUV ImFontAtlas_CalcCustomRectUV; pigGetFrameHeightWithSpacing igGetFrameHeightWithSpacing; pImDrawListSplitter_destroy ImDrawListSplitter_destroy; pigGetItemRectMax igGetItemRectMax; pigFocusableItemRegister igFocusableItemRegister; pigDragInt igDragInt; pigGetFont igGetFont; pigDragFloatRange2 igDragFloatRange2; pigImStreolRange igImStreolRange; pImGuiStorage_Clear ImGuiStorage_Clear; pImGuiWindow_GetIDStr ImGuiWindow_GetIDStr; pImGuiWindow_GetIDPtr ImGuiWindow_GetIDPtr; pImGuiWindow_GetIDInt ImGuiWindow_GetIDInt; pigImFontAtlasBuildPackCustomRects igImFontAtlasBuildPackCustomRects; pImGuiDockNode_Rect ImGuiDockNode_Rect; pigDockBuilderGetNode igDockBuilderGetNode; pigIsActiveIdUsingKey igIsActiveIdUsingKey; pigSetCursorScreenPos igSetCursorScreenPos; pigImStristr igImStristr; pigSetNextWindowViewport igSetNextWindowViewport; pImFont_GetDebugName ImFont_GetDebugName; pigBeginPopupContextWindow igBeginPopupContextWindow; pigButtonEx igButtonEx; pigTextEx igTextEx; pImGuiPayload_IsPreview ImGuiPayload_IsPreview; pigLabelTextV igLabelTextV; pigImStrSkipBlank igImStrSkipBlank; pigPushColumnsBackground igPushColumnsBackground; pImGuiWindow_ImGuiWindow ImGuiWindow_ImGuiWindow; pigGetScrollMaxX igGetScrollMaxX; pImBitVector_Create ImBitVector_Create; pigCloseCurrentPopup igCloseCurrentPopup; pigImBitArraySetBitRange igImBitArraySetBitRange; pigFindViewportByPlatformHandle igFindViewportByPlatformHandle; pigGetMouseDragDelta igGetMouseDragDelta; pigSetWindowCollapsedBool igSetWindowCollapsedBool; pigSetWindowCollapsedStr igSetWindowCollapsedStr; pigSetWindowCollapsedWindowPtr igSetWindowCollapsedWindowPtr; pigSplitterBehavior igSplitterBehavior; pigImBezierCalc igImBezierCalc; pImGuiDockNode_IsDockSpace ImGuiDockNode_IsDockSpace; pigTextDisabled igTextDisabled; pigFindBestWindowPosForPopupEx igFindBestWindowPosForPopupEx; pigShowUserGuide igShowUserGuide; pigEndPopup igEndPopup; pigClearActiveID igClearActiveID; pigBeginChildFrame igBeginChildFrame; pImGuiSettingsHandler_destroy ImGuiSettingsHandler_destroy; pImDrawList__ResetForNewFrame ImDrawList__ResetForNewFrame; pImGuiTextBuffer_append ImGuiTextBuffer_append; pImGuiInputTextState_GetUndoAvailCount ImGuiInputTextState_GetUndoAvailCount; pigEndFrame igEndFrame; pigIsRectVisibleNil igIsRectVisibleNil; pigIsRectVisibleVec2 igIsRectVisibleVec2; pImGuiTextRange_empty ImGuiTextRange_empty; pImGuiInputTextState_ClearText ImGuiInputTextState_ClearText; pigPushFocusScope igPushFocusScope; pImGuiInputTextCallbackData_HasSelection ImGuiInputTextCallbackData_HasSelection; pigCalcWrapWidthForPos igCalcWrapWidthForPos; pigGetIDWithSeed igGetIDWithSeed; pigImUpperPowerOfTwo igImUpperPowerOfTwo; pigIsMouseClicked igIsMouseClicked; pigColorConvertRGBtoHSV igColorConvertRGBtoHSV; pigSetNextWindowFocus igSetNextWindowFocus; pigGetDefaultFont igGetDefaultFont; pigGetClipboardText igGetClipboardText; pigIsAnyItemHovered igIsAnyItemHovered; pImGuiListClipper_ImGuiListClipper ImGuiListClipper_ImGuiListClipper; pigListBoxHeaderVec2 igListBoxHeaderVec2; pigListBoxHeaderInt igListBoxHeaderInt; pigImStrlenW igImStrlenW; pigGetWindowDockNode igGetWindowDockNode; pigBeginPopup igBeginPopup; pigImFileGetSize igImFileGetSize; pImGuiSettingsHandler_ImGuiSettingsHandler ImGuiSettingsHandler_ImGuiSettingsHandler; pigMenuItemBool igMenuItemBool; pigMenuItemBoolPtr igMenuItemBoolPtr; pigDockBuilderFinish igDockBuilderFinish; pImGuiStyleMod_ImGuiStyleModInt ImGuiStyleMod_ImGuiStyleModInt; pImGuiStyleMod_ImGuiStyleModFloat ImGuiStyleMod_ImGuiStyleModFloat; pImGuiStyleMod_ImGuiStyleModVec2 ImGuiStyleMod_ImGuiStyleModVec2; pImFontConfig_destroy ImFontConfig_destroy; pigBeginPopupEx igBeginPopupEx; pigImCharIsBlankA igImCharIsBlankA; pigImStrTrimBlanks igImStrTrimBlanks; pImGuiListClipper_End ImGuiListClipper_End; pigResetMouseDragDelta igResetMouseDragDelta; pigDestroyContext igDestroyContext; pigSetNextWindowContentSize igSetNextWindowContentSize; pigSaveIniSettingsToDisk igSaveIniSettingsToDisk; pigGetWindowScrollbarRect igGetWindowScrollbarRect; pigInputTextMultiline igInputTextMultiline; pigIsClippedEx igIsClippedEx; pigGetWindowScrollbarID igGetWindowScrollbarID; pImGuiTextFilter_IsActive ImGuiTextFilter_IsActive; pImDrawListSharedData_ImDrawListSharedData ImDrawListSharedData_ImDrawListSharedData; pImFontAtlas_GetMouseCursorTexData ImFontAtlas_GetMouseCursorTexData; pigLogText igLogText; pigGetWindowAlwaysWantOwnTabBar igGetWindowAlwaysWantOwnTabBar; pigTabItemLabelAndCloseButton igTabItemLabelAndCloseButton; pigBeginDockableDragDropTarget igBeginDockableDragDropTarget; pImGuiPlatformMonitor_destroy ImGuiPlatformMonitor_destroy; pigColorEditOptionsPopup igColorEditOptionsPopup; pigGetTextLineHeightWithSpacing igGetTextLineHeightWithSpacing; pImGuiColumnData_ImGuiColumnData ImGuiColumnData_ImGuiColumnData; pigPushStyleVarFloat igPushStyleVarFloat; pigPushStyleVarVec2 igPushStyleVarVec2; pigIsActiveIdUsingNavInput igIsActiveIdUsingNavInput; pigImStrnicmp igImStrnicmp; pigGetInputTextState igGetInputTextState; pigFindRenderedTextEnd igFindRenderedTextEnd; pImFontAtlas_ClearFonts ImFontAtlas_ClearFonts; pigTextColoredV igTextColoredV; pigIsKeyReleased igIsKeyReleased; pigLogToClipboard igLogToClipboard; pImFontAtlas_GetGlyphRangesKorean ImFontAtlas_GetGlyphRangesKorean; pImFontGlyphRangesBuilder_SetBit ImFontGlyphRangesBuilder_SetBit; pigStyleColorsClassic igStyleColorsClassic; pImGuiTabBar_GetTabOrder ImGuiTabBar_GetTabOrder; pigBegin igBegin; pImGuiLastItemDataBackup_ImGuiLastItemDataBackup ImGuiLastItemDataBackup_ImGuiLastItemDataBackup; pigButton igButton; pigBeginMenuBar igBeginMenuBar; pigDataTypeClamp igDataTypeClamp; pigRenderText igRenderText; pImFontGlyphRangesBuilder_Clear ImFontGlyphRangesBuilder_Clear; pImGuiMenuColumns_destroy ImGuiMenuColumns_destroy; pigImStrncpy igImStrncpy; pImGuiNextWindowData_ImGuiNextWindowData ImGuiNextWindowData_ImGuiNextWindowData; pigIsWindowNavFocusable igIsWindowNavFocusable; pigItemAdd igItemAdd; pigListBoxFooter igListBoxFooter; pigGetScrollY igGetScrollY; pImRect_GetWidth ImRect_GetWidth; pigGetItemStatusFlags igGetItemStatusFlags; pigSliderScalar igSliderScalar; pigGetStyleColorVec4 igGetStyleColorVec4; pigPopFocusScope igPopFocusScope; pigTextColored igTextColored; pigShutdown igShutdown; pigDockBuilderRemoveNodeDockedWindows igDockBuilderRemoveNodeDockedWindows; pImRect_ClipWith ImRect_ClipWith; pImRect_GetTL ImRect_GetTL; pImDrawListSplitter_ImDrawListSplitter ImDrawListSplitter_ImDrawListSplitter; pigInvisibleButton igInvisibleButton; pigSetWindowFocusNil igSetWindowFocusNil; pigSetWindowFocusStr igSetWindowFocusStr; pigScaleWindowsInViewport igScaleWindowsInViewport; pigRenderMouseCursor igRenderMouseCursor; pigImFontAtlasBuildInit igImFontAtlasBuildInit; pigRenderPlatformWindowsDefault igRenderPlatformWindowsDefault; pImDrawListSplitter_ClearFreeMemory ImDrawListSplitter_ClearFreeMemory; pImGuiStyle_ImGuiStyle ImGuiStyle_ImGuiStyle; pImGuiDockNode_IsHiddenTabBar ImGuiDockNode_IsHiddenTabBar; pigIsMouseDown igIsMouseDown; pImFontConfig_ImFontConfig ImFontConfig_ImFontConfig; pImGuiTabBar_GetTabName ImGuiTabBar_GetTabName; pigNewLine igNewLine; pigGetPlatformIO igGetPlatformIO; pigMemFree igMemFree; pigCalcTypematicRepeatAmount igCalcTypematicRepeatAmount; pigNextColumn igNextColumn; pigRenderFrame igRenderFrame; pigLogButtons igLogButtons; pigDockBuilderRemoveNode igDockBuilderRemoveNode; pImFont_ClearOutputData ImFont_ClearOutputData; pImFont_ImFont ImFont_ImFont; pigEndTabItem igEndTabItem; pigVSliderFloat igVSliderFloat; pigRenderArrowPointingAt igRenderArrowPointingAt; pigEndGroup igEndGroup; pigTreeNodeBehavior igTreeNodeBehavior; pigPlotLinesFloatPtr igPlotLinesFloatPtr; pigPlotLinesFnFloatPtr igPlotLinesFnFloatPtr; pigGetColumnNormFromOffset igGetColumnNormFromOffset; pigSetCurrentFont igSetCurrentFont; pigSetItemAllowOverlap igSetItemAllowOverlap; pImGuiDockNode_IsCentralNode ImGuiDockNode_IsCentralNode; pImGuiStorage_GetVoidPtrRef ImGuiStorage_GetVoidPtrRef; pigCheckboxFlags igCheckboxFlags; pImGuiColumns_ImGuiColumns ImGuiColumns_ImGuiColumns; pImGuiNavMoveResult_Clear ImGuiNavMoveResult_Clear; pImRect_destroy ImRect_destroy; pigImTriangleBarycentricCoords igImTriangleBarycentricCoords; pImFontGlyphRangesBuilder_AddRanges ImFontGlyphRangesBuilder_AddRanges; pImFontAtlas_GetGlyphRangesVietnamese ImFontAtlas_GetGlyphRangesVietnamese; pigGetVersion igGetVersion; pImDrawList_ImDrawList ImDrawList_ImDrawList; pigRenderTextEllipsis igRenderTextEllipsis; pImGuiListClipper_destroy ImGuiListClipper_destroy; pigPushOverrideID igPushOverrideID; pigSetScrollYFloat igSetScrollYFloat; pigSetScrollYWindowPtr igSetScrollYWindowPtr; pigImMul igImMul; pImFont_CalcWordWrapPositionA ImFont_CalcWordWrapPositionA; pigSmallButton igSmallButton; pImGuiWindow_destroy ImGuiWindow_destroy; pigComboStr_arr igComboStr_arr; pigComboStr igComboStr; pigComboFnBoolPtr igComboFnBoolPtr; pigIsWindowChildOf igIsWindowChildOf; pImGuiWindow_CalcFontSize ImGuiWindow_CalcFontSize; pImDrawList_AddLine ImDrawList_AddLine; pImDrawList_AddCircle ImDrawList_AddCircle; pImGuiInputTextState_SelectAll ImGuiInputTextState_SelectAll; pigImParseFormatTrimDecorations igImParseFormatTrimDecorations; pigImTextCountUtf8BytesFromChar igImTextCountUtf8BytesFromChar; pImGuiTabBar_ImGuiTabBar ImGuiTabBar_ImGuiTabBar; pImGuiViewport_GetCenter ImGuiViewport_GetCenter; pigDebugDrawItemRect igDebugDrawItemRect; pigDockBuilderSetNodeSize igDockBuilderSetNodeSize; pigTreeNodeBehaviorIsOpen igTreeNodeBehaviorIsOpen; pigSetMouseCursor igSetMouseCursor; pigBeginColumns igBeginColumns; pigGetIO igGetIO; pigDragBehavior igDragBehavior; pigImModPositive igImModPositive; pImFontAtlasCustomRect_destroy ImFontAtlasCustomRect_destroy; pImGuiPayload_destroy ImGuiPayload_destroy; pigEndMenu igEndMenu; pigImSaturate igImSaturate; pImDrawList_PrimRect ImDrawList_PrimRect; pigImLinearSweep igImLinearSweep; pigUpdateMouseMovingWindowNewFrame igUpdateMouseMovingWindowNewFrame; pImDrawList_AddRectFilled ImDrawList_AddRectFilled; pImGuiPopupData_destroy ImGuiPopupData_destroy; pigFindSettingsHandler igFindSettingsHandler; pigDragInt2 igDragInt2; pigBeginDocked igBeginDocked; pigSetColorEditOptions igSetColorEditOptions; pigIsAnyMouseDown igIsAnyMouseDown; pImGuiDockContext_ImGuiDockContext ImGuiDockContext_ImGuiDockContext; pImGuiTextFilter_Build ImGuiTextFilter_Build; pigTabItemCalcSize igTabItemCalcSize; pigSetNextWindowCollapsed igSetNextWindowCollapsed; pigSetLastItemData igSetLastItemData; pigLogToBuffer igLogToBuffer; pigImFileLoadToMemory igImFileLoadToMemory; pImFontAtlas_GetGlyphRangesCyrillic ImFontAtlas_GetGlyphRangesCyrillic; pImGuiStyle_destroy ImGuiStyle_destroy; pImDrawList_destroy ImDrawList_destroy; pImVec4_destroy ImVec4_destroy; pigRenderCheckMark igRenderCheckMark; pigTreeNodeExStr igTreeNodeExStr; pigTreeNodeExStrStr igTreeNodeExStrStr; pigTreeNodeExPtr igTreeNodeExPtr; pImBitVector_SetBit ImBitVector_SetBit; pigSetColumnWidth igSetColumnWidth; pImGuiDockNode_destroy ImGuiDockNode_destroy; pImGuiNavMoveResult_destroy ImGuiNavMoveResult_destroy; pigIsItemClicked igIsItemClicked; pImGuiColumnData_destroy ImGuiColumnData_destroy; pImDrawList_AddCallback ImDrawList_AddCallback; pigGetMousePos igGetMousePos; pigDataTypeCompare igDataTypeCompare; pigDockContextQueueUndockNode igDockContextQueueUndockNode; pigImageButtonEx igImageButtonEx; pigGetWindowResizeID igGetWindowResizeID; pigBullet igBullet; pigRenderArrowDockMenu igRenderArrowDockMenu; pigGetHoveredID igGetHoveredID; pigGetWindowContentRegionMin igGetWindowContentRegionMin; pImDrawList_AddNgonFilled ImDrawList_AddNgonFilled; pigDragScalar igDragScalar; pImGuiDockNode_ImGuiDockNode ImGuiDockNode_ImGuiDockNode; pigSetCursorPos igSetCursorPos; pigEndColumns igEndColumns; pigSetTooltip igSetTooltip; pImGuiViewportP_destroy ImGuiViewportP_destroy; pigBeginTabBarEx igBeginTabBarEx; pigShadeVertsLinearColorGradientKeepAlpha igShadeVertsLinearColorGradientKeepAlpha; pImGuiInputTextState_HasSelection ImGuiInputTextState_HasSelection; pigDockNodeGetRootNode igDockNodeGetRootNode; pImGuiDockNode_IsSplitNode ImGuiDockNode_IsSplitNode; pigCalcItemWidth igCalcItemWidth; pigDockContextRebuildNodes igDockContextRebuildNodes; pigPushItemWidth igPushItemWidth; pigScrollbarEx igScrollbarEx; pImDrawList_ChannelsMerge ImDrawList_ChannelsMerge; pigSetAllocatorFunctions igSetAllocatorFunctions; pImFont_FindGlyph ImFont_FindGlyph; pigDockNodeGetDepth igDockNodeGetDepth; pigDebugStartItemPicker igDebugStartItemPicker; pImGuiNextWindowData_destroy ImGuiNextWindowData_destroy; pImGuiPayload_IsDelivery ImGuiPayload_IsDelivery; pImFontAtlas_GetGlyphRangesJapanese ImFontAtlas_GetGlyphRangesJapanese; pImRect_Overlaps ImRect_Overlaps; pigCaptureMouseFromApp igCaptureMouseFromApp; pigImHashData igImHashData; pImGuiInputTextCallbackData_InsertChars ImGuiInputTextCallbackData_InsertChars; pigDragFloat2 igDragFloat2; pigTreePushOverrideID igTreePushOverrideID; pigUpdateHoveredWindowAndCaptureFlags igUpdateHoveredWindowAndCaptureFlags; pImGuiWindowTempData_destroy ImGuiWindowTempData_destroy; pImFont_destroy ImFont_destroy; pigEndMenuBar igEndMenuBar; pigGetWindowSize igGetWindowSize; pigInputInt4 igInputInt4; pigShowViewportThumbnails igShowViewportThumbnails; pigImSignFloat igImSignFloat; pigImSigndouble igImSigndouble; pigLabelText igLabelText; pigGetMouseCursor igGetMouseCursor; pigIsMouseDoubleClicked igIsMouseDoubleClicked; pImGuiColumns_destroy ImGuiColumns_destroy; pImDrawList_PathClear ImDrawList_PathClear; pImDrawCmd_destroy ImDrawCmd_destroy; pigGetStateStorage igGetStateStorage; pigInputInt2 igInputInt2; pigImFileRead igImFileRead; pigSetNextWindowScroll igSetNextWindowScroll; pigGetFrameHeight igGetFrameHeight; pigImFileWrite igImFileWrite; pigInputText igInputText; pigTreeNodeExVStr igTreeNodeExVStr; pigTreeNodeExVPtr igTreeNodeExVPtr; pigIsAnyItemFocused igIsAnyItemFocused; pImDrawDataBuilder_Clear ImDrawDataBuilder_Clear; pImVec2ih_ImVec2ihNil ImVec2ih_ImVec2ihNil; pImVec2ih_ImVec2ihshort ImVec2ih_ImVec2ihshort; pImVec2ih_ImVec2ihVec2 ImVec2ih_ImVec2ihVec2; pigDockContextQueueDock igDockContextQueueDock; pImVec1_ImVec1Nil ImVec1_ImVec1Nil; pImVec1_ImVec1Float ImVec1_ImVec1Float; pigCalcItemSize igCalcItemSize; pImFontAtlasCustomRect_IsPacked ImFontAtlasCustomRect_IsPacked; pigPopStyleColor igPopStyleColor; pigColorEdit4 igColorEdit4; pigPlotEx igPlotEx; pigGetCursorStartPos igGetCursorStartPos; pigDockSpaceOverViewport igDockSpaceOverViewport; pImGuiInputTextCallbackData_destroy ImGuiInputTextCallbackData_destroy; pImFontAtlas_IsBuilt ImFontAtlas_IsBuilt; pImGuiTextBuffer_begin ImGuiTextBuffer_begin; pImVec4_ImVec4Nil ImVec4_ImVec4Nil; pImVec4_ImVec4Float ImVec4_ImVec4Float; pImGuiWindow_GetIDNoKeepAliveStr ImGuiWindow_GetIDNoKeepAliveStr; pImGuiWindow_GetIDNoKeepAlivePtr ImGuiWindow_GetIDNoKeepAlivePtr; pImGuiWindow_GetIDNoKeepAliveInt ImGuiWindow_GetIDNoKeepAliveInt; pImFont_BuildLookupTable ImFont_BuildLookupTable; pImGuiTextBuffer_appendfv ImGuiTextBuffer_appendfv; pigDragInt4 igDragInt4; pImGuiDockNode_IsEmpty ImGuiDockNode_IsEmpty; pigClearIniSettings igClearIniSettings; pImDrawList_PathLineToMergeDuplicate ImDrawList_PathLineToMergeDuplicate; pImGuiIO_ImGuiIO ImGuiIO_ImGuiIO; pigSetNextWindowClass igSetNextWindowClass; pigBeginDragDropTarget igBeginDragDropTarget; pigImTextCountCharsFromUtf8 igImTextCountCharsFromUtf8; pImGuiTextBuffer_clear ImGuiTextBuffer_clear; pigImStricmp igImStricmp; pigMarkItemEdited igMarkItemEdited; pigIsWindowFocused igIsWindowFocused; pImGuiIO_AddInputCharactersUTF8 ImGuiIO_AddInputCharactersUTF8; pigSetCurrentContext igSetCurrentContext; pigColorTooltip igColorTooltip; pigImBezierClosestPoint igImBezierClosestPoint; pigImTriangleClosestPoint igImTriangleClosestPoint; pigSliderInt4 igSliderInt4; pigGetItemRectMin igGetItemRectMin; pImDrawList_PrimReserve ImDrawList_PrimReserve; pImGuiMenuColumns_ImGuiMenuColumns ImGuiMenuColumns_ImGuiMenuColumns; pigDockBuilderGetCentralNode igDockBuilderGetCentralNode; pImGuiWindowTempData_ImGuiWindowTempData ImGuiWindowTempData_ImGuiWindowTempData; pImDrawList_AddRectFilledMultiColor ImDrawList_AddRectFilledMultiColor; pImGuiViewport_GetWorkSize ImGuiViewport_GetWorkSize; pigGetWindowViewport igGetWindowViewport; pigSetStateStorage igSetStateStorage; pImGuiStorage_SetAllInt ImGuiStorage_SetAllInt; pImGuiListClipper_Step ImGuiListClipper_Step; pImGuiOnceUponAFrame_destroy ImGuiOnceUponAFrame_destroy; pImGuiInputTextCallbackData_DeleteChars ImGuiInputTextCallbackData_DeleteChars; pigImFontAtlasBuildSetupFont igImFontAtlasBuildSetupFont; pImGuiTextBuffer_empty ImGuiTextBuffer_empty; pigShowDemoWindow igShowDemoWindow; pigImPowFloat igImPowFloat; pigImPowdouble igImPowdouble; pImGuiTextRange_destroy ImGuiTextRange_destroy; pImGuiStorage_SetVoidPtr ImGuiStorage_SetVoidPtr; pigImInvLength igImInvLength; pigCloseButton igCloseButton; pImDrawList_PushTextureID ImDrawList_PushTextureID; pImDrawList_PathLineTo ImDrawList_PathLineTo; pigSetWindowHitTestHole igSetWindowHitTestHole; pigSeparatorEx igSeparatorEx; pImRect_AddVec2 ImRect_AddVec2; pImRect_AddRect ImRect_AddRect; pigShowMetricsWindow igShowMetricsWindow; pImDrawList__PopUnusedDrawCmd ImDrawList__PopUnusedDrawCmd; pImDrawList_AddImageRounded ImDrawList_AddImageRounded; pImGuiStyleMod_destroy ImGuiStyleMod_destroy; pImGuiStorage_BuildSortByKey ImGuiStorage_BuildSortByKey; pImDrawList_PathRect ImDrawList_PathRect; pigInputTextEx igInputTextEx; pigColorEdit3 igColorEdit3; pImColor_destroy ImColor_destroy; pImGuiDockNode_GetMergedFlags ImGuiDockNode_GetMergedFlags; pigIsItemToggledSelection igIsItemToggledSelection; pigTabItemEx igTabItemEx; pigIsKeyPressedMap igIsKeyPressedMap; pigLogFinish igLogFinish; pigGetItemRectSize igGetItemRectSize; pigImParseFormatFindStart igImParseFormatFindStart; pigDragScalarN igDragScalarN; pImDrawData_ImDrawData ImDrawData_ImDrawData; pigImDot igImDot; pImGuiColumns_Clear ImGuiColumns_Clear; pigMarkIniSettingsDirtyNil igMarkIniSettingsDirtyNil; pigMarkIniSettingsDirtyWindowPtr igMarkIniSettingsDirtyWindowPtr; pigGetWindowWidth igGetWindowWidth; pigBulletTextV igBulletTextV; pigDockBuilderCopyNode igDockBuilderCopyNode; pImDrawListSplitter_SetCurrentChannel ImDrawListSplitter_SetCurrentChannel; pImGuiStorage_SetBool ImGuiStorage_SetBool; pigAlignTextToFramePadding igAlignTextToFramePadding; pigIsWindowHovered igIsWindowHovered; pigDockBuilderCopyDockSpace igDockBuilderCopyDockSpace; pImDrawList_PathBezierCurveTo ImDrawList_PathBezierCurveTo; pImRect_GetCenter ImRect_GetCenter; pigGetWindowContentRegionWidth igGetWindowContentRegionWidth; pImDrawList_PathArcTo ImDrawList_PathArcTo; pigIsAnyItemActive igIsAnyItemActive; pigPushTextWrapPos igPushTextWrapPos; pigGetTreeNodeToLabelSpacing igGetTreeNodeToLabelSpacing; pigSameLine igSameLine; pigStyleColorsDark igStyleColorsDark; pigTabBarQueueReorder igTabBarQueueReorder; pigDummy igDummy; pigGetItemID igGetItemID; pigImageButton igImageButton; pigGetWindowContentRegionMax igGetWindowContentRegionMax; pigGetKeyPressedAmount igGetKeyPressedAmount; pigRenderTextClipped igRenderTextClipped; pigImIsPowerOfTwo igImIsPowerOfTwo; pigSetNextWindowSizeConstraints igSetNextWindowSizeConstraints; pImFont_FindGlyphNoFallback ImFont_FindGlyphNoFallback; pigShowStyleSelector igShowStyleSelector; pigFocusableItemUnregister igFocusableItemUnregister; pigNavMoveRequestForward igNavMoveRequestForward; pigSetNavIDWithRectRel igSetNavIDWithRectRel; pigNavInitWindow igNavInitWindow; pigDockContextUpdateDocking igDockContextUpdateDocking; pigImFileOpen igImFileOpen; pigEndDragDropTarget igEndDragDropTarget; pImGuiWindowSettings_ImGuiWindowSettings ImGuiWindowSettings_ImGuiWindowSettings; pImDrawListSharedData_destroy ImDrawListSharedData_destroy; pImFontAtlas_Build ImFontAtlas_Build; pigSetScrollFromPosXFloat igSetScrollFromPosXFloat; pigSetScrollFromPosXWindowPtr igSetScrollFromPosXWindowPtr; pigIsKeyPressed igIsKeyPressed; pigEndTooltip igEndTooltip; pigFindWindowSettings igFindWindowSettings; pigKeepAliveID igKeepAliveID; pigGetColumnOffsetFromNorm igGetColumnOffsetFromNorm; pImFont_IsLoaded ImFont_IsLoaded; pigBeginDragDropSource igBeginDragDropSource; pImBitVector_ClearBit ImBitVector_ClearBit; pigGetCursorPosX igGetCursorPosX; pigPushFont igPushFont; pigSetScrollFromPosYFloat igSetScrollFromPosYFloat; pigSetScrollFromPosYWindowPtr igSetScrollFromPosYWindowPtr; pigColorButton igColorButton; pigAcceptDragDropPayload igAcceptDragDropPayload; pigDockContextShutdown igDockContextShutdown; pImDrawList_PopClipRect ImDrawList_PopClipRect; pigGetScrollMaxY igGetScrollMaxY; pImGuiStoragePair_ImGuiStoragePairInt ImGuiStoragePair_ImGuiStoragePairInt; pImGuiStoragePair_ImGuiStoragePairFloat ImGuiStoragePair_ImGuiStoragePairFloat; pImGuiStoragePair_ImGuiStoragePairPtr ImGuiStoragePair_ImGuiStoragePairPtr; pigEndMainMenuBar igEndMainMenuBar; pImGuiPlatformMonitor_ImGuiPlatformMonitor ImGuiPlatformMonitor_ImGuiPlatformMonitor; pImGuiViewportP_GetMainRect ImGuiViewportP_GetMainRect; pigIsItemActive igIsItemActive; pigShowAboutWindow igShowAboutWindow; pigSetNextItemWidth igSetNextItemWidth; pigImStrchrRange igImStrchrRange; pigGetContentRegionAvail igGetContentRegionAvail; pImGuiPayload_ImGuiPayload ImGuiPayload_ImGuiPayload; pigCheckbox igCheckbox; pImGuiTextRange_ImGuiTextRangeNil ImGuiTextRange_ImGuiTextRangeNil; pImGuiTextRange_ImGuiTextRangeStr ImGuiTextRange_ImGuiTextRangeStr; pImFontAtlas_destroy ImFontAtlas_destroy; pImGuiMenuColumns_Update ImGuiMenuColumns_Update; pigCalcWindowExpectedSize igCalcWindowExpectedSize; pigGcCompactTransientWindowBuffers igGcCompactTransientWindowBuffers; pigNavMoveRequestTryWrapping igNavMoveRequestTryWrapping; pigGetCurrentWindow igGetCurrentWindow; pigIsWindowDocked igIsWindowDocked; pImVec2_destroy ImVec2_destroy; pigGetIDStr igGetIDStr; pigGetIDStrStr igGetIDStrStr; pigGetIDPtr igGetIDPtr; pigImFontAtlasBuildMultiplyCalcLookupTable igImFontAtlasBuildMultiplyCalcLookupTable; pigSetDragDropPayload igSetDragDropPayload; pigPushStyleColorU32 igPushStyleColorU32; pigPushStyleColorVec4 igPushStyleColorVec4; pImFontAtlas_ImFontAtlas ImFontAtlas_ImFontAtlas; pigBeginGroup igBeginGroup; pImGuiMenuColumns_CalcExtraSpace ImGuiMenuColumns_CalcExtraSpace; pigGetContentRegionMax igGetContentRegionMax; pigEndChildFrame igEndChildFrame; pigActivateItem igActivateItem; pigPopStyleVar igPopStyleVar; pImDrawList_PushClipRectFullScreen ImDrawList_PushClipRectFullScreen; pImRect_ContainsVec2 ImRect_ContainsVec2; pImRect_ContainsRect ImRect_ContainsRect; pigGetBackgroundDrawListNil igGetBackgroundDrawListNil; pigGetBackgroundDrawListViewportPtr igGetBackgroundDrawListViewportPtr; pigSetColumnOffset igSetColumnOffset; pigSetKeyboardFocusHere igSetKeyboardFocusHere; pigLoadIniSettingsFromMemory igLoadIniSettingsFromMemory; pigIndent igIndent; pigSetNextWindowSize igSetNextWindowSize; pigInputFloat3 igInputFloat3; pigIsKeyDown igIsKeyDown; pigTextV igTextV; pigTextUnformatted igTextUnformatted; pigImLengthSqrVec2 igImLengthSqrVec2; pigImLengthSqrVec4 igImLengthSqrVec4; pImGuiTextFilter_Draw ImGuiTextFilter_Draw; pigFocusWindow igFocusWindow; pigPushClipRect igPushClipRect; pImGuiViewportP_ImGuiViewportP ImGuiViewportP_ImGuiViewportP; pigBeginMainMenuBar igBeginMainMenuBar; pImRect_GetBR ImRect_GetBR; pigCollapsingHeaderTreeNodeFlags igCollapsingHeaderTreeNodeFlags; pigCollapsingHeaderBoolPtr igCollapsingHeaderBoolPtr; pigGetCurrentWindowRead igGetCurrentWindowRead; pigSliderInt3 igSliderInt3; pigTabBarAddTab igTabBarAddTab; pigTabItemButton igTabItemButton; pigImFormatString igImFormatString; pigIsMouseReleased igIsMouseReleased; pImGuiInputTextState_CursorClamp ImGuiInputTextState_CursorClamp; pImFontAtlasCustomRect_ImFontAtlasCustomRect ImFontAtlasCustomRect_ImFontAtlasCustomRect; pImGuiIO_AddInputCharacter ImGuiIO_AddInputCharacter; pigTabBarProcessReorder igTabBarProcessReorder; pigGetNavInputAmount igGetNavInputAmount; pigClearDragDrop igClearDragDrop; pigGetTextLineHeight igGetTextLineHeight; pigDataTypeApplyOp igDataTypeApplyOp; pImDrawList_AddQuadFilled ImDrawList_AddQuadFilled; pigSetNextWindowBgAlpha igSetNextWindowBgAlpha; pImGuiInputTextCallbackData_SelectAll ImGuiInputTextCallbackData_SelectAll; pImGuiNextItemData_ImGuiNextItemData ImGuiNextItemData_ImGuiNextItemData; pigLogRenderedText igLogRenderedText; pigBeginMenu igBeginMenu; pImGuiStorage_GetIntRef ImGuiStorage_GetIntRef; pigImTextCountUtf8BytesFromStr igImTextCountUtf8BytesFromStr; pigEndCombo igEndCombo; pigIsNavInputTest igIsNavInputTest; pigImage igImage; pImDrawList_AddPolyline ImDrawList_AddPolyline; pigTreeNodeStr igTreeNodeStr; pigTreeNodeStrStr igTreeNodeStrStr; pigTreeNodePtr igTreeNodePtr; pigPopClipRect igPopClipRect; pImDrawList_PushClipRect ImDrawList_PushClipRect; pigImBitArrayClearBit igImBitArrayClearBit; pigArrowButtonEx igArrowButtonEx; pigSelectableBool igSelectableBool; pigSelectableBoolPtr igSelectableBoolPtr; pigBeginTooltipEx igBeginTooltipEx; pigGetFocusID igGetFocusID; pImDrawData_DeIndexAllBuffers ImDrawData_DeIndexAllBuffers; pImDrawCmd_ImDrawCmd ImDrawCmd_ImDrawCmd; pImDrawData_ScaleClipRects ImDrawData_ScaleClipRects; pigSetNextItemOpen igSetNextItemOpen; pigDataTypeFormatString igDataTypeFormatString; pigTabItemBackground igTabItemBackground; pImDrawList_AddTriangle ImDrawList_AddTriangle; pigDockContextClearNodes igDockContextClearNodes; pigTempInputIsActive igTempInputIsActive; pigLogToFile igLogToFile; pImGuiNextItemData_destroy ImGuiNextItemData_destroy; pImGuiViewportP_ClearRequestFlags ImGuiViewportP_ClearRequestFlags; pigGetMergedKeyModFlags igGetMergedKeyModFlags; pigSetNextWindowDockID igSetNextWindowDockID; pImRect_ToVec4 ImRect_ToVec4; pigPushMultiItemsWidths igPushMultiItemsWidths; pigCreateContext igCreateContext; pImColor_ImColorNil ImColor_ImColorNil; pImColor_ImColorInt ImColor_ImColorInt; pImColor_ImColorU32 ImColor_ImColorU32; pImColor_ImColorFloat ImColor_ImColorFloat; pImColor_ImColorVec4 ImColor_ImColorVec4; pigDockContextGenNodeID igDockContextGenNodeID; pImDrawList__ClearFreeMemory ImDrawList__ClearFreeMemory; pigSetNavID igSetNavID; pigGetWindowDrawList igGetWindowDrawList; pImRect_GetBL ImRect_GetBL; pigImBezierClosestPointCasteljau igImBezierClosestPointCasteljau; pigIsMousePosValid igIsMousePosValid; pImGuiStorage_GetFloat ImGuiStorage_GetFloat; pImGuiDockNode_IsLeafNode ImGuiDockNode_IsLeafNode; pigSliderFloat4 igSliderFloat4; pigIsItemDeactivatedAfterEdit igIsItemDeactivatedAfterEdit; pigPlotHistogramFloatPtr igPlotHistogramFloatPtr; pigPlotHistogramFnFloatPtr igPlotHistogramFnFloatPtr; pigIsItemEdited igIsItemEdited; pigShowStyleEditor igShowStyleEditor; pigGetFocusScopeID igGetFocusScopeID; pigTextWrappedV igTextWrappedV; pImGuiLastItemDataBackup_destroy ImGuiLastItemDataBackup_destroy; pImGuiTextBuffer_appendf ImGuiTextBuffer_appendf; pImFontAtlas_AddCustomRectFontGlyph ImFontAtlas_AddCustomRectFontGlyph; pigDebugCheckVersionAndDataLayout igDebugCheckVersionAndDataLayout; pigImAlphaBlendColors igImAlphaBlendColors; pImGuiStorage_GetBoolRef ImGuiStorage_GetBoolRef; pigBeginPopupContextVoid igBeginPopupContextVoid; pigSetScrollXFloat igSetScrollXFloat; pigSetScrollXWindowPtr igSetScrollXWindowPtr; pigRenderNavHighlight igRenderNavHighlight; pigBringWindowToFocusFront igBringWindowToFocusFront; pigSliderInt igSliderInt; pigUpdateMouseMovingWindowEndFrame igUpdateMouseMovingWindowEndFrame; pigInputTextWithHint igInputTextWithHint; pigGetContentRegionMaxAbs igGetContentRegionMaxAbs; pigIsMouseHoveringRect igIsMouseHoveringRect; pImGuiLastItemDataBackup_Backup ImGuiLastItemDataBackup_Backup; pigImTextStrFromUtf8 igImTextStrFromUtf8; pigIsActiveIdUsingNavDir igIsActiveIdUsingNavDir; pImGuiListClipper_Begin ImGuiListClipper_Begin; pigStartMouseMovingWindow igStartMouseMovingWindow; pigSliderInt2 igSliderInt2; pigIsItemHovered igIsItemHovered; pImGuiIO_destroy ImGuiIO_destroy; pigEndDragDropSource igEndDragDropSource; pigGetDragDropPayload igGetDragDropPayload; pigPopButtonRepeat igPopButtonRepeat; pImGuiStorage_SetInt ImGuiStorage_SetInt; pImGuiWindow_MenuBarRect ImGuiWindow_MenuBarRect; pImGuiStorage_GetInt ImGuiStorage_GetInt; pigShowFontSelector igShowFontSelector; pigDestroyPlatformWindow igDestroyPlatformWindow; pigImMin igImMin; pigPushButtonRepeat igPushButtonRepeat; pigImAbsFloat igImAbsFloat; pigImAbsdouble igImAbsdouble; pImGuiWindow_Rect ImGuiWindow_Rect; pImGuiViewportP_GetWorkRect ImGuiViewportP_GetWorkRect; pImRect_Floor ImRect_Floor; pigTreePushStr igTreePushStr; pigTreePushPtr igTreePushPtr; pigColorConvertFloat4ToU32 igColorConvertFloat4ToU32; pigGetStyle igGetStyle; pigGetCursorPos igGetCursorPos; pigGetFrameCount igGetFrameCount; pImDrawList_AddNgon ImDrawList_AddNgon; pigIsItemActivated igIsItemActivated; pigEnd igEnd; pigTabBarCloseTab igTabBarCloseTab; pImGuiInputTextState_ImGuiInputTextState ImGuiInputTextState_ImGuiInputTextState; pImRect_GetHeight ImRect_GetHeight; pImFontAtlas_AddFontDefault ImFontAtlas_AddFontDefault; pImDrawList__OnChangedTextureID ImDrawList__OnChangedTextureID; pigGetColumnsCount igGetColumnsCount; pigEndChild igEndChild; pigNavMoveRequestButNoResultYet igNavMoveRequestButNoResultYet; pImGuiStyle_ScaleAllSizes ImGuiStyle_ScaleAllSizes; pigArrowButton igArrowButton; pigSetCursorPosY igSetCursorPosY; pImGuiDockNode_IsFloatingNode ImGuiDockNode_IsFloatingNode; pImGuiTextFilter_ImGuiTextFilter ImGuiTextFilter_ImGuiTextFilter; pImGuiStorage_SetFloat ImGuiStorage_SetFloat; pigShadeVertsLinearUV igShadeVertsLinearUV; pigGetTime igGetTime; pigBeginPopupContextItem igBeginPopupContextItem; pigSetScrollHereX igSetScrollHereX; pigSliderScalarN igSliderScalarN; pImFontAtlas_GetGlyphRangesChineseSimplifiedCommon ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon; pigGetMousePosOnOpeningCurrentPopup igGetMousePosOnOpeningCurrentPopup; pigVSliderScalar igVSliderScalar; pigDockBuilderSetNodePos igDockBuilderSetNodePos; pImFont_RenderChar ImFont_RenderChar; pImFont_RenderText ImFont_RenderText; pigOpenPopupEx igOpenPopupEx; pImFontAtlas_SetTexID ImFontAtlas_SetTexID; pImFontAtlas_Clear ImFontAtlas_Clear; pigBeginDockableDragDropSource igBeginDockableDragDropSource; pImBitVector_TestBit ImBitVector_TestBit; pImGuiTextFilter_destroy ImGuiTextFilter_destroy; pigBeginPopupModal igBeginPopupModal; pigGetWindowDpiScale igGetWindowDpiScale; pigInputFloat igInputFloat; pigDragIntRange2 igDragIntRange2; pImVec2ih_destroy ImVec2ih_destroy; pImDrawList_GetClipRectMax ImDrawList_GetClipRectMax; pigInputFloat2 igInputFloat2; pImDrawDataBuilder_ClearFreeMemory ImDrawDataBuilder_ClearFreeMemory; pImGuiWindowSettings_GetName ImGuiWindowSettings_GetName; pImGuiLastItemDataBackup_Restore ImGuiLastItemDataBackup_Restore; pigImStrdup igImStrdup; pigImFormatStringV igImFormatStringV; pigSetTooltipV igSetTooltipV; pigDataTypeGetInfo igDataTypeGetInfo; pigVSliderInt igVSliderInt; pigSetWindowClipRectBeforeSetChannel igSetWindowClipRectBeforeSetChannel; pImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder; pigGetWindowDockID igGetWindowDockID; pigPopTextWrapPos igPopTextWrapPos; pImGuiWindowClass_destroy ImGuiWindowClass_destroy; pImGuiWindow_TitleBarHeight ImGuiWindow_TitleBarHeight; pImDrawList_GetClipRectMin ImDrawList_GetClipRectMin; pImDrawList_PathStroke ImDrawList_PathStroke; pigBeginTooltip igBeginTooltip; pigOpenPopupOnItemClick igOpenPopupOnItemClick; pImDrawListSplitter_Merge ImDrawListSplitter_Merge; pImGuiWindow_MenuBarHeight ImGuiWindow_MenuBarHeight; pImColor_HSV ImColor_HSV; pigSetTabItemClosed igSetTabItemClosed; pImFont_AddGlyph ImFont_AddGlyph; pigSetHoveredID igSetHoveredID; pigStartMouseMovingWindowOrNode igStartMouseMovingWindowOrNode; pImFontGlyphRangesBuilder_AddText ImFontGlyphRangesBuilder_AddText; pImGuiPtrOrIndex_destroy ImGuiPtrOrIndex_destroy; pImGuiInputTextCallbackData_ImGuiInputTextCallbackData ImGuiInputTextCallbackData_ImGuiInputTextCallbackData; pigImStrdupcpy igImStrdupcpy; pImGuiDockNode_IsNoTabBar ImGuiDockNode_IsNoTabBar; pigColorConvertHSVtoRGB igColorConvertHSVtoRGB; pigDockBuilderSplitNode igDockBuilderSplitNode; pigColorPicker4 igColorPicker4; pigImBitArrayTestBit igImBitArrayTestBit; pigFindWindowByID igFindWindowByID; pigBeginDragDropTargetCustom igBeginDragDropTargetCustom; pImGuiContext_destroy ImGuiContext_destroy; pigDragInt3 igDragInt3; pigImHashStr igImHashStr; pImDrawList_AddTriangleFilled ImDrawList_AddTriangleFilled; pigTempInputScalar igTempInputScalar; pigRenderArrow igRenderArrow; pigImFontAtlasBuildRender1bppRectFromString igImFontAtlasBuildRender1bppRectFromString; pigNewFrame igNewFrame; pImGuiTabItem_ImGuiTabItem ImGuiTabItem_ImGuiTabItem; pImDrawList_ChannelsSetCurrent ImDrawList_ChannelsSetCurrent; pigClosePopupToLevel igClosePopupToLevel; pImGuiContext_ImGuiContext ImGuiContext_ImGuiContext; pigSliderFloat2 igSliderFloat2; pImGuiPopupData_ImGuiPopupData ImGuiPopupData_ImGuiPopupData; pImDrawList_AddImageQuad ImDrawList_AddImageQuad; pImFontAtlas_GetCustomRectByIndex ImFontAtlas_GetCustomRectByIndex; pImFontAtlas_GetTexDataAsAlpha8 ImFontAtlas_GetTexDataAsAlpha8; pigGcAwakeTransientWindowBuffers igGcAwakeTransientWindowBuffers; pImDrawList__OnChangedClipRect ImDrawList__OnChangedClipRect; pImGuiWindowClass_ImGuiWindowClass ImGuiWindowClass_ImGuiWindowClass; pigDockBuilderRemoveNodeChildNodes igDockBuilderRemoveNodeChildNodes; pigGetColumnsID igGetColumnsID; pigPushAllowKeyboardFocus igPushAllowKeyboardFocus; pImDrawList_PopTextureID ImDrawList_PopTextureID; pigColumns igColumns; pImFontGlyphRangesBuilder_AddChar ImFontGlyphRangesBuilder_AddChar; pigGetColumnIndex igGetColumnIndex; pigBringWindowToDisplayBack igBringWindowToDisplayBack; pImDrawList_PrimVtx ImDrawList_PrimVtx; pImDrawListSplitter_Clear ImDrawListSplitter_Clear; pImDrawList_AddConvexPolyFilled ImDrawList_AddConvexPolyFilled; pigGetCursorScreenPos igGetCursorScreenPos; pigListBoxStr_arr igListBoxStr_arr; pigListBoxFnBoolPtr igListBoxFnBoolPtr; pigPopItemFlag igPopItemFlag; pigPopColumnsBackground igPopColumnsBackground; pigLogBegin igLogBegin; pigTreeNodeVStr igTreeNodeVStr; pigTreeNodeVPtr igTreeNodeVPtr; pigRenderTextClippedEx igRenderTextClippedEx; pImGuiIO_AddInputCharacterUTF16 ImGuiIO_AddInputCharacterUTF16; pImGuiStorage_GetFloatRef ImGuiStorage_GetFloatRef; pigImStrbolW igImStrbolW; pigSliderBehavior igSliderBehavior; pigValueBool igValueBool; pigValueInt igValueInt; pigValueUint igValueUint; pigValueFloat igValueFloat; pigBeginTabItem igBeginTabItem; pImGuiViewport_destroy ImGuiViewport_destroy; pigIsNavInputDown igIsNavInputDown; pImGuiInputTextState_ClearFreeMemory ImGuiInputTextState_ClearFreeMemory; pigRenderBullet igRenderBullet; pigDragFloat4 igDragFloat4; pImDrawList__OnChangedVtxOffset ImDrawList__OnChangedVtxOffset; pigFocusTopMostWindowUnderOne igFocusTopMostWindowUnderOne; pigPushIDStr igPushIDStr; pigPushIDStrStr igPushIDStrStr; pigPushIDPtr igPushIDPtr; pigPushIDInt igPushIDInt; pigItemHoverable igItemHoverable; pImFontAtlas_AddFontFromMemoryTTF ImFontAtlas_AddFontFromMemoryTTF; pigDockBuilderDockWindow igDockBuilderDockWindow; pigImFontAtlasBuildMultiplyRectAlpha8 igImFontAtlasBuildMultiplyRectAlpha8; pigTextDisabledV igTextDisabledV; pigInputScalar igInputScalar; pImGuiPtrOrIndex_ImGuiPtrOrIndexPtr ImGuiPtrOrIndex_ImGuiPtrOrIndexPtr; pImGuiPtrOrIndex_ImGuiPtrOrIndexInt ImGuiPtrOrIndex_ImGuiPtrOrIndexInt; pigImLerpVec2Float igImLerpVec2Float; pigImLerpVec2Vec2 igImLerpVec2Vec2; pigImLerpVec4 igImLerpVec4; pigItemSizeVec2 igItemSizeVec2; pigItemSizeRect igItemSizeRect; pImColor_SetHSV ImColor_SetHSV; pImFont_IsGlyphRangeUnused ImFont_IsGlyphRangeUnused; pigImParseFormatPrecision igImParseFormatPrecision; pigLogToTTY igLogToTTY; pigButtonBehavior igButtonBehavior; pImGuiInputTextState_OnKeyPressed ImGuiInputTextState_OnKeyPressed; pigImLogFloat igImLogFloat; pigImLogdouble igImLogdouble; pigSetFocusID igSetFocusID; pigGetActiveID igGetActiveID; pigImLineClosestPoint igImLineClosestPoint; pigIsItemVisible igIsItemVisible; pigRender igRender; pigImTriangleArea igImTriangleArea; pigBeginChildStr igBeginChildStr; pigBeginChildID igBeginChildID; pigStyleColorsLight igStyleColorsLight; pigGetScrollX igGetScrollX; pigGetWindowAllowedExtentRect igGetWindowAllowedExtentRect; pImFontAtlas_GetTexDataAsRGBA32 ImFontAtlas_GetTexDataAsRGBA32; pImGuiOnceUponAFrame_ImGuiOnceUponAFrame ImGuiOnceUponAFrame_ImGuiOnceUponAFrame; pImDrawData_destroy ImDrawData_destroy; pImFont_SetFallbackChar ImFont_SetFallbackChar; pigSaveIniSettingsToMemory igSaveIniSettingsToMemory; pImGuiNavMoveResult_ImGuiNavMoveResult ImGuiNavMoveResult_ImGuiNavMoveResult; pigTabBarRemoveTab igTabBarRemoveTab; pigGetWindowHeight igGetWindowHeight; pigGetMainViewport igGetMainViewport; pImGuiTextFilter_PassFilter ImGuiTextFilter_PassFilter; pImFontAtlas_AddFontFromMemoryCompressedBase85TTF ImFontAtlas_AddFontFromMemoryCompressedBase85TTF; pImFontAtlas_AddFontFromFileTTF ImFontAtlas_AddFontFromFileTTF; pigGetCurrentContext igGetCurrentContext; pigColorConvertU32ToFloat4 igColorConvertU32ToFloat4; pImDrawList_PathArcToFast ImDrawList_PathArcToFast; pigDragFloat igDragFloat; pigGetStyleColorName igGetStyleColorName; pigSetItemDefaultFocus igSetItemDefaultFocus; pigCalcListClipping igCalcListClipping; pigSetNextWindowPos igSetNextWindowPos; pigDragFloat3 igDragFloat3; pigCaptureKeyboardFromApp igCaptureKeyboardFromApp; pigInputInt3 igInputInt3; pImDrawData_Clear ImDrawData_Clear; pImFontAtlas_AddFontFromMemoryCompressedTTF ImFontAtlas_AddFontFromMemoryCompressedTTF; pImGuiStoragePair_destroy ImGuiStoragePair_destroy; pigIsItemToggledOpen igIsItemToggledOpen; pigShrinkWidths igShrinkWidths; pImDrawList_AddTextVec2 ImDrawList_AddTextVec2; pImDrawList_AddTextFontPtr ImDrawList_AddTextFontPtr; pImDrawList_PrimRectUV ImDrawList_PrimRectUV; pImDrawList_PrimWriteIdx ImDrawList_PrimWriteIdx; pImGuiStorage_GetBool ImGuiStorage_GetBool; pigRenderFrameBorder igRenderFrameBorder; pigFindWindowByName igFindWindowByName; pigImTextStrToUtf8 igImTextStrToUtf8; pigTextWrapped igTextWrapped; pigScrollToBringRectIntoView igScrollToBringRectIntoView; pigInputInt igInputInt; pImVec2_ImVec2Nil ImVec2_ImVec2Nil; pImVec2_ImVec2Float ImVec2_ImVec2Float; pImGuiTextBuffer_size ImGuiTextBuffer_size; pImFontAtlas_GetGlyphRangesDefault ImFontAtlas_GetGlyphRangesDefault; pigUpdatePlatformWindows igUpdatePlatformWindows; pImFontAtlas_ClearTexData ImFontAtlas_ClearTexData; pImFont_GetCharAdvance ImFont_GetCharAdvance; pigSliderFloat3 igSliderFloat3; pImDrawList_AddBezierCurve ImDrawList_AddBezierCurve; pImDrawList_PathFillConvex ImDrawList_PathFillConvex; pImGuiTextBuffer_ImGuiTextBuffer ImGuiTextBuffer_ImGuiTextBuffer; pImGuiTabItem_destroy ImGuiTabItem_destroy; pigSliderAngle igSliderAngle; pigSetWindowPosVec2 igSetWindowPosVec2; pigSetWindowPosStr igSetWindowPosStr; pigSetWindowPosWindowPtr igSetWindowPosWindowPtr; pigTempInputText igTempInputText; pigSetScrollHereY igSetScrollHereY; pigDockContextUpdateUndocking igDockContextUpdateUndocking; pImGuiViewport_ImGuiViewport ImGuiViewport_ImGuiViewport; pigProgressBar igProgressBar; pImDrawList_CloneOutput ImDrawList_CloneOutput; pImFontGlyphRangesBuilder_destroy ImFontGlyphRangesBuilder_destroy; pImVec1_destroy ImVec1_destroy; pigPushColumnClipRect igPushColumnClipRect; pigDockBuilderCopyWindowSettings igDockBuilderCopyWindowSettings; pigImTextCharFromUtf8 igImTextCharFromUtf8; pImRect_ImRectNil ImRect_ImRectNil; pImRect_ImRectVec2 ImRect_ImRectVec2; pImRect_ImRectVec4 ImRect_ImRectVec4; pImRect_ImRectFloat ImRect_ImRectFloat; pigGetTopMostPopupModal igGetTopMostPopupModal; pImDrawListSplitter_Split ImDrawListSplitter_Split; pigBulletText igBulletText; pigImFontAtlasBuildFinish igImFontAtlasBuildFinish; pImDrawList_AddQuad ImDrawList_AddQuad; pigDockSpace igDockSpace; pigGetColorU32Col igGetColorU32Col; pigGetColorU32Vec4 igGetColorU32Vec4; pigGetColorU32U32 igGetColorU32U32; pImGuiWindow_GetIDFromRectangle ImGuiWindow_GetIDFromRectangle; pImDrawList_AddDrawCmd ImDrawList_AddDrawCmd; pigUpdateWindowParentAndRootLinks igUpdateWindowParentAndRootLinks; pigIsItemDeactivated igIsItemDeactivated; pigSetCursorPosX igSetCursorPosX; pigInputFloat4 igInputFloat4; pigSeparator igSeparator; pImRect_Translate ImRect_Translate; pImDrawList_PrimUnreserve ImDrawList_PrimUnreserve; pigColorPickerOptionsPopup igColorPickerOptionsPopup; pImRect_IsInverted ImRect_IsInverted; pigGetKeyIndex igGetKeyIndex; pigFindViewportByID igFindViewportByID; pigPushItemFlag igPushItemFlag; pigScrollbar igScrollbar; pigImFontAtlasBuildWithStbTruetype igImFontAtlasBuildWithStbTruetype; pImDrawList_PrimWriteVtx ImDrawList_PrimWriteVtx; pImGuiDockContext_destroy ImGuiDockContext_destroy; pImGuiPayload_IsDataType ImGuiPayload_IsDataType; pigSetActiveID igSetActiveID; pImFontGlyphRangesBuilder_BuildRanges ImFontGlyphRangesBuilder_BuildRanges; pigTreePop igTreePop; pigSetWindowSizeVec2 igSetWindowSizeVec2; pigSetWindowSizeStr igSetWindowSizeStr; pigSetWindowSizeWindowPtr igSetWindowSizeWindowPtr; pImFont_AddRemapChar ImFont_AddRemapChar; pigNavMoveRequestCancel igNavMoveRequestCancel; pigTranslateWindowsInViewport igTranslateWindowsInViewport; pigText igText; pigCollapseButton igCollapseButton; pImGuiWindow_TitleBarRect ImGuiWindow_TitleBarRect; pigIsItemFocused igIsItemFocused; pigMemAlloc igMemAlloc; pigColorPicker3 igColorPicker3; pImGuiTextBuffer_destroy ImGuiTextBuffer_destroy; pigGetColumnOffset igGetColumnOffset; pImRect_GetSize ImRect_GetSize; pigIsWindowCollapsed igIsWindowCollapsed; pImGuiNextItemData_ClearFlags ImGuiNextItemData_ClearFlags; pigBeginCombo igBeginCombo; pImRect_ExpandFloat ImRect_ExpandFloat; pImRect_ExpandVec2 ImRect_ExpandVec2; pigOpenPopup igOpenPopup; pigImCharIsBlankW igImCharIsBlankW; pImFont_SetGlyphVisible ImFont_SetGlyphVisible; pigFindOrCreateWindowSettings igFindOrCreateWindowSettings; pigInputScalarN igInputScalarN; pImDrawList_PrimQuadUV ImDrawList_PrimQuadUV; pigPopID igPopID; pigEndTabBar igEndTabBar; pigPopAllowKeyboardFocus igPopAllowKeyboardFocus; pImDrawList_AddImage ImDrawList_AddImage; pigBeginTabBar igBeginTabBar; pigGetCursorPosY igGetCursorPosY; pigCalcTextSize igCalcTextSize; pImFont_CalcTextSizeA ImFont_CalcTextSizeA; pigImClamp igImClamp; pigGetColumnWidth igGetColumnWidth; pigTabBarFindMostRecentlySelectedTabForActiveWindow igTabBarFindMostRecentlySelectedTabForActiveWindow; pImGuiPayload_Clear ImGuiPayload_Clear; pImGuiTextBuffer_reserve ImGuiTextBuffer_reserve; pImGuiInputTextState_CursorAnimReset ImGuiInputTextState_CursorAnimReset; pImRect_ClipWithFull ImRect_ClipWithFull; pImGuiViewport_GetWorkPos ImGuiViewport_GetWorkPos; pigGetFontTexUvWhitePixel igGetFontTexUvWhitePixel; pImDrawList_ChannelsSplit ImDrawList_ChannelsSplit; pigPopFont igPopFont; pigImTriangleContainsPoint igImTriangleContainsPoint; pigRenderRectFilledWithHole igRenderRectFilledWithHole; pigImFloorFloat igImFloorFloat; pigImFloorVec2 igImFloorVec2; pImDrawList_AddRect ImDrawList_AddRect; pigImParseFormatFindEnd igImParseFormatFindEnd; pImGuiPlatformIO_destroy ImGuiPlatformIO_destroy; pImDrawListSharedData_SetCircleSegmentMaxError ImDrawListSharedData_SetCircleSegmentMaxError; pImGuiInputTextCallbackData_ClearSelection ImGuiInputTextCallbackData_ClearSelection; pImGuiTextRange_split ImGuiTextRange_split; pImBitVector_Clear ImBitVector_Clear; pigDockBuilderAddNode igDockBuilderAddNode; pigCreateNewWindowSettings igCreateNewWindowSettings; pImGuiDockNode_IsRootNode ImGuiDockNode_IsRootNode; pigDockContextInitialize igDockContextInitialize; pigGetDrawListSharedData igGetDrawListSharedData; pigBeginChildEx igBeginChildEx; pImGuiNextWindowData_ClearFlags ImGuiNextWindowData_ClearFlags; pigImFileClose igImFileClose; pImFontGlyphRangesBuilder_GetBit ImFontGlyphRangesBuilder_GetBit; pigImRotate igImRotate; pigImGetDirQuadrantFromDelta igImGetDirQuadrantFromDelta; pImFontAtlas_AddFont ImFontAtlas_AddFont; pigGetNavInputAmount2d igGetNavInputAmount2d; } } extern(C) @nogc nothrow { alias pImGui_ImplSDL2_Shutdown = void function(); alias pImGui_ImplOpenGL3_DestroyFontsTexture = void function(); alias pImGui_ImplSDL2_InitForMetal = bool function(SDL_Window* window); alias pImGui_ImplSDL2_InitForOpenGL = bool function(SDL_Window* window, void* sdl_gl_context); alias pImGui_ImplSDL2_InitForVulkan = bool function(SDL_Window* window); alias pImGui_ImplOpenGL3_CreateFontsTexture = bool function(); alias pImGui_ImplGlfw_MonitorCallback = void function(GLFWmonitor* monitor, int event); alias pImGui_ImplGlfw_NewFrame = void function(); alias pImGui_ImplOpenGL2_CreateDeviceObjects = bool function(); alias pImGui_ImplSDL2_InitForD3D = bool function(SDL_Window* window); alias pImGui_ImplOpenGL2_Init = bool function(); alias pImGui_ImplGlfw_InitForVulkan = bool function(GLFWwindow* window, bool install_callbacks); alias pImGui_ImplSDL2_ProcessEvent = bool function(const SDL_Event* event); alias pImGui_ImplOpenGL3_CreateDeviceObjects = bool function(); alias pImGui_ImplGlfw_CharCallback = void function(GLFWwindow* window, uint c); alias pImGui_ImplOpenGL2_DestroyDeviceObjects = void function(); alias pImGui_ImplOpenGL3_Init = bool function(const char* glsl_version); alias pImGui_ImplOpenGL3_DestroyDeviceObjects = void function(); alias pImGui_ImplOpenGL3_NewFrame = void function(); alias pImGui_ImplOpenGL2_NewFrame = void function(); alias pImGui_ImplGlfw_InitForOpenGL = bool function(GLFWwindow* window, bool install_callbacks); alias pImGui_ImplOpenGL2_RenderDrawData = void function(ImDrawData* draw_data); alias pImGui_ImplGlfw_KeyCallback = void function(GLFWwindow* window, int key, int scancode, int action, int mods); alias pImGui_ImplOpenGL3_Shutdown = void function(); alias pImGui_ImplGlfw_ScrollCallback = void function(GLFWwindow* window, double xoffset, double yoffset); alias pImGui_ImplSDL2_NewFrame = void function(SDL_Window* window); alias pImGui_ImplOpenGL2_CreateFontsTexture = bool function(); alias pImGui_ImplOpenGL2_Shutdown = void function(); alias pImGui_ImplGlfw_MouseButtonCallback = void function(GLFWwindow* window, int button, int action, int mods); alias pImGui_ImplGlfw_Shutdown = void function(); alias pImGui_ImplOpenGL3_RenderDrawData = void function(ImDrawData* draw_data); alias pImGui_ImplOpenGL2_DestroyFontsTexture = void function(); __gshared { pImGui_ImplSDL2_Shutdown ImGui_ImplSDL2_Shutdown; pImGui_ImplOpenGL3_DestroyFontsTexture ImGui_ImplOpenGL3_DestroyFontsTexture; pImGui_ImplSDL2_InitForMetal ImGui_ImplSDL2_InitForMetal; pImGui_ImplSDL2_InitForOpenGL ImGui_ImplSDL2_InitForOpenGL; pImGui_ImplSDL2_InitForVulkan ImGui_ImplSDL2_InitForVulkan; pImGui_ImplOpenGL3_CreateFontsTexture ImGui_ImplOpenGL3_CreateFontsTexture; pImGui_ImplGlfw_MonitorCallback ImGui_ImplGlfw_MonitorCallback; pImGui_ImplGlfw_NewFrame ImGui_ImplGlfw_NewFrame; pImGui_ImplOpenGL2_CreateDeviceObjects ImGui_ImplOpenGL2_CreateDeviceObjects; pImGui_ImplSDL2_InitForD3D ImGui_ImplSDL2_InitForD3D; pImGui_ImplOpenGL2_Init ImGui_ImplOpenGL2_Init; pImGui_ImplGlfw_InitForVulkan ImGui_ImplGlfw_InitForVulkan; pImGui_ImplSDL2_ProcessEvent ImGui_ImplSDL2_ProcessEvent; pImGui_ImplOpenGL3_CreateDeviceObjects ImGui_ImplOpenGL3_CreateDeviceObjects; pImGui_ImplGlfw_CharCallback ImGui_ImplGlfw_CharCallback; pImGui_ImplOpenGL2_DestroyDeviceObjects ImGui_ImplOpenGL2_DestroyDeviceObjects; pImGui_ImplOpenGL3_Init ImGui_ImplOpenGL3_Init; pImGui_ImplOpenGL3_DestroyDeviceObjects ImGui_ImplOpenGL3_DestroyDeviceObjects; pImGui_ImplOpenGL3_NewFrame ImGui_ImplOpenGL3_NewFrame; pImGui_ImplOpenGL2_NewFrame ImGui_ImplOpenGL2_NewFrame; pImGui_ImplGlfw_InitForOpenGL ImGui_ImplGlfw_InitForOpenGL; pImGui_ImplOpenGL2_RenderDrawData ImGui_ImplOpenGL2_RenderDrawData; pImGui_ImplGlfw_KeyCallback ImGui_ImplGlfw_KeyCallback; pImGui_ImplOpenGL3_Shutdown ImGui_ImplOpenGL3_Shutdown; pImGui_ImplGlfw_ScrollCallback ImGui_ImplGlfw_ScrollCallback; pImGui_ImplSDL2_NewFrame ImGui_ImplSDL2_NewFrame; pImGui_ImplOpenGL2_CreateFontsTexture ImGui_ImplOpenGL2_CreateFontsTexture; pImGui_ImplOpenGL2_Shutdown ImGui_ImplOpenGL2_Shutdown; pImGui_ImplGlfw_MouseButtonCallback ImGui_ImplGlfw_MouseButtonCallback; pImGui_ImplGlfw_Shutdown ImGui_ImplGlfw_Shutdown; pImGui_ImplOpenGL3_RenderDrawData ImGui_ImplOpenGL3_RenderDrawData; pImGui_ImplOpenGL2_DestroyFontsTexture ImGui_ImplOpenGL2_DestroyFontsTexture; } } }
D
instance PAL_231_Ritter(Npc_Default) { name[0] = NAME_Ritter; guild = GIL_PAL; id = 231; voice = 12; flags = 0; npcType = NPCTYPE_AMBIENT; B_SetAttributesToChapter(self,5); fight_tactic = FAI_HUMAN_MASTER; EquipItem(self,ItMw_1h_Pal_Sword); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_N_NormalBart_Grim,BodyTex_N,ITAR_PAL_M); Mdl_SetModelFatness(self,0); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); B_GiveNpcTalents(self); B_SetFightSkills(self,80); daily_routine = Rtn_Start_231; }; func void Rtn_Start_231() { TA_Practice_Sword(8,0,23,0,"NW_CITY_PALCAMP_10"); TA_Smalltalk(23,0,8,0,"NW_CITY_PALCAMP_14"); }; func void Rtn_ShipFree_231() { TA_Stand_WP(8,0,23,0,"NW_CITY_UPTOWNPARADE_11"); TA_Stand_WP(23,0,8,0,"NW_CITY_UPTOWNPARADE_11"); };
D
/** * Utility to visit every variable in an expression. * * Copyright: Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 https://www.digitalmars.com, Walter Bright) * License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/foreachvar.d, _foreachvar.d) * Documentation: https://dlang.org/phobos/dmd_foreachvar.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/foreachvar.d */ module dmd.foreachvar; import core.stdc.stdio; import core.stdc.stdlib; import core.stdc.string; import dmd.arraytypes; import dmd.astenums; import dmd.attrib; import dmd.dclass; import dmd.declaration; import dmd.dstruct; import dmd.dsymbol; import dmd.dsymbolsem; import dmd.dtemplate; import dmd.errors; import dmd.expression; import dmd.func; import dmd.id; import dmd.identifier; import dmd.init; import dmd.initsem; import dmd.mtype; import dmd.postordervisitor; import dmd.printast; import dmd.root.array; import dmd.root.rootobject; import dmd.statement; import dmd.tokens; import dmd.visitor; /********************************************* * Visit each Expression in e, and call dgVar() on each variable declared in it. * Params: * e = expression tree to visit * dgVar = call when a variable is declared */ void foreachVar(Expression e, void delegate(VarDeclaration) dgVar) { if (!e) return; extern (C++) final class VarWalker : StoppableVisitor { alias visit = typeof(super).visit; extern (D) void delegate(VarDeclaration) dgVar; extern (D) this(void delegate(VarDeclaration) dgVar) scope @safe { this.dgVar = dgVar; } override void visit(Expression e) { } override void visit(ErrorExp e) { } override void visit(DeclarationExp e) { VarDeclaration v = e.declaration.isVarDeclaration(); if (!v) return; if (TupleDeclaration td = v.toAlias().isTupleDeclaration()) td.foreachVar((s) { dgVar(s.isVarDeclaration()); }); else dgVar(v); Dsymbol s = v.toAlias(); if (s == v && !v.isStatic() && v._init) { if (auto ie = v._init.isExpInitializer()) ie.exp.foreachVar(dgVar); } } override void visit(IndexExp e) { if (e.lengthVar) dgVar(e.lengthVar); } override void visit(SliceExp e) { if (e.lengthVar) dgVar(e.lengthVar); } } scope VarWalker v = new VarWalker(dgVar); walkPostorder(e, v); } /*************** * Transitively walk Statement s, pass Expressions to dgExp(), VarDeclarations to dgVar(). * Params: * s = Statement to traverse * dgExp = delegate to pass found Expressions to * dgVar = delegate to pass found VarDeclarations to */ void foreachExpAndVar(Statement s, void delegate(Expression) dgExp, void delegate(VarDeclaration) dgVar) { void visit(Statement s) { void visitExp(ExpStatement s) { if (s.exp) dgExp(s.exp); } void visitDtorExp(DtorExpStatement s) { if (s.exp) dgExp(s.exp); } void visitIf(IfStatement s) { dgExp(s.condition); visit(s.ifbody); visit(s.elsebody); } void visitDo(DoStatement s) { dgExp(s.condition); visit(s._body); } void visitFor(ForStatement s) { visit(s._init); if (s.condition) dgExp(s.condition); if (s.increment) dgExp(s.increment); visit(s._body); } void visitSwitch(SwitchStatement s) { dgExp(s.condition); // Note that the body contains the Case and Default // statements, so we only need to compile the expressions foreach (cs; *s.cases) { dgExp(cs.exp); } visit(s._body); } void visitCase(CaseStatement s) { visit(s.statement); } void visitReturn(ReturnStatement s) { if (s.exp) dgExp(s.exp); } void visitCompound(CompoundStatement s) { if (s.statements) { foreach (s2; *s.statements) { visit(s2); } } } void visitCompoundDeclaration(CompoundDeclarationStatement s) { visitCompound(s); } void visitUnrolledLoop(UnrolledLoopStatement s) { foreach (s2; *s.statements) { visit(s2); } } void visitScope(ScopeStatement s) { visit(s.statement); } void visitDefault(DefaultStatement s) { visit(s.statement); } void visitWith(WithStatement s) { // If it is with(Enum) {...}, just execute the body. if (s.exp.op == EXP.scope_ || s.exp.op == EXP.type) { } else { dgVar(s.wthis); dgExp(s.exp); } visit(s._body); } void visitTryCatch(TryCatchStatement s) { visit(s._body); foreach (ca; *s.catches) { if (ca.var) dgVar(ca.var); visit(ca.handler); } } void visitTryFinally(TryFinallyStatement s) { visit(s._body); visit(s.finalbody); } void visitThrow(ThrowStatement s) { dgExp(s.exp); } void visitLabel(LabelStatement s) { visit(s.statement); } if (!s) return; final switch (s.stmt) { case STMT.Exp: visitExp(s.isExpStatement()); break; case STMT.DtorExp: visitDtorExp(s.isDtorExpStatement()); break; case STMT.Compound: visitCompound(s.isCompoundStatement()); break; case STMT.CompoundDeclaration: visitCompoundDeclaration(s.isCompoundDeclarationStatement()); break; case STMT.UnrolledLoop: visitUnrolledLoop(s.isUnrolledLoopStatement()); break; case STMT.Scope: visitScope(s.isScopeStatement()); break; case STMT.Do: visitDo(s.isDoStatement()); break; case STMT.For: visitFor(s.isForStatement()); break; case STMT.If: visitIf(s.isIfStatement()); break; case STMT.Switch: visitSwitch(s.isSwitchStatement()); break; case STMT.Case: visitCase(s.isCaseStatement()); break; case STMT.Default: visitDefault(s.isDefaultStatement()); break; case STMT.Return: visitReturn(s.isReturnStatement()); break; case STMT.With: visitWith(s.isWithStatement()); break; case STMT.TryCatch: visitTryCatch(s.isTryCatchStatement()); break; case STMT.TryFinally: visitTryFinally(s.isTryFinallyStatement()); break; case STMT.Throw: visitThrow(s.isThrowStatement()); break; case STMT.Label: visitLabel(s.isLabelStatement()); break; case STMT.CompoundAsm: case STMT.Asm: case STMT.InlineAsm: case STMT.GccAsm: case STMT.Break: case STMT.Continue: case STMT.GotoDefault: case STMT.GotoCase: case STMT.SwitchError: case STMT.Goto: case STMT.Pragma: case STMT.Import: case STMT.Error: break; // ignore these case STMT.ScopeGuard: case STMT.Foreach: case STMT.ForeachRange: case STMT.Debug: case STMT.CaseRange: case STMT.StaticForeach: case STMT.StaticAssert: case STMT.Conditional: case STMT.While: case STMT.Forwarding: case STMT.Mixin: case STMT.Peel: case STMT.Synchronized: assert(0); // should have been rewritten } } visit(s); }
D
/Users/thendral/POC/vapor/Friends/.build/debug/Socks.build/UDPClient.swift.o : /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/Socks.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/SynchronousTCPServer.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/SynchronousUDPServer.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/TCPClient.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/UDPClient.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/SocksCore.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Socks.build/UDPClient~partial.swiftmodule : /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/Socks.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/SynchronousTCPServer.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/SynchronousUDPServer.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/TCPClient.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/UDPClient.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/SocksCore.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/Socks.build/UDPClient~partial.swiftdoc : /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/Socks.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/SynchronousTCPServer.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/SynchronousUDPServer.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/TCPClient.swift /Users/thendral/POC/vapor/Friends/Packages/Socks-1.2.5/Sources/Socks/UDPClient.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thendral/POC/vapor/Friends/.build/debug/SocksCore.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule
D
/Users/a43696467/Documents/guide/swift3Test/Build/Intermediates/swift3Test.build/Debug-iphonesimulator/swift3Test.build/Objects-normal/x86_64/BaseRequest.o : /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/BaseRequest.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/selectBusiness/selectBusinessViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/PersonalCenter/PersonalCenterView.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/PersonalCenter/PersonalCenterViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskTableViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/AppDelegate.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TadkTableViewCell.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/MainTabBarController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskDetailView.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/CommonSwift.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/HomePageViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskDetailViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/BaseViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/selectBusiness/selectBusinessViewCell.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/Analysis/AnalysisViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/CheckInfo/CheckInfoViewController.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/a43696467/Documents/guide/swift3Test/swift3Test/swift3Test-Bridging-Header.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/Common.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/提货通知/DeliveryNoticeViewController.h /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/OCBaseViewController/OCBaseViewController.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/customAlertViewEvent/customAlertViewEvent.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHRingChart.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHChart.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHLineChart.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIScrollView+MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshConst.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIScrollView+MJExtension.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIView+MJExtension.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshNormalHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshStateHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshComponent.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/NSBundle+MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshGifHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackNormalFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackStateFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackGifFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoNormalFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoStateFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoGifFooter.h /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/a43696467/Documents/guide/swift3Test/Build/Intermediates/swift3Test.build/Debug-iphonesimulator/swift3Test.build/Objects-normal/x86_64/BaseRequest~partial.swiftmodule : /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/BaseRequest.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/selectBusiness/selectBusinessViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/PersonalCenter/PersonalCenterView.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/PersonalCenter/PersonalCenterViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskTableViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/AppDelegate.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TadkTableViewCell.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/MainTabBarController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskDetailView.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/CommonSwift.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/HomePageViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskDetailViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/BaseViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/selectBusiness/selectBusinessViewCell.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/Analysis/AnalysisViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/CheckInfo/CheckInfoViewController.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/a43696467/Documents/guide/swift3Test/swift3Test/swift3Test-Bridging-Header.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/Common.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/提货通知/DeliveryNoticeViewController.h /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/OCBaseViewController/OCBaseViewController.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/customAlertViewEvent/customAlertViewEvent.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHRingChart.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHChart.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHLineChart.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIScrollView+MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshConst.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIScrollView+MJExtension.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIView+MJExtension.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshNormalHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshStateHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshComponent.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/NSBundle+MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshGifHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackNormalFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackStateFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackGifFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoNormalFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoStateFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoGifFooter.h /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/a43696467/Documents/guide/swift3Test/Build/Intermediates/swift3Test.build/Debug-iphonesimulator/swift3Test.build/Objects-normal/x86_64/BaseRequest~partial.swiftdoc : /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/BaseRequest.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/selectBusiness/selectBusinessViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/PersonalCenter/PersonalCenterView.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/PersonalCenter/PersonalCenterViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskTableViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/AppDelegate.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TadkTableViewCell.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/MainTabBarController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskDetailView.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/CommonSwift.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/HomePageViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/Task/TaskDetailViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/BaseViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/selectBusiness/selectBusinessViewCell.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/Analysis/AnalysisViewController.swift /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/CheckInfo/CheckInfoViewController.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/a43696467/Documents/guide/swift3Test/swift3Test/swift3Test-Bridging-Header.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/base/Common.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/home/提货通知/DeliveryNoticeViewController.h /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/OCBaseViewController/OCBaseViewController.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/customAlertViewEvent/customAlertViewEvent.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHRingChart.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHChart.h /Users/a43696467/Documents/guide/swift3Test/swift3Test/public/JHChart/JHLineChart.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIScrollView+MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshConst.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIScrollView+MJExtension.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/UIView+MJExtension.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshNormalHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshStateHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshComponent.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/NSBundle+MJRefresh.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshGifHeader.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackNormalFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackStateFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshBackGifFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoNormalFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoStateFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoFooter.h /Users/a43696467/Documents/guide/swift3Test/Pods/Headers/Public/MJRefresh/MJRefreshAutoGifFooter.h /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
opt -l ttl VSBChip.d - VSB chip definitions ******************** * Definitions for the MVSB2400 VSB bus master/slave interface chip. * * Edition History * * Ed. Date. Reason. Who. * -- -------- ----------------------------------------------- --- * 01 90/01/12 Creation Rwb * 02 90/08/13 Updated when dealing with MVME165 Rev2.5 spec. wwb * * needs to be removed for final version: ifndef VME165 VME165 equ 165 endc ifndef CPUType CPUType set VME165 for NOW! *CPUType set 0 final endc ******************** * Register Offsets - from VSBchbase * VSBCSR equ 0 control and status register for the chip (16 bit) VSBBCR equ 4 block transfer byte count register (32 bit) * NOTE: the VSBADR register is NOT accessible on the MVME165. VSBADR equ 8 address decode register (32 bit) ******************** * CSR definitions * vsb_not_scon equ 1<<0 system controller (0 = enabled; 1 = disabled) vsb_not_block equ 1<<2 block xfer mode (0 = enabled; 1 = disabled) vsb_not_ten equ 1<<3 68010 mode (0 = 68010 mpu; 1 = 68020+) vsb_bounce equ 1<<4 enable VSB bounce mode (0 = disabled; 1 = enabled) vsb_not_readonly equ 1<<5 VSB read-only mode (0 = enabled; 1 = disabled) vsb_not_master equ 1<<6 enable master mode (0 = enabled; 1 = disabled) vsb_ento_msk equ %11<<8 VSB timeout mask * timeout values for ENTO0 & 1 * ento64 equ %00<<8 64uS ento128 equ %01<<8 128 uS ento256 equ %10<<8 256 uS entooff equ %11<<8 timouts disabled. vsb_not_fair equ 1<<10 "fair" request mode (0 = enabled; 1 = disabled) vsb_errmsk equ %11111<<11 error status mask * VSB error status flags * b_vsb_wrerr equ 11 0 if attempt to write to VSB when in read-only mode b_vsb_to equ 12 0 if VSB timeout occurred b_vsb_asack0 equ 13 state if ASACK0* when b_vsb_err detected low b_vsb_asack1 equ 14 state if ASACK1* when b_vsb_err detected low b_vsb_err equ 15 0 if ERR* asserted opt l * end of vsbchip.d
D
import std.stdio; // Test function inlining debug = NRVO; /************************************/ int foo(int i) { return i; } int bar() { return foo(3) + 4; } void test1() { printf("%d\n", bar()); assert(bar() == 7); } /************************************/ struct Foo2 { int a,b,c,e,f,g; } int foo2(Foo2 f) { f.b += 73; return f.b; } int bar2() { Foo2 gg; gg.b = 6; return foo2(gg) + 4; } void test2() { printf("%d\n", bar2()); assert(bar2() == 83); } /************************************/ struct Foo3 { int bar() { return y + 3; } int y = 4; } void test3() { Foo3 f; assert(f.bar() == 7); } /************************************/ void func(void function () v) { } void test4() { static void f1() { } func(&f1); //func(f1); } /************************************/ void foo5(ubyte[16] array) { bar5(array.ptr); } void bar5(ubyte *array) { } void abc5(ubyte[16] array) { foo5(array); } void test5() { } /************************************/ struct Struct { real foo() { return 0; } void bar(out Struct Q) { if (foo() < 0) Q = this; } } void test6() { } /************************************/ struct S7(T) { immutable(T)[] s; } T foo7(T)(T t) { enum S7!(T)[] i = [{"hello"},{"world"}]; auto x = i[0].s; return t; } void test7() { auto x = foo7('c'); } /************************************/ // 10833 string fun10833(T...)() { foreach (v ; T) return v; assert(0); } void test10833() { auto a = fun10833!("bar")(); } /************************************/ // Bugzilla 4825 int a8() { int r; return r; } int b8() { return a8(); } void test8() { void d() { auto e = b8(); } static const int f = b8(); } /************************************/ // 4841 auto fun4841a() { int i = 42; struct Result { this(int u) {} auto bar() { // refer context of fun4841a return i; } } return Result(); } void test4841a() { auto t = fun4841a(); auto x = t.bar(); assert(x == 42); } auto fun4841b() { int i = 40; auto foo() // hasNestedFrameRefs() == false { // struct Result { this(int u) {} auto bar() { // refer context of fun4841b return i + 2; } } return Result(); } return foo(); } void test4841b() { auto t = fun4841b(); assert(cast(void*)t.tupleof[$-1] !is null); // Result to fun4841b auto x = t.bar(); assert(x == 42); } auto fun4841c() { int i = 40; auto foo() // hasNestedFrameRefs() == true { int g = 2; struct Result { this(int u) {} auto bar() { // refer context of fun4841c and foo return i + g; } } return Result(); } return foo(); } void test4841c() { auto t = fun4841c(); assert( cast(void*)t.tupleof[$-1] !is null); // Result to foo assert(*cast(void**)t.tupleof[$-1] !is null); // foo to fun4841c auto x = t.bar(); assert(x == 42); } void test4841() { test4841a(); test4841b(); test4841c(); } /************************************/ // 7261 struct AbstractTask { ubyte taskStatus; } struct Task { AbstractTask base; alias base this; void opAssign(Task rhs) { } ~this() { if (taskStatus != 3) { } } } void test9356() { static inout(char)[] bar (inout(char)[] a) { return a; } string result; result ~= bar("abc"); assert(result == "abc"); } /************************************/ // 12079 void test12079() { string[string][string] foo; foo.get("bar", null).get("baz", null); } /************************************/ // 11223 struct Tuple11223(T...) { T values; void opAssign(Tuple11223 rhs) { if (0) values = rhs.values; else assert(1); } } void test11223() { Tuple11223!string tmp; tmp = Tuple11223!string(); } /************************************/ // 11314 struct Tuple11314(T...) { T values; void opAssign(typeof(this) rhs) { if (0) values[] = rhs.values[]; else assert(1); } } struct S11314 {} void test11314() { Tuple11314!S11314 t; t = Tuple11314!S11314(S11314.init); } /************************************/ // 11224 S11224* ptr11224; struct S11224 { this(int) { ptr11224 = &this; /*printf("ctor &this = %p\n", &this);*/ } this(this) { /*printf("cpctor &this = %p\n", &this);*/ } int num; } S11224 foo11224() { S11224 s = S11224(1); //printf("foo &this = %p\n", &s); assert(ptr11224 is &s); return s; } void test11224() { auto s = foo11224(); //printf("main &this = %p\n", &s); assert(ptr11224 is &s); } /************************************/ // 11322 bool b11322; uint n11322; ref uint fun11322() { if (b11322) return n11322; else return n11322; } void test11322() { fun11322()++; assert(n11322 == 1); fun11322() *= 5; assert(n11322 == 5); } /************************************/ // 11394 debug(NRVO) static void* p11394a, p11394b, p11394c; static int[3] make11394(in int x) pure { typeof(return) a; a[0] = x; a[1] = x + 1; a[2] = x + 2; debug(NRVO) p11394a = cast(void*)a.ptr; return a; } struct Bar11394 { immutable int[3] arr; this(int x) { this.arr = make11394(x); // NRVO should work debug(NRVO) p11394b = cast(void*)this.arr.ptr; } } void test11394() { auto b = Bar11394(5); debug(NRVO) p11394c = cast(void*)b.arr.ptr; //debug(NRVO) printf("p1 = %p\np2 = %p\np3 = %p\n", p11394a, p11394b, p11394c); debug(NRVO) assert(p11394a == p11394b); debug(NRVO) assert(p11394b == p11394c); } /**********************************/ // 12080 class TZ12080 {} struct ST12080 { ST12080 opBinary()() const pure nothrow { auto retval = ST12080(); return retval; // NRVO } long _stdTime; immutable TZ12080 _timezone; } class Foo12080 { ST12080 bar; bool quux; public ST12080 sysTime() out {} body { if (quux) return ST12080(); return bar.opBinary(); // returned value is set to __result // --> Inliner wrongly created the second DeclarationExp for __result. } } /**********************************/ int main() { test1(); test2(); test3(); test4(); test5(); test9356(); test6(); test7(); test8(); test4841(); test11223(); test11314(); //test11224(); // XBUG: NRVO unimplemented. test11322(); //test11394(); // XBUG: NRVO unimplemented. printf("Success\n"); return 0; }
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/Utilities/FileIO.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/Utilities/FileIO~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/Utilities/FileIO~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/Utilities/FileIO~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/MySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentMySQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio-ssl-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
void main() { runSolver(); } void problem() { auto N = scan!long; alias Skill = Tuple!(long, "time", long[], "preSkills"); Skill[] S; foreach(i; 0..N) { auto t = scan!long; auto k = scan!long; S ~= Skill(t, scan!long(k).map!"a - 1".array); } auto solve() { bool[long] listed; bool[long] visited; for(auto q = DList!long(N - 1); !q.empty; ) { auto p = q.front; q.removeFront; if (p in visited) continue; visited[p] = true; listed[p] = true; foreach(n; S[p].preSkills) { if (!(n in visited)) q.insertBack(n); } } return listed.keys.map!(s => S[s].time).sum; } outputForAtCoder(&solve); } // ---------------------------------------------- import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdlib, std.math, std.typecons, std.numeric, std.traits, std.functional, std.bigint, std.datetime.stopwatch, core.time, core.bitop; T[][] combinations(T)(T[] s, in long m) { if (!m) return [[]]; if (s.empty) return []; return s[1 .. $].combinations(m - 1).map!(x => s[0] ~ x).array ~ s[1 .. $].combinations(m); } string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; } T scan(T)(){ return scan.to!T; } T[] scan(T)(long n){ return n.iota.map!(i => scan!T()).array; } void deb(T ...)(T t){ debug writeln(t); } alias Point = Tuple!(long, "x", long, "y"); Point invert(Point p) { return Point(p.y, p.x); } long[] divisors(long n) { long[] ret; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ret ~= i; if (i * i != n) ret ~= n / i; } } return ret.sort.array; } bool chmin(T)(ref T a, T b) { if (b < a) { a = b; return true; } else return false; } bool chmax(T)(ref T a, T b) { if (b > a) { a = b; return true; } else return false; } string charSort(alias S = "a < b")(string s) { return (cast(char[])((cast(byte[])s).sort!S.array)).to!string; } ulong comb(ulong a, ulong b) { if (b == 0) {return 1;}else{return comb(a - 1, b - 1) * a / b;}} string toAnswerString(R)(R r) { return r.map!"a.to!string".joiner(" ").array.to!string; } struct ModInt(uint MD) if (MD < int.max) {ulong v;this(string v) {this(v.to!long);}this(int v) {this(long(v));}this(long v) {this.v = (v%MD+MD)%MD;}void opAssign(long t) {v = (t%MD+MD)%MD;}static auto normS(ulong x) {return (x<MD)?x:x-MD;}static auto make(ulong x) {ModInt m; m.v = x; return m;}auto opBinary(string op:"+")(ModInt r) const {return make(normS(v+r.v));}auto opBinary(string op:"-")(ModInt r) const {return make(normS(v+MD-r.v));}auto opBinary(string op:"*")(ModInt r) const {return make((ulong(v)*r.v%MD).to!ulong);}auto opBinary(string op:"^^", T)(T r) const {long x=v;long y=1;while(r){if(r%2==1)y=(y*x)%MD;x=x^^2%MD;r/=2;} return make(y);}auto opBinary(string op:"/")(ModInt r) const {return this*memoize!inv(r);}static ModInt inv(ModInt x) {return x^^(MD-2);}string toString() const {return v.to!string;}auto opOpAssign(string op)(ModInt r) {return mixin ("this=this"~op~"r");}} alias MInt1 = ModInt!(10^^9 + 7); alias MInt9 = ModInt!(998_244_353); void outputForAtCoder(T)(T delegate() fn) { static if (is(T == float) || is(T == double) || is(T == real)) "%.16f".writefln(fn()); else static if (is(T == void)) fn(); else static if (is(T == string)) fn().writeln; else static if (isInputRange!T) { static if (!is(string == ElementType!T) && isInputRange!(ElementType!T)) foreach(r; fn()) r.toAnswerString.writeln; else foreach(r; fn()) r.writeln; } else fn().writeln; } void runSolver() { enum BORDER = "=================================="; debug { BORDER.writeln; while(!stdin.eof) { "<<< Process time: %s >>>".writefln(benchmark!problem(1)); BORDER.writeln; } } else problem(); } enum YESNO = [true: "Yes", false: "No"]; // -----------------------------------------------
D
/** * Copyright: (c) 2009 John Chapman * * License: See $(LINK2 ..\..\licence.txt, licence.txt) for use and distribution terms. */ module os.win.base.native; import os.win.base.core, std.traits, std.typetuple; import std.utf : toUTF8, toUTF16z; import std.string : toStringz; import os.windows : HIWORD, LOWORD, BOOL, RT_STRING, MAKEINTRESOURCEW, MAKEINTRESOURCE; static import std.string, std.conv; //pragma(lib, "kernel32.lib"); //pragma(lib, "advapi32.lib"); //pragma(lib, "shell32.lib"); //pragma(lib, "version.lib"); //pragma(lib, "crypt32.lib"); pragma(lib, "rulada.lib"); extern(Windows): const uint _WIN32_WINNT = 0x601; const uint _WIN32_WINDOWS = uint.max; const uint _WIN32_IE = 0x700; const uint WINVER = _WIN32_WINDOWS < _WIN32_WINNT ? _WIN32_WINDOWS : _WIN32_WINNT; const uint MAX_PATH = 260; //alias int BOOL; enum : BOOL { FALSE, TRUE } enum : uint { ERROR_SUCCESS = 0, ERROR_INVALID_FUNCTION = 1, ERROR_FILE_NOT_FOUND = 2, ERROR_PATH_NOT_FOUND = 3, ERROR_TOO_MANY_OPEN_FILES = 4, ERROR_ACCESS_DENIED = 5, ERROR_INVALID_HANDLE = 6, ERROR_NO_MORE_FILES = 18, ERROR_BAD_LENGTH = 24, ERROR_INSUFFICIENT_BUFFER = 122, ERROR_ALREADY_EXISTS = 183, ERROR_MORE_DATA = 234, ERROR_NO_MORE_ITEMS = 259, ERROR_IO_PENDING = 997, ERROR_CANCELLED = 1223, ERROR_BAD_IMPERSONATION_LEVEL = 1346, ERROR_CLASS_ALREADY_EXISTS = 1410, NTE_BAD_DATA = 0x80090005, NTE_BAD_SIGNATURE = 0x80090006 } enum : uint { FACILITY_NULL = 0, FACILITY_RPC = 1, FACILITY_DISPATCH = 2, FACILITY_STORAGE = 3, FACILITY_ITF = 4, FACILITY_WIN32 = 7, FACILITY_WINDOWS = 8, FACILITY_SSPI = 9, FACILITY_SECURITY = 9, FACILITY_CONTROL = 10, FACILITY_CERT = 11, FACILITY_INTERNET = 12, FACILITY_MEDIASERVER = 13, FACILITY_MSMQ = 14, FACILITY_SETUPAPI = 15, FACILITY_SCARD = 16, FACILITY_COMPLUS = 17, FACILITY_AAF = 18, FACILITY_URT = 19, FACILITY_ACS = 20, FACILITY_DPLAY = 21, FACILITY_UMI = 22, FACILITY_SXS = 23, FACILITY_WINDOWS_CE = 24, FACILITY_HTTP = 25, FACILITY_BACKGROUNDCOPY = 32, FACILITY_CONFIGURATION = 33, FACILITY_STATE_MANAGEMENT = 34, FACILITY_METADIRECTORY = 35, FACILITY_WINDOWSUPDATE = 36, FACILITY_DIRECTORYSERVICE = 37 } enum { SEVERITY_SUCCESS = 0, SEVERITY_ERROR = 1 } template MAKE_SCODE(uint sev, uint fac, uint code) { const MAKE_SCODE = ((sev << 31) | (fac << 16) | code); } version(D_Version2) { const Handle INVALID_HANDLE_VALUE = cast(Handle)-1; } else { extern(D) // Previous definition different const Handle INVALID_HANDLE_VALUE = cast(Handle)-1; } ubyte HIBYTE(ushort w) { return cast(ubyte)((w >> 8) & 0xFF); } ubyte LOBYTE(ushort w) { return cast(ubyte)(w & 0xFF); } short signedHIWORD(int n) { return cast(short)((n >> 16) & 0xFFFF); } short signedLOWORD(int n) { return cast(short)(n & 0xFFFF); } int MAKELPARAM(int a, int b) { return (a & 0xFFFF) | (b << 16); } ushort MAKEWORD(ubyte a, ubyte b) { return (a & 0xFF) | (b << 8); } /* version(D_Version2) { mixin(" const(wchar)* MAKEINTRESOURCEW(int i) { return cast(wchar*)cast(uint)cast(ushort)i; } "); } else { wchar* MAKEINTRESOURCEW(int i) { return cast(wchar*)cast(uint)cast(ushort)i; } } alias MAKEINTRESOURCEW MAKEINTRESOURCE; */ const wchar* RT_CURSOR = MAKEINTRESOURCE(1); const wchar* RT_BITMAP = MAKEINTRESOURCE(2); const wchar* RT_ICON = MAKEINTRESOURCE(3); const wchar* RT_MENU = MAKEINTRESOURCE(4); const wchar* RT_DIALOG = MAKEINTRESOURCE(5); //const wchar* RT_STRING = MAKEINTRESOURCE(6); const wchar* RT_FONTDIR = MAKEINTRESOURCE(7); const wchar* RT_FONT = MAKEINTRESOURCE(8); const wchar* RT_ACCELERATOR = MAKEINTRESOURCE(9); const wchar* RT_RCDATA = MAKEINTRESOURCE(10); const wchar* RT_MESSAGETABLE = MAKEINTRESOURCE(11); const wchar* RT_VERSION = MAKEINTRESOURCE(16); const wchar* RT_DLGINCLUDE = MAKEINTRESOURCE(17); const wchar* RT_PLUGPLAY = MAKEINTRESOURCE(19); const wchar* RT_VXD = MAKEINTRESOURCE(20); const wchar* RT_ANICURSOR = MAKEINTRESOURCE(21); const wchar* RT_ANIICON = MAKEINTRESOURCE(22); const wchar* RT_HTML = MAKEINTRESOURCE(23); const wchar* RT_MANIFEST = MAKEINTRESOURCE(24); struct FILETIME { uint dwLowDateTime; uint dwHighDateTime; } struct SYSTEMTIME { ushort wYear; ushort wMonth; ushort wDayOfWeek; ushort wDay; ushort wHour; ushort wMinute; ushort wSecond; ushort wMilliseconds; } void GetSystemTimeAsFileTime(out FILETIME lpSystemTimeAsFileTime); int FileTimeToLocalFileTime(ref FILETIME lpFileTime, out FILETIME lpLocalFileTime); int LocalFileTimeToFileTime(ref FILETIME lpLocalFileTime, out FILETIME lpFileTime); int SystemTimeToFileTime(ref SYSTEMTIME lpSystemTime, out FILETIME lpFileTime); int FileTimeToSystemTime(ref FILETIME lpFileTime, out SYSTEMTIME lpSystemTime); enum : uint { FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100, FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x00002000, FORMAT_MESSAGE_FROM_HMODULE = 0x00000800, FORMAT_MESSAGE_FROM_STRING = 0x00000400, FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000, FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200 } int FormatMessageW(uint dwFlags, in void* lpSource, uint dwMessageId, uint dwLanguageId, wchar* lpBuffer, uint nSize, void** Arguments); alias FormatMessageW FormatMessage; enum : uint { LMEM_FIXED = 0x0000, LMEM_MOVEABLE = 0x0002, LMEM_NOCOMPACT = 0x0010, LMEM_NODISCARD = 0x0020, LMEM_ZEROINIT = 0x0040, LMEM_MODIFY = 0x0080, LMEM_DISCARDABLE = 0x0F00, LMEM_VALID_FLAGS = 0x0F72, LMEM_INVALID_HANDLE = 0x8000 } Handle LocalAlloc(uint uFlags, size_t cb); Handle LocalFree(Handle hMem); void* LocalFree(void* hMem); enum : uint { GMEM_FIXED = 0x0000, GMEM_MOVEABLE = 0x0002, GMEM_NOCOMPACT = 0x0010, GMEM_NODISCARD = 0x0020, GMEM_ZEROINIT = 0x0040, GMEM_MODIFY = 0x0080, GMEM_DISCARDABLE = 0x0100, GMEM_NOT_BANKED = 0x1000, GMEM_SHARE = 0x2000, GMEM_DDESHARE = 0x2000, GMEM_NOTIFY = 0x4000, GMEM_LOWER = GMEM_NOT_BANKED, GMEM_VALID_FLAGS = 0x7F72, GMEM_INVALID_HANDLE = 0x8000 } Handle GlobalAlloc(uint uFlags, size_t dwBytes); Handle GlobalReAlloc(Handle hMem, size_t dwBytes, uint uFlags); size_t GlobalSize(Handle hMem); void* GlobalLock(Handle hMem); int GlobalUnlock(Handle hMem); Handle GlobalFree(Handle hMem); void* GlobalFree(void* hMem); enum : uint { HEAP_NO_SERIALIZE = 0x00000001, HEAP_GROWABLE = 0x00000002, HEAP_GENERATE_EXCEPTIONS = 0x00000004, HEAP_ZERO_MEMORY = 0x00000008, HEAP_REALLOC_IN_PLACE_ONLY = 0x00000010, HEAP_TAIL_CHECKING_ENABLED = 0x00000020, HEAP_FREE_CHECKING_ENABLED = 0x00000040, HEAP_DISABLE_COALESCE_ON_FREE = 0x00000080, HEAP_CREATE_ALIGN_16 = 0x00010000, HEAP_CREATE_ENABLE_TRACING = 0x00020000, HEAP_CREATE_ENABLE_EXECUTE = 0x00040000, HEAP_MAXIMUM_TAG = 0x0FFF, HEAP_PSEUDO_TAG_FLAG = 0x8000, HEAP_TAG_SHIFT = 18 } Handle HeapCreate(uint flOptions, size_t dwInitialSize, size_t dwMaximumSize); int HeapDestroy(Handle hHeap); Handle GetProcessHeap(); void* HeapAlloc(Handle hHeap, uint dwFlags, size_t dwBytes); int HeapFree(Handle hHeap, uint dwFlags, void* lpMem); uint GetLastError(); void SetLastError(uint); Handle LoadLibraryW(in wchar* lpLibFileName); alias LoadLibraryW LoadLibrary; int FreeLibrary(Handle hModule); enum : uint { DONT_RESOLVE_DLL_REFERENCES = 0x00000001, LOAD_LIBRARY_AS_DATAFILE = 0x00000002, LOAD_WITH_ALTERED_SEARCH_PATH = 0x00000008, LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x00000010, LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020, LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 0x00000040 } Handle LoadLibraryExW(in wchar* lpLibFileName, Handle hFile, uint dwFlags); alias LoadLibraryExW LoadLibraryEx; void* GetProcAddress(Handle hModule, in char* lpProcName); uint GetVersion(); struct OSVERSIONINFOW { uint dwOSVersionInfoSize = OSVERSIONINFOW.sizeof; uint dwMajorVersion; uint dwMinorVersion; uint dwBuildNumber; uint dwPlatformId; wchar[128] szCSDVersion; } alias OSVERSIONINFOW OSVERSIONINFO; struct OSVERSIONINFOEXW { uint dwOSVersionInfoSize = OSVERSIONINFOEXW.sizeof; uint dwMajorVersion; uint dwMinorVersion; uint dwBuildNumber; uint dwPlatformId; wchar[128] szCSDVersion; ushort wServicePackMajor; ushort wServicePackMinor; ushort wSuiteMask; ubyte wProductType; ubyte wReserved; } alias OSVERSIONINFOEXW OSVERSIONINFOEX; int GetVersionExW(ref OSVERSIONINFOW lpVersionInformation); int GetVersionExW(ref OSVERSIONINFOEXW lpVersionInformation); alias GetVersionExW GetVersionEx; uint GetFileVersionInfoSizeW(in wchar* lpstrFilename, uint* lpdwHandle); alias GetFileVersionInfoSizeW GetFileVersionInfoSize; int GetFileVersionInfoW(in wchar* lpstrFilename, uint dwHandle, uint dwLen, void* lpData); alias GetFileVersionInfoW GetFileVersionInfo; int VerQueryValueW(in void* pBlock, in wchar* lpSubBlock, void** lplpBuffer, out uint puLen); alias VerQueryValueW VerQueryValue; struct VS_FIXEDFILEINFO { uint dwSignature; uint dwStrucVersion; uint dwFileVersionMS; uint dwFileVersionLS; uint dwProductVersionMS; uint dwProductVersionLS; uint dwFileFlagsMask; uint dwFileFlags; uint dwFileOS; uint dwFileType; uint dwFileSubtype; uint dwFileDateMS; uint dwFileDateLS; } struct SECURITY_ATTRIBUTES { uint nLength; void* lpSecurityDescriptor; int bInheritHandle; } struct OVERLAPPED { uint Internal; uint InternalHigh; union { struct { uint Offset; uint OffsetHigh; } void* Pointer; } Handle hEvent; } enum : uint { FILE_LIST_DIRECTORY = 0x0001 } enum { GENERIC_READ = 0x80000000, GENERIC_WRITE = 0x40000000, GENERIC_EXECUTE = 0x20000000, GENERIC_ALL = 0x10000000 } enum : uint { FILE_SHARE_READ = 0x00000001, FILE_SHARE_WRITE = 0x00000002, FILE_SHARE_DELETE = 0x00000004 } enum : uint { FILE_FLAG_WRITE_THROUGH = 0x80000000, FILE_FLAG_OVERLAPPED = 0x40000000, FILE_FLAG_NO_BUFFERING = 0x20000000, FILE_FLAG_RANDOM_ACCESS = 0x10000000, FILE_FLAG_SEQUENTIAL_SCAN = 0x08000000, FILE_FLAG_DELETE_ON_CLOSE = 0x04000000, FILE_FLAG_BACKUP_SEMANTICS = 0x02000000, FILE_FLAG_POSIX_SEMANTICS = 0x01000000, FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000, FILE_FLAG_OPEN_NO_RECALL = 0x00100000, FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000 } enum : uint { CREATE_NEW = 1, CREATE_ALWAYS = 2, OPEN_EXISTING = 3, OPEN_ALWAYS = 4, TRUNCATE_EXISTING = 5 } Handle CreateFileW(in wchar* lpFileName, uint dwDesiredAccess, uint dwShareMode, SECURITY_ATTRIBUTES* lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, Handle hTemplateFile); alias CreateFileW CreateFile; int WriteFile(Handle hFile, in void* lpBuffer, uint nNumberOfBytesToWrite, out uint lpNumberOfBytesWritten, OVERLAPPED* lpOverlapped); int ReadFile(Handle hFile, in void* lpBuffer, uint nNumberOfBytesToRead, out uint lpNumberOfBytesRead, OVERLAPPED* lpOverlapped); enum : uint { FILE_BEGIN, FILE_CURRENT, FILE_END } uint SetFilePointer(Handle hFile, int lDistanceToMove, ref uint lpDistanceToMoveHigh, uint dwMoveMethod); int SetFilePointerEx(Handle hFile, long lDistanceToMove, out long lpNewFilePointer, uint dwMoveMethod); int GetFileSizeEx(Handle hFile, out long lpFileSize); int CloseHandle(Handle hObject); Handle GetModuleHandleW(in wchar* lpModuleName); alias GetModuleHandleW GetModuleHandle; uint GetModuleFileNameW(Handle hModule, wchar* lpFilename, uint nSize); alias GetModuleFileNameW GetModuleFileName; Handle LoadResource(Handle hModule, Handle hResInfo); uint SizeofResource(Handle hModule, Handle hResInfo); void* LockResource(Handle hResData); Handle FindResourceW(Handle hModule, in wchar* lpName, in wchar* lpType); alias FindResourceW FindResource; Handle FindResourceExW(Handle hModule, in wchar* lpName, in wchar* lpType, ushort wLanguage); alias FindResourceExW FindResourceEx; alias int function(Handle hModule, in wchar* lpType, int lParam) ENUMRESTYPEPROCW; alias ENUMRESTYPEPROCW ENUMRESTYPEPROC; int EnumResourceTypesW(Handle hModule, ENUMRESTYPEPROCW lpEnumFunc, int lParam); alias EnumResourceTypesW EnumResourceTypes; alias int function(Handle hModule, in wchar* lpType, wchar* lpName, int lParam) ENUMRESNAMEPROCW; alias ENUMRESNAMEPROCW ENUMRESNAMEPROC; int EnumResourceNamesW(Handle hModule, in wchar* lpType, ENUMRESNAMEPROCW lpEnumFunc, int lParam); alias EnumResourceNamesW EnumResourceNames; const uint TLS_OUT_OF_INDEXES = 0xFFFFFFFF; uint TlsAlloc(); int TlsFree(uint dwTlsIndex); void* TlsGetValue(uint dwTlsIndex); int TlsSetValue(uint dwTlsIndex, void* lpTlsValue); void Sleep(uint dwMilliseconds); uint SleepEx(uint dwMilliseconds, int bAlertable); int CancelIo(Handle hFile); Handle GetCurrentProcess(); uint GetCurrentProcessId(); Handle GetCurrentThread(); uint GetCurrentThreadId(); Handle CreateIoCompletionPort(Handle FileHandle, Handle ExistingCompletionPort, uint CompletionKey, uint NumberOfConcurrentThreads); int GetQueuedCompletionStatus(Handle CompletionPort, out uint lpNumberOfBytes, out uint lpCompletionKey, out OVERLAPPED* lpOverlapped, uint dwMilliseconds); const uint INFINITE = 0xFFFFFFFF; enum : uint { WAIT_OBJECT_0 = 0, WAIT_ABANDONED = 0x80, WAIT_ABANDONED_0 = 0x80, WAIT_TIMEOUT = 258 } uint WaitForSingleObject(Handle hHandle, uint dwMilliseconds); uint WaitForSingleObjectEx(Handle hHandle, uint dwMilliseconds, BOOL bAlertable); uint WaitForMultipleObjects(uint nCount, in Handle* lpHandles, BOOL bWaitAll, uint dwMilliseconds); uint WaitForMultipleObjectsEx(uint nCount, in Handle* lpHandles, BOOL bWaitAll, uint dwMilliseconds, BOOL bAlertable); uint SignalObjectAndWait(Handle hObjectToSignal, Handle hObjectToWaitOn, uint dwMilliseconds, BOOL bAlertable); enum : uint { QS_KEY = 0x0001, QS_MOUSEMOVE = 0x0002, QS_MOUSEBUTTON = 0x0004, QS_POSTMESSAGE = 0x0008, QS_TIMER = 0x0010, QS_PAINT = 0x0020, QS_SENDMESSAGE = 0x0040, QS_HOTKEY = 0x0080, QS_ALLPOSTMESSAGE = 0x0100, QS_MOUSE = QS_MOUSEMOVE | QS_MOUSEBUTTON, QS_INPUT = QS_MOUSE | QS_KEY, QS_ALLEVENTS = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY, QS_ALLINPUT = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE } uint MsgWaitForMultipleObjects(uint nCount, in Handle* pHandles, BOOL fWaitAll, uint dwMilliseconds, uint dwWakeMask); enum : uint { MWMO_WAITALL = 0x0001, MWMO_ALERTABLE = 0x0002, MWMO_INPUTAVAILABLE = 0x0004 } //uint MsgWaitForMultipleObjectsEx(uint nCount, in Handle* pHandles, BOOL fWaitAll, uint dwMilliseconds, uint dwWakeMask, uint dwFlags); Handle CreateEventW(SECURITY_ATTRIBUTES* lpEventAttributes, int bManualReset, int bInitialState, in wchar* lpName); alias CreateEventW CreateEvent; int SetEvent(Handle hEvent); int ResetEvent(Handle hEvent); Handle CreateMutexW(SECURITY_ATTRIBUTES* lpMutexAttributes, int bInitialOwner, in wchar* lpName); alias CreateMutexW CreateMutex; enum : uint { MUTEX_MODIFY_STATE = 0x0001 } Handle OpenMutexW(uint dwDesiredAccess, int bInheritHandle, in wchar* lpName); alias OpenMutexW OpenMutex; int ReleaseMutex(Handle hMutex); Handle CreateSemaphoreW(SECURITY_ATTRIBUTES* lpSemaphoreAttributes, int lInitialCount, int lMaximumCount, in wchar* lpName); alias CreateSemaphoreW CreateSemaphore; int ReleaseSemaphore(Handle hSemaphore, int lReleaseCount, out int lpPreviousCount); alias void function(void* lpParameter, int TimerOrWaitFired) WAITORTIMERCALLBACK; int CreateTimerQueueTimer(out Handle phNewTimer, Handle TimerQueue, WAITORTIMERCALLBACK Callback, void* Parameter, uint DueTime, uint Period, uint Flags); int DeleteTimerQueueTimer(Handle TimerQueue, Handle Timer, Handle CompletionEvent); int ChangeTimerQueueTimer(Handle TimerQueue, Handle Timer, uint DueTime, uint Period); struct POINT { int x; int y; } struct SIZE { int cx; int cy; } struct RECT { int left; int top; int right; int bottom; } template MAKELCID(ushort lgid, ushort srtid) { const MAKELCID = (srtid << 16) | lgid; } template MAKELANGID(ushort p, ushort s) { const MAKELANGID = (s << 10) | p; } extern ushort SUBLANGID(ushort lgid); enum : uint { LCID_INSTALLED = 0x00000001, LCID_SUPPORTED = 0x00000002, LCID_ALTERNATE_SORTS = 0x00000004 } enum : ushort { SUBLANG_NEUTRAL = 0x00, SUBLANG_DEFAULT = 0x01, SUBLANG_SYS_DEFAULT = 0x02, } enum : ushort { LANG_NEUTRAL = 0x00, LANG_INVARIANT = 0x7f, LANG_SYSTEM_DEFAULT = MAKELANGID!(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT), LANG_USER_DEFAULT = MAKELANGID!(LANG_NEUTRAL, SUBLANG_DEFAULT), LANG_AFRIKAANS = 0x36, LANG_ALBANIAN = 0x1c, LANG_ALSATIAN = 0x84, LANG_AMHARIC = 0x5e, LANG_ARABIC = 0x01, LANG_ARMENIAN = 0x2b, LANG_ASSAMESE = 0x4d, LANG_AZERI = 0x2c, LANG_BASHKIR = 0x6d, LANG_BASQUE = 0x2d, LANG_BELARUSIAN = 0x23, LANG_BENGALI = 0x45, LANG_BRETON = 0x7e, LANG_BOSNIAN = 0x1a, LANG_BOSNIAN_NEUTRAL = 0x781a, LANG_BULGARIAN = 0x02, LANG_CATALAN = 0x03, LANG_CHINESE = 0x04, LANG_CHINESE_SIMPLIFIED = 0x04, LANG_CHINESE_TRADITIONAL = 0x7c04, LANG_CORSICAN = 0x83, LANG_CROATIAN = 0x1a, LANG_CZECH = 0x05, LANG_DANISH = 0x06, LANG_DARI = 0x8c, LANG_DIVEHI = 0x65, LANG_DUTCH = 0x13, LANG_ENGLISH = 0x09, LANG_ESTONIAN = 0x25, LANG_FAEROESE = 0x38, LANG_FARSI = 0x29, LANG_FILIPINO = 0x64, LANG_FINNISH = 0x0b, LANG_FRENCH = 0x0c, LANG_FRISIAN = 0x62, LANG_GALICIAN = 0x56, LANG_GEORGIAN = 0x37, LANG_GERMAN = 0x07, LANG_GREEK = 0x08, LANG_GREENLANDIC = 0x6f, LANG_GUJARATI = 0x47, LANG_HAUSA = 0x68, LANG_HEBREW = 0x0d, LANG_HINDI = 0x39, LANG_HUNGARIAN = 0x0e, LANG_ICELANDIC = 0x0f, LANG_IGBO = 0x70, LANG_INDONESIAN = 0x21, LANG_INUKTITUT = 0x5d, LANG_IRISH = 0x3c, LANG_ITALIAN = 0x10, LANG_JAPANESE = 0x11, LANG_KANNADA = 0x4b, LANG_KASHMIRI = 0x60, LANG_KAZAK = 0x3f, LANG_KHMER = 0x53, LANG_KICHE = 0x86, LANG_KINYARWANDA = 0x87, LANG_KONKANI = 0x57, LANG_KOREAN = 0x12, LANG_KYRGYZ = 0x40, LANG_LAO = 0x54, LANG_LATVIAN = 0x26, LANG_LITHUANIAN = 0x27, LANG_LOWER_SORBIAN = 0x2e, LANG_LUXEMBOURGISH = 0x6e, LANG_MACEDONIAN = 0x2f, LANG_MALAY = 0x3e, LANG_MALAYALAM = 0x4c, LANG_MALTESE = 0x3a, LANG_MANIPURI = 0x58, LANG_MAORI = 0x81, LANG_MAPUDUNGUN = 0x7a, LANG_MARATHI = 0x4e, LANG_MOHAWK = 0x7c, LANG_MONGOLIAN = 0x50, LANG_NEPALI = 0x61, LANG_NORWEGIAN = 0x14, LANG_OCCITAN = 0x82, LANG_ORIYA = 0x48, LANG_PASHTO = 0x63, LANG_PERSIAN = 0x29, LANG_POLISH = 0x15, LANG_PORTUGUESE = 0x16, LANG_PUNJABI = 0x46, LANG_QUECHUA = 0x6b, LANG_ROMANIAN = 0x18, LANG_ROMANSH = 0x17, LANG_RUSSIAN = 0x19, LANG_SAMI = 0x3b, LANG_SANSKRIT = 0x4f, LANG_SERBIAN = 0x1a, LANG_SERBIAN_NEUTRAL = 0x7c1a, LANG_SINDHI = 0x59, LANG_SINHALESE = 0x5b, LANG_SLOVAK = 0x1b, LANG_SLOVENIAN = 0x24, LANG_SOTHO = 0x6c, LANG_SPANISH = 0x0a, LANG_SWAHILI = 0x41, LANG_SWEDISH = 0x1d, LANG_SYRIAC = 0x5a, LANG_TAJIK = 0x28, LANG_TAMAZIGHT = 0x5f, LANG_TAMIL = 0x49, LANG_TATAR = 0x44, LANG_TELUGU = 0x4a, LANG_THAI = 0x1e, LANG_TIBETAN = 0x51, LANG_TIGRIGNA = 0x73, LANG_TSWANA = 0x32, LANG_TURKISH = 0x1f, LANG_TURKMEN = 0x42, LANG_UIGHUR = 0x80, LANG_UKRAINIAN = 0x22, LANG_UPPER_SORBIAN = 0x2e, LANG_URDU = 0x20, LANG_UZBEK = 0x43, LANG_VIETNAMESE = 0x2a, LANG_WELSH = 0x52, LANG_WOLOF = 0x88, LANG_XHOSA = 0x34, LANG_YAKUT = 0x85, LANG_YI = 0x78, LANG_YORUBA = 0x6a, LANG_ZULU = 0x35 } enum : ushort { SORT_DEFAULT = 0x0 } enum : uint { LOCALE_USER_DEFAULT = MAKELCID!(LANG_USER_DEFAULT, SORT_DEFAULT), LOCALE_SYSTEM_DEFAULT = MAKELCID!(LANG_SYSTEM_DEFAULT, SORT_DEFAULT), LOCALE_NEUTRAL = MAKELCID!(MAKELANGID!(LANG_NEUTRAL, SUBLANG_NEUTRAL), SORT_DEFAULT), LOCALE_INVARIANT = MAKELCID!(MAKELANGID!(LANG_INVARIANT, SUBLANG_NEUTRAL), SORT_DEFAULT) } enum : uint { LOCALE_NOUSEROVERRIDE = 0x80000000, LOCALE_USE_CP_ACP = 0x40000000, LOCALE_RETURN_NUMBER = 0x20000000, LOCALE_ILANGUAGE = 0x00000001, LOCALE_SLANGUAGE = 0x00000002, LOCALE_SENGLANGUAGE = 0x00001001, LOCALE_SABBREVLANGNAME = 0x00000003, LOCALE_SNATIVELANGNAME = 0x00000004, LOCALE_ICOUNTRY = 0x00000005, LOCALE_SCOUNTRY = 0x00000006, LOCALE_SENGCOUNTRY = 0x00001002, LOCALE_SABBREVCTRYNAME = 0x00000007, LOCALE_SNATIVECTRYNAME = 0x00000008, LOCALE_IGEOID = 0x0000005B, LOCALE_IDEFAULTLANGUAGE = 0x00000009, LOCALE_IDEFAULTCOUNTRY = 0x0000000A, LOCALE_IDEFAULTCODEPAGE = 0x0000000B, LOCALE_IDEFAULTANSICODEPAGE = 0x00001004, LOCALE_IDEFAULTMACCODEPAGE = 0x00001011, LOCALE_SLIST = 0x0000000C, LOCALE_IMEASURE = 0x0000000D, LOCALE_SDECIMAL = 0x0000000E, LOCALE_STHOUSAND = 0x0000000F, LOCALE_SGROUPING = 0x00000010, LOCALE_IDIGITS = 0x00000011, LOCALE_ILZERO = 0x00000012, LOCALE_INEGNUMBER = 0x00001010, LOCALE_SNATIVEDIGITS = 0x00000013, LOCALE_SCURRENCY = 0x00000014, LOCALE_SINTLSYMBOL = 0x00000015, LOCALE_SMONDECIMALSEP = 0x00000016, LOCALE_SMONTHOUSANDSEP = 0x00000017, LOCALE_SMONGROUPING = 0x00000018, LOCALE_ICURRDIGITS = 0x00000019, LOCALE_IINTLCURRDIGITS = 0x0000001A, LOCALE_ICURRENCY = 0x0000001B, LOCALE_INEGCURR = 0x0000001C, LOCALE_SDATE = 0x0000001D, LOCALE_STIME = 0x0000001E, LOCALE_SSHORTDATE = 0x0000001F, LOCALE_SLONGDATE = 0x00000020, LOCALE_STIMEFORMAT = 0x00001003, LOCALE_IDATE = 0x00000021, LOCALE_ILDATE = 0x00000022, LOCALE_ITIME = 0x00000023, LOCALE_ITIMEMARKPOSN = 0x00001005, LOCALE_ICENTURY = 0x00000024, LOCALE_ITLZERO = 0x00000025, LOCALE_IDAYLZERO = 0x00000026, LOCALE_IMONLZERO = 0x00000027, LOCALE_S1159 = 0x00000028, LOCALE_S2359 = 0x00000029, LOCALE_ICALENDARTYPE = 0x00001009, LOCALE_IOPTIONALCALENDAR = 0x0000100B, LOCALE_IFIRSTDAYOFWEEK = 0x0000100C, LOCALE_IFIRSTWEEKOFYEAR = 0x0000100D, LOCALE_SDAYNAME1 = 0x0000002A, LOCALE_SDAYNAME2 = 0x0000002B, LOCALE_SDAYNAME3 = 0x0000002C, LOCALE_SDAYNAME4 = 0x0000002D, LOCALE_SDAYNAME5 = 0x0000002E, LOCALE_SDAYNAME6 = 0x0000002F, LOCALE_SDAYNAME7 = 0x00000030, LOCALE_SABBREVDAYNAME1 = 0x00000031, LOCALE_SABBREVDAYNAME2 = 0x00000032, LOCALE_SABBREVDAYNAME3 = 0x00000033, LOCALE_SABBREVDAYNAME4 = 0x00000034, LOCALE_SABBREVDAYNAME5 = 0x00000035, LOCALE_SABBREVDAYNAME6 = 0x00000036, LOCALE_SABBREVDAYNAME7 = 0x00000037, LOCALE_SMONTHNAME1 = 0x00000038, LOCALE_SMONTHNAME2 = 0x00000039, LOCALE_SMONTHNAME3 = 0x0000003A, LOCALE_SMONTHNAME4 = 0x0000003B, LOCALE_SMONTHNAME5 = 0x0000003C, LOCALE_SMONTHNAME6 = 0x0000003D, LOCALE_SMONTHNAME7 = 0x0000003E, LOCALE_SMONTHNAME8 = 0x0000003F, LOCALE_SMONTHNAME9 = 0x00000040, LOCALE_SMONTHNAME10 = 0x00000041, LOCALE_SMONTHNAME11 = 0x00000042, LOCALE_SMONTHNAME12 = 0x00000043, LOCALE_SMONTHNAME13 = 0x0000100E, LOCALE_SABBREVMONTHNAME1 = 0x00000044, LOCALE_SABBREVMONTHNAME2 = 0x00000045, LOCALE_SABBREVMONTHNAME3 = 0x00000046, LOCALE_SABBREVMONTHNAME4 = 0x00000047, LOCALE_SABBREVMONTHNAME5 = 0x00000048, LOCALE_SABBREVMONTHNAME6 = 0x00000049, LOCALE_SABBREVMONTHNAME7 = 0x0000004A, LOCALE_SABBREVMONTHNAME8 = 0x0000004B, LOCALE_SABBREVMONTHNAME9 = 0x0000004C, LOCALE_SABBREVMONTHNAME10 = 0x0000004D, LOCALE_SABBREVMONTHNAME11 = 0x0000004E, LOCALE_SABBREVMONTHNAME12 = 0x0000004F, LOCALE_SABBREVMONTHNAME13 = 0x0000100F, LOCALE_SPOSITIVESIGN = 0x00000050, LOCALE_SNEGATIVESIGN = 0x00000051, LOCALE_IPOSSIGNPOSN = 0x00000052, LOCALE_INEGSIGNPOSN = 0x00000053, LOCALE_IPOSSYMPRECEDES = 0x00000054, LOCALE_IPOSSEPBYSPACE = 0x00000055, LOCALE_INEGSYMPRECEDES = 0x00000056, LOCALE_INEGSEPBYSPACE = 0x00000057, LOCALE_FONTSIGNATURE = 0x00000058, LOCALE_SISO639LANGNAME = 0x00000059, LOCALE_SISO3166CTRYNAME = 0x0000005A, LOCALE_IDEFAULTEBCDICCODEPAGE= 0x00001012, LOCALE_IPAPERSIZE = 0x0000100A, LOCALE_SENGCURRNAME = 0x00001007, LOCALE_SNATIVECURRNAME = 0x00001008, LOCALE_SYEARMONTH = 0x00001006, LOCALE_SSORTNAME = 0x00001013, LOCALE_IDIGITSUBSTITUTION = 0x00001014, LOCALE_SNAME = 0x0000005c, LOCALE_SDURATION = 0x0000005d, LOCALE_SKEYBOARDSTOINSTALL = 0x0000005e, LOCALE_SSHORTESTDAYNAME1 = 0x00000060, LOCALE_SSHORTESTDAYNAME2 = 0x00000061, LOCALE_SSHORTESTDAYNAME3 = 0x00000062, LOCALE_SSHORTESTDAYNAME4 = 0x00000063, LOCALE_SSHORTESTDAYNAME5 = 0x00000064, LOCALE_SSHORTESTDAYNAME6 = 0x00000065, LOCALE_SSHORTESTDAYNAME7 = 0x00000066, LOCALE_SISO639LANGNAME2 = 0x00000067, LOCALE_SISO3166CTRYNAME2 = 0x00000068, LOCALE_SNAN = 0x00000069, LOCALE_SPOSINFINITY = 0x0000006a, LOCALE_SNEGINFINITY = 0x0000006b, LOCALE_SSCRIPTS = 0x0000006c, LOCALE_SPARENT = 0x0000006d, LOCALE_SCONSOLEFALLBACKNAME = 0x0000006e, LOCALE_SLANGDISPLAYNAME = 0x0000006f } int GetLocaleInfoW(uint Locale, uint LCType, wchar* lpLCData, int cchData); alias GetLocaleInfoW GetLocaleInfo; alias int function(wchar*) LOCALE_ENUMPROCW; alias LOCALE_ENUMPROCW LOCALE_ENUMPROC; int EnumSystemLocalesW(LOCALE_ENUMPROCW lpLocaleEnumProc, uint dwFlags); alias EnumSystemLocalesW EnumSystemLocales; enum : uint { CAL_NOUSEROVERRIDE = LOCALE_NOUSEROVERRIDE, CAL_ICALINTVALUE = 0x00000001, CAL_SCALNAME = 0x00000002, CAL_IYEAROFFSETRANGE = 0x00000003, CAL_SERASTRING = 0x00000004, CAL_SSHORTDATE = 0x00000005, CAL_SLONGDATE = 0x00000006, CAL_SDAYNAME1 = 0x00000007, CAL_SDAYNAME2 = 0x00000008, CAL_SDAYNAME3 = 0x00000009, CAL_SDAYNAME4 = 0x0000000a, CAL_SDAYNAME5 = 0x0000000b, CAL_SDAYNAME6 = 0x0000000c, CAL_SDAYNAME7 = 0x0000000d, CAL_SABBREVDAYNAME1 = 0x0000000e, CAL_SABBREVDAYNAME2 = 0x0000000f, CAL_SABBREVDAYNAME3 = 0x00000010, CAL_SABBREVDAYNAME4 = 0x00000011, CAL_SABBREVDAYNAME5 = 0x00000012, CAL_SABBREVDAYNAME6 = 0x00000013, CAL_SABBREVDAYNAME7 = 0x00000014, CAL_SMONTHNAME1 = 0x00000015, CAL_SMONTHNAME2 = 0x00000016, CAL_SMONTHNAME3 = 0x00000017, CAL_SMONTHNAME4 = 0x00000018, CAL_SMONTHNAME5 = 0x00000019, CAL_SMONTHNAME6 = 0x0000001a, CAL_SMONTHNAME7 = 0x0000001b, CAL_SMONTHNAME8 = 0x0000001c, CAL_SMONTHNAME9 = 0x0000001d, CAL_SMONTHNAME10 = 0x0000001e, CAL_SMONTHNAME11 = 0x0000001f, CAL_SMONTHNAME12 = 0x00000020, CAL_SMONTHNAME13 = 0x00000021, CAL_SABBREVMONTHNAME1 = 0x00000022, CAL_SABBREVMONTHNAME2 = 0x00000023, CAL_SABBREVMONTHNAME3 = 0x00000024, CAL_SABBREVMONTHNAME4 = 0x00000025, CAL_SABBREVMONTHNAME5 = 0x00000026, CAL_SABBREVMONTHNAME6 = 0x00000027, CAL_SABBREVMONTHNAME7 = 0x00000028, CAL_SABBREVMONTHNAME8 = 0x00000029, CAL_SABBREVMONTHNAME9 = 0x0000002a, CAL_SABBREVMONTHNAME10 = 0x0000002b, CAL_SABBREVMONTHNAME11 = 0x0000002c, CAL_SABBREVMONTHNAME12 = 0x0000002d, CAL_SABBREVMONTHNAME13 = 0x0000002e, CAL_SYEARMONTH = 0x0000002f, CAL_ITWODIGITYEARMAX = 0x00000030, CAL_SSHORTESTDAYNAME1 = 0x00000031, CAL_SSHORTESTDAYNAME2 = 0x00000032, CAL_SSHORTESTDAYNAME3 = 0x00000033, CAL_SSHORTESTDAYNAME4 = 0x00000034, CAL_SSHORTESTDAYNAME5 = 0x00000035, CAL_SSHORTESTDAYNAME6 = 0x00000036, CAL_SSHORTESTDAYNAME7 = 0x00000037, ENUM_ALL_CALENDARS = 0xffffffff } enum : uint { CAL_GREGORIAN = 1, CAL_GREGORIAN_US = 2, CAL_JAPAN = 3, CAL_TAIWAN = 4, CAL_KOREA = 5, CAL_HIJRI = 6, CAL_THAI = 7, CAL_HEBREW = 8, CAL_GREGORIAN_ME_FRENCH = 9, CAL_GREGORIAN_ARABIC = 10, CAL_GREGORIAN_XLIT_ENGLISH = 11, CAL_GREGORIAN_XLIT_FRENCH = 12, CAL_UMALQURA = 23 // Vista+ } int GetCalendarInfoW(uint Locale, uint Calendar, uint CalType, wchar* lpCalData, int cchData, uint* lpValue); alias GetCalendarInfoW GetCalendarInfo; int SetCalendarInfoW(uint Locale, uint Calendar, uint CalType, wchar* lpCalData); alias SetCalendarInfoW SetCalendarInfo; enum : uint { DATE_SHORTDATE = 0x00000001, DATE_LONGDATE = 0x00000002, DATE_USE_ALT_CALENDAR = 0x00000004 } int GetDateFormatW(uint Locale, uint dwFlags, SYSTEMTIME* lpDate, in wchar* lpFormat, wchar* lpDateStr, int cchDate); alias GetDateFormatW GetDateFormat; enum : uint { GEO_NATION = 0x0001, GEO_LATITUDE = 0x0002, GEO_LONGITUDE = 0x0003, GEO_ISO2 = 0x0004, GEO_ISO3 = 0x0005, GEO_RFC1766 = 0x0006, GEO_LCID = 0x0007, GEO_FRIENDLYNAME = 0x0008, GEO_OFFICIALNAME = 0x0009, GEO_TIMEZONES = 0x000A, GEO_OFFICIALLANGUAGES = 0x000B } alias int function(wchar* lpCalendarInfoString) CALINFO_ENUMPROCW; alias int function(wchar* lpCalendarInfoString, uint Calendar) CALINFO_ENUMPROCEXW; int EnumCalendarInfoW(CALINFO_ENUMPROCW lpCalInfoEnumProc, uint Locale, uint Calendar, uint CalType); alias EnumCalendarInfoW EnumCalendarInfo; int EnumCalendarInfoExW(CALINFO_ENUMPROCEXW lpCalInfoEnumProcEx, uint Locale, uint Calendar, uint CalType); alias EnumCalendarInfoExW EnumCalendarInfoEx; alias int function(wchar* lpDateFormatString, uint CalendarId) DATEFMT_ENUMPROCEXW; int EnumDateFormatsExW(DATEFMT_ENUMPROCEXW lpDateFmtEnumProcEx, uint Locale, uint dwFlags); alias EnumDateFormatsExW EnumDateFormatsEx; alias int function(wchar* lpTimeFormatString) TIMEFMT_ENUMPROCW; int EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, uint Locale, uint dwFlags); alias EnumTimeFormatsW EnumTimeFormats; enum : uint { TIME_ZONE_ID_INVALID = cast(uint)0xffffffff } struct TIME_ZONE_INFORMATION { int Bias; wchar[32] StandardName; SYSTEMTIME StandardDate; int StandardBias; wchar[32] DaylightName; SYSTEMTIME DaylightDate; int DaylightBias; } uint GetTimeZoneInformation(out TIME_ZONE_INFORMATION lpTimeZoneInformation); uint GetThreadLocale(); int SetThreadLocale(uint Locale); uint GetUserDefaultLCID(); ushort GetUserDefaultLangID(); ushort GetSystemDefaultLangID(); enum : uint { NORM_IGNORECASE = 0x00000001, NORM_IGNORENONSPACE = 0x00000002, NORM_IGNORESYMBOLS = 0x00000004, NORM_IGNOREKANATYPE = 0x00010000, NORM_IGNOREWIDTH = 0x00020000, NORM_LINGUISTIC_CASING = 0x08000000 } enum { CP_ACP = 0, CP_OEMCP = 1, CP_MACCP = 2, CP_THREAD_ACP = 3, CP_SYMBOL = 42, CP_UTF7 = 65000, CP_UTF8 = 65001 } struct CPINFO { uint MaxCharSize; ubyte[2] DefaultChar; ubyte[12] LeadByte; } int GetCPInfo(uint CodePage, out CPINFO lpCPInfo); uint GetACP(); int CompareStringW(uint Locale, uint dwCmpFlags, in wchar* lpString1, int cchCount1, in wchar* lpString2, int cchCount2); alias CompareStringW CompareString; enum : uint { LCMAP_LOWERCASE = 0x00000100, LCMAP_UPPERCASE = 0x00000200, LCMAP_SORTKEY = 0x00000400, LCMAP_BYTEREV = 0x00000800, LCMAP_HIRAGANA = 0x00100000, LCMAP_KATAKANA = 0x00200000, LCMAP_HALFWIDTH = 0x00400000, LCMAP_FULLWIDTH = 0x00800000, LCMAP_LINGUISTIC_CASING = 0x01000000, LCMAP_SIMPLIFIED_CHINESE = 0x02000000, LCMAP_TRADITIONAL_CHINESE = 0x04000000 } int LCMapStringW(uint Locale, uint dwMapFlags, in wchar* lpSrcStr, int cchSrc, wchar* lpDestStr, int cchDest); alias LCMapStringW LCMapString; int MultiByteToWideChar(uint CodePage, uint dwFlags, in char* lpMultiByteStr, int cbMultiByte, wchar* lpWideCharStr, int cchWideChar); enum : uint { WC_DISCARDNS = 0x00000010, WC_SEPCHARS = 0x00000020, WC_DEFAULTCHAR = 0x00000040, WC_COMPOSITECHECK = 0x00000200 } int WideCharToMultiByte(uint CodePage, uint dwFlags, in wchar* lpWideCharStr, int cchWideChar, char* lpMultiByteStr, int cbMultiByte, char* lpDefaultChar, int* lpUseDefaultChar); int InterlockedIncrement(ref int Addend); int InterlockedDecrement(ref int Addend); struct ACL { ubyte AclRevision; ubyte Sbsz1; ushort AclSize; ushort AceCount; ushort Sbsz2; } struct SECURITY_DESCRIPTOR { ubyte Revision; ubyte Sbz1; ushort Control; void* Owner; void* Group; ACL* Sacl; ACL* Dacl; } struct COAUTHIDENTITY { wchar* User; uint UserLength; wchar* Domain; uint DomainLength; wchar* Password; uint PasswordLength; uint Flags; } struct COAUTHINFO { uint dwAuthnSvc; uint dwAuthzSvc; wchar* pwszServerPrincName; uint dwAuthnLevel; uint dwImpersonationLevel; COAUTHIDENTITY* pAuthIdentityData; uint dwCapabilities; } enum : uint { FILE_ATTRIBUTE_READONLY = 0x00000001, FILE_ATTRIBUTE_HIDDEN = 0x00000002, FILE_ATTRIBUTE_SYSTEM = 0x00000004, FILE_ATTRIBUTE_DIRECTORY = 0x00000010, FILE_ATTRIBUTE_ARCHIVE = 0x00000020, FILE_ATTRIBUTE_DEVICE = 0x00000040, FILE_ATTRIBUTE_NORMAL = 0x00000080, FILE_ATTRIBUTE_TEMPORARY = 0x00000100, FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200, FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400, FILE_ATTRIBUTE_COMPRESSED = 0x00000800, FILE_ATTRIBUTE_OFFLINE = 0x00001000, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000, FILE_ATTRIBUTE_ENCRYPTED = 0x00004000, FILE_ATTRIBUTE_VIRTUAL = 0x00010000 } int FindClose(Handle hFindFile); struct WIN32_FIND_DATAW { uint dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; uint nFileSizeHigh; uint nFileSizeLow; uint dwReserved0; uint dwReserved1; wchar[MAX_PATH] cFileName; wchar[14] cAlternateFileName; } alias WIN32_FIND_DATAW WIN32_FIND_DATA; Handle FindFirstFileW(in wchar* lpFileName, out WIN32_FIND_DATA lpFileFileData); alias FindFirstFileW FindFirstFile; int FindNextFileW(Handle hFindFile, out WIN32_FIND_DATA lpFindFileData); alias FindNextFileW FindNextFile; struct WIN32_FILE_ATTRIBUTE_DATA { uint dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; uint nFileSizeHigh; uint nFileSizeLow; } enum : uint { STD_INPUT_HANDLE = -10, STD_OUTPUT_HANDLE = -11, STD_ERROR_HANDLE = -12 } Handle GetStdHandle(uint nStdHandle); struct COORD { short X; short Y; } struct SMALL_RECT { short Left; short Top; short Right; short Bottom; } struct CONSOLE_SCREEN_BUFFER_INFO { COORD dwSize; COORD dwCursorPosition; ushort wAttributes; SMALL_RECT srWindow; COORD dwMaximumWindowSize; } enum : ushort { FOREGROUND_BLUE = 0x0001, FOREGROUND_GREEN = 0x0002, FOREGROUND_RED = 0x0004, FOREGROUND_INTENSITY = 0x0008, FOREGROUND_MASK = 0x000F, BACKGROUND_BLUE = 0x0010, BACKGROUND_GREEN = 0x0020, BACKGROUND_RED = 0x0040, BACKGROUND_INTENSITY = 0x0080, BACKGROUND_MASK = 0x00F0 } int GetConsoleScreenBufferInfo(Handle hConsoleOutput, out CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo); int SetConsoleWindowInfo(Handle hConsoleOutput, int bAbsolute, ref SMALL_RECT lpConsoleWindow); int SetConsoleScreenBufferSize(Handle hConsoleOutput, COORD dwSize); int SetConsoleTextAttribute(Handle hConsoleOutput, ushort wAttributes); int FillConsoleOutputCharacterW(Handle hConsoleOutput, wchar cCharacter, uint nLength, COORD dwWriteCoord, out uint lpNumberOfCharsWritten); alias FillConsoleOutputCharacterW FillConsoleOutputCharacter; int FillConsoleOutputAttribute(Handle hConsoleOutput, ushort wAttribute, int nLength, COORD dwWriteCoord, out uint lpNumberOfAttrsWritten); int SetConsoleCursorPosition(Handle hConsoleOutput, COORD dwCursorPosition); uint GetConsoleTitleW(wchar* lpConsoleTitle, uint nSize); alias GetConsoleTitleW GetConsoleTitle; int SetConsoleTitleW(in wchar* lpConsoleTitle); alias SetConsoleTitleW SetConsoleTitle; uint GetConsoleOutputCP(); int SetConsoleOutputCP(uint wCodePageID); // wFunc enum : uint { FO_MOVE = 0x0001, FO_COPY = 0x0002, FO_DELETE = 0x0003, FO_RENAME = 0x0004 } // fFlags enum : uint { FOF_MULTIDESTFILES = 0x0001, FOF_CONFIRMMOUSE = 0x0002, FOF_SILENT = 0x0004, FOF_RENAMEONCOLLISION = 0x0008, FOF_NOCONFIRMATION = 0x0010, FOF_WANTMAPPINGHANDLE = 0x0020, FOF_ALLOWUNDO = 0x0040, FOF_FILESONLY = 0x0080, FOF_SIMPLEPROGRESS = 0x0100, FOF_NOCONFIRMMKDIR = 0x0200, FOF_NOERRORUI = 0x0400, FOF_NOCOPYSECURITYATTRIBS = 0x0800, FOF_NORECURSION = 0x1000, FOF_NO_CONNECTED_ELEMENTS = 0x2000, FOF_WANTNUKEWARNING = 0x4000, FOF_NORECURSEREPARSE = 0x8000 } struct SHFILEOPSTRUCTW { Handle hwnd; uint wFunc; version(D_Version2) { mixin(" const(wchar)* pFrom; const(wchar)* pTo; "); } else { wchar* pFrom; wchar* pTo; } uint fFlags; BOOL fAnyOperationsAborted; void* hNameMappings; wchar* lpszProgressTitle; } alias SHFILEOPSTRUCTW SHFILEOPSTRUCT; int SHFileOperationW(ref SHFILEOPSTRUCTW lpFileOp); alias SHFileOperationW SHFileOperation; int SetFileAttributesW(in wchar* lpFileName, uint dwFileAttributes); alias SetFileAttributesW SetFileAttributes; int GetFileAttributesExW(in wchar* lpFileName, int fInfoLevelId, ref WIN32_FILE_ATTRIBUTE_DATA lpFileInformation); alias GetFileAttributesExW GetFileAttributesEx; enum : uint { REPLACEFILE_WRITE_THROUGH = 0x00000001, REPLACEFILE_IGNORE_MERGE_ERRORS = 0x00000002, REPLACEFILE_IGNORE_ACL_ERRORS = 0x00000004 } int ReplaceFileW(in wchar* lpReplacedFileName, in wchar* lpReplacementFileName, in wchar* lpBackupFileName, uint dwReplaceFlags, void* lpExclude, void* lpReserved); alias ReplaceFileW ReplaceFile; uint GetCurrentDirectoryW(uint nBufferLength, wchar* lpBuffer); alias GetCurrentDirectoryW GetCurrentDirectory; uint GetSystemDirectoryW(wchar* lpBuffer, uint nSize); alias GetSystemDirectoryW GetSystemDirectory; int CreateDirectoryW(in wchar* lpPathName, SECURITY_ATTRIBUTES* lpSecurityAttributes); alias CreateDirectoryW CreateDirectory; int GetDiskFreeSpaceExW(in wchar* lpDirectoryName, ref ulong lpFreeBytesAvailable, ref ulong lpTotalNumberOfBytes, ref ulong lpTotalNumberOfFreeBytes); alias GetDiskFreeSpaceExW GetDiskFreeSpaceEx; int GetVolumeInformationW(in wchar* lpRootPathName, wchar* lpVolumeNameBuffer, uint nVolumeNameSize, out uint lpVolumeSerialNumber, out uint lpMaximumComponentLength, out uint lpFileSystemFlags, wchar* lpFileSystemNameBuffer, uint nFileSystemNameSize); alias GetVolumeInformationW GetVolumeInformation; int SetVolumeLabelW(in wchar* lpRootPathName, in wchar* lpVolumeName); alias SetVolumeLabelW SetVolumeLabel; uint GetLogicalDrives(); alias void function(uint dwErrorCode, uint dwNumberOfBytesTransferred, OVERLAPPED* lpOverlapped) LPOVERLAPPED_COMPLETION_ROUTINE; enum : uint { FILE_NOTIFY_CHANGE_FILE_NAME = 0x00000001, FILE_NOTIFY_CHANGE_DIR_NAME = 0x00000002, FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x00000004, FILE_NOTIFY_CHANGE_SIZE = 0x00000008, FILE_NOTIFY_CHANGE_LAST_WRITE = 0x00000010, FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x00000020, FILE_NOTIFY_CHANGE_CREATION = 0x00000040, FILE_NOTIFY_CHANGE_SECURITY = 0x00000100 } enum : uint { FILE_ACTION_ADDED = 0x00000001, FILE_ACTION_REMOVED = 0x00000002, FILE_ACTION_MODIFIED = 0x00000003, FILE_ACTION_RENAMED_OLD_NAME = 0x00000004, FILE_ACTION_RENAMED_NEW_NAME = 0x00000005 } struct FILE_NOTIFY_INFORMATION { uint NextEntryOffset; uint Action; uint FileNameLength; wchar[1] FileName; } int ReadDirectoryChangesW(Handle hDirectory, void* lpBuffer, uint nBufferLength, int bWatchSubtree, uint dwNotifyFiler, uint* lpdwBytesReturned, OVERLAPPED* lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine); int GetOverlappedResult(Handle hFile, OVERLAPPED* lpOverlapped, ref uint lpNumberOfBytesTransferred, int bWait); int DeleteFileW(in wchar* lpFileName); alias DeleteFileW DeleteFile; int RemoveDirectoryW(in wchar* lpPathName); alias RemoveDirectoryW RemoveDirectory; int MoveFileW(in wchar* lpExistingFileName, in wchar* lpNewFileName); alias MoveFileW MoveFile; int CopyFileW(in wchar* lpExistingFileName, in wchar* lpNewFileName, int bFailIfExists); alias CopyFileW CopyFile; int EncryptFileW(in wchar* lpFileName); alias EncryptFileW EncryptFile; int DecryptFileW(in wchar* lpFileName, uint dwReserved); alias DecryptFileW DecryptFile; uint GetTempPathW(uint nBufferLength, wchar* lpBuffer); alias GetTempPathW GetTempPath; uint GetTempFileNameW(in wchar* lpPathName, in wchar* lpPrefixString, uint uUnique, wchar* lpTempFileName); alias GetTempFileNameW GetTempFileName; uint GetFullPathNameW(in wchar* lpFileName, uint nBufferLength, wchar* lpBuffer, wchar** lpFilePart); alias GetFullPathNameW GetFullPathName; uint GetLongPathNameW(in wchar* lpszShortPath, wchar* lpszLongPath, uint cchBuffer); alias GetLongPathNameW GetLongPathName; int GetComputerNameW(in wchar* lpBuffer, ref uint nSize); alias GetComputerNameW GetComputerName; int SetComputerNameW(in wchar* lpComputerName); alias SetComputerNameW SetComputerName; int GetUserNameW(in wchar* lpBuffer, ref uint nSize); alias GetUserNameW GetUserName; wchar* GetCommandLineW(); alias GetCommandLineW GetCommandLine; wchar** CommandLineToArgvW(in wchar* lpCmdLine, out int pNumArgs); alias CommandLineToArgvW CommandLineToArgv; version(D_Version2) { enum : Handle { HKEY_CLASSES_ROOT = cast(Handle)0x80000000, HKEY_CURRENT_USER = cast(Handle)0x80000001, HKEY_LOCAL_MACHINE = cast(Handle)0x80000002, HKEY_USERS = cast(Handle)0x80000003, HKEY_PERFORMANCE_DATA = cast(Handle)0x80000004, HKEY_CURRENT_CONFIG = cast(Handle)0x80000005, HKEY_DYN_DATA = cast(Handle)0x80000006 } } else { extern Handle HKEY_CLASSES_ROOT; extern Handle HKEY_CURRENT_USER; extern Handle HKEY_LOCAL_MACHINE; extern Handle HKEY_USERS; extern Handle HKEY_PERFORMANCE_DATA; extern Handle HKEY_CURRENT_CONFIG; extern Handle HKEY_DYN_DATA; } enum : uint { DELETE = 0x00010000, READ_CONTROL = 0x00020000, WRITE_DAC = 0x00040000, WRITE_OWNER = 0x00080000, SYNCHRONIZE = 0x00100000, STANDARD_RIGHTS_REQUIRED = 0x000F0000, STANDARD_RIGHTS_READ = READ_CONTROL, STANDARD_RIGHTS_WRITE = READ_CONTROL, STANDARD_RIGHTS_EXECUTE = READ_CONTROL, STANDARD_RIGHTS_ALL = 0x001F0000, SPECIFIC_RIGHTS_ALL = 0x0000FFFF } enum : uint { KEY_QUERY_VALUE = 0x0001, KEY_SET_VALUE = 0x0002, KEY_CREATE_SUB_KEY = 0x0004, KEY_ENUMERATE_SUB_KEYS = 0x0008, KEY_NOTIFY = 0x0010, KEY_CREATE_LINK = 0x0020, KEY_READ = (STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY) & ~SYNCHRONIZE, KEY_WRITE = (STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & ~SYNCHRONIZE, KEY_EXECUTE = KEY_READ & ~SYNCHRONIZE, KEY_ALL_ACCESS = (STANDARD_RIGHTS_ALL | KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY | KEY_CREATE_LINK) & ~SYNCHRONIZE, } enum : uint { REG_NONE = 0, REG_SZ = 1, REG_EXPAND_SZ = 2, REG_BINARY = 3, REG_DWORD = 4, REG_DWORD_LITTLE_ENDIAN = 4, REG_DWORD_BIG_ENDIAN = 5, REG_LINK = 6, REG_MULTI_SZ = 7, REG_RESOURCE_LIST = 8, REG_FULL_RESOURCE_DESCRIPTOR = 9, REG_RESOURCE_REQUIREMENTS_LIST = 10, REG_QWORD = 11, REG_QWORD_LITTLE_ENDIAN = 11 } enum : uint { REG_OPTION_NON_VOLATILE = 0x00000000, REG_OPTION_VOLATILE = 0x00000001, REG_OPTION_CREATE_LINK = 0x00000002, REG_OPTION_BACKUP_RESTORE = 0x00000004, REG_OPTION_OPEN_LINK = 0x00000008 } int RegOpenKeyExW(Handle hKey, in wchar* lpSubKey, uint ulOptions, uint samDesired, out Handle phkResult); alias RegOpenKeyExW RegOpenKeyEx; int RegCreateKeyExW(Handle hKey, in wchar* lpSubKey, uint Reserved, wchar* lpClass, uint dwOptions, uint samDesired, SECURITY_ATTRIBUTES* lpSecurityAttributes, out Handle phkResult, out uint lpdwDisposition); alias RegCreateKeyExW RegCreateKeyEx; int RegQueryValueExW(Handle hKey, in wchar* lpValueName, uint* lpReserved, uint* lpdwType, ubyte* lpData, uint* lpcbData); alias RegQueryValueExW RegQueryValueEx; int RegQueryInfoKeyW(Handle hKey, wchar* lpClass, uint* lpcchClass, uint* lpReserved, uint* lpcSubKeys, uint* lpcbMaxSubKeyLen, uint* lpcbMaxClassLen, uint* lpcValues, uint* lpcbMaxValueNameLen, uint* lpcbMaxValueLen, uint* lpcbSecurityDescriptor, FILETIME* lpftLastWriteTime); alias RegQueryInfoKeyW RegQueryInfoKey; int RegEnumValueW(Handle hKey, uint dwIndex, wchar* lpValueName, ref uint lpcchValueName, uint* lpReserved, uint* lpType, ubyte* lpData, uint* lpcbData); alias RegEnumValueW RegEnumValue; int RegEnumKeyExW(Handle hKey, uint dwIndex, wchar* lpName, ref uint lpcchName, uint* lpReserved, wchar* lpClass, uint* lpcchClass, FILETIME* lpftLastWriteTime); alias RegEnumKeyExW RegEnumKeyEx; int RegSetValueExW(Handle hKey, in wchar* lpValueName, uint Reserved, uint dwType, in ubyte* lpData, uint cbData); alias RegSetValueExW RegSetValueEx; int RegDeleteKeyW(Handle hKey, in wchar* lpSubKey); alias RegDeleteKeyW RegDeleteKey; int RegDeleteValueW(Handle hKey, in wchar* lpValueName); alias RegDeleteValueW RegDeleteValue; int RegFlushKey(Handle hKey); int RegCloseKey(Handle hKey); uint ExpandEnvironmentStringsW(in wchar* lpSrc, wchar* lpDst, uint nSize); alias ExpandEnvironmentStringsW ExpandEnvironmentStrings; int Beep(uint dwFreq, uint dwDuration); uint GetTickCount(); int MulDiv(int nNumber, int nNumerator, int nDenominator); enum : uint { PROCESS_TERMINATE = 0x0001, PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFF } Handle OpenProcess(uint dwDesiredAccess, BOOL bInheritHandle, uint dwProcessId); BOOL TerminateProcess(Handle hProcess, uint nExitCode); enum : uint { DUPLICATE_CLOSE_SOURCE = 0x01, DUPLICATE_SAME_ACCESS = 0x02 } BOOL DuplicateHandle(Handle hSourceProcessHandle, Handle hSourceHandle, Handle hTargetProcessHandle, out Handle lpTargetHandle, uint dwDesiredAccess, BOOL bInheritHandle, uint dwOptions); struct STARTUPINFOW { uint cb = STARTUPINFOW.sizeof; wchar* lpReserved; wchar* lpDesktop; wchar* lpTitle; uint dwX; uint dwY; uint dwXSize; uint dwYSize; uint dwXCountChars; uint dwYCountChars; uint dwFillAttribute; uint dwFlags; ushort wShowWindow; ushort cbReserved2; ubyte* lpReserved2; Handle hStdInput; Handle hStdOutput; Handle hStdError; } alias STARTUPINFOW STARTUPINFO; struct PROCESS_INFORMATION { Handle hProcess; Handle hThread; uint dwProcessId; uint dwThreadId; } BOOL CreateProcessW(in wchar* lpApplicationName, in wchar* lpCommandLine, SECURITY_ATTRIBUTES* lpProcessAttributes, SECURITY_ATTRIBUTES* lpThreadAttributes, BOOL bInheritHandle, uint dwCreationFlags, void* lpEnvironment, in wchar* lpCurrentDirectory, ref STARTUPINFOW lpStartupInfo, ref PROCESS_INFORMATION lpProcessInformation); alias CreateProcessW CreateProcess; enum : uint { SC_MANAGER_CONNECT = 0x0001, SC_MANAGER_CREATE_SERVICE = 0x0002, SC_MANAGER_ENUMERATE_SERVICE = 0x0004, SC_MANAGER_LOCK = 0x0008, SC_MANAGER_QUERY_LOCK_STATUS = 0x0010, SC_MANAGER_MODIFY_BOOT_CONFIG = 0x0020 } Handle OpenSCManagerW(in wchar* lpMachineName, in wchar* lpDatabaseName, uint dwDesiredAccess); alias OpenSCManagerW OpenSCManager; enum : uint { SERVICE_QUERY_CONFIG = 0x0001, SERVICE_CHANGE_CONFIG = 0x0002, SERVICE_QUERY_STATUS = 0x0004, SERVICE_ENUMERATE_DEPENDENTS = 0x0008, SERVICE_START = 0x0010, SERVICE_STOP = 0x0020, SERVICE_PAUSE_CONTINUE = 0x0040, SERVICE_INTERROGATE = 0x0080, SERVICE_USER_DEFINED_CONTROL = 0x0100 } Handle OpenServiceW(Handle hSCManager, in wchar* lpServiceName, uint dwDesiredAccess); alias OpenServiceW OpenService; BOOL CloseServiceHandle(Handle hSCObject); BOOL StartServiceW(Handle hService, uint dwNumServiceArgs, in wchar** lpServiceArgVectors); alias StartServiceW StartService; enum : uint { SERVICE_STOPPED = 0x00000001, SERVICE_START_PENDING = 0x00000002, SERVICE_STOP_PENDING = 0x00000003, SERVICE_RUNNING = 0x00000004, SERVICE_CONTINUE_PENDING = 0x00000005, SERVICE_PAUSE_PENDING = 0x00000006, SERVICE_PAUSED = 0x00000007 } struct SERVICE_STATUS { uint dwServiceType; uint dwCurrentState; uint dwControlsAccepted; uint dwWin32ExitCode; uint dwServiceSpecificExitCode; uint dwCheckPoint; uint dwWaitHint; } enum : uint { SERVICE_CONTROL_STOP = 0x00000001, SERVICE_CONTROL_PAUSE = 0x00000002, SERVICE_CONTROL_CONTINUE = 0x00000003, SERVICE_CONTROL_INTERROGATE = 0x00000004, SERVICE_CONTROL_SHUTDOWN = 0x00000005, SERVICE_CONTROL_PARAMCHANGE = 0x00000006, SERVICE_CONTROL_NETBINDADD = 0x00000007, SERVICE_CONTROL_NETBINDREMOVE = 0x00000008, SERVICE_CONTROL_NETBINDENABLE = 0x00000009, SERVICE_CONTROL_NETBINDDISABLE = 0x0000000A, SERVICE_CONTROL_DEVICEEVENT = 0x0000000B, SERVICE_CONTROL_HARDWAREPROFILECHANGE = 0x0000000C, SERVICE_CONTROL_POWEREVENT = 0x0000000D, SERVICE_CONTROL_SESSIONCHANGE = 0x0000000E, SERVICE_CONTROL_PRESHUTDOWN = 0x0000000F } BOOL ControlService(Handle hService, uint dwControl, ref SERVICE_STATUS lpServiceStatus); BOOL QueryServiceStatus(Handle hService, out SERVICE_STATUS lpServiceStatus); enum : uint { LOGON_WITH_PROFILE = 0x00000001, LOGON_NETCREDENTIALS_ONLY = 0x00000002, LOGON_ZERO_PASSWORD_BUFFER = 0x80000000 } enum { CSIDL_DESKTOP = 0x0000, CSIDL_INTERNET = 0x0001, CSIDL_PROGRAMS = 0x0002, CSIDL_CONTROLS = 0x0003, CSIDL_PRINTERS = 0x0004, CSIDL_PERSONAL = 0x0005, CSIDL_FAVORITES = 0x0006, CSIDL_STARTUP = 0x0007, CSIDL_RECENT = 0x0008, CSIDL_SENDTO = 0x0009, CSIDL_BITBUCKET = 0x000a, CSIDL_STARTMENU = 0x000b, CSIDL_MYDOCUMENTS = CSIDL_PERSONAL, CSIDL_MYMUSIC = 0x000d, CSIDL_MYVIDEO = 0x000e, CSIDL_DESKTOPDIRECTORY = 0x0010, CSIDL_DRIVES = 0x0011, CSIDL_NETWORK = 0x0012, CSIDL_NETHOOD = 0x0013, CSIDL_FONTS = 0x0014, CSIDL_TEMPLATES = 0x0015, CSIDL_COMMON_STARTMENU = 0x0016, CSIDL_COMMON_PROGRAMS = 0X0017, CSIDL_COMMON_STARTUP = 0x0018, CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019, CSIDL_APPDATA = 0x001a, CSIDL_PRINTHOOD = 0x001b, CSIDL_LOCAL_APPDATA = 0x001c, CSIDL_ALTSTARTUP = 0x001d, CSIDL_COMMON_ALTSTARTUP = 0x001e, CSIDL_COMMON_FAVORITES = 0x001f, CSIDL_INTERNET_CACHE = 0x0020, CSIDL_COOKIES = 0x0021, CSIDL_HISTORY = 0x0022, CSIDL_COMMON_APPDATA = 0x0023, CSIDL_WINDOWS = 0x0024, CSIDL_SYSTEM = 0x0025, CSIDL_PROGRAM_FILES = 0x0026, CSIDL_MYPICTURES = 0x0027, CSIDL_PROFILE = 0x0028, CSIDL_SYSTEMX86 = 0x0029, CSIDL_PROGRAM_FILESX86 = 0x002a, CSIDL_PROGRAM_FILES_COMMON = 0x002b, CSIDL_PROGRAM_FILES_COMMONX86 = 0x002c, CSIDL_COMMON_TEMPLATES = 0x002d, CSIDL_COMMON_DOCUMENTS = 0x002e, CSIDL_COMMON_ADMINTOOLS = 0x002f, CSIDL_ADMINTOOLS = 0x0030, CSIDL_CONNECTIONS = 0x0031, CSIDL_COMMON_MUSIC = 0x0035, CSIDL_COMMON_PICTURES = 0x0036, CSIDL_COMMON_VIDEO = 0x0037, CSIDL_RESOURCES = 0x0038, CSIDL_RESOURCES_LOCALIZED = 0x0039, CSIDL_COMMON_OEM_LINKS = 0x003a, CSIDL_CDBURN_AREA = 0x003b, CSIDL_COMPUTERSNEARME = 0x003d, CSIDL_FLAG_CREATE = 0x8000, CSIDL_FLAG_DONT_VERIFY = 0x4000, CSIDL_FLAG_DONT_UNEXPAND = 0x2000, CSIDL_FLAG_NO_ALIAS = 0x1000, CSIDL_FLAG_PER_USER_INIT = 0x0800, CSIDL_FLAG_MASK = 0xFF00 } enum : uint { SHGFP_TYPE_CURRENT = 0, SHGFP_TYPE_DEFAULT = 1 } int SHGetFolderPathW(Handle hwnd, int csidl, Handle hToken, uint dwFlags, wchar* pszPath); alias SHGetFolderPathW SHGetFolderPath; enum { SHCNE_RENAMEITEM = 0x00000001, SHCNE_CREATE = 0x00000002, SHCNE_DELETE = 0x00000004, SHCNE_MKDIR = 0x00000008, SHCNE_RMDIR = 0x00000010, SHCNE_MEDIAINSERTED = 0x00000020, SHCNE_MEDIAREMOVED = 0x00000040, SHCNE_DRIVEREMOVED = 0x00000080, SHCNE_DRIVEADD = 0x00000100, SHCNE_NETSHARE = 0x00000200, SHCNE_NETUNSHARE = 0x00000400, SHCNE_ATTRIBUTES = 0x00000800, SHCNE_UPDATEDIR = 0x00001000, SHCNE_UPDATEITEM = 0x00002000, SHCNE_SERVERDISCONNECT = 0x00004000, SHCNE_UPDATEIMAGE = 0x00008000, SHCNE_DRIVEADDGUI = 0x00010000, SHCNE_RENAMEFOLDER = 0x00020000, SHCNE_FREESPACE = 0x00040000, SHCNE_EXTENDED_EVENT = 0x04000000, SHCNE_ASSOCCHANGED = 0x08000000, SHCNE_DISKEVENTS = 0x0002381F, SHCNE_GLOBALEVENTS = 0x0C0581E0, SHCNE_ALLEVENTS = 0x7FFFFFFF, SHCNE_INTERRUPT = 0x80000000, } enum : uint { SHCNF_IDLIST = 0x0000, SHCNF_PATHA = 0x0001, SHCNF_PRINTERA = 0x0002, SHCNF_DWORD = 0x0003, SHCNF_PATHW = 0x0005, SHCNF_PRINTERW = 0x0006, SHCNF_TYPE = 0x00FF, SHCNF_FLUSH = 0x1000, SHCNF_FLUSHNOWAIT = 0x2000, SHCNF_NOTIFYRECURSIVE = 0x10000 } void SHChangeNotify(int wEventId, uint uFlags, in void* dwItem1, in void* dwItem2); enum : uint { SEE_MASK_CLASSNAME = 0x00000001, SEE_MASK_CLASSKEY = 0x00000003, SEE_MASK_IDLIST = 0x00000004, SEE_MASK_INVOKEIDLIST = 0x0000000c, SEE_MASK_ICON = 0x00000010, SEE_MASK_HOTKEY = 0x00000020, SEE_MASK_NOCLOSEPROCESS = 0x00000040, SEE_MASK_CONNECTNETDRV = 0x00000080, SEE_MASK_NOASYNC = 0x00000100, SEE_MASK_FLAG_DDEWAIT = SEE_MASK_NOASYNC, SEE_MASK_DOENVSUBST = 0x00000200, SEE_MASK_FLAG_NO_UI = 0x00000400, SEE_MASK_UNICODE = 0x00004000, SEE_MASK_NO_CONSOLE = 0x00008000, SEE_MASK_ASYNCOK = 0x00100000, SEE_MASK_HMONITOR = 0x00200000, SEE_MASK_NOZONECHECKS = 0x00800000, SEE_MASK_NOQUERYCLASSSTORE = 0x01000000, SEE_MASK_WAITFORINPUTIDLE = 0x02000000, SEE_MASK_FLAG_LOG_USAGE = 0x04000000 } struct SHELLEXECUTEINFOW { uint cbSize = SHELLEXECUTEINFOW.sizeof; uint fMask; Handle hwnd; version(D_Version2) { mixin(" const(wchar)* lpVerb; const(wchar)* lpFile; const(wchar)* lpParameters; const(wchar)* lpDirectory; "); } else { wchar* lpVerb; wchar* lpFile; wchar* lpParameters; wchar* lpDirectory; } int nShow; Handle hInstApp; void* lpIDList; version(D_Version2) { mixin(" const(wchar)* lpClass; "); } else { wchar* lpClass; } Handle hkeyClass; uint dwHotKey; union { Handle hIcon; Handle hMonitor; } Handle hProcess; } alias SHELLEXECUTEINFOW SHELLEXECUTEINFO; BOOL ShellExecuteExW(ref SHELLEXECUTEINFOW lpExecInfo); alias ShellExecuteExW ShellExecuteEx; enum { STATUS_BUFFER_TOO_SMALL = 0xC0000023 } uint LsaNtStatusToWinError(int status); // Security struct LUID { uint LowPart; int HighPart; } const LUID SYSTEM_LUID = { 0x3e7, 0x0 }; const LUID ANONYMOUS_LOGON_LUID = { 0x3e6, 0x0 }; const LUID LOCALSERVICE_LUID = { 0x3e5, 0x0 }; const LUID NETWORKSERVICE_LUID = { 0x3e4, 0x0 }; const LUID IUSER_LUID = { 0x3e4, 0x0 }; int AllocateLocallyUniqueId(out LUID Luid); struct QUOTA_LIMITS { uint PagedPoolLimit; uint NonPagedPoolLimit; uint MinimumWorkingSetSize; uint MaximumWorkingSetSize; uint PagefileLimit; long TimeLimit; } enum : uint { SECURITY_NULL_SID_AUTHORITY = 0, SECURITY_WORLD_SID_AUTHORITY = 1, SECURITY_LOCAL_SID_AUTHORITY = 2, SECURITY_CREATOR_SID_AUTHORITY = 3, SECURITY_NON_UNIQUE_AUTHORITY = 4, SECURITY_NT_AUTHORITY = 5, SECURITY_RESOURCE_MANAGER_AUTHORITY = 9 } enum { SECURITY_DIALUP_RID = 0x00000001, SECURITY_NETWORK_RID = 0x00000002, SECURITY_BATCH_RID = 0x00000003, SECURITY_INTERACTIVE_RID = 0x00000004, SECURITY_LOGON_IDS_RID = 0x00000005, SECURITY_LOGON_IDS_RID_COUNT = 3, SECURITY_SERVICE_RID = 0x00000006, SECURITY_ANONYMOUS_LOGON_RID = 0x00000007, SECURITY_PROXY_RID = 0x00000008, SECURITY_ENTERPRISE_CONTROLLERS_RID = 0x00000009, SECURITY_SERVER_LOGON_RID = SECURITY_ENTERPRISE_CONTROLLERS_RID, SECURITY_PRINCIPAL_SELF_RID = 0x0000000A, SECURITY_AUTHENTICATED_USER_RID = 0x0000000B, SECURITY_RESTRICTED_CODE_RID = 0x0000000C, SECURITY_TERMINAL_SERVER_RID = 0x0000000D, SECURITY_REMOTE_LOGON_RID = 0x0000000E, SECURITY_THIS_ORGANIZATION_RID = 0x0000000F, SECURITY_IUSER_RID = 0x00000011, SECURITY_LOCAL_SYSTEM_RID = 0x00000012, SECURITY_LOCAL_SERVICE_RID = 0x00000013, SECURITY_NETWORK_SERVICE_RID = 0x00000014, SECURITY_NT_NON_UNIQUE = 0x00000015, SECURITY_NT_NON_UNIQUE_SUB_AUTH_COUNT = 3, SECURITY_ENTERPRISE_READONLY_CONTROLLERS_RID = 0x00000016, SECURITY_BUILTIN_DOMAIN_RID = 0x00000020, SECURITY_WRITE_RESTRICTED_CODE_RID = 0x00000021, SECURITY_PACKAGE_BASE_RID = 0x00000040, SECURITY_PACKAGE_RID_COUNT = 2, SECURITY_PACKAGE_NTLM_RID = 0x0000000A, SECURITY_PACKAGE_SCHANNEL_RID = 0x0000000E, SECURITY_PACKAGE_DIGEST_RID = 0x00000015, DOMAIN_USER_RID_ADMIN = 0x000001F4, DOMAIN_USER_RID_GUEST = 0x000001F5, DOMAIN_USER_RID_KRBTGT = 0x000001F6 } struct SID_IDENTIFIER_AUTHORITY { ubyte[6] Value; } struct SID { ubyte Revision; ubyte SubAuthorityCount; SID_IDENTIFIER_AUTHORITY IdentifierAuthority; uint[1] SubAuthority; } struct SID_AND_ATTRIBUTES { SID* Sid; uint Attributes; } struct TOKEN_USER { SID_AND_ATTRIBUTES User; } struct TOKEN_SOURCE { char[8] SourceName; LUID SourceIdentifier; } enum SECURITY_IMPERSONATION_LEVEL : uint { SecurityAnonymous, SecurityIdentification, SecurityImpersonation, SecurityDelegation } enum TOKEN_TYPE : uint { TokenPrimary = 1, TokenImpersonation } struct TOKEN_STATISTICS { LUID TokenId; LUID AuthenticationId; long ExpirationTime; TOKEN_TYPE TokenType; SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; uint DynamicCharged; uint DynamicAvailable; uint GroupCount; uint PriviledgeCount; LUID ModifiedId; } enum : uint { TOKEN_ASSIGN_PRIMARY = 0x0001, TOKEN_DUPLICATE = 0x0002, TOKEN_IMPERSONATE = 0x0004, TOKEN_QUERY = 0x0008, TOKEN_QUERY_SOURCE = 0x0010, TOKEN_ADJUST_PRIVILEGES = 0x0020, TOKEN_ADJUST_GROUPS = 0x0040, TOKEN_ADJUST_DEFAULT = 0x0080, TOKEN_ADJUST_SESSIONID = 0x0100, TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | TOKEN_ASSIGN_PRIMARY | TOKEN_DUPLICATE | TOKEN_IMPERSONATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE | TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT | TOKEN_ADJUST_SESSIONID, TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY, TOKEN_WRITE = STANDARD_RIGHTS_WRITE | TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT, TOKEN_EXECUTE = STANDARD_RIGHTS_EXECUTE } int OpenProcessToken(Handle ProcessHandle, uint DesiredAccess, out Handle TokenHandle); int OpenThreadToken(Handle ThreadHandle, uint DesiredAccess, int OpenAsSelf, out Handle TokenHandle); int DuplicateTokenEx(Handle hExistingToken, uint dwDesiredAccess, SECURITY_ATTRIBUTES* lpTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, out Handle phNewToken); int CheckTokenMembership(Handle TokenHandle, SID* SidToCheck, out BOOL IsMember); enum TOKEN_INFORMATION_CLASS : uint { TokenUser = 1, TokenGroups, TokenPrivileges, TokenOwner, TokenPrimaryGroup, TokenDefaultDacl, TokenSource, TokenType, TokenImpersonationLevel, TokenStatistics, TokenRestrictedSids, TokenSessionId, TokenGroupsAndPrivileges, TokenSessionRreference, TokenSandBoxInert, TokenAuditPolicy, TokenOrigin, TokenElevationType, TokenLinkedToken, TokenElevation, TokenHasRestrictions, TokenAccessInformation, TokenVirtualizationAllowed, TokenVirtualizationEnabled, TokenIntegrityLevel, TokenUIAccess, TokenMandatoryPolicy, TokenLogonSid, MaxTokenInfoClass } int GetTokenInformation(Handle TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, void* TokenInformation, uint TokenInformationLength, ref uint ReturnLength); int ConvertStringSidToSidW(in wchar* StringSid, out SID* Sid); alias ConvertStringSidToSidW ConvertStringSidToSid; enum : uint { SidTypeUser = 1, SidTypeGroup, SidTypeDomain, SidTypeAlias, SidTypeWellKnownGroup, SidTypeDeletedAccount, SidTypeInvalid, SidTypeUnknown, SidTypeComputer, SidTypeLabel } int LookupAccountSidW(in wchar* lpSystemName, SID* Sid, wchar* Name, ref uint cchName, wchar* referencedDomainName, ref uint cchReferencedDomainName, out uint peUse); alias LookupAccountSidW LookupAccountSid; int IsValidSid(SID* pSid); // CryptoAPI struct DATA_BLOB { uint cbData; ubyte* pbData; } alias DATA_BLOB CERT_BLOB; struct CRYPT_BIT_BLOB { uint cbData; ubyte* pbData; uint cUnusedBits; } struct CRYPT_ALGORITHM_IDENTIFIER { char* pszObjId; CERT_BLOB Parameters; } struct CERT_PUBLIC_KEY_INFO { CRYPT_ALGORITHM_IDENTIFIER Algorithm; CRYPT_BIT_BLOB PublicKey; } struct CERT_EXTENSION { char* pszObjId; int fCritical; CERT_BLOB Value; } struct CERT_INFO { uint dwVersion; CERT_BLOB SerialNumber; CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; CERT_BLOB Issuer; FILETIME NotBefore; FILETIME NotAfter; CERT_BLOB Subject; CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; CRYPT_BIT_BLOB IssuerUniqueId; CRYPT_BIT_BLOB SubjectUniqueId; uint cExtension; CERT_EXTENSION* rgExtension; } struct CERT_CONTEXT { uint dwCertEncodingType; ubyte* pbCertEncoded; uint cbCertEncoded; CERT_INFO* pCertInfo; Handle hCertStore; } const char* CERT_STORE_PROV_MEMORY = cast(char*)2; const char* CERT_STORE_PROV_FILE = cast(char*)3; const char* CERT_STORE_PROV_PKCS7 = cast(char*)5; const char* CERT_STORE_PROV_SERIALIZED = cast(char*)6; const char* CERT_STORE_PROV_FILENAME_A = cast(char*)7; const char* CERT_STORE_PROV_FILENAME_W = cast(char*)8; alias CERT_STORE_PROV_FILENAME_W CERT_STORE_PROV_FILENAME; const char* CERT_STORE_PROV_SYSTEM_A = cast(char*)9; const char* CERT_STORE_PROV_SYSTEM_W = cast(char*)10; alias CERT_STORE_PROV_SYSTEM_W CERT_STORE_PROV_SYSTEM; enum : uint { CRYPT_ASN_ENCODING = 0x00000001, CRYPT_NDR_ENCODING = 0x00000002, X509_ASN_ENCODING = 0x00000001, X509_NDR_ENCODING = 0x00000002, PKCS_7_ASN_ENCODING = 0x00010000, PKCS_7_NDR_ENCODING = 0x00020000 } enum : uint { CERT_STORE_NO_CRYPT_RELEASE_FLAG = 0x00000001, CERT_STORE_SET_LOCALIZED_NAME_FLAG = 0x00000002, CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004, CERT_STORE_DELETE_FLAG = 0x00000010, CERT_STORE_UNSAFE_PHYSICAL_FLAG = 0x00000020, CERT_STORE_SHARE_STORE_FLAG = 0x00000040, CERT_STORE_SHARE_CONTEXT_FLAG = 0x00000080, CERT_STORE_MANIFOLD_FLAG = 0x00000100, CERT_STORE_ENUM_ARCHIVED_FLAG = 0x00000200, CERT_STORE_UPDATE_KEYID_FLAG = 0x00000400, CERT_STORE_BACKUP_RESTORE_FLAG = 0x00000800, CERT_STORE_READONLY_FLAG = 0x00008000, CERT_STORE_OPEN_EXISTING_FLAG = 0x00004000, CERT_STORE_CREATE_NEW_FLAG = 0x00002000, CERT_STORE_MAXIMUM_ALLOWED_FLAG = 0x00001000 } enum : uint { CERT_SYSTEM_STORE_LOCATION_MASK = 0x00FF0000, CERT_SYSTEM_STORE_LOCATION_SHIFT = 16, CERT_SYSTEM_STORE_CURRENT_USER_ID = 1, CERT_SYSTEM_STORE_LOCAL_MACHINE_ID = 2, CERT_SYSTEM_STORE_CURRENT_USER = CERT_SYSTEM_STORE_CURRENT_USER_ID << CERT_SYSTEM_STORE_LOCATION_SHIFT, CERT_SYSTEM_STORE_LOCAL_MACHINE = CERT_SYSTEM_STORE_LOCAL_MACHINE_ID << CERT_SYSTEM_STORE_LOCATION_SHIFT } Handle CertOpenStore(in char* lpszStoreProvider, uint dwMsgAndCertEncodingType, Handle hCryptProv, uint dwFlags, in void* pvPara); int CertCloseStore(Handle hCertStore, uint dwFlags); Handle CertDuplicateStore(Handle hCertStore); enum : uint { CERT_STORE_ADD_NEW = 1, CERT_STORE_ADD_USE_EXISTING = 2, CERT_STORE_ADD_REPLACE_EXISTING = 3, CERT_STORE_ADD_ALWAYS = 4, CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES = 5, CERT_STORE_ADD_NEWER = 6, CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES = 7 } int CertAddCertificateContextToStore(Handle hCertStore, CERT_CONTEXT* pCertContext, uint dwAddDisposition, CERT_CONTEXT** ppStoreContext); int CertAddCertificateLinkToStore(Handle hCertStore, CERT_CONTEXT* pCertContext, uint dwAddDisposition, CERT_CONTEXT** ppStoreContext); enum : uint { CERT_STORE_CERTIFICATE_CONTEXT = 1, CERT_STORE_CRL_CONTEXT = 2, CERT_STORE_CTL_CONTEXT = 3, CERT_STORE_CERTIFICATE_CONTEXT_FLAG = 1 << CERT_STORE_CERTIFICATE_CONTEXT, CERT_STORE_CRL_CONTEXT_FLAG = 1 << CERT_STORE_CRL_CONTEXT, CERT_STORE_CTL_CONTEXT_FLAG = 1 << CERT_STORE_CTL_CONTEXT } int CertAddSerializedElementToStore(Handle hCertStore, in ubyte* pbElement, uint cbElement, uint dwAddDisposition, uint dwFlags, uint dwContextTypeFlags, uint* pdwContextType, void** ppvContext); CERT_CONTEXT* CertGetSubjectCertificateFromStore(Handle hCertStore, uint dwCertEncodingType, CERT_INFO* pCertId); int CertSerializeCertificateStoreElement(CERT_CONTEXT* pCertContext, uint dwFlags, ubyte* pbElement, ref uint pcbElement); enum : uint { CERT_STORE_SAVE_AS_STORE = 1, CERT_STORE_SAVE_AS_PKCS7 = 2, CERT_STORE_SAVE_AS_PKCS12 = 3 } enum : uint { CERT_STORE_SAVE_TO_FILE = 1, CERT_STORE_SAVE_TO_MEMORY = 2, CERT_STORE_SAVE_TO_FILENAME_A = 3, CERT_STORE_SAVE_TO_FILENAME_W = 4 } int CertSaveStore(Handle hCertStore, uint dwMsgAndCertEncodingType, uint dwSaveAs, uint dwSaveTo, in void* pvSaveToPara, uint dwFlags); enum : uint { REPORT_NO_PRIVATE_KEY = 0x0001, REPORT_NOT_ABLE_TO_EXPORT_PRIVATE_KEY = 0x0002, EXPORT_PRIVATE_KEYS = 0x0004, PKCS12_INCLUDE_EXTENDED_PROPERTIES = 0x0010 } int PFXExportCertStore(Handle hStore, CERT_BLOB* pPFX, in wchar* szPassword, uint dwFlags); Handle PFXImportCertStore(CERT_BLOB* pPFX, in wchar* szPassword, uint dwFlags); CERT_CONTEXT* CertEnumCertificatesInStore(Handle hCertStore, CERT_CONTEXT* pPrevCertContext); enum : uint { CERT_COMPARE_MASK = 0xFFFF, CERT_COMPARE_SHIFT = 16, CERT_COMPARE_ANY = 0, CERT_COMPARE_SHA1_HASH = 1, CERT_COMPARE_NAME = 2, CERT_COMPARE_ATTR = 3, CERT_COMPARE_MD5_HASH = 4, CERT_COMPARE_PROPERTY = 5, CERT_COMPARE_PUBLIC_KEY = 6, CERT_COMPARE_HASH = CERT_COMPARE_SHA1_HASH, CERT_COMPARE_NAME_STR_A = 7, CERT_COMPARE_NAME_STR_W = 8, CERT_COMPARE_KEY_SPEC = 9, CERT_COMPARE_ENHKEY_USAGE = 10, CERT_COMPARE_CTL_USAGE = CERT_COMPARE_ENHKEY_USAGE, CERT_COMPARE_SUBJECT_CERT = 11, CERT_COMPARE_ISSUER_OF = 12, CERT_COMPARE_EXISTING = 13, CERT_COMPARE_SIGNATURE_HASH = 14, CERT_COMPARE_KEY_IDENTIFIER = 15, CERT_COMPARE_CERT_ID = 16, CERT_COMPARE_CROSS_CERT_DIST_POINTS = 17, CERT_COMPARE_PUBKEY_MD5_HASH = 18, CERT_COMPARE_SUBJECT_INFO_ACCESS = 19 } enum : uint { CERT_FIND_ANY = CERT_COMPARE_ANY << CERT_COMPARE_SHIFT, CERT_FIND_EXISTING = CERT_COMPARE_EXISTING << CERT_COMPARE_SHIFT } CERT_CONTEXT* CertFindCertificateInStore(Handle hCertStore, uint dwCertEncodingType, uint dwFindFlags, uint dwFindType, in void* pvFindPara, CERT_CONTEXT* pPrevCertContext); CERT_CONTEXT* CertDuplicateCertificateContext(CERT_CONTEXT* pCertContext); int CertFreeCertificateContext(CERT_CONTEXT* pCertContext); int CertDeleteCertificateFromStore(CERT_CONTEXT* pCertContext); CERT_CONTEXT* CertCreateCertificateContext(uint dwCertEncodingType, in ubyte* pbCertEncoded, uint cbCertEncoded); enum : uint { CERT_NAME_EMAIL_TYPE = 1, CERT_NAME_RDN_TYPE = 2, CERT_NAME_ATTR_TYPE = 3, CERT_NAME_SIMPLE_DISPLAY_TYPE = 4, CERT_NAME_FRIENDLY_DISPLAY_TYPE = 5, CERT_NAME_DNS_TYPE = 6, CERT_NAME_URL_TYPE = 7, CERT_NAME_UPN_TYPE = 8 } enum : uint { CERT_NAME_ISSUER_FLAG = 0x1, CERT_NAME_DISABLE_IE4_UTF8_FLAG = 0x00010000 } uint CertGetNameStringW(CERT_CONTEXT* pCertContext, uint dwType, uint dwFlags, void* pvTypePara, wchar* pszNameString, uint cchNameString); alias CertGetNameStringW CertGetNameString; enum : uint { CERT_SIMPLE_NAME_STR = 1, CERT_OID_NAME_STR = 2, CERT_X500_NAME_STR = 3, CERT_XML_NAME_STR = 4 } enum : uint { CERT_NAME_STR_SEMICOLON_FLAG = 0x40000000, CERT_NAME_STR_NO_PLUS_FLAG = 0x20000000, CERT_NAME_STR_NO_QUOTING_FLAG = 0x10000000, CERT_NAME_STR_CRLF_FLAG = 0x08000000, CERT_NAME_STR_COMMA_FLAG = 0x04000000, CERT_NAME_STR_REVERSE_FLAG = 0x02000000, CERT_NAME_STR_FORWARD_FLAG = 0x01000000, CERT_NAME_STR_DISABLE_IE4_UTF8_FLAG = 0x00010000, CERT_NAME_STR_ENABLE_T61_UNICODE_FLAG = 0x00020000, CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG = 0x00040000, CERT_NAME_STR_FORCE_UTF8_DIR_STR_FLAG = 0x00080000, CERT_NAME_STR_DISABLE_UTF8_DIR_STR_FLAG = 0x00100000 } uint CertNameToStrW(uint dwCertEncodingType, CERT_BLOB* pName, uint dwStrType, wchar* psz, uint csz); alias CertNameToStrW CertNameToStr; uint CertStrToNameW(uint dwCertEncodingType, in wchar* pszX500, uint dwStrType, void* pvReserved, ubyte* pbEncoded, ref uint pcbEncoded, wchar** ppszError); alias CertStrToNameW CertStrToName; enum : uint { CERT_KEY_PROV_HANDLE_PROP_ID = 1, CERT_KEY_PROV_INFO_PROP_ID = 2, CERT_SHA1_HASH_PROP_ID = 3, CERT_HASH_PROP_ID = CERT_SHA1_HASH_PROP_ID, CERT_FRIENDLY_NAME_PROP_ID = 11 } int CertGetCertificateContextProperty(CERT_CONTEXT* pCertContext, uint dwPropId, void* pvData, ref uint pcbData); int CertSetCertificateContextProperty(CERT_CONTEXT* pCertContext, uint dwPropId, uint dwFlags, in void* pvData); const wchar* MS_DEF_PROV = "Microsoft Base Cryptographic Provider v1.0"; const wchar* MS_ENHANCED_PROV = "Microsoft Enhanced Cryptographic Provider v1.0"; const wchar* MS_STRONG_PROV = "Microsoft Strong Cryptographic Provider"; const wchar* MS_DEF_RSA_SIG_PROV = "Microsoft RSA Signature Cryptographic Provider"; const wchar* MS_DEF_RSA_SCHANNEL_PROV = "Microsoft RSA SChannel Cryptographic Provider"; const wchar* MS_DEF_DSS_PROV = "Microsoft Base DSS Cryptographic Provider"; const wchar* MS_DEF_DSS_DH_PROV = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; const wchar* MS_ENH_DSS_DH_PROV = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; const wchar* MS_DEF_DH_SCHANNEL_PROV = "Microsoft DH SChannel Cryptographic Provider"; const wchar* MS_SCARD_PROV = "Microsoft Base Smart Card Crypto Provider"; const wchar* MS_ENH_RSA_AES_PROV = "Microsoft Enhanced RSA and AES Cryptographic Provider"; const wchar* MS_ENH_RSA_AES_PROV_XP = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"; enum : uint { PROV_RSA_FULL = 1, PROV_RSA_SIG = 2, PROV_DSS = 3, PROV_FORTEZZA = 4, PROV_MS_EXCHANGE = 5, PROV_SSL = 6, PROV_RSA_SCHANNEL = 12, PROV_DSS_DH = 13, PROV_EC_ECDSA_SIG = 14, PROV_EC_ECNRA_SIG = 15, PROV_EC_ECDSA_FULL = 16, PROV_EC_ECNRA_FULL = 17, PROV_DH_SCHANNEL = 18, PROV_SPYRUS_LYNKS = 20, PROV_RNG = 21, PROV_INTEL_SEC = 22, PROV_REPLACE_OWF = 23, PROV_RSA_AES = 24 } enum : uint { CRYPT_VERIFYCONTEXT = 0xF0000000, CRYPT_NEWKEYSET = 0x00000008, CRYPT_DELETEKEYSET = 0x00000010, CRYPT_MACHINE_KEYSET = 0x00000020, CRYPT_SILENT = 0x00000040 } int CryptAcquireContextW(out Handle phProv, in wchar* szContainer, in wchar* szProvider, uint dwProvType, uint dwFlags); alias CryptAcquireContextW CryptAcquireContext; int CryptReleaseContext(Handle hProv, uint dwFlags); enum : uint { PP_ENUMALGS = 1, PP_ENUMCONTAINERS = 2, PP_IMPTYPE = 3, PP_NAME = 4, PP_VERSION = 5, PP_CONTAINER = 6, PP_CHANGE_PASSWORD = 7, PP_KEYSET_SEC_DESCR = 8, PP_CERTCHAIN = 9, PP_KEY_TYPE_SUBTYPE = 10, PP_PROVTYPE = 16, PP_KEYSTORAGE = 17, PP_APPLI_CERT = 18, PP_SYM_KEYSIZE = 19, PP_SESSION_KEYSIZE = 20, PP_UI_PROMPT = 21, PP_ENUMALGS_EX = 22, PP_ENUMMANDROOTS = 25, PP_ENUMELECTROOTS = 26, PP_KEYSET_TYPE = 27, PP_ADMIN_PIN = 31, PP_KEYEXCHANGE_PIN = 32, PP_SIGNATURE_PIN = 33, PP_SIG_KEYSIZE_INC = 34, PP_KEYX_KEYSIZE_INC = 35, PP_UNIQUE_CONTAINER = 36, PP_SGC_INFO = 37, PP_USE_HARDWARE_RNG = 38, PP_KEYSPEC = 39, PP_ENUMEX_SIGNING_PROT = 40, PP_CRYPT_COUNT_KEY_USE = 41, PP_USER_CERTSTORE = 42, PP_SMARTCARD_READER = 43, PP_SMARTCARD_GUID = 45, PP_ROOT_CERTSTORE = 46 } struct PROV_ENUMALGS { uint aiAlgid; uint dwBitLen; uint dwNameLen; char[20] szName; } enum : uint { CRYPT_FIRST = 1, CRYPT_NEXT = 2, CRYPT_SGC_ENUM = 4 } int CryptGetProvParam(Handle hProv, uint dwParam, ubyte* pbData, ref uint pdwDataLen, uint dwFlags); enum : uint { ALG_CLASS_ANY = 0, ALG_CLASS_SIGNATURE = 1 << 13, ALG_CLASS_MSG_ENCRYPT = 2 << 13, ALG_CLASS_DATA_ENCRYPT = 3 << 13, ALG_CLASS_HASH = 4 << 13, ALG_CLASS_KEY_EXCHANGE = 5 << 13, ALG_CLASS_ALL = 7 << 13 } enum : uint { ALG_TYPE_ANY = 0, ALG_TYPE_DSS = 1 << 9, ALG_TYPE_RSA = 2 << 9, ALG_TYPE_BLOCK = 3 << 9, ALG_TYPE_STREAM = 4 << 9, ALG_TYPE_DH = 5 << 9, ALG_TYPE_SECURECHANNEL = 6 << 9 } enum : uint { ALG_SID_RSA_ANY = 0, ALG_SID_RSA_PKCS = 1, ALG_SID_RSA_MSATWORK = 2, ALG_SID_RSA_ENTRUST = 3, ALG_SID_RSA_PGP = 4, ALG_SID_DSS_ANY = 0, ALG_SID_DSS_PKCS = 1, ALG_SID_DSS_DMS = 2, ALG_SID_MD2 = 1, ALG_SID_MD4 = 2, ALG_SID_MD5 = 3, ALG_SID_SHA = 4, ALG_SID_SHA1 = 4, ALG_SID_MAC = 5, ALG_SID_RIPEMD = 6, ALG_SID_RIPEMD160 = 7, ALG_SID_SSL3SHAMD5 = 8, ALG_SID_HMAC = 9, ALG_SID_TLS1PRF = 10, ALG_SID_HASH_REPLACE_OWF = 11, ALG_SID_SHA_256 = 12, ALG_SID_SHA_384 = 13, ALG_SID_SHA_512 = 14, ALG_SID_DES = 1, ALG_SID_3DES = 3, ALG_SID_DESX = 4, ALG_SID_IDEA = 5, ALG_SID_CAST = 6, ALG_SID_SAFERSK64 = 7, ALG_SID_SAFERSK128 = 8, ALG_SID_3DES_112 = 9, ALG_SID_CYLINK_MEK = 12, ALG_SID_RC5 = 13, ALG_SID_AES_128 = 14, ALG_SID_AES_192 = 15, ALG_SID_AES_256 = 16, ALG_SID_AES = 17, ALG_SID_SKIPJACK = 10, ALG_SID_TEK = 11, ALG_SID_RC2 = 2, ALG_SID_RC4 = 1, ALG_SID_SEAL = 2, ALG_SID_DH_SANDF = 1, ALG_SID_DH_EPHEM = 2, ALG_SID_AGREED_KEY_ANY = 3, ALG_SID_KEA = 4, ALG_SID_SSL3_MASTER = 1, ALG_SID_SCHANNEL_MASTER_HASH = 2, ALG_SID_SCHANNEL_MAC_KEY = 3, ALG_SID_PCT1_MASTER = 4, ALG_SID_SSL2_MASTER = 5, ALG_SID_TLS1_MASTER = 6, ALG_SID_SCHANNEL_ENC_KEY = 7 } enum : uint { CALG_MD2 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_MD2, CALG_MD4 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_MD4, CALG_MD5 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_MD5, CALG_SHA = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_SHA, CALG_SHA1 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_SHA1, CALG_MAC = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_MAC, CALG_RSA_SIGN = ALG_CLASS_SIGNATURE | ALG_TYPE_RSA | ALG_SID_RSA_ANY, CALG_DSS_SIGN = ALG_CLASS_SIGNATURE | ALG_TYPE_DSS | ALG_SID_DSS_ANY, CALG_RSA_KEYX = ALG_CLASS_KEY_EXCHANGE | ALG_TYPE_RSA | ALG_SID_RSA_ANY, CALG_DES = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_DES, CALG_3DES_112 = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_3DES_112, CALG_3DES = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_3DES, CALG_DESX = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_DESX, CALG_RC2 = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_RC2, CALG_RC4 = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_STREAM | ALG_SID_RC4, CALG_SEAL = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_STREAM | ALG_SID_SEAL, CALG_DH_SF = ALG_CLASS_KEY_EXCHANGE | ALG_TYPE_DH | ALG_SID_DH_SANDF, CALG_DH_EPHEM = ALG_CLASS_KEY_EXCHANGE | ALG_TYPE_DH | ALG_SID_DH_EPHEM, CALG_AGREEDKEY_ANY = ALG_CLASS_KEY_EXCHANGE | ALG_TYPE_DH | ALG_SID_AGREED_KEY_ANY, CALG_KEA_KEYX = ALG_CLASS_KEY_EXCHANGE | ALG_TYPE_DH | ALG_SID_KEA, CALG_HUGHES_MD5 = ALG_CLASS_KEY_EXCHANGE | ALG_TYPE_ANY | ALG_SID_MD5, CALG_SKIPJACK = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_SKIPJACK, CALG_TEK = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_TEK, CALG_CYLINK_MEK = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_CYLINK_MEK, CALG_SSL3_SHAMD5 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_SSL3SHAMD5, CALG_SSL3_MASTER = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_SSL3_MASTER, CALG_SCHANNEL_MASTER_HASH = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_SCHANNEL_MASTER_HASH, CALG_SCHANNEL_MAC_KEY = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_SCHANNEL_MAC_KEY, CALG_SCHANNEL_ENC_KEY = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_SCHANNEL_ENC_KEY, CALG_PCT1_MASTER = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_PCT1_MASTER, CALG_SSL2_MASTER = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_SSL2_MASTER, CALG_TLS1_MASTER = ALG_CLASS_MSG_ENCRYPT | ALG_TYPE_SECURECHANNEL | ALG_SID_TLS1_MASTER, CALG_RC5 = ALG_CLASS_DATA_ENCRYPT | ALG_TYPE_BLOCK | ALG_SID_RC5, CALG_HMAC = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_HMAC, CALG_TLS1PRF = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_TLS1PRF, CALG_AES_128 = ALG_CLASS_DATA_ENCRYPT| ALG_TYPE_BLOCK| ALG_SID_AES_128, CALG_AES_192 = ALG_CLASS_DATA_ENCRYPT| ALG_TYPE_BLOCK| ALG_SID_AES_192, CALG_AES_256 = ALG_CLASS_DATA_ENCRYPT| ALG_TYPE_BLOCK| ALG_SID_AES_256, CALG_AES = ALG_CLASS_DATA_ENCRYPT| ALG_TYPE_BLOCK| ALG_SID_AES, CALG_SHA_256 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_SHA_256, CALG_SHA_384 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_SHA_384, CALG_SHA_512 = ALG_CLASS_HASH | ALG_TYPE_ANY | ALG_SID_SHA_512 } int CryptCreateHash(Handle hProv, uint Algid, Handle hKey, uint dwFlags, out Handle phHash); int CryptHashData(Handle hHash, in ubyte* pbData, uint dwDataLen, uint dwFlags); int CryptSignHashW(Handle hHash, uint dwKeySpec, in wchar* sDescription, uint dwFlags, ubyte* pbSignature, ref uint pdwSignLen); alias CryptSignHashW CryptSignHash; enum : uint { HP_ALGID = 0x0001, HP_HASHVAL = 0x0002, HP_HASHSIZE = 0x0004, HP_HMAC_INFO = 0x0005, HP_TLS1PRF_LABEL = 0x0006, HP_TLS1PRF_SEED = 0x0007 } int CryptGetHashParam(Handle hHash, uint dwParam, ubyte* pbData, ref uint pswDataLen, uint dwFlags); int CryptDestroyHash(Handle hHash); int CryptVerifySignatureW(Handle hHash, ubyte* pbSignature, uint dwSigLen, Handle hPubKey, in wchar* sDescription, uint dwFlags); alias CryptVerifySignatureW CryptVerifySignature; enum : uint { KP_IV = 1, KP_SALT = 2, KP_PADDING = 3, KP_MODE = 4, KP_MODE_BITS = 5, KP_PERMISSIONS = 6, KP_ALGID = 7, KP_BLOCKLEN = 8, KP_KEYLEN = 9, KP_SALT_EX = 10, KP_P = 11, KP_G = 12, KP_Q = 13, KP_X = 14, KP_Y = 15, KP_RA = 16, KP_RB = 17, KP_INFO = 18, KP_EFFECTIVE_KEYLEN = 19, KP_SCHANNEL_ALG = 20, KP_CLIENT_RANDOM = 21, KP_SERVER_RANDOM = 22, KP_RP = 23, KP_PRECOMP_MD5 = 24, KP_PRECOMP_SHA = 25, KP_CERTIFICATE = 26, KP_CLEAR_KEY = 27, KP_PUB_EX_LEN = 28, KP_PUB_EX_VAL = 29, KP_KEYVAL = 30, KP_ADMIN_PIN = 31, KP_KEYEXCHANGE_PIN = 32, KP_SIGNATURE_PIN = 33, KP_PREHASH = 34 } int CryptSetKeyParam(Handle hKey, uint dwParam, in ubyte* pbData, uint dwFlags); int CryptGetKeyParam(Handle hKey, uint dwParam, ubyte* pbData, ref uint pdwDataLen, uint dwFlags); enum : uint { CRYPT_EXPORTABLE = 0x00000001, CRYPT_USER_PROTECTED = 0x00000002, CRYPT_CREATE_SALT = 0x00000004, CRYPT_UPDATE_KEY = 0x00000008, CRYPT_NO_SALT = 0x00000010, CRYPT_PREGEN = 0x00000040, CRYPT_RECIPIENT = 0x00000010, CRYPT_INITIATOR = 0x00000040, CRYPT_ONLINE = 0x00000080, CRYPT_SF = 0x00000100, CRYPT_CREATE_IV = 0x00000200, CRYPT_KEK = 0x00000400, CRYPT_DATA_KEY = 0x00000800, CRYPT_VOLATILE = 0x00001000, CRYPT_SGCKEY = 0x00002000, CRYPT_ARCHIVABLE = 0x00004000, CRYPT_FORCE_KEY_PROTECTION_HIGH = 0x00008000, CRYPT_SERVER = 0x00000400 } enum : uint { CRYPT_Y_ONLY = 0x00000001, CRYPT_SSL2_FALLBACK = 0x00000002, CRYPT_DESTROYKEY = 0x00000004, CRYPT_OAEP = 0x00000040 } int CryptDeriveKey(Handle hProv, uint Algid, Handle hBaseData, uint dwFlags, out Handle phKey); // bType enum : ubyte { SIMPLEBLOB = 0x1, PUBLICKEYBLOB = 0x6, PRIVATEKEYBLOB = 0x7, PLAINTEXTKEYBLOB = 0x8, OPAQUEKEYBLOB = 0x9, PUBLICKEYBLOBEX = 0xA, SYMMETRICWRAPKEYBLOB = 0xB } enum : ubyte { CUR_BLOB_VERSION = 2 } struct BLOBHEADER { ubyte bType; ubyte bVersion; ushort reserved; uint aiKeyAlg; } struct RSAPUBKEY { uint magic; uint bitlen; uint pubexp; } struct DSSPUBKEY { uint magic; uint bitlen; } int CryptImportKey(Handle hProv, ubyte* pbData, uint dwDataLen, Handle hPubKey, uint dwFlags, out Handle phKey); int CryptExportKey(Handle hprov, Handle hExpKey, uint dwBlobType, uint dwFlags, ubyte* pbData, ref uint pdwDataLen); enum : uint { AT_KEYEXCHANGE = 1, AT_SIGNATURE = 2 } int CryptGetUserKey(Handle hProv, uint dwKeySpec, out Handle phUserKey); int CryptGenKey(Handle hProv, uint Algid, uint dwFlags, out Handle phKey); int CryptDestroyKey(Handle hKey); int CryptGenRandom(Handle hProv, uint dwLen, ubyte* lpBuffer); int CryptEncrypt(Handle hKey, Handle hHash, int Final, uint dwFlags, ubyte* pbData, ref uint pdwDataLen, uint dwBufLen); int CryptDecrypt(Handle hKey, Handle hHash, int Final, uint dwFlags, ubyte* pbData, ref uint pdwDataLen); enum : uint { CRYPT_OID_INFO_OID_KEY = 1, CRYPT_OID_INFO_NAME_KEY = 2, CRYPT_OID_INFO_ALGID_KEY = 3, CRYPT_OID_INFO_SIGN_KEY = 4, CRYPT_OID_INFO_CNG_ALGID_KEY = 5, CRYPT_OID_INFO_CNG_SIGN_KEY = 6 } enum : uint { CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG = 0x80000000, CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG = 0x40000000 } enum : uint { CRYPT_HASH_ALG_OID_GROUP_ID = 1, CRYPT_ENCRYPT_ALG_OID_GROUP_ID = 2, CRYPT_PUBKEY_ALG_OID_GROUP_ID = 3, CRYPT_SIGN_ALG_OID_GROUP_ID = 4, CRYPT_RDN_ATTR_OID_GROUP_ID = 5, CRYPT_EXT_OR_ATTR_OID_GROUP_ID = 6, CRYPT_ENHKEY_USAGE_OID_GROUP_ID = 7, CRYPT_POLICY_OID_GROUP_ID = 8, CRYPT_TEMPLATE_OID_GROUP_ID = 9 } struct CRYPT_OID_INFO { uint cbSize = CRYPT_OID_INFO.sizeof; char* pszOID; wchar* pwszName; uint dwGroupId; union { uint dwValue; uint Algid; uint dwLength; } DATA_BLOB ExtraInfo; } CRYPT_OID_INFO* CryptFindOIDInfo(uint dwKeyType, in void* pvKey, uint dwGroupId); enum : uint { CRYPT_FORMAT_STR_MULTI_LINE = 0x0001, CRYPT_FORMAT_STR_NO_HEX = 0x0010 } const char* X509_NAME = cast(char*)7; const char* RSA_CSP_PUBLICKEYBLOB = cast(char*)19; const char* X509_MULTI_BYTE_UINT = cast(char*)38; const char* X509_DSS_PUBLICKEY = X509_MULTI_BYTE_UINT; int CryptFormatObject(uint dwCertEncodingType, uint dwFormatType, uint dwFormatStrType, void* pFormatStruct, in char* lpszStructType, ubyte* pbEncoded, uint cbEncoded, wchar* pbFormat, uint* pcbFormat); int CryptDecodeObject(uint dwCertEncodingType, in char* lpszStructType, in ubyte* pbEncoded, uint cbEncoded, uint dwFlags, void* pvStructInfo, ref uint pcbStructInfo); struct CRYPTPROTECT_PROMPTSTRUCT { uint cbSize = CRYPTPROTECT_PROMPTSTRUCT.sizeof; uint dwPromptFlags; Handle hwndApp; wchar* szPrompt; } enum : uint { CRYPTPROTECT_UI_FORBIDDEN = 0x1, CRYPTPROTECT_LOCAL_MACHINE = 0x4 } int CryptProtectData(DATA_BLOB* pDataIn, in wchar* szDataDescr, DATA_BLOB* pOptionalEntropy, void* pvReserved, CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, uint dwFlags, DATA_BLOB* pDataOut); int CryptUnprotectData(DATA_BLOB* pDataIn, wchar** ppszDataDescr, DATA_BLOB* pOptionalEntropy, void* pvReserved, CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, uint dwFlags, DATA_BLOB* pDataOut); // dwObjectType enum : uint { CERT_QUERY_OBJECT_FILE = 0x00000001, CERT_QUERY_OBJECT_BLOB = 0x00000002 } // dwContentType enum : uint { CERT_QUERY_CONTENT_CERT = 1, CERT_QUERY_CONTENT_SERIALIZED_STORE = 4, CERT_QUERY_CONTENT_SERIALIZED_CERT = 5, CERT_QUERY_CONTENT_PKCS7_SIGNED = 8, CERT_QUERY_CONTENT_PKCS7_UNSIGNED = 9, CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED = 10, CERT_QUERY_CONTENT_PFX = 12 } // dwExpectedConentTypeFlags enum : uint { CERT_QUERY_CONTENT_FLAG_CERT = 1 << CERT_QUERY_CONTENT_CERT, CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE = 1 << CERT_QUERY_CONTENT_SERIALIZED_STORE, CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT = 1 << CERT_QUERY_CONTENT_SERIALIZED_CERT, CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED = 1 << CERT_QUERY_CONTENT_PKCS7_SIGNED, CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED = 1 << CERT_QUERY_CONTENT_PKCS7_UNSIGNED, CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED = 1 << CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED, CERT_QUERY_CONTENT_FLAG_PFX = 1 << CERT_QUERY_CONTENT_PFX, CERT_QUERY_CONTENT_FLAG_ALL = CERT_QUERY_CONTENT_FLAG_CERT | CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE | CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED | CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED | CERT_QUERY_CONTENT_FLAG_PFX } // dwFormatType enum : uint { CERT_QUERY_FORMAT_BINARY = 1, CERT_QUERY_FORMAT_BASE64_ENCODED = 2, CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED = 3 } // dwExpectedFormatTypeFlags enum : uint { CERT_QUERY_FORMAT_FLAG_BINARY = 1 << CERT_QUERY_FORMAT_BINARY, CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED = 1 << CERT_QUERY_FORMAT_BASE64_ENCODED, CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED = 1 << CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED, CERT_QUERY_FORMAT_FLAG_ALL = CERT_QUERY_FORMAT_FLAG_BINARY | CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED | CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED } int CryptQueryObject(uint dwObjectType, in void* pvObject, uint dwExpectedContentTypeFlags, uint dwExpectedFormatTypeFlags, uint dwFlags, uint* pdwMsgAndCertEncodingType, uint* pdwContentType, uint* pdwFormatType, Handle* phCertStore, Handle* phMsg, void** ppvContext); extern(D): static string getErrorMessage(uint errorCode) { wchar[256] buffer; uint result = FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, null, errorCode, 0, buffer.ptr, buffer.length + 1, null); if (result != 0) { string s = .toUTF8(buffer[0 .. result]); while (result > 0) { char c = s[result - 1]; if (c > ' ' && c != '.') break; result--; } return s[0 .. result]; } return std.string.format("Unspecified error (0x%08X)", errorCode); } class Win32Exception : Exception { private uint errorCode_; this(uint errorCode = GetLastError()) { this(errorCode, getErrorMessage(errorCode)); } this(uint errorCode, string message) { super(message); errorCode_ = errorCode; } uint errorCode() { return errorCode_; } } // Runtime DLL support. class DllNotFoundException : Exception { this(string message = "Dll не найдена.") { super(message); } } class EntryPointNotFoundException : Exception { this(string message = "Точка входа в процедуру не найдена.") { super(message); } } public enum CharSet { None, Ansi, Unicode, Auto } private void* addressOfFunction(string dllName, string entryPoint, CharSet charSet) { static Handle[string] moduleStore; Handle moduleHandle; if (auto value = dllName in moduleStore) moduleHandle = *value; else moduleStore[dllName] = moduleHandle = LoadLibrary(dllName.toUTF16z()); if (moduleHandle == Handle.init) throw new DllNotFoundException("Unable to load DLL '" ~ dllName ~ "'."); void* func = null; // '#' denotes an ordinal entry. if (entryPoint[0] == '#') { version(D_Version2) { func = GetProcAddress(moduleHandle, cast(char*)std.conv.to!(ushort)(entryPoint[1 .. $])); } else { func = GetProcAddress(moduleHandle, cast(char*)std.conv.toUshort(entryPoint[1 .. $])); } } else { func = GetProcAddress(moduleHandle, entryPoint.toStringz()); } if (func == null) { CharSet linkType = charSet; if (charSet == CharSet.Auto) linkType = ((GetVersion() & 0x80000000) == 0) ? CharSet.Unicode : CharSet.Ansi; version(D_Version2) { string entryPointName = entryPoint.idup ~ ((linkType == CharSet.Ansi) ? 'A' : 'W'); } else { string entryPointName = entryPoint.dup ~ ((linkType == CharSet.Ansi) ? 'A' : 'W'); } func = GetProcAddress(moduleHandle, entryPointName.toStringz()); if (func == null) throw new EntryPointNotFoundException("Unable to find an entry point named '" ~ entryPoint ~ "' in DLL '" ~ dllName ~ "'."); } return func; } struct DllImport(string dllName, string entryPoint, TFunction, CharSet charSet = CharSet.Auto) { static ReturnType!(TFunction) opCall(ParameterTypeTuple!(TFunction) args) { return (cast(TFunction)addressOfFunction(dllName, entryPoint, charSet))(args); } } extern(Windows): alias DllImport!("kernel32.dll", "LCIDToLocaleName", int function(uint Locale, wchar* lpName, int cchName, uint dwFlags)) LCIDToLocaleName; alias DllImport!("nlsmap.dll", "DownlevelLCIDToLocaleName", int function(uint Locale, wchar* lpName, int cchName, uint dwFlags)) DownlevelLCIDToLocaleName; alias DllImport!("nlsdl.dll", "DownlevelGetParentLocaleName", uint function(uint Locale, wchar* lpName, int cchName)) DownlevelGetParentLocaleName; // XP alias DllImport!("kernel32.dll", "GetGeoInfo", int function(uint Location, uint GeoType, wchar* lpGeoData, int cchData, ushort LangId)) GetGeoInfo; enum : uint { FIND_STARTSWITH = 0x00100000, FIND_ENDSWITH = 0x00200000, FIND_FROMSTART = 0x00400000, FIND_FROMEND = 0x00800000 } // Vista alias DllImport!("kernel32.dll", "FindNLSString", int function(uint Locale, uint dwFindNLSStringFlags, in wchar* lpStringSource, int cchSource, in wchar* lpStringValue, int cchValue, int* pcchFound)) FindNLSString; alias DllImport!("kernel32.dll", "GetThreadIOPendingFlag", int function(Handle hThread, int* lpIOIsPending)) GetThreadIOPendingFlag; enum SYSTEM_INFORMATION_CLASS : uint { SystemProcessInformation = 5 } struct SYSTEM_PROCESS_INFORMATION { int nextEntryOffset; uint numberOfThreads; long spareLi1; long spareLi2; long spareLi3; long createTime; long userTime; long kernelTime; ushort nameLength; ushort maximumNameLength; wchar* nameBuffer; int basePriority; uint uniqueProcessId; } enum { STATUS_INFO_LENGTH_MISMATCH = 0xC0000004 } alias DllImport!("ntdll.dll", "NtQuerySystemInformation", int function(SYSTEM_INFORMATION_CLASS systemInformationClass, void* systemInformation, uint systemInformationLength, uint* returnLength)) NtQuerySystemInformation; enum PROCESS_INFORMATION_CLASS : uint { ProcessBasicInformation = 0 } struct PROCESS_BASIC_INFORMATION { void* reserved1; void* pebBaseAddress; void*[2] reserved2; uint uniqueProcessId; void* reserved3; } alias DllImport!("ntdll.dll", "NtQueryInformationProcess", int function(Handle processHandle, PROCESS_INFORMATION_CLASS processInformationClass, void* processInformation, uint processInformationLength, uint* returnLength)) NtQueryInformationProcess; alias DllImport!("advapi32.dll", "CreateProcessWithLogonW", BOOL function(in wchar* lpUserName, in wchar* lpDomain, in wchar* lpPassword, uint dwLogonFlags, in wchar* lpApplicationName, in wchar* lpCommandLine, uint dwCreationFlags, void* lpEnvironment, in wchar* lpCurrentDirectory, STARTUPINFOW* lpStartupInfo, PROCESS_INFORMATION* lpProcessInformation)) CreateProcessWithLogonW;
D
/Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/First.o : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/First~partial.swiftmodule : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/First~partial.swiftdoc : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
D
/** Stuff with dependencies. Copyright: © 2012-2013 Matthias Dondorff License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Matthias Dondorff, Sönke Ludwig */ module dub.dependency; import dub.internal.utils; import dub.internal.vibecompat.core.log; import dub.internal.vibecompat.core.file; import dub.internal.vibecompat.data.json; import dub.internal.vibecompat.inet.url; import dub.package_; import dub.semver; import std.algorithm; import std.array; import std.exception; import std.regex; import std.string; import std.typecons; static import std.compiler; /** Representing a dependency, which is basically a version string and a compare methode, e.g. '>=1.0.0 <2.0.0' (i.e. a space separates the two version numbers) */ struct Dependency { private { // Shortcut to create >=0.0.0 enum ANY_IDENT = "*"; bool m_inclusiveA = true; // A comparison > (true) or >= (false) Version m_versA; bool m_inclusiveB = true; // B comparison < (true) or <= (false) Version m_versB; Path m_path; bool m_optional = false; } // A Dependency, which matches every valid version. static @property any() { return Dependency(ANY_IDENT); } static @property invalid() { Dependency ret; ret.m_versA = Version.HEAD; ret.m_versB = Version.RELEASE; return ret; } alias ANY = any; alias INVALID = invalid; this(string ves) { enforce(ves.length > 0); string orig = ves; if (ves == ANY_IDENT) { // Any version is good. ves = ">=0.0.0"; } if (ves.startsWith("~>")) { // Shortcut: "~>x.y.z" variant. Last non-zero number will indicate // the base for this so something like this: ">=x.y.z <x.(y+1).z" m_inclusiveA = true; m_inclusiveB = false; ves = ves[2..$]; m_versA = Version(expandVersion(ves)); m_versB = Version(bumpVersion(ves)); } else if (ves[0] == Version.BRANCH_IDENT) { m_inclusiveA = true; m_inclusiveB = true; m_versA = m_versB = Version(ves); } else if (std.string.indexOf("><=", ves[0]) == -1) { m_inclusiveA = true; m_inclusiveB = true; m_versA = m_versB = Version(ves); } else { auto cmpa = skipComp(ves); size_t idx2 = std.string.indexOf(ves, " "); if (idx2 == -1) { if (cmpa == "<=" || cmpa == "<") { m_versA = Version.RELEASE; m_inclusiveA = true; m_versB = Version(ves); m_inclusiveB = cmpa == "<="; } else if (cmpa == ">=" || cmpa == ">") { m_versA = Version(ves); m_inclusiveA = cmpa == ">="; m_versB = Version.HEAD; m_inclusiveB = true; } else { // Converts "==" to ">=a&&<=a", which makes merging easier m_versA = m_versB = Version(ves); m_inclusiveA = m_inclusiveB = true; } } else { enforce(cmpa == ">" || cmpa == ">=", "First comparison operator expected to be either > or >=, not "~cmpa); assert(ves[idx2] == ' '); m_versA = Version(ves[0..idx2]); m_inclusiveA = cmpa == ">="; string v2 = ves[idx2+1..$]; auto cmpb = skipComp(v2); enforce(cmpb == "<" || cmpb == "<=", "Second comparison operator expected to be either < or <=, not "~cmpb); m_versB = Version(v2); m_inclusiveB = cmpb == "<="; enforce(!m_versA.isBranch && !m_versB.isBranch, format("Cannot compare branches: %s", ves)); enforce(m_versA <= m_versB, "First version must not be greater than the second one."); } } } this(in Version ver) { m_inclusiveA = m_inclusiveB = true; m_versA = ver; m_versB = ver; } this(Path path) { this(ANY_IDENT); m_path = path; } @property void path(Path value) { m_path = value; } @property Path path() const { return m_path; } @property bool optional() const { return m_optional; } @property void optional(bool optional) { m_optional = optional; } @property bool isExactVersion() const { return m_versA == m_versB; } @property Version version_() const { enforce(m_versA == m_versB, "Dependency "~versionString~" is no exact version."); return m_versA; } @property string versionString() const { string r; if (this == invalid) return "invalid"; if (m_versA == m_versB && m_inclusiveA && m_inclusiveB) { // Special "==" case if (m_versA == Version.MASTER ) r = "~master"; else r = m_versA.toString(); } else { if (m_versA != Version.RELEASE) r = (m_inclusiveA ? ">=" : ">") ~ m_versA.toString(); if (m_versB != Version.HEAD) r ~= (r.length==0 ? "" : " ") ~ (m_inclusiveB ? "<=" : "<") ~ m_versB.toString(); if (m_versA == Version.RELEASE && m_versB == Version.HEAD) r = ">=0.0.0"; } return r; } Dependency mapToPath(Path path) const { if (m_path.empty || m_path.absolute) return this; else { Dependency ret = this; ret.path = path ~ ret.path; return ret; } } string toString()() const { auto ret = versionString; if (optional) ret ~= " (optional)"; if (!path.empty) ret ~= " @"~path.toNativeString(); return ret; } Json toJson() const { Json json; if( path.empty && !optional ){ json = Json(this.versionString); } else { json = Json.emptyObject; json["version"] = this.versionString; if (!path.empty) json["path"] = path.toString(); if (optional) json["optional"] = true; } return json; } unittest { Dependency d = Dependency("==1.0.0"); assert(d.toJson() == Json("1.0.0"), "Failed: " ~ d.toJson().toPrettyString()); d = fromJson((fromJson(d.toJson())).toJson()); assert(d == Dependency("1.0.0")); assert(d.toJson() == Json("1.0.0"), "Failed: " ~ d.toJson().toPrettyString()); } static Dependency fromJson(Json verspec) { Dependency dep; if( verspec.type == Json.Type.object ){ if( auto pp = "path" in verspec ) { if (auto pv = "version" in verspec) logDiagnostic("Ignoring version specification (%s) for path based dependency %s", pv.get!string, pp.get!string); dep = Dependency.ANY; dep.path = Path(verspec.path.get!string); } else { enforce("version" in verspec, "No version field specified!"); auto ver = verspec["version"].get!string; // Using the string to be able to specifiy a range of versions. dep = Dependency(ver); } if( auto po = "optional" in verspec ) { dep.optional = verspec.optional.get!bool; } } else { // canonical "package-id": "version" dep = Dependency(verspec.get!string); } return dep; } unittest { assert(fromJson(parseJsonString("\">=1.0.0 <2.0.0\"")) == Dependency(">=1.0.0 <2.0.0")); Dependency parsed = fromJson(parseJsonString(` { "version": "2.0.0", "optional": true, "path": "path/to/package" } `)); Dependency d = Dependency.ANY; // supposed to ignore the version spec d.optional = true; d.path = Path("path/to/package"); assert(d == parsed); // optional and path not checked by opEquals. assert(d.optional == parsed.optional); assert(d.path == parsed.path); } bool opEquals(in Dependency o) const { // TODO(mdondorff): Check if not comparing the path is correct for all clients. return o.m_inclusiveA == m_inclusiveA && o.m_inclusiveB == m_inclusiveB && o.m_versA == m_versA && o.m_versB == m_versB && o.m_optional == m_optional; } int opCmp(in Dependency o) const { if (m_inclusiveA != o.m_inclusiveA) return m_inclusiveA < o.m_inclusiveA ? -1 : 1; if (m_inclusiveB != o.m_inclusiveB) return m_inclusiveB < o.m_inclusiveB ? -1 : 1; if (m_versA != o.m_versA) return m_versA < o.m_versA ? -1 : 1; if (m_versB != o.m_versB) return m_versB < o.m_versB ? -1 : 1; if (m_optional != o.m_optional) return m_optional ? -1 : 1; return 0; } hash_t toHash() const nothrow @trusted { try { auto strhash = &typeid(string).getHash; auto str = this.toString(); return strhash(&str); } catch (Exception) assert(false); } bool valid() const { return m_versA <= m_versB && doCmp(m_inclusiveA && m_inclusiveB, m_versA, m_versB); } bool matches(string vers) const { return matches(Version(vers)); } bool matches(const(Version) v) const { return matches(v); } bool matches(ref const(Version) v) const { if (this == ANY) return true; //logDebug(" try match: %s with: %s", v, this); // Master only matches master if(m_versA.isBranch) { enforce(m_versA == m_versB); return m_versA == v; } if(v.isBranch || m_versA.isBranch) return m_versA == v; if( !doCmp(m_inclusiveA, m_versA, v) ) return false; if( !doCmp(m_inclusiveB, v, m_versB) ) return false; return true; } /// Merges to versions Dependency merge(ref const(Dependency) o) const { if (this == ANY) return o; if (o == ANY) return this; if (!this.valid || !o.valid) return INVALID; if (m_versA.isBranch != o.m_versA.isBranch) return INVALID; if (m_versB.isBranch != o.m_versB.isBranch) return INVALID; if (m_versA.isBranch) return m_versA == o.m_versA ? this : INVALID; if (this.path != o.path) return INVALID; Version a = m_versA > o.m_versA ? m_versA : o.m_versA; Version b = m_versB < o.m_versB ? m_versB : o.m_versB; Dependency d = this; d.m_inclusiveA = !m_inclusiveA && m_versA >= o.m_versA ? false : o.m_inclusiveA; d.m_versA = a; d.m_inclusiveB = !m_inclusiveB && m_versB <= o.m_versB ? false : o.m_inclusiveB; d.m_versB = b; d.m_optional = m_optional && o.m_optional; if (!d.valid) return INVALID; return d; } private static bool isDigit(char ch) { return ch >= '0' && ch <= '9'; } private static string skipComp(ref string c) { size_t idx = 0; while (idx < c.length && !isDigit(c[idx]) && c[idx] != Version.BRANCH_IDENT) idx++; enforce(idx < c.length, "Expected version number in version spec: "~c); string cmp = idx==c.length-1||idx==0? ">=" : c[0..idx]; c = c[idx..$]; switch(cmp) { default: enforce(false, "No/Unknown comparision specified: '"~cmp~"'"); return ">="; case ">=": goto case; case ">": goto case; case "<=": goto case; case "<": goto case; case "==": return cmp; } } private static bool doCmp(bool inclusive, ref const Version a, ref const Version b) { return inclusive ? a <= b : a < b; } } unittest { Dependency a = Dependency(">=1.1.0"), b = Dependency(">=1.3.0"); assert (a.merge(b).valid() && a.merge(b).versionString == ">=1.3.0", a.merge(b).toString()); assertThrown(Dependency("<=2.0.0 >=1.0.0")); assertThrown(Dependency(">=2.0.0 <=1.0.0")); a = Dependency(">=1.0.0 <=5.0.0"); b = Dependency(">=2.0.0"); assert (a.merge(b).valid() && a.merge(b).versionString == ">=2.0.0 <=5.0.0", a.merge(b).toString()); assertThrown(a = Dependency(">1.0.0 ==5.0.0"), "Construction is invalid"); a = Dependency(">1.0.0"); b = Dependency("<2.0.0"); assert (a.merge(b).valid(), a.merge(b).toString()); assert (a.merge(b).versionString == ">1.0.0 <2.0.0", a.merge(b).toString()); a = Dependency(">2.0.0"); b = Dependency("<1.0.0"); assert (!(a.merge(b)).valid(), a.merge(b).toString()); a = Dependency(">=2.0.0"); b = Dependency("<=1.0.0"); assert (!(a.merge(b)).valid(), a.merge(b).toString()); a = Dependency("==2.0.0"); b = Dependency("==1.0.0"); assert (!(a.merge(b)).valid(), a.merge(b).toString()); a = Dependency("1.0.0"); b = Dependency("==1.0.0"); assert (a == b); a = Dependency("<=2.0.0"); b = Dependency("==1.0.0"); Dependency m = a.merge(b); assert (m.valid(), m.toString()); assert (m.matches(Version("1.0.0"))); assert (!m.matches(Version("1.1.0"))); assert (!m.matches(Version("0.0.1"))); // branches / head revisions a = Dependency(Version.MASTER_STRING); assert(a.valid()); assert(a.matches(Version.MASTER)); b = Dependency(Version.MASTER_STRING); m = a.merge(b); assert(m.matches(Version.MASTER)); //assertThrown(a = Dependency(Version.MASTER_STRING ~ " <=1.0.0"), "Construction invalid"); assertThrown(a = Dependency(">=1.0.0 " ~ Version.MASTER_STRING), "Construction invalid"); immutable string branch1 = Version.BRANCH_IDENT ~ "Branch1"; immutable string branch2 = Version.BRANCH_IDENT ~ "Branch2"; //assertThrown(a = Dependency(branch1 ~ " " ~ branch2), "Error: '" ~ branch1 ~ " " ~ branch2 ~ "' succeeded"); //assertThrown(a = Dependency(Version.MASTER_STRING ~ " " ~ branch1), "Error: '" ~ Version.MASTER_STRING ~ " " ~ branch1 ~ "' succeeded"); a = Dependency(branch1); b = Dependency(branch2); assert(!a.merge(b).valid, "Shouldn't be able to merge to different branches"); b = a.merge(a); assert(b.valid, "Should be able to merge the same branches. (?)"); assert(a == b); a = Dependency(branch1); assert(a.matches(branch1), "Dependency(branch1) does not match 'branch1'"); assert(a.matches(Version(branch1)), "Dependency(branch1) does not match Version('branch1')"); assert(!a.matches(Version.MASTER), "Dependency(branch1) matches Version.MASTER"); assert(!a.matches(branch2), "Dependency(branch1) matches 'branch2'"); assert(!a.matches(Version("1.0.0")), "Dependency(branch1) matches '1.0.0'"); a = Dependency(">=1.0.0"); assert(!a.matches(Version(branch1)), "Dependency(1.0.0) matches 'branch1'"); // Testing optional dependencies. a = Dependency(">=1.0.0"); assert(!a.optional, "Default is not optional."); b = a; assert(!a.merge(b).optional, "Merging two not optional dependencies wrong."); a.optional = true; assert(!a.merge(b).optional, "Merging optional with not optional wrong."); b.optional = true; assert(a.merge(b).optional, "Merging two optional dependencies wrong."); // SemVer's sub identifiers. a = Dependency(">=1.0.0-beta"); assert(!a.matches(Version("1.0.0-alpha")), "Failed: match 1.0.0-alpha with >=1.0.0-beta"); assert(a.matches(Version("1.0.0-beta")), "Failed: match 1.0.0-beta with >=1.0.0-beta"); assert(a.matches(Version("1.0.0")), "Failed: match 1.0.0 with >=1.0.0-beta"); assert(a.matches(Version("1.0.0-rc")), "Failed: match 1.0.0-rc with >=1.0.0-beta"); // Approximate versions. a = Dependency("~>3.0"); b = Dependency(">=3.0.0 <4.0.0"); assert(a == b, "Testing failed: " ~ a.toString()); assert(a.matches(Version("3.1.146")), "Failed: Match 3.1.146 with ~>0.1.2"); assert(!a.matches(Version("0.2.0")), "Failed: Match 0.2.0 with ~>0.1.2"); a = Dependency("~>3.0.0"); assert(a == Dependency(">=3.0.0 <3.1.0"), "Testing failed: " ~ a.toString()); a = Dependency("~>3.5"); assert(a == Dependency(">=3.5.0 <4.0.0"), "Testing failed: " ~ a.toString()); a = Dependency("~>3.5.0"); assert(a == Dependency(">=3.5.0 <3.6.0"), "Testing failed: " ~ a.toString()); a = Dependency("~>0.1.1"); b = Dependency("==0.1.0"); assert(!a.merge(b).valid); b = Dependency("==0.1.9999"); assert(a.merge(b).valid); b = Dependency("==0.2.0"); assert(!a.merge(b).valid); a = Dependency("~>1.0.1-beta"); b = Dependency(">=1.0.1-beta <1.1.0"); assert(a == b, "Testing failed: " ~ a.toString()); assert(a.matches(Version("1.0.1-beta"))); assert(a.matches(Version("1.0.1-beta.6"))); a = Dependency("~d2test"); assert(!a.optional); assert(a.valid); assert(a.version_ == Version("~d2test")); a = Dependency("==~d2test"); assert(!a.optional); assert(a.valid); assert(a.version_ == Version("~d2test")); a = Dependency.ANY; assert(!a.optional); assert(a.valid); assertThrown(a.version_); b = Dependency(">=1.0.1"); assert(b == a.merge(b)); assert(b == b.merge(a)); logDebug("Dependency Unittest sucess."); } /** A version in the format "major.update.bugfix-prerelease+buildmetadata" according to Semantic Versioning Specification v2.0.0. (deprecated): This also supports a format like "~master", to identify trunk, or "~branch_name" to identify a branch. Both Version types starting with "~" refer to the head revision of the corresponding branch. This is subject to be removed soon. */ struct Version { private { enum MAX_VERS = "99999.0.0"; enum UNKNOWN_VERS = "unknown"; string m_version; } static @property RELEASE() { return Version("0.0.0"); } static @property HEAD() { return Version(MAX_VERS); } static @property MASTER() { return Version(MASTER_STRING); } static @property UNKNOWN() { return Version(UNKNOWN_VERS); } static @property MASTER_STRING() { return "~master"; } static @property BRANCH_IDENT() { return '~'; } this(string vers) { enforce(vers.length > 1, "Version strings must not be empty."); if (vers[0] != BRANCH_IDENT && vers != UNKNOWN_VERS) enforce(vers.isValidVersion(), "Invalid SemVer format: " ~ vers); m_version = vers; } bool opEquals(const Version oth) const { if (isUnknown || oth.isUnknown) { throw new Exception("Can't compare unknown versions! (this: %s, other: %s)".format(this, oth)); } return opCmp(oth) == 0; } /// Returns true, if this version indicates a branch, which is not the trunk. @property bool isBranch() const { return !m_version.empty && m_version[0] == BRANCH_IDENT; } @property bool isMaster() const { return m_version == MASTER_STRING; } @property bool isPreRelease() const { if (isBranch) return true; return isPreReleaseVersion(m_version); } @property bool isUnknown() const { return m_version == UNKNOWN_VERS; } /** Comparing Versions is generally possible, but comparing Versions identifying branches other than master will fail. Only equality can be tested for these. */ int opCmp(ref const Version other) const { if (isUnknown || other.isUnknown) { throw new Exception("Can't compare unknown versions! (this: %s, other: %s)".format(this, other)); } if (isBranch || other.isBranch) { if(m_version == other.m_version) return 0; if (!isBranch) return 1; else if (!other.isBranch) return -1; if (isMaster) return 1; else if (other.isMaster) return -1; return this.m_version < other.m_version ? -1 : 1; } return compareVersions(isMaster ? MAX_VERS : m_version, other.isMaster ? MAX_VERS : other.m_version); } int opCmp(in Version other) const { return opCmp(other); } string toString() const { return m_version; } } unittest { Version a, b; assertNotThrown(a = Version("1.0.0"), "Constructing Version('1.0.0') failed"); assert(!a.isBranch, "Error: '1.0.0' treated as branch"); assert(a == a, "a == a failed"); assertNotThrown(a = Version(Version.MASTER_STRING), "Constructing Version("~Version.MASTER_STRING~"') failed"); assert(a.isBranch, "Error: '"~Version.MASTER_STRING~"' treated as branch"); assert(a.isMaster); assert(a == Version.MASTER, "Constructed master version != default master version."); assertNotThrown(a = Version("~BRANCH"), "Construction of branch Version failed."); assert(a.isBranch, "Error: '~BRANCH' not treated as branch'"); assert(!a.isMaster); assert(a == a, "a == a with branch failed"); // opCmp a = Version("1.0.0"); b = Version("1.0.0"); assert(a == b, "a == b with a:'1.0.0', b:'1.0.0' failed"); b = Version("2.0.0"); assert(a != b, "a != b with a:'1.0.0', b:'2.0.0' failed"); a = Version(Version.MASTER_STRING); b = Version("~BRANCH"); assert(a != b, "a != b with a:MASTER, b:'~branch' failed"); assert(a > b); assert(a < Version("0.0.0")); assert(b < Version("0.0.0")); assert(a > Version("~Z")); assert(b < Version("~Z")); // SemVer 2.0.0-rc.2 a = Version("2.0.0-rc.2"); b = Version("2.0.0-rc.3"); assert(a < b, "Failed: 2.0.0-rc.2 < 2.0.0-rc.3"); a = Version("2.0.0-rc.2+build-metadata"); b = Version("2.0.0+build-metadata"); assert(a < b, "Failed: "~a.toString()~"<"~b.toString()); // 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0 Version[] versions; versions ~= Version("1.0.0-alpha"); versions ~= Version("1.0.0-alpha.1"); versions ~= Version("1.0.0-beta.2"); versions ~= Version("1.0.0-beta.11"); versions ~= Version("1.0.0-rc.1"); versions ~= Version("1.0.0"); for(int i=1; i<versions.length; ++i) for(int j=i-1; j>=0; --j) assert(versions[j] < versions[i], "Failed: " ~ versions[j].toString() ~ "<" ~ versions[i].toString()); a = Version.UNKNOWN; b = Version.RELEASE; assertThrown(a == b, "Failed: compared " ~ a.toString() ~ " with " ~ b.toString() ~ ""); a = Version.UNKNOWN; b = Version.UNKNOWN; assertThrown(a == b, "Failed: UNKNOWN == UNKNOWN"); assert(Version("1.0.0+a") == Version("1.0.0+b")); }
D
/* Converted to D from gsl_vector_uchar.h by htod * and edited by daniel truemper <truemped.dsource <with> hence22.org> */ module auxc.gsl.gsl_vector_uchar; /* vector/gsl_vector_uchar.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import tango.stdc.stdlib; import tango.stdc.stdio; public import auxc.gsl.gsl_types; public import auxc.gsl.gsl_errno; public import auxc.gsl.gsl_check_range; public import auxc.gsl.gsl_block_uchar; extern (C): struct gsl_vector_uchar { size_t size; size_t stride; ubyte *data; gsl_block_uchar *block; int owner; }; struct _gsl_vector_uchar_view { gsl_vector_uchar vector; }; alias _gsl_vector_uchar_view gsl_vector_uchar_view; struct _gsl_vector_uchar_const_view { gsl_vector_uchar vector; }; alias _gsl_vector_uchar_const_view gsl_vector_uchar_const_view; /* Allocation */ gsl_vector_uchar * gsl_vector_uchar_alloc(size_t n); gsl_vector_uchar * gsl_vector_uchar_calloc(size_t n); gsl_vector_uchar * gsl_vector_uchar_alloc_from_block(gsl_block_uchar *b, size_t offset, size_t n, size_t stride); gsl_vector_uchar * gsl_vector_uchar_alloc_from_vector(gsl_vector_uchar *v, size_t offset, size_t n, size_t stride); void gsl_vector_uchar_free(gsl_vector_uchar *v); /* Views */ _gsl_vector_uchar_view gsl_vector_uchar_view_array(ubyte *v, size_t n); _gsl_vector_uchar_view gsl_vector_uchar_view_array_with_stride(ubyte *base, size_t stride, size_t n); _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array(ubyte *v, size_t n); _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array_with_stride(ubyte *base, size_t stride, size_t n); _gsl_vector_uchar_view gsl_vector_uchar_subvector(gsl_vector_uchar *v, size_t i, size_t n); _gsl_vector_uchar_view gsl_vector_uchar_subvector_with_stride(gsl_vector_uchar *v, size_t i, size_t stride, size_t n); _gsl_vector_uchar_const_view gsl_vector_uchar_const_subvector(gsl_vector_uchar *v, size_t i, size_t n); _gsl_vector_uchar_const_view gsl_vector_uchar_const_subvector_with_stride(gsl_vector_uchar *v, size_t i, size_t stride, size_t n); /* Operations */ ubyte gsl_vector_uchar_get(gsl_vector_uchar *v, size_t i); void gsl_vector_uchar_set(gsl_vector_uchar *v, size_t i, ubyte x); ubyte * gsl_vector_uchar_ptr(gsl_vector_uchar *v, size_t i); ubyte * gsl_vector_uchar_const_ptr(gsl_vector_uchar *v, size_t i); void gsl_vector_uchar_set_zero(gsl_vector_uchar *v); void gsl_vector_uchar_set_all(gsl_vector_uchar *v, ubyte x); int gsl_vector_uchar_set_basis(gsl_vector_uchar *v, size_t i); int gsl_vector_uchar_fread(FILE *stream, gsl_vector_uchar *v); int gsl_vector_uchar_fwrite(FILE *stream, gsl_vector_uchar *v); int gsl_vector_uchar_fscanf(FILE *stream, gsl_vector_uchar *v); int gsl_vector_uchar_fprintf(FILE *stream, gsl_vector_uchar *v, char *format); int gsl_vector_uchar_memcpy(gsl_vector_uchar *dest, gsl_vector_uchar *src); int gsl_vector_uchar_reverse(gsl_vector_uchar *v); int gsl_vector_uchar_swap(gsl_vector_uchar *v, gsl_vector_uchar *w); int gsl_vector_uchar_swap_elements(gsl_vector_uchar *v, size_t i, size_t j); ubyte gsl_vector_uchar_max(gsl_vector_uchar *v); ubyte gsl_vector_uchar_min(gsl_vector_uchar *v); void gsl_vector_uchar_minmax(gsl_vector_uchar *v, ubyte *min_out, ubyte *max_out); size_t gsl_vector_uchar_max_index(gsl_vector_uchar *v); size_t gsl_vector_uchar_min_index(gsl_vector_uchar *v); void gsl_vector_uchar_minmax_index(gsl_vector_uchar *v, size_t *imin, size_t *imax); int gsl_vector_uchar_add(gsl_vector_uchar *a, gsl_vector_uchar *b); int gsl_vector_uchar_sub(gsl_vector_uchar *a, gsl_vector_uchar *b); int gsl_vector_uchar_mul(gsl_vector_uchar *a, gsl_vector_uchar *b); int gsl_vector_uchar_div(gsl_vector_uchar *a, gsl_vector_uchar *b); int gsl_vector_uchar_scale(gsl_vector_uchar *a, double x); int gsl_vector_uchar_add_constant(gsl_vector_uchar *a, double x); int gsl_vector_uchar_isnull(gsl_vector_uchar *v);
D
module bt.toolbox.timeinterval; import std.algorithm; struct TimeInterval { long begin; long end; } long length(TimeInterval a) { return a.end - a.begin; } bool intersects(TimeInterval a, TimeInterval b) { return a.begin < b.end && a.end > b.begin; } TimeInterval intersection(TimeInterval a, TimeInterval b) { auto begin = a.begin > b.begin ? a.begin : b.begin; auto end = a.end < b.end ? a.end : b.end; return TimeInterval(begin, end); } TimeInterval[] intersection(TimeInterval[] list, TimeInterval interval) { TimeInterval[] intersections; foreach(item; list) if(item.intersects(interval)) intersections ~= item.intersection(interval); return intersections; } unittest { import std.datetime : SysTime; auto start = SysTime.fromISOExtString("2010-01-01T00:00:00Z").toUnixTime; auto end = SysTime.fromISOExtString("2010-01-01T01:00:00Z").toUnixTime; auto start1 = SysTime.fromISOExtString("2010-01-01T00:25:00Z").toUnixTime; auto end1 = SysTime.fromISOExtString("2010-01-01T00:45:00Z").toUnixTime; auto interval = TimeInterval(start1, end1); auto inter = intersection( [ TimeInterval(start, end) ], interval ); assert(inter.length == 1); assert(inter[0].begin == start1); assert(inter[0].end == end1); } TimeInterval[] intersection(TimeInterval[] list1, TimeInterval[] list2) { TimeInterval[] intersections = list1; foreach(item; list2) intersections = intersections.intersection(item); return intersections; } void subtract(ref TimeInterval[] list, TimeInterval interval) { TimeInterval[] newList; foreach(item; list) { if(item.intersects(interval)) { auto intersection = item.intersection(interval); auto a = TimeInterval(min(item.begin, interval.begin), intersection.begin); auto b = TimeInterval(intersection.end, max(item.end, interval.end)); if(a.length > 0) newList ~= a; if(b.length > 0) newList ~= b; } else { newList ~= item; } } list = newList; } unittest { import std.datetime : SysTime; auto start = SysTime.fromISOExtString("2010-01-01T00:00:00Z").toUnixTime; auto end = SysTime.fromISOExtString("2010-01-01T01:00:00Z").toUnixTime; auto start1 = SysTime.fromISOExtString("2010-01-01T00:25:00Z").toUnixTime; auto end1 = SysTime.fromISOExtString("2010-01-01T00:45:00Z").toUnixTime; auto interval = TimeInterval(start1, end1); TimeInterval[] list; list ~= TimeInterval(start, end); list.subtract(interval); assert(list.length == 2); assert(list[0].begin == start); assert(list[0].end == start1); assert(list[1].begin == end1); assert(list[1].end == end); } unittest { import std.datetime : SysTime; auto start = SysTime.fromISOExtString("2010-01-01T00:00:00Z").toUnixTime; auto end = SysTime.fromISOExtString("2010-01-01T01:00:00Z").toUnixTime; auto start1 = SysTime.fromISOExtString("2010-01-01T01:25:00Z").toUnixTime; auto end1 = SysTime.fromISOExtString("2010-01-01T01:45:00Z").toUnixTime; auto interval = TimeInterval(start1, end1); TimeInterval[] list; list ~= TimeInterval(start, end); list.subtract(interval); assert(list.length == 1); assert(list[0].begin == start); assert(list[0].end == end); } TimeInterval[] subtract(TimeInterval interval, TimeInterval[] list) { TimeInterval[] newList; newList ~= interval; foreach(item; list) { newList.subtract(item); } return newList; } unittest { import std.datetime : SysTime, DateTime; auto start = SysTime(DateTime(2010,1,1,0,0,0)).toUnixTime; auto end = SysTime(DateTime(2010,1,1,1,0,0)).toUnixTime; auto start1 = SysTime(DateTime(2010,1,1,0,0,0)).toUnixTime; auto end1 = SysTime(DateTime(2010,1,1,0,15,0)).toUnixTime; auto start2 = SysTime(DateTime(2010,1,1,0,20,0)).toUnixTime; auto end2 = SysTime(DateTime(2010,1,1,0,30,0)).toUnixTime; auto result = subtract(TimeInterval(start, end), [TimeInterval(start1, end1), TimeInterval(start2, end2)]); assert(result.length == 2); assert(result[0].begin == end1); assert(result[0].end == start2); assert(result[1].begin == end2); assert(result[1].end == end); }
D
#!/bin/rdmd module repo_pull; import std.stdio; import std.conv; import std.process; import std.algorithm; import std.regex; import std.experimental.logger; import std.experimental.typecons : Final, makeFinal; import std.getopt : getopt, defaultGetoptPrinter, GetoptResult; import std.ascii : letters; import std.path : buildPath; import std.file : tempDir, mkdirRecurse, chdir, rmdirRecurse; import std.utf : byCodeUnit; import std.random : randomSample; void main(string[] args) { sharedLog = new FileLogger(stdout); globalLogLevel = LogLevel.info; string repo = null; bool dryRun = false; GetoptResult opts; try { opts = args.getopt( "d", "Local repository name (default: auto detect)", &repo, "n", "Dry run", &dryRun); } catch (Exception e) { writeln("Error: ", e.message); return; } import std.format : format; import std.path : baseName; if (opts.helpWanted || args.length < 2) { defaultGetoptPrinter("Remove package and its unneeded dependencies from your local repository\n"~ "Usage:\n%s [-d repo] package".format(args[0].baseName), opts.options); return; } string chosenRepo = null; // Find repo auto aurRepoCmd = pipeProcess(["aur", "repo", "--repo-list"], Redirect.stdout).makeFinal; scope(exit) aurRepoCmd.pid.wait; enum pat = ctRegex!(r"\s"); foreach(k; aurRepoCmd.stdout.byLine) { auto p = k.split(pat); if (repo == p[0] || repo is null) { chosenRepo = p[0].idup; break; } } // Find what packages are already in the repo auto aurRepoCmd2 = pipeProcess(["aur", "repo", "-l", "-d", chosenRepo, "--table"], Redirect.stdout).makeFinal; scope(exit) aurRepoCmd2.pid.wait; bool[string] packages; int[string] depCount; string[] targetDep = [ args[1] ]; foreach(k; aurRepoCmd2.stdout.byLine) { auto p = k.split(pat); auto name = p[0].idup; auto dep = p[1].idup; packages[name] = true; if (name != args[1]) { depCount[dep]++; if (dep == args[1]) { errorf("Removing %s will break dependent %s", args[1], name); return; } } else { targetDep ~= dep.idup; } } if (args[1] !in packages) { errorf("Package %s not found", args[1]); return; } assert(args[1] !in depCount); string[] toRemove; foreach(p; targetDep) { if (p !in depCount && p in packages) { toRemove ~= p; } } // Get repo db path auto aurRepoCmd3 = pipeProcess(["aur", "repo", "--path", "-d", chosenRepo], Redirect.stdout).makeFinal; scope(exit) aurRepoCmd3.pid.wait; immutable db = aurRepoCmd3.stdout.byLine.front.idup; string[] repoRemoveArgs = [ "repo-remove", db ] ~ toRemove; if (dryRun) { writefln("Would have run %(%s %)", repoRemoveArgs); } else { spawnProcess(repoRemoveArgs).wait; } }
D
/* * Hunt - a framework for web and console application based on Collie using Dlang development * * Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd * * Developer: putao's Dlang team * * Licensed under the BSD License. * * template parsing is based on dymk/temple source from https://github.com/dymk/temple */ module hunt.web.view.outputstream; private { import std.range; import std.stdio; } // Wraps any generic output stream/sink struct TempleOutputStream { private: //void delegate(string) scope_sink; void delegate(string) sink; public: this(T)(ref T os) if (isOutputRange!(T, string)) { this.sink = delegate(str) { os.put(str); }; } this(ref File f) { this.sink = delegate(str) { f.write(str); }; } this(void delegate(string) s) { this.sink = s; } this(void function(string) s) { this.sink = delegate(str) { s(str); }; } void put(string s) { this.sink(s); } // for vibe.d's html escape // TODO: write own html escaping mechanism, as this one requires an allocation // made for each char written to the output void put(dchar d) { import std.conv; this.sink(d.to!string); } invariant() { assert(this.sink !is null); } } // newtype struct struct TempleInputStream { // when called, 'into' pipes its output into OutputStream void delegate(ref TempleOutputStream os) into; invariant() { assert(this.into !is null); } }
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 TSuper.java .class public dot.junit.opcodes.invoke_virtual_range.d.TSuper .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 toInt()I .limit regs 3 const v0, 5 return v0 .end method .method public toInt(F)I .limit regs 3 float-to-int v0, v2 return v0 .end method .method public native toIntNative()I .end method .method public static toIntStatic()I .limit regs 3 const v0, 5 return v0 .end method .method protected toIntP()I .limit regs 3 const v0, 5 return v0 .end method .method private toIntPvt()I .limit regs 3 const v0, 5 return v0 .end method .method public testArgsOrder(II)I .limit regs 4 const v0, 349 const v1, 344656 div-int v2, v2, v3 return v2 .end method
D
module godot.editorfiledialog; import std.meta : AliasSeq, staticIndexOf; import std.traits : Unqual; import godot.d.meta; import godot.core; import godot.c; import godot.object; import godot.classdb; import godot.confirmationdialog; import godot.vboxcontainer; @GodotBaseClass struct EditorFileDialog { static immutable string _GODOT_internal_name = "EditorFileDialog"; public: union { godot_object _godot_object; ConfirmationDialog base; } alias base this; alias BaseClasses = AliasSeq!(typeof(base), typeof(base).BaseClasses); package(godot) void* opCast(T : void*)() const { return cast(void*)_godot_object.ptr; } godot_object opCast(T : godot_object)() const { return cast(godot_object)_godot_object; } bool opEquals(in EditorFileDialog other) const { return _godot_object.ptr is other._godot_object.ptr; } EditorFileDialog opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; } bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; } bool opCast(T : bool)() const { return _godot_object.ptr !is null; } inout(T) opCast(T)() inout if(isGodotBaseClass!T) { static assert(staticIndexOf!(EditorFileDialog, T.BaseClasses) != -1, "Godot class "~T.stringof~" does not inherit EditorFileDialog"); if(_godot_object.ptr is null) return T.init; String c = String(T._GODOT_internal_name); if(is_class(c)) return inout(T)(_godot_object); return T.init; } inout(T) opCast(T)() inout if(extendsGodotBaseClass!T) { static assert(is(typeof(T.owner) : EditorFileDialog) || staticIndexOf!(EditorFileDialog, typeof(T.owner).BaseClasses) != -1, "D class "~T.stringof~" does not extend EditorFileDialog"); if(_godot_object.ptr is null) return null; if(has_method(String(`_GDNATIVE_D_typeid`))) { Object o = cast(Object)godot_nativescript_get_userdata(opCast!godot_object); return cast(inout(T))o; } return null; } static EditorFileDialog _new() { static godot_class_constructor constructor; if(constructor is null) constructor = godot_get_class_constructor("EditorFileDialog"); if(constructor is null) return typeof(this).init; return cast(EditorFileDialog)(constructor()); } enum int MODE_OPEN_DIR = 2; enum int ACCESS_USERDATA = 1; enum int MODE_SAVE_FILE = 4; enum int MODE_OPEN_ANY = 3; enum int ACCESS_RESOURCES = 0; enum int MODE_OPEN_FILES = 1; enum int ACCESS_FILESYSTEM = 2; enum int MODE_OPEN_FILE = 0; void _unhandled_input(in GodotObject arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_unhandled_input"); this.callv(_GODOT_method_name, _GODOT_args); } void _item_selected(in int arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_item_selected"); this.callv(_GODOT_method_name, _GODOT_args); } void _item_db_selected(in int arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_item_db_selected"); this.callv(_GODOT_method_name, _GODOT_args); } void _dir_entered(in String arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_dir_entered"); this.callv(_GODOT_method_name, _GODOT_args); } void _file_entered(in String arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_file_entered"); this.callv(_GODOT_method_name, _GODOT_args); } void _action_pressed() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_action_pressed"); this.callv(_GODOT_method_name, _GODOT_args); } void _cancel_pressed() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_cancel_pressed"); this.callv(_GODOT_method_name, _GODOT_args); } void _filter_selected(in int arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_filter_selected"); this.callv(_GODOT_method_name, _GODOT_args); } void _save_confirm_pressed() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_save_confirm_pressed"); this.callv(_GODOT_method_name, _GODOT_args); } void clear_filters() { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "clear_filters"); godot_method_bind_ptrcall(mb, cast(godot_object)(this), null); } void add_filter(in String filter) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "add_filter"); const(void*)[1] _GODOT_args = [cast(void*)(&filter), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } String get_current_dir() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_current_dir"); String _GODOT_ret = String.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } String get_current_file() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_current_file"); String _GODOT_ret = String.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } String get_current_path() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_current_path"); String _GODOT_ret = String.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } void set_current_dir(in String dir) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_current_dir"); const(void*)[1] _GODOT_args = [cast(void*)(&dir), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } void set_current_file(in String file) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_current_file"); const(void*)[1] _GODOT_args = [cast(void*)(&file), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } void set_current_path(in String path) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_current_path"); const(void*)[1] _GODOT_args = [cast(void*)(&path), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } void set_mode(in int mode) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_mode"); const(void*)[1] _GODOT_args = [cast(void*)(&mode), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } int get_mode() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_mode"); int _GODOT_ret = int.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } VBoxContainer get_vbox() { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_vbox"); VBoxContainer _GODOT_ret = VBoxContainer.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } void set_access(in int access) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_access"); const(void*)[1] _GODOT_args = [cast(void*)(&access), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } int get_access() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_access"); int _GODOT_ret = int.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } void set_show_hidden_files(in bool show) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_show_hidden_files"); const(void*)[1] _GODOT_args = [cast(void*)(&show), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } bool is_showing_hidden_files() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "is_showing_hidden_files"); bool _GODOT_ret = bool.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } void _select_drive(in int arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_select_drive"); this.callv(_GODOT_method_name, _GODOT_args); } void _make_dir() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_make_dir"); this.callv(_GODOT_method_name, _GODOT_args); } void _make_dir_confirm() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_make_dir_confirm"); this.callv(_GODOT_method_name, _GODOT_args); } void _update_file_list() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_update_file_list"); this.callv(_GODOT_method_name, _GODOT_args); } void _update_dir() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_update_dir"); this.callv(_GODOT_method_name, _GODOT_args); } void _thumbnail_done(in String arg0, in GodotObject arg1, in Variant arg2) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); _GODOT_args.append(arg1); _GODOT_args.append(arg2); String _GODOT_method_name = String("_thumbnail_done"); this.callv(_GODOT_method_name, _GODOT_args); } void set_display_mode(in int mode) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_display_mode"); const(void*)[1] _GODOT_args = [cast(void*)(&mode), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } int get_display_mode() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "get_display_mode"); int _GODOT_ret = int.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } void _thumbnail_result(in String arg0, in GodotObject arg1, in Variant arg2) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); _GODOT_args.append(arg1); _GODOT_args.append(arg2); String _GODOT_method_name = String("_thumbnail_result"); this.callv(_GODOT_method_name, _GODOT_args); } void set_disable_overwrite_warning(in bool disable) { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "set_disable_overwrite_warning"); const(void*)[1] _GODOT_args = [cast(void*)(&disable), ]; godot_method_bind_ptrcall(mb, cast(godot_object)(this), _GODOT_args.ptr); } bool is_overwrite_warning_disabled() const { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "is_overwrite_warning_disabled"); bool _GODOT_ret = bool.init; godot_method_bind_ptrcall(mb, cast(godot_object)(this), null, cast(void*)&_GODOT_ret); return _GODOT_ret; } void _recent_selected(in int arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_recent_selected"); this.callv(_GODOT_method_name, _GODOT_args); } void _go_back() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_go_back"); this.callv(_GODOT_method_name, _GODOT_args); } void _go_forward() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_go_forward"); this.callv(_GODOT_method_name, _GODOT_args); } void _go_up() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_go_up"); this.callv(_GODOT_method_name, _GODOT_args); } void _favorite_toggled(in bool arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_favorite_toggled"); this.callv(_GODOT_method_name, _GODOT_args); } void _favorite_selected(in int arg0) { Array _GODOT_args = Array.empty_array; _GODOT_args.append(arg0); String _GODOT_method_name = String("_favorite_selected"); this.callv(_GODOT_method_name, _GODOT_args); } void _favorite_move_up() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_favorite_move_up"); this.callv(_GODOT_method_name, _GODOT_args); } void _favorite_move_down() { Array _GODOT_args = Array.empty_array; String _GODOT_method_name = String("_favorite_move_down"); this.callv(_GODOT_method_name, _GODOT_args); } void invalidate() { static godot_method_bind* mb = null; if(mb is null) mb = godot_method_bind_get_method("EditorFileDialog", "invalidate"); godot_method_bind_ptrcall(mb, cast(godot_object)(this), null); } }
D
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/AST/TemplateDataContext.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/TemplateDataContext~partial.swiftmodule : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/TemplateDataContext~partial.swiftdoc : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.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/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.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
/home/raz/code_projects/rust_projects/rust_projects1/gas_rust_cursive_1/target/debug/build/parking_lot_core-b2dde77b8e250b99/build_script_build-b2dde77b8e250b99: /home/raz/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.3.1/build.rs /home/raz/code_projects/rust_projects/rust_projects1/gas_rust_cursive_1/target/debug/build/parking_lot_core-b2dde77b8e250b99/build_script_build-b2dde77b8e250b99.d: /home/raz/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.3.1/build.rs /home/raz/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.3.1/build.rs:
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; void main() { auto nd = readln.split.to!(int[]); auto N = nd[0]; auto D = nd[1]; auto RS = readln.split.to!(int[]); sort(RS); int j = 1; long r; foreach (i; 0..N) { while (j < N && RS[j] - RS[i] <= D) ++j; auto d = max(0, j - i - 2).to!long; r += d * (d+1) / 2; } writeln(r); }
D
module com.cterm2.tpeg.tableStructure; import std.stdio, std.conv, std.range, std.array, std.algorithm; class TableActionBase { // require deep-copyable public abstract @property TableActionBase dup(); } class ShiftAction : TableActionBase { size_t stateNum; public @property state(){ return this.stateNum; } public override @property TableActionBase dup() { return new ShiftAction(this.stateNum); } public this(size_t sn) { this.stateNum = sn; } public override string toString() { return "s" ~ this.stateNum.to!string; } public override bool opEquals(Object o) { if(auto t = cast(ShiftAction)o) return t.stateNum == this.stateNum; else return false; } } class ReduceAction : TableActionBase { bool with_shift = true; size_t reduceNum; bool isSkip; public @property reduceIndex(){ return this.reduceNum; } public override @property TableActionBase dup() { auto instance = this.isSkip ? new ReduceAction() : new ReduceAction(this.reduceNum); instance.with_shift = this.with_shift; return instance; } public @property withoutShift() { auto clone = this.isSkip ? new ReduceAction() : new ReduceAction(this.reduceNum); clone.with_shift = false; return clone; } public @property withShift() { auto clone = this.isSkip ? new ReduceAction() : new ReduceAction(this.reduceNum); clone.with_shift = true; return clone; } public @property isShift() { return this.with_shift; } public this(size_t rn) { this.reduceNum = rn; this.isSkip = false; } public this() { this.reduceNum = size_t.max; this.isSkip = true; } public override string toString() { return (this.with_shift ? "sr" : "r") ~ (this.isSkip ? "X" : this.reduceNum.to!string); } public override bool opEquals(Object o) { if(auto t = cast(ReduceAction)o) { if(t.isSkip && this.isSkip) return true; else return ((!t.isSkip && !this.isSkip) && t.reduceNum == this.reduceNum && t.with_shift == this.with_shift); } else return false; } } class ShiftTable { public static class ShiftState { public TableActionBase[] actionList; public TableActionBase wildcardAction; public @property nothing(){ return this.actionList.all!(a => a is null) && this.wildcardAction is null; } public @property wildcardOnly(){ return this.actionList.all!(a => a is null) && this.wildcardAction !is null; } public @property solid(){ return this.wildcardOnly || this.actionList.filter!(a => a !is null).count == 1; } public override bool opEquals(Object o) { if(auto t = cast(ShiftState)o) return t.actionList[] == this.actionList[] && t.wildcardAction == this.wildcardAction; return false; } } ShiftState[] states; dchar[] _candidates; size_t[dchar] candidateToIndex; size_t currentStateIndex; size_t[] stateStock; public @property maxIndex() pure { return this.states.length - 1; } public @property unescapedCandidates() pure { immutable string[dchar] unescapeMap = ['\n': "\\n", '\r': "\\r", '\t': "\\t"]; return this.candidates.map!(a => (a in unescapeMap) ? unescapeMap[a] : a.to!string); } public @property candidates() pure { return this._candidates; } public @property stateList() pure { return this.states; } public auto indexFromUnescapedCandidate(string c) pure { immutable dchar[string] escapeMap = [r"\n": '\n', r"\r": '\r', r"\t": '\t']; return this.candidateToIndex[c in escapeMap ? escapeMap[c] : c.front]; } public auto getState(size_t st) { return this.states[st]; } public auto appendNewState() { this.states ~= new ShiftState(); this.states[$ - 1].actionList.length = this.candidates.length; return this.states.length - 1; } public auto appendNewCandidate(dchar ch) { if(ch in this.candidateToIndex) return this.candidateToIndex[ch]; this._candidates ~= ch; this.candidateToIndex[ch] = this.candidates.length - 1; foreach(st; this.states) st.actionList ~= null; return this.candidates.length - 1; } public auto setCurrentState(size_t st) in { assert(0 <= st && st < this.states.length); } body { auto ps = this.currentStateIndex; this.currentStateIndex = st; return ps; } public void pushCurrentState(size_t st) { this.stateStock ~= this.currentStateIndex; this.setCurrentState(st); } public void popCurrentState() { auto st = this.stateStock.back; this.stateStock.popBack; this.setCurrentState(st); } public auto registerAction(dchar ch, TableActionBase ta) { // Reporter Functions void reportInfo(string msg) { writeln("Info: ", msg, " on candidate ", ch, ", state ", this.currentStateIndex); } void reportWarn(string msg) { writeln("Warn: ", msg, " on candidate ", ch, ", state ", this.currentStateIndex); } template RaiseConflict(string type) { const RaiseConflict = "throw new Exception(\"" ~ type ~ "/" ~ type ~ " conflict " ~ "on candidate \" ~ ch.to!string ~ \", state \" ~ this.currentStateIndex.to!string ~ " ~ "\"(Already registered: \" ~ this.anyAction(ch).toString ~ \")\");"; } if(ch !in this.candidateToIndex) this.appendNewCandidate(ch); if(ta is null) return; // no place auto cr = this.anyAction(ch); if(cr !is null && ta != cr) { if(auto targetRecord = cast(ShiftAction)ta) { // shift if(auto currentRecord = cast(ReduceAction)cr) { // reduce -> shift reportInfo("overwriting reduce by shift."); } else if(auto currentRecord = cast(ShiftAction)cr) { // shift -> shift mixin(RaiseConflict!"shift"); } else assert(false, "internal error"); } else if(auto targetRecord = cast(ReduceAction)ta) { // reduce if(auto currentRecord = cast(ReduceAction)cr) { // reduce -> reduce mixin(RaiseConflict!"reduce"); } else if(auto currentRecord = cast(ShiftAction)cr) { // shift -> reduce reportWarn("overwriting shift by reduce is not allowed. ignored."); return; } else assert(false, "internal error"); } } this.states[this.currentStateIndex].actionList[this.candidateToIndex[ch]] = ta.dup; } public auto registerAnyAction(TableActionBase ta) { this.states[this.currentStateIndex].wildcardAction = ta is null ? null : ta.dup; } template actionGetter(ActionT) { public ActionT actionGetter(dchar ch) { if(ch !in this.candidateToIndex) return null; return cast(ActionT)this.states[this.currentStateIndex].actionList[this.candidateToIndex[ch]]; } public ActionT actionGetter() { return cast(ActionT)this.states[this.currentStateIndex].wildcardAction; } } public alias anyAction = actionGetter!TableActionBase; public alias shift = actionGetter!ShiftAction; public alias reduce = actionGetter!ReduceAction; public this() { this.states ~= new ShiftState(); this.setCurrentState(0); } } class ReduceTable { string[] reduceTargets; size_t[string] reduceTargetsToIndex; public @property reduceTargetNames(){ return this.reduceTargets; } public auto reduceTargetName(size_t index) { return this.reduceTargets[index]; } public auto registerTarget(string targetName) { this.reduceTargets ~= targetName; this.reduceTargetsToIndex[targetName] = this.reduceTargets.length - 1; return this.reduceTargets.length - 1; } public auto getReduceIndexFromTarget(string targetName) { return this.reduceTargetsToIndex[targetName]; } public @property maxIndex() pure { return this.reduceTargets.length - 1; } public @property maxTargetNameLength() pure { return this.reduceTargets.map!(a => a.length).reduce!max; } }
D
/Users/doki/Desktop/code12/FabriclogPoint/Build/Intermediates/FabricPoint.build/Debug-iphoneos/FabricPoint.build/Objects-normal/arm64/AppDelegate.o : /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/AppDelegate.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/ViewController.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/CameraViewController.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/PointUseViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AudioToolbox.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/doki/Desktop/code12/FabriclogPoint/Build/Intermediates/FabricPoint.build/Debug-iphoneos/FabricPoint.build/Objects-normal/arm64/AppDelegate~partial.swiftmodule : /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/AppDelegate.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/ViewController.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/CameraViewController.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/PointUseViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AudioToolbox.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Users/doki/Desktop/code12/FabriclogPoint/Build/Intermediates/FabricPoint.build/Debug-iphoneos/FabricPoint.build/Objects-normal/arm64/AppDelegate~partial.swiftdoc : /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/AppDelegate.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/ViewController.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/CameraViewController.swift /Users/doki/Desktop/code12/FabriclogPoint/FabricPoint/PointUseViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AudioToolbox.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule
D
#!/usr/bin/env rdmd /* 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) */ import std.stdio; import std.getopt; import std.algorithm; import std.regex; import std.uri; import std.process; int main(string[] args) { char dman = 'd'; if (find(args[0], "cman").length) dman = 'c'; if (args.length < 2) { writefln("%sman: Look up %s topics in the manual Usage: %sman [--man] topic ", dman, dman == 'c' ? 'C' : 'D', dman); return 1; } bool man; getopt(args, "man", { man = true; }); if (man) { browse("http://www.digitalmars.com/ctg/dman.html"); return 0; } else if (args.length < 2) { writefln("%sman: no topic", dman); return 1; } auto topic = args[1]; foreach (a; args[2..$]) topic ~= " " ~ a; auto url = topic2url(dman, topic); if (url) { browse(url); } else { writefln("%sman: topic '%s' not found", dman, topic); return 1; } return 0; } string topic2url(char dman, string topic) { /* Instead of hardwiring these, dman should read from a .json database pointed to * by sc.ini or dmd.conf. */ string url; if (dman == 'c') { url = DmcCommands(topic); if (!url) url = CHeader(topic); if (!url) url = Clib(topic); if (!url) url = Misc(topic); if (!url) // Try "I'm Feeling Lucky" url = "http://www.google.com/search?q=" ~ "site:digitalmars.com " ~ std.uri.encode(topic) ~ "&btnI=I%27m+Feeling+Lucky"; } else { url = DmcCommands(topic); if (!url) url = Misc(topic); if (!url) url = D(topic); if (!url) url = CHeader(topic); if (!url) url = Clib(topic); if (!url) // Try "I'm Feeling Lucky" url = "http://www.google.com/search?q=" ~ std.uri.encode(topic) ~ "&as_oq=site:dlang.org+site:digitalmars.com&btnI=I%27m+Feeling+Lucky"; } return url; } string DmcCommands(string topic) { static string[] dmccmds = [ "bcc", "chmod", "cl", "coff2omf", "coffimplib", "dmc", "diff", "diffdir", "dman", "dump", "dumpobj", "dumpexe", "exe2bin", "flpyimg", "grep", "hc", "htod", "implib", "lib", "libunres", "link", "linker", "make", "makedep", "me", "obj2asm", "optlink", "patchobj", "rc", "rcc", "sc", "shell", "smake", "touch", "unmangle", "whereis", ]; if (find(dmccmds, topic).length) { if (topic == "dmc") topic = "sc"; else if (topic == "link") topic = "optlink"; else if (topic == "linker") topic = "optlink"; return "http://www.digitalmars.com/ctg/" ~ topic ~ ".html"; } return null; } string D(string topic) { static struct IndexEntry { string keyword; string[] urls; } static IndexEntry[] entries = mixin (import("d.tag")); foreach (entry; entries) if (entry.keyword == topic && entry.urls.length) return entry.urls[0]; return null; } string CHeader(string topic) { static string[] dmccmds = [ "assert.h", "complex.h", "ctype.h", "fenv.h", "float.h", "locale.h", "math.h", "setjmp.h", "signal.h", "stdarg.h", "stddef.h", "stdio.h", "stdlib.h", "string.h", "time.h", "gc.h", "bios.h", "cerror.h", "disp.h", "dos.h", "emm.h", "handle.h", "int.h", "msmouse.h", "sound.h", "swap.h", "tsr.h", "winio.h", "bitops.h", "conio.h", "controlc.h", "direct.h", "fltpnt.h", "io.h", "page.h", "process.h", "search.h", "sys/stat.h", "tabsize.h", "trace.h", "utime.h", "unmangle.h", "util.h", "regexp.h", "complex.h", "iostream.h", ]; if (find(dmccmds, topic).length) { return "http://www.digitalmars.com/rtl/" ~ topic ~ "tml"; } return null; } string Clib(string topic) { static string rtl = "http://www.digitalmars.com/rtl/"; /******************** assert.h ***************************/ if (topic == "assert") return rtl ~ "assert.html#assert"; /**************** bios.h *******************************/ static string[] biosfuncs = [ "biosdisk", "_bios_keybrd", "biosprint", "biostime", "_bios_disk", "_bios_equiplist", "_bios_memsize", "_bios_printer", "_bios_serialcom", "_bios_timeofday", "_int86", "_int86x", ]; switch (topic) { case "bioskey": topic = "_bios_keybrd"; break; case "biosequip": topic = "_bios_equiplist"; break; case "biosmemory": topic = "_bios_memsize"; break; case "bioscom": topic = "_bios_serialcom"; break; case "int86_real": case "int86": topic = "_int86"; break; case "int86x_real": case "int86x": topic = "_int86x"; break; default: break; } if (find(biosfuncs, topic).length) return rtl ~ "bios.html#" ~ topic; /**************** bitops.h *******************************/ if (topic == "_inline_bsf" || topic == "_inline_bsr") return rtl ~ "bitops.html#" ~ topic; /**************** cerror.h *******************************/ if (topic == "cerror_close" || topic == "cerror_open") return rtl ~ "cerror.html#" ~ topic; /******************** complex.h ***************************/ /******************** conio.h ***************************/ static string[] coniofuncs = [ "_kbhit", "_ungetch", "_getch", "_getche", "_putch", "_cgets", "_cprintf","_cputs", "_cscanf", ]; if (find(coniofuncs, topic).length) return rtl ~ "conio.html#" ~ topic; /**************** controlc.h *******************************/ if (topic == "controlc_close" || topic == "controlc_open") return rtl ~ "controlc.html#" ~ topic; /**************** ctype.h *******************************/ static string[] isxxxxfuncs = [ "isalnum", "isalpha", "__isascii", "iscntrl", "__iscsym", "__iscsymf", "isdigit", "isgraph", "islower", "isprint", "ispunct", "isspace", "isupper", "isxdigit", ]; if (find(isxxxxfuncs, topic).length) return rtl ~ "ctype.html#isxxxx"; static string[] toxxxxfuncs = [ "_tolower", "tolower", "_toupper", "toupper", ]; if (find(toxxxxfuncs, topic).length) return rtl ~ "ctype.html#_toxxxx"; if (topic == "__toascii") return rtl ~ "ctype.html#__toascii"; /******************** direct.h ***************************/ static string[] directfuncs = [ "_chdir", "_chdrive", "_getcwd", "_getdrive", "_mkdir", "_rmdir", "fnmerge", "fnsplit", "searchpath", ]; if (find(directfuncs, topic).length) return rtl ~ "direct.html#" ~ topic; /******************** disp.h ***************************/ static string[] dispfuncs = [ "disp_box", "disp_close", "disp_eeol", "disp_eeop", "disp_endstand", "disp_fillbox", "disp_flush", "disp_getattr", "disp_getmode", "disp_hidecursor", "disp_move", "disp_open", "disp_peekbox", "disp_peekw", "disp_pokebox", "disp_pokew", "disp_printf", "disp_putc", "disp_puts", "disp_reset43", "disp_scroll", "disp_set43", "disp_setattr", "disp_setcursortype", "disp_setmode", "disp_showcursor", "disp_startstand", "disp_usebios", ]; if (find(dispfuncs, topic).length) return rtl ~ "disp.html#" ~ topic; /******************** dos.h ***************************/ static string[] dosfuncs = [ "absread", "abswrite", "dos_abs_disk_read", "dos_abs_disk_write", "dos_alloc", "_dos_allocmem", "dos_calloc", "_dos_close", "_dos_commit", "dos_creat", "_dos_creat", "_dos_creatnew", "_doserrno", "_dosexterr", "_dos_findfirst", "_dos_findnext", "dos_free", "_dos_freemem", "dos_get_ctrl_break", "dos_get_verify", "_dos_getdate", "_dos_getdiskfree", "dos_getdiskfreespace", "_dos_getdrive", "_dos_getfileattr", "_dos_getftime", "_dos_gettime", "_dos_getvect", "_dos_keep", "_dos_lock", "_dos_open", "dos_open", "_dos_read", "_dos_seek", "_dos_setblock", "dos_setblock", "dos_set_ctrl_break", "_dos_setdate", "_dos_setdrive", "_dos_setfileattr", "_dos_setftime", "_dos_settime", "_dos_setvect", "dos_set_verify", "_dos_write", "_x386_coreleft", "_x386_free_protected_ptr", "_x386_get_abs_address", "_x386_map_physical_address", "_x386_memlock", "_x386_memunlock", "_x386_mk_protected_ptr", ]; switch (topic) { case "_getdiskfree": topic = "_dos_getdiskfree"; break; default: break; } if (find(dosfuncs, topic).length) return rtl ~ "dos.html#" ~ topic; /******************** dos2.h ***************************/ static string[] dos2funcs = [ "_bdos", "_chain_intr", "_disable", "_enable", "_FP", "_getdcwd", "_hard", "_inp", "_intdos", "_intdosx", "_MK_FP", "_osversion", "_outp", "_segread", "allocmem", "bdosptr", "bdosx", "farcalloc", "farcoreleft", "farfree", "farmalloc", "farrealloc", "findfirst", "findnext", "freemem", "geninterrupt", "getcbrk", "getcurdir", "getdate", "getdisk", "getdta", "getfat", "getfatd", "getpsp", "gettime", "getverify", "parsfnm", "peek", "peekb", "poke", "pokeb", "response_expand", "setblock", "setcbrk", "setdisk", "setdta", "setverify", ]; switch (topic) { case "_hardresume": case "_hardretn": topic = "_harderr"; break; case "_inpw": case "_inpl": topic = "_inp"; break; case "_outpw": case "_outpl": topic = "_outp"; break; default: break; } if (find(dos2funcs, topic).length) return rtl ~ "dos2.html#" ~ topic; /******************** emm.h ***************************/ static string[] emmfuncs = [ "emm_allocpages", "emm_deallocpages", "emm_gethandlecount", "emm_gethandlespages", "emm_getpagemap", "emm_getpagemapsize", "emm_getsetpagemap", "emm_gettotal", "emm_getunalloc", "emm_getversion", "emm_init", "emm_maphandle", "emm_physpage", "emm_restorepagemap", "emm_savepagemap", "emm_setpagemap", "emm_term", ]; if (find(emmfuncs, topic).length) return rtl ~ "emm.html#" ~ topic; /******************** fenv.h ***************************/ static string[] fenvfuncs = [ "roundingmodes", "precisionmodes", "feclearexcept", "fegetexceptflag", "feraiseexcept", "fesetexceptflag", "fetestexcept", "fegetprec", "fesetprec", "fegetround", "fesetround", "fegetenv", "feholdexcept", "fesetenv", "feupdateenv", ]; if (find(fenvfuncs, topic).length) return rtl ~ "fenv.html#" ~ topic; /******************** float.h ***************************/ static string[] floatfuncs = [ "_8087", "_clear87", "_control87", "_fpreset", "_status87", ]; if (find(floatfuncs, topic).length) return rtl ~ "float.html#" ~ topic; /******************** fltpnt.h ***************************/ static string[] fltpntfuncs = [ "copysign", "nearbyint", "nextafter", "remainder", "remquo", "rint", "rndtol", "round", "scalb", "trunc", ]; if (find(fltpntfuncs, topic).length) return rtl ~ "fltpnt.html#" ~ topic; /******************** handle.h ***************************/ static string[] handlefuncs = [ "handle_calloc", "handle_free", "handle_ishandle", "handle_malloc", "handle_realloc", "handle_strdup", ]; if (find(handlefuncs, topic).length) return rtl ~ "handle.html#" ~ topic; /******************** int.h ***************************/ static string[] intfuncs = [ "int_gen", "int_getvector", "int_intercept", "int_on", "int_on", "int_prev", "int_restore", "int_setvector", ]; if (find(intfuncs, topic).length) return rtl ~ "int.html#" ~ topic; /******************** io.h ***************************/ static string[] iofuncs = [ "_access", "_chmod", "_chsize", "_close", "_commit", "_creat", "_dup", "_dup2", "_eof", "_filelength", "_isatty", "_locking", "_lseek", "_mktemp", "_open", "_read", "_setmode", "_sopen", "_tell", "_write", "_umask", "_unlink", "filesize", "getDS", "getftime", "lock", "remove", "rename", "setftime", "unlock", ]; if (find(iofuncs, topic).length) return rtl ~ "io.html#" ~ topic; /******************** iostream ***************************/ if (topic == "iostream") return rtl ~ "iostream.html"; /******************** locale.h ***************************/ if (topic == "localeconv" || topic == "setlocale") return rtl ~ "locale.html#" ~ topic; /******************** math.h ***************************/ static string[] mathfuncs = [ "fpclassify", "isfinite", "signbit", "acos", "asin", "atan", "atan2", "ceil", "cos", "cosh", "cbrt", "exp", "exp2", "expm1", "fabs", "floor", "fmod", "frexp", "hypot", "ilogb", "ldexp", "log", "log2", "logb", "log10", "log1p", "matherr", "modf", "nextafter", "poly", "pow", "sin", "sinh", "sqrt", "tan", "tanh", "_cabs", ]; switch (topic) { case "isinf": case "isnan": case "isnormal": topic = "isinfinite"; break; case "log1pf": topic = "log1p"; break; case "_matherrl": topic = "matherr"; break; default: break; } if (find(mathfuncs, topic).length) return rtl ~ "math.html#" ~ topic; /******************** msmouse.h ***************************/ static string[] msmousefuncs = [ "msm_condoff", "msm_getpress", "msm_getrelease", "msm_getstatus", "msm_hidecursor", "msm_init", "msm_lightpen", "msm_lightpen", "msm_readcounters", "msm_setarea", "msm_setarea", "msm_setcurpos", "msm_setgraphcur", "msm_setratio", "msm_settextcur", "msm_setthreshhold", "msm_showcursor", "msm_signal", "msm_term", ]; if (find(msmousefuncs, topic).length) return rtl ~ "msmouse.html#" ~ topic; /******************** new ***************************/ if (topic == "_set_new_handler") return rtl ~ "new.html#_set_new_handler"; /******************** oldcomplex.h ***************************/ /******************** page.h ***************************/ static string[] pagefuncs = [ "page_calloc", "page_free", "page_initialize", "page_malloc", "page_maxfree", "page_realloc", "page_size", "page_toptr", ]; if (find(pagefuncs, topic).length) return rtl ~ "page.html#" ~ topic; /******************** process.h ***************************/ static string[] processfuncs = [ "_beginthread", "_c_exit", "_exec", "_endthread", "_getpid", "_spawn", ]; switch (topic) { case "_cexit": topic = "_c_exit"; break; case "_execl": case "_execle": case "_execlp": case "_execlpe": case "_execv": case "_execve": case "_execvp": case "_execvpe": topic = "_exec"; break; case "_spawnl": case "_spawnle": case "_spawnlp": case "_spawnlpe": case "_spawnv": case "_spawnve": case "_spawnvp": case "_spawnvpe": topic = "_spawn"; break; default: break; } if (find(processfuncs, topic).length) return rtl ~ "process.html#" ~ topic; /******************** regexp.h ***************************/ /******************** search.h ***************************/ if (topic == "_lfind" || topic == "_lsearch") return rtl ~ "search.html#" ~ topic; /******************** setjmp.h ***************************/ if (topic == "setjmp" || topic == "longjmp") return rtl ~ "setjmp.html#" ~ topic; /******************** signal.h ***************************/ if (topic == "raise" || topic == "signal") return rtl ~ "signal.html#" ~ topic; /******************** sound.h ***************************/ if (topic == "sound_beep" || topic == "sound_click" || topic == "sound_tone") return rtl ~ "sound.html#" ~ topic; /******************** stdarg.h ***************************/ if (topic == "va_arg" || topic == "va_end" || topic == "va_start") return rtl ~ "stdarg.html#va_arg"; /******************** stddef.h ***************************/ if (topic == "__threadid") return rtl ~ "stddef.html#_threadid"; /******************** stdio.h ***************************/ static string[] stdiofuncs = [ "_fcloseall", "_fdopen", "_fgetchar", "_fileno", "_flushall", "_fputchar", "_fsopen", "_getw", "_okbigbuf", "_putw", "_rmtmp", "_stdaux", "_stdprn", "_tempnam", "clearerr", "fclose", "feof", "ferror", "fflush", "fgetc", "fgetpos", "fgets", "fopen", "printf", "fputc", "fputs", "fread", "freopen", "scanf", "fseek", "fsetpos", "ftell", "fwrite", "getc", "getchar", "gets", "putc", "putchar", "puts", "rewind", "setbuf", "setvbuf", "stderr", "stdin", "stdout", "tmpfile", "tmpnam", "ungetc", "vprintf", ]; switch (topic) { case "fprintf": case "sprintf": case "_snprintf": topic = "printf"; break; case "fscanf": case "sscanf": topic = "scanf"; break; default: break; } if (find(stdiofuncs, topic).length) return rtl ~ "stdio.html#" ~ topic; /******************* stdlib.h ****************************/ static string[] stdlibfuncs = [ "__max", "__min", "_alloca", "_atold", "_chkstack", "_cpumode", "_ecvt", "_environ", "_exit", "_fcvt", "_fileinfo", "_fmode", "_onexit", "_freect", "_fullpath", "_gcvt", "_halloc", "_hfree", "_itoa", "_lrotl", "_ltoa", "_makepath", "_memavl", "_memmax", "_msize", "_osmajor", "_osminor", "_osmode", "_osver", "_pgmptr", "_psp", "_putenv", "_rotl", "_searchenv", "_splitpath", "_stackavail", "_ultoa", "_winmajor", "_winminor", "_winver", "exit", "exit_pushstate", "abort", "abs", "atexit", "atof", "atoi", "atol", "bsearch", "calloc", "coreleft", "errno", "expand", "free", "getenv", "ldiv", "malloc", "mblen", "mbstowcs", "mbtowc", "_memmax", "perror", "qsort", "rand", "random", "randomize", "realloc", "srand", "strtof", "strtol", "strtold", "system", "_tolower", "wcstombs", "wctomb", ]; switch (topic) { case "_fmbstowcs": case "_fmbtowc": case "_fonexit": case "_fwcstombs": case "_fwctomb": case "_fatexit": case "_fmblen": case "_fcalloc": case "_ncalloc": case "_fmalloc": case "_nmalloc": case "_frealloc": case "_nrealloc": case "_fmsize": case "_nmsize": topic = topic[2..$]; break; case "_lrotr": topic = "_lrotl"; break; case "_rotr": topic = "_rotl"; break; case "div": topic = "ldiv"; break; case "exit_popstate": topic = "exit_pushstate"; break; case "strtod": topic = "strtof"; break; case "strtoul": topic = "strtol"; break; default: break; } if (find(stdlibfuncs, topic).length) return rtl ~ "stdlib.html#" ~ topic; /******************* string.h ****************************/ static string[] stringfuncs = [ "memchr", "memcmp", "_memccpy", "memcpy", "_memicmp", "memmove", "memset", "_movedata", "movmem", "_strdup", "_stricmp", "_strlwr", "strncmpi", "_strnset", "_strrev", "_strset", "_strtime", "_strupr", "_swab", "stpcpy", "strcat", "strchr", "strcmp", "strcoll", "strcpy", "strcspn", "strerror", "strlen", "strncat", "strncmp", "strncmpi", "strncpy", "strpbrk", "strrchr", "strspn", "strstr", "strtok", "strxfrm", "_sys_errlist", "_sys_nerr", ]; switch (topic) { case "_fmemccpy": topic = "_memccpy"; break; case "_fmemicmp": topic = "_memicmp"; break; case "_fmemmove": topic = "_memmove"; break; case "setmem": case "_fmemset": topic = "memset"; break; case "_fstrdup": topic = "_strdup"; break; case "_fstricmp": topic = "_stricmp"; break; case "_fstrlwr": topic = "_strlwr"; break; case "_strnicmp": case "_fstrnicmp": case "strncmpl": topic = "strncmpi"; break; case "_fstrnset": topic = "_strnset"; break; case "_fstrrev": topic = "_strrev"; break; case "_fstrset": topic = "_strset"; break; case "_fstrupr": topic = "_strupr"; break; case "_fmemchr": case "_fmemcmp": case "_fmemcpy": case "_fstrcat": case "_fstrchr": case "_fstrcpy": case "_fstrcspn": case "_fstrlen": case "_fstrncat": case "_fstrncmp": case "_fstrncpy": case "_fstrpbrk": case "_fstrrchr": case "_fstrspn": case "_fstrstr": case "_fstrtok": topic = topic[2..$]; break; default: break; } if (find(stringfuncs, topic).length) return rtl ~ "string.html#" ~ topic; /******************** swap.h ***************************/ static string[] swapfuncs = [ "swap_clearkeyboard", "swap_freeparagraphs", "swap_freeparagraph", "swap_is", "swap_onoff", "swap_pipe", "swap_pipeonoff", "swap_tempcheck", "swap_trapcbreak", "swap_window", "swap_windowonoff", ]; switch (topic) { case "swap_clearkeyboardoff": case "swap_clearkeyboardon": topic = "swap_clearkeyboard"; break; case "swap_freeparagraphson": case "swap_freeparagraphsoff": topic = "swap_freeparagraph"; break; case "swap_isclearkeyboardon": case "swap_isfreeparagraphson": case "swap_ison": case "swap_ispipeon": case "swap_istempcheckon": case "swap_istrapcbreakon": case "swap_iswindowon": topic = "swap_is"; break; case "swap_on": case "swap_off": topic = "swap_onoff"; break; case "swap_pipeon": case "swap_pipeoff": topic = "swap_pipeonoff"; break; case "swap_tempcheckon": case "swap_tempcheckoff": topic = "swap_tempcheck"; break; case "swap_trapcbreakon": case "swap_trapcbreakoff": topic = "swap_trapcbreak"; break; case "swap_windowon": case "swap_windowoff": topic = "swap_windowonoff"; break; default: break; } if (find(swapfuncs, topic).length) return rtl ~ "swap.html#" ~ topic; /******************** sys-stat.h ***************************/ if (topic == "_fstat" || topic == "_stat") return rtl ~ "sys-stat.html#" ~ topic; /******************** tabsize.h ***************************/ if (topic == "tab_sizeget" || topic == "tab_sizegetenv" || topic == "tab_sizeputenv" || topic == "tab_sizeset") return rtl ~ "tabsize.html#" ~ topic; /******************** time.h ***************************/ static string[] timefuncs = [ "_daylight", "difftime", "_ftime", "_strdate", "_timezone", "_tzname", "_tzset", "_utime", "asctime", "clock", "ctime", "gmtime", "localtime", "mktime", "msleep", "sleep", "strftime", "time", "usleep", ]; if (find(timefuncs, topic).length) return rtl ~ "time.html#" ~ topic; /******************** tsr.h ***************************/ if (topic == "tsr_install" || topic == "tsr_service" || topic == "tsr_uninstall") return rtl ~ "tsr.html#" ~ topic; /******************** unmangle.h ***************************/ if (topic == "unmangle_ident") return rtl ~ "unmangle.html#unmangle_ident"; /******************** util.h ***************************/ if (topic == "file_append" || topic == "file_read" || topic == "file_write") return rtl ~ "util.html#" ~ topic; /******************** winio.h ***************************/ static string[] winiofuncs = [ "ungets", "winio_about", "winio_bufsize", "winio_clear", "winio_close", "winio_closeall", "winio_current", "winio_defwindowsize", "winio_end", "winio_getinfo", "winio_hmenufile", "winio_hmenuhelp", "winio_hmenumain", "winio_home", "winio_init", "winio_onclose", "winio_onpaintentry", "winio_onpaintexit", "winio_openwindows", "winio_resetbusy", "winio_setbufsize", "winio_setbusy", "winio_setcurrent", "winio_setecho", "winio_setfont", "winio_setlinefn", "winio_setmenufunc", "winio_setpaint", "winio_settitle", "winio_warn", "winio_window", "wmhandler_create", "wmhandler_destroy", "wmhandler_get", "wmhandler_hwnd", "wmhandler_set", ]; if (find(winiofuncs, topic).length) return rtl ~ "winio.html#" ~ topic; /***********************************************/ return null; } string Misc(string topic) { string[string] misc = [ "D1": "http://www.digitalmars.com/d/1.0/", "D2": "http://dlang.org/", "faq": "http://dlang.org/faq.html", ]; auto purl = topic in misc; if (purl) return *purl; return null; }
D
/* * Hunt - A refined core library for D programming language. * * Copyright (C) 2018-2019 HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.math.BigInteger; import hunt.Double; import hunt.Float; import hunt.Integer; import hunt.Long; import hunt.Number; import hunt.Char; import hunt.text.CharacterData; import hunt.Exceptions; import hunt.text; import std.algorithm; import std.conv; import std.math; import std.random; import std.string; /** * Immutable arbitrary-precision integers. All operations behave as if * BigIntegers were represented in two's-complement notation (like Java's * primitive integer types). BigInteger provides analogues to all of Java's * primitive integer operators, and all relevant methods from java.lang.std.math. * Additionally, BigInteger provides operations for modular arithmetic, GCD * calculation, primality testing, prime generation, bit manipulation, * and a few other miscellaneous operations. * * <p>Semantics of arithmetic operations exactly mimic those of Java's integer * arithmetic operators, as defined in <i>The Java Language Specification</i>. * For example, division by zero throws an {@code ArithmeticException}, and * division of a negative by a positive yields a negative (or zero) remainder. * All of the details in the Spec concerning overflow are ignored, as * BigIntegers are made as large as necessary to accommodate the results of an * operation. * * <p>Semantics of shift operations extend those of Java's shift operators * to allow for negative shift distances. A right-shift with a negative * shift distance results in a left shift, and vice-versa. The unsigned * right shift operator ({@code >>>}) is omitted, as this operation makes * little sense in combination with the "infinite word size" abstraction * provided by this class. * * <p>Semantics of bitwise logical operations exactly mimic those of Java's * bitwise integer operators. The binary operators ({@code and}, * {@code or}, {@code xor}) implicitly perform sign extension on the shorter * of the two operands prior to performing the operation. * * <p>Comparison operations perform signed integer comparisons, analogous to * those performed by Java's relational and equality operators. * * <p>Modular arithmetic operations are provided to compute residues, perform * exponentiation, and compute multiplicative inverses. These methods always * return a non-negative result, between {@code 0} and {@code (modulus - 1)}, * inclusive. * * <p>Bit operations operate on a single bit of the two's-complement * representation of their operand. If necessary, the operand is sign- * extended so that it contains the designated bit. None of the single-bit * operations can produce a BigInteger with a different sign from the * BigInteger being operated on, as they affect only a single bit, and the * "infinite word size" abstraction provided by this class ensures that there * are infinitely many "virtual sign bits" preceding each BigInteger. * * <p>For the sake of brevity and clarity, pseudo-code is used throughout the * descriptions of BigInteger methods. The pseudo-code expression * {@code (i + j)} is shorthand for "a BigInteger whose value is * that of the BigInteger {@code i} plus that of the BigInteger {@code j}." * The pseudo-code expression {@code (i == j)} is shorthand for * "{@code true} if and only if the BigInteger {@code i} represents the same * value as the BigInteger {@code j}." Other pseudo-code expressions are * interpreted similarly. * * <p>All methods and constructors in this class throw * {@code NullPointerException} when passed * a null object reference for any input parameter. * * BigInteger must support values in the range * -2<sup>{@code int.max}</sup> (exclusive) to * +2<sup>{@code int.max}</sup> (exclusive) * and may support values outside of that range. * * The range of probable prime values is limited and may be less than * the full supported positive range of {@code BigInteger}. * The range must be at least 1 to 2<sup>500000000</sup>. * * @implNote * BigInteger constructors and operations throw {@code ArithmeticException} when * the result is out of the supported range of * -2<sup>{@code int.max}</sup> (exclusive) to * +2<sup>{@code int.max}</sup> (exclusive). * * @see BigDecimal * @jls 4.2.2 Integer Operations * @author Josh Bloch * @author Michael McCloskey * @author Alan Eliasen * @author Timothy Buktu */ class BigInteger : Number { /** * The signum of this BigInteger: -1 for negative, 0 for zero, or * 1 for positive. Note that the BigInteger zero <em>must</em> have * a signum of 0. This is necessary to ensures that there is exactly one * representation for each BigInteger value. */ private int _signum; /** * The magnitude of this BigInteger, in <i>big-endian</i> order: the * zeroth element of this array is the most-significant int of the * magnitude. The magnitude must be "minimal" in that the most-significant * int ({@code mag[0]}) must be non-zero. This is necessary to * ensure that there is exactly one representation for each BigInteger * value. Note that this implies that the BigInteger zero has a * zero-length mag array. */ private int[] mag; // The following fields are stable variables. A stable variable's value // changes at most once from the default zero value to a non-zero stable // value. A stable value is calculated lazily on demand. /** * One plus the bitCount of this BigInteger. This is a stable variable. * * @see #bitCount */ private int bitCountPlusOne; /** * One plus the bitLength of this BigInteger. This is a stable variable. * (either value is acceptable). * * @see #bitLength() */ private int bitLengthPlusOne; /** * Two plus the lowest set bit of this BigInteger. This is a stable variable. * * @see #getLowestSetBit */ private int lowestSetBitPlusTwo; /** * Two plus the index of the lowest-order int in the magnitude of this * BigInteger that contains a nonzero int. This is a stable variable. The * least significant int has int-number 0, the next int in order of * increasing significance has int-number 1, and so forth. * * <p>Note: never used for a BigInteger with a magnitude of zero. * * @see #firstNonzeroIntNum() */ private int firstNonzeroIntNumPlusTwo; /** * This mask is used to obtain the value of an int as if it were unsigned. */ enum long LONG_MASK = 0xffffffffL; /** * This constant limits {@code mag.length} of BigIntegers to the supported * range. */ private enum int MAX_MAG_LENGTH = int.max / int.sizeof + 1; // (1 << 26) /** * Bit lengths larger than this constant can cause overflow in searchLen * calculation and in BitSieve.singleSearch method. */ private enum int PRIME_SEARCH_BIT_LENGTH_LIMIT = 500000000; /** * The threshold value for using Karatsuba multiplication. If the number * of ints in both mag arrays are greater than this number, then * Karatsuba multiplication will be used. This value is found * experimentally to work well. */ private enum int KARATSUBA_THRESHOLD = 80; /** * The threshold value for using 3-way Toom-Cook multiplication. * If the number of ints in each mag array is greater than the * Karatsuba threshold, and the number of ints in at least one of * the mag arrays is greater than this threshold, then Toom-Cook * multiplication will be used. */ private enum int TOOM_COOK_THRESHOLD = 240; /** * The threshold value for using Karatsuba squaring. If the number * of ints in the number are larger than this value, * Karatsuba squaring will be used. This value is found * experimentally to work well. */ private enum int KARATSUBA_SQUARE_THRESHOLD = 128; /** * The threshold value for using Toom-Cook squaring. If the number * of ints in the number are larger than this value, * Toom-Cook squaring will be used. This value is found * experimentally to work well. */ private enum int TOOM_COOK_SQUARE_THRESHOLD = 216; /** * The threshold value for using Burnikel-Ziegler division. If the number * of ints in the divisor are larger than this value, Burnikel-Ziegler * division may be used. This value is found experimentally to work well. */ enum int BURNIKEL_ZIEGLER_THRESHOLD = 80; /** * The offset value for using Burnikel-Ziegler division. If the number * of ints in the divisor exceeds the Burnikel-Ziegler threshold, and the * number of ints in the dividend is greater than the number of ints in the * divisor plus this value, Burnikel-Ziegler division will be used. This * value is found experimentally to work well. */ enum int BURNIKEL_ZIEGLER_OFFSET = 40; /** * The threshold value for using Schoenhage recursive base conversion. If * the number of ints in the number are larger than this value, * the Schoenhage algorithm will be used. In practice, it appears that the * Schoenhage routine is faster for any threshold down to 2, and is * relatively flat for thresholds between 2-25, so this choice may be * varied within this range for very small effect. */ private enum int SCHOENHAGE_BASE_CONVERSION_THRESHOLD = 20; /** * The threshold value for using squaring code to perform multiplication * of a {@code BigInteger} instance by itself. If the number of ints in * the number are larger than this value, {@code multiply(this)} will * return {@code square()}. */ private enum int MULTIPLY_SQUARE_THRESHOLD = 20; /** * The threshold for using an intrinsic version of * implMontgomeryXXX to perform Montgomery multiplication. If the * number of ints in the number is more than this value we do not * use the intrinsic. */ private enum int MONTGOMERY_INTRINSIC_THRESHOLD = 512; // Constructors /** * Translates a byte sub-array containing the two's-complement binary * representation of a BigInteger into a BigInteger. The sub-array is * specified via an offset into the array and a length. The sub-array is * assumed to be in <i>big-endian</i> byte-order: the most significant * byte is the element at index {@code off}. The {@code val} array is * assumed to be unchanged for the duration of the constructor call. * * An {@code IndexOutOfBoundsException} is thrown if the length of the array * {@code val} is non-zero and either {@code off} is negative, {@code len} * is negative, or {@code off+len} is greater than the length of * {@code val}. * * @param val byte array containing a sub-array which is the big-endian * two's-complement binary representation of a BigInteger. * @param off the start offset of the binary representation. * @param len the number of bytes to use. * @throws NumberFormatException {@code val} is zero bytes long. * @throws IndexOutOfBoundsException if the provided array offset and * length would cause an index into the byte array to be * negative or greater than or equal to the array length. */ this(byte[] val, int off, int len) { if (val.length == 0) { throw new NumberFormatException("Zero length BigInteger"); } else if ((off < 0) || (off >= cast(int)val.length) || (len < 0) || (len > val.length - off)) { // 0 <= off < val.length throw new IndexOutOfBoundsException(); } if (val[off] < 0) { mag = makePositive(val, off, len); _signum = -1; } else { mag = stripLeadingZeroBytes(val, off, len); _signum = (mag.length == 0 ? 0 : 1); } if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /** * Translates a byte array containing the two's-complement binary * representation of a BigInteger into a BigInteger. The input array is * assumed to be in <i>big-endian</i> byte-order: the most significant * byte is in the zeroth element. The {@code val} array is assumed to be * unchanged for the duration of the constructor call. * * @param val big-endian two's-complement binary representation of a * BigInteger. * @throws NumberFormatException {@code val} is zero bytes long. */ this(byte[] val) { this(val, 0, cast(int)val.length); } /** * This private constructor translates an int array containing the * two's-complement binary representation of a BigInteger into a * BigInteger. The input array is assumed to be in <i>big-endian</i> * int-order: the most significant int is in the zeroth element. The * {@code val} array is assumed to be unchanged for the duration of * the constructor call. */ private this(int[] val) { if (val.length == 0) throw new NumberFormatException("Zero length BigInteger"); if (val[0] < 0) { mag = makePositive(val); _signum = -1; } else { mag = trustedStripLeadingZeroInts(val); _signum = (mag.length == 0 ? 0 : 1); } if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /** * Translates the sign-magnitude representation of a BigInteger into a * BigInteger. The sign is represented as an integer signum value: -1 for * negative, 0 for zero, or 1 for positive. The magnitude is a sub-array of * a byte array in <i>big-endian</i> byte-order: the most significant byte * is the element at index {@code off}. A zero value of the length * {@code len} is permissible, and will result in a BigInteger value of 0, * whether signum is -1, 0 or 1. The {@code magnitude} array is assumed to * be unchanged for the duration of the constructor call. * * An {@code IndexOutOfBoundsException} is thrown if the length of the array * {@code magnitude} is non-zero and either {@code off} is negative, * {@code len} is negative, or {@code off+len} is greater than the length of * {@code magnitude}. * * @param signum signum of the number (-1 for negative, 0 for zero, 1 * for positive). * @param magnitude big-endian binary representation of the magnitude of * the number. * @param off the start offset of the binary representation. * @param len the number of bytes to use. * @throws NumberFormatException {@code signum} is not one of the three * legal values (-1, 0, and 1), or {@code signum} is 0 and * {@code magnitude} contains one or more non-zero bytes. * @throws IndexOutOfBoundsException if the provided array offset and * length would cause an index into the byte array to be * negative or greater than or equal to the array length. */ this(int signum, byte[] magnitude, int off, int len) { if (signum < -1 || signum > 1) { throw(new NumberFormatException("Invalid signum value")); } else if ((off < 0) || (len < 0) || (len > 0 && ((off >= magnitude.length) || (len > magnitude.length - off)))) { // 0 <= off < magnitude.length throw new IndexOutOfBoundsException(); } // stripLeadingZeroBytes() returns a zero length array if len == 0 this.mag = stripLeadingZeroBytes(magnitude, off, len); if (this.mag.length == 0) { this._signum = 0; } else { if (signum == 0) throw(new NumberFormatException("signum-magnitude mismatch")); this._signum = signum; } if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /** * Translates the sign-magnitude representation of a BigInteger into a * BigInteger. The sign is represented as an integer signum value: -1 for * negative, 0 for zero, or 1 for positive. The magnitude is a byte array * in <i>big-endian</i> byte-order: the most significant byte is the * zeroth element. A zero-length magnitude array is permissible, and will * result in a BigInteger value of 0, whether signum is -1, 0 or 1. The * {@code magnitude} array is assumed to be unchanged for the duration of * the constructor call. * * @param signum signum of the number (-1 for negative, 0 for zero, 1 * for positive). * @param magnitude big-endian binary representation of the magnitude of * the number. * @throws NumberFormatException {@code signum} is not one of the three * legal values (-1, 0, and 1), or {@code signum} is 0 and * {@code magnitude} contains one or more non-zero bytes. */ this(int signum, byte[] magnitude) { this(signum, magnitude, 0, cast(int)magnitude.length); } /** * A constructor for internal use that translates the sign-magnitude * representation of a BigInteger into a BigInteger. It checks the * arguments and copies the magnitude so this constructor would be * safe for external use. The {@code magnitude} array is assumed to be * unchanged for the duration of the constructor call. */ private this(int signum, int[] magnitude) { this.mag = stripLeadingZeroInts(magnitude); if (signum < -1 || signum > 1) throw(new NumberFormatException("Invalid signum value")); if (this.mag.length == 0) { this._signum = 0; } else { if (signum == 0) throw(new NumberFormatException("signum-magnitude mismatch")); this._signum = signum; } if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /** * Translates the string representation of a BigInteger in the * specified radix into a BigInteger. The string representation * consists of an optional minus or plus sign followed by a * sequence of one or more digits in the specified radix. The * character-to-digit mapping is provided by {@code * CharacterHelper.digit}. The string may not contain any extraneous * characters (whitespace, for example). * * @param val string representation of BigInteger. * @param radix radix to be used in interpreting {@code val}. * @throws NumberFormatException {@code val} is not a valid representation * of a BigInteger in the specified radix, or {@code radix} is * outside the range from {@link Character#MIN_RADIX} to * {@link Character#MAX_RADIX}, inclusive. * @see Character#digit */ this(string val, int radix) { int cursor = 0, numDigits; int len = cast(int)val.length; if (radix < Char.MIN_RADIX || radix > Char.MAX_RADIX) throw new NumberFormatException("Radix out of range"); if (len == 0) throw new NumberFormatException("Zero length BigInteger"); // Check for at most one leading sign int sign = 1; ptrdiff_t index1 = val.lastIndexOf('-'); ptrdiff_t index2 = val.lastIndexOf('+'); if (index1 >= 0) { if (index1 != 0 || index2 >= 0) { throw new NumberFormatException("Illegal embedded sign character"); } sign = -1; cursor = 1; } else if (index2 >= 0) { if (index2 != 0) { throw new NumberFormatException("Illegal embedded sign character"); } cursor = 1; } if (cursor == len) throw new NumberFormatException("Zero length BigInteger"); // Skip leading zeros and compute number of digits in magnitude while (cursor < len && CharacterHelper.digit(val[cursor], radix) == 0) { cursor++; } if (cursor == len) { _signum = 0; mag = ZERO.mag; return; } numDigits = len - cursor; _signum = sign; // Pre-allocate array of expected size. May be too large but can // never be too small. Typically exact. long numBits = ((numDigits * bitsPerDigit[radix]) >>> 10) + 1; if (numBits + 31 >= (1L << 32)) { reportOverflow(); } int numWords = cast(int) (numBits + 31) >>> 5; int[] magnitude = new int[numWords]; // Process first (potentially short) digit group int firstGroupLen = numDigits % digitsPerInt[radix]; if (firstGroupLen == 0) firstGroupLen = digitsPerInt[radix]; string group = val.substring(cursor, cursor += firstGroupLen); magnitude[numWords - 1] = to!int(group, radix); if (magnitude[numWords - 1] < 0) throw new NumberFormatException("Illegal digit"); // Process remaining digit groups int superRadix = intRadix[radix]; int groupVal = 0; while (cursor < len) { group = val.substring(cursor, cursor += digitsPerInt[radix]); groupVal = to!int(group, radix); if (groupVal < 0) throw new NumberFormatException("Illegal digit"); destructiveMulAdd(magnitude, superRadix, groupVal); } // Required for cases where the array was overallocated. mag = trustedStripLeadingZeroInts(magnitude); if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /* * Constructs a new BigInteger using a char array with radix=10. * Sign is precalculated outside and not allowed in the val. The {@code val} * array is assumed to be unchanged for the duration of the constructor * call. */ this(char[] val, int sign, int len) { int cursor = 0, numDigits; // Skip leading zeros and compute number of digits in magnitude while (cursor < len && CharacterHelper.digit(val[cursor], 10) == 0) { cursor++; } if (cursor == len) { _signum = 0; mag = ZERO.mag; return; } numDigits = len - cursor; _signum = sign; // Pre-allocate array of expected size int numWords; if (len < 10) { numWords = 1; } else { long numBits = ((numDigits * bitsPerDigit[10]) >>> 10) + 1; if (numBits + 31 >= (1L << 32)) { reportOverflow(); } numWords = cast(int) (numBits + 31) >>> 5; } int[] magnitude = new int[numWords]; // Process first (potentially short) digit group int firstGroupLen = numDigits % digitsPerInt[10]; if (firstGroupLen == 0) firstGroupLen = digitsPerInt[10]; magnitude[numWords - 1] = parseInt(val, cursor, cursor += firstGroupLen); // Process remaining digit groups while (cursor < len) { int groupVal = parseInt(val, cursor, cursor += digitsPerInt[10]); destructiveMulAdd(magnitude, intRadix[10], groupVal); } mag = trustedStripLeadingZeroInts(magnitude); if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } // Create an integer with the digits between the two indexes // Assumes start < end. The result may be negative, but it // is to be treated as an unsigned value. private int parseInt(char[] source, int start, int end) { int result = CharacterHelper.digit(source[start++], 10); if (result == -1) throw new NumberFormatException(cast(string)(source)); for (int index = start; index < end; index++) { int nextVal = CharacterHelper.digit(source[index], 10); if (nextVal == -1) throw new NumberFormatException(cast(string)(source)); result = 10*result + nextVal; } return result; } // bitsPerDigit in the given radix times 1024 // Rounded up to avoid underallocation. private enum long[] bitsPerDigit = [ 0, 0, 1024, 1624, 2048, 2378, 2648, 2875, 3072, 3247, 3402, 3543, 3672, 3790, 3899, 4001, 4096, 4186, 4271, 4350, 4426, 4498, 4567, 4633, 4696, 4756, 4814, 4870, 4923, 4975, 5025, 5074, 5120, 5166, 5210, 5253, 5295]; // Multiply x array times word y in place, and add word z private static void destructiveMulAdd(int[] x, int y, int z) { // Perform the multiplication word by word long ylong = y & LONG_MASK; long zlong = z & LONG_MASK; int len = cast(int)x.length; long product = 0; long carry = 0; for (int i = len-1; i >= 0; i--) { product = ylong * (x[i] & LONG_MASK) + carry; x[i] = cast(int)product; carry = product >>> 32; } // Perform the addition long sum = (x[len-1] & LONG_MASK) + zlong; x[len-1] = cast(int)sum; carry = sum >>> 32; for (int i = len-2; i >= 0; i--) { sum = (x[i] & LONG_MASK) + carry; x[i] = cast(int)sum; carry = sum >>> 32; } } /** * Translates the decimal string representation of a BigInteger into a * BigInteger. The string representation consists of an optional minus * sign followed by a sequence of one or more decimal digits. The * character-to-digit mapping is provided by {@code CharacterHelper.digit}. * The string may not contain any extraneous characters (whitespace, for * example). * * @param val decimal string representation of BigInteger. * @throws NumberFormatException {@code val} is not a valid representation * of a BigInteger. * @see Character#digit */ this(string val) { this(val, 10); } /** * Constructs a randomly generated BigInteger, uniformly distributed over * the range 0 to (2<sup>{@code numBits}</sup> - 1), inclusive. * The uniformity of the distribution assumes that a fair source of random * bits is provided in {@code rnd}. Note that this constructor always * constructs a non-negative BigInteger. * * @param numBits maximum bitLength of the new BigInteger. * @param rnd source of randomness to be used in computing the new * BigInteger. * @throws IllegalArgumentException {@code numBits} is negative. * @see #bitLength() */ this(int numBits, Random* rnd) { this(1, randomBits(numBits, rnd)); } private static byte[] randomBits(int numBits, Random* rnd) { if (numBits < 0) throw new IllegalArgumentException("numBits must be non-negative"); int numBytes = cast(int)((cast(long)numBits+7)/8); // avoid overflow byte[] buffer = new byte[numBytes]; // Generate random bytes and mask out any excess bits if (numBytes > 0) { for(int i=0; i<numBytes; i++) { buffer[i] = uniform(byte.min, byte.max, rnd); } int excessBits = 8*numBytes - numBits; buffer[0] &= (1 << (8-excessBits)) - 1; } return buffer; } /** * Constructs a randomly generated positive BigInteger that is probably * prime, with the specified bitLength. * * @apiNote It is recommended that the {@link #probablePrime probablePrime} * method be used in preference to this constructor unless there * is a compelling need to specify a certainty. * * @param bitLength bitLength of the returned BigInteger. * @param certainty a measure of the uncertainty that the caller is * willing to tolerate. The probability that the new BigInteger * represents a prime number will exceed * (1 - 1/2<sup>{@code certainty}</sup>). The execution time of * this constructor is proportional to the value of this parameter. * @param rnd source of random bits used to select candidates to be * tested for primality. * @throws ArithmeticException {@code bitLength < 2} or {@code bitLength} is too large. * @see #bitLength() */ this(int bitLength, int certainty, Random* rnd) { BigInteger prime; if (bitLength < 2) throw new ArithmeticException("bitLength < 2"); prime = (bitLength < SMALL_PRIME_THRESHOLD ? smallPrime(bitLength, certainty, rnd) : largePrime(bitLength, certainty, rnd)); _signum = 1; mag = prime.mag; } // Minimum size in bits that the requested prime number has // before we use the large prime number generating algorithms. // The cutoff of 95 was chosen empirically for best performance. private enum int SMALL_PRIME_THRESHOLD = 95; // Certainty required to meet the spec of probablePrime private enum int DEFAULT_PRIME_CERTAINTY = 100; /** * Returns a positive BigInteger that is probably prime, with the * specified bitLength. The probability that a BigInteger returned * by this method is composite does not exceed 2<sup>-100</sup>. * * @param bitLength bitLength of the returned BigInteger. * @param rnd source of random bits used to select candidates to be * tested for primality. * @return a BigInteger of {@code bitLength} bits that is probably prime * @throws ArithmeticException {@code bitLength < 2} or {@code bitLength} is too large. * @see #bitLength() */ // static BigInteger probablePrime(int bitLength, Random* rnd) { // if (bitLength < 2) // throw new ArithmeticException("bitLength < 2"); // return (bitLength < SMALL_PRIME_THRESHOLD ? // smallPrime(bitLength, DEFAULT_PRIME_CERTAINTY, rnd) : // largePrime(bitLength, DEFAULT_PRIME_CERTAINTY, rnd)); // } /** * Find a random number of the specified bitLength that is probably prime. * This method is used for smaller primes, its performance degrades on * larger bitlengths. * * This method assumes bitLength > 1. */ private static BigInteger smallPrime(int bitLength, int certainty, Random* rnd) { int magLen = (bitLength + 31) >>> 5; int[] temp = new int[magLen]; int highBit = 1 << ((bitLength+31) & 0x1f); // High bit of high int int highMask = (highBit << 1) - 1; // Bits to keep in high int while (true) { // Construct a candidate for (int i=0; i < magLen; i++) temp[i] = uniform(int.min, int.max, rnd); temp[0] = (temp[0] & highMask) | highBit; // Ensure exact length if (bitLength > 2) temp[magLen-1] |= 1; // Make odd if bitlen > 2 BigInteger p = new BigInteger(temp, 1); // Do cheap "pre-test" if applicable if (bitLength > 6) { long r = p.remainder(SMALL_PRIME_PRODUCT).longValue(); if ((r%3==0) || (r%5==0) || (r%7==0) || (r%11==0) || (r%13==0) || (r%17==0) || (r%19==0) || (r%23==0) || (r%29==0) || (r%31==0) || (r%37==0) || (r%41==0)) continue; // Candidate is composite; try another } // All candidates of bitLength 2 and 3 are prime by this point if (bitLength < 4) return p; // Do expensive test if we survive pre-test (or it's inapplicable) if (p.primeToCertainty(certainty, rnd)) return p; } } private __gshared BigInteger SMALL_PRIME_PRODUCT; shared static this() { SMALL_PRIME_PRODUCT = valueOf(3L*5*7*11*13*17*19*23*29*31*37*41); } /** * Find a random number of the specified bitLength that is probably prime. * This method is more appropriate for larger bitlengths since it uses * a sieve to eliminate most composites before using a more expensive * test. */ private static BigInteger largePrime(int bitLength, int certainty, Random* rnd) { BigInteger p; p = new BigInteger(bitLength, rnd).setBit(bitLength-1); p.mag[$-1] &= 0xfffffffe; // Use a sieve length likely to contain the next prime number int searchLen = getPrimeSearchLen(bitLength); BitSieve searchSieve = new BitSieve(p, searchLen); BigInteger candidate = searchSieve.retrieve(p, certainty, rnd); while ((candidate is null) || (candidate.bitLength() != bitLength)) { p = p.add(BigInteger.valueOf(2*searchLen)); if (p.bitLength() != bitLength) p = new BigInteger(bitLength, rnd).setBit(bitLength-1); p.mag[$-1] &= 0xfffffffe; searchSieve = new BitSieve(p, searchLen); candidate = searchSieve.retrieve(p, certainty, rnd); } return candidate; } /** * Returns the first integer greater than this {@code BigInteger} that * is probably prime. The probability that the number returned by this * method is composite does not exceed 2<sup>-100</sup>. This method will * never skip over a prime when searching: if it returns {@code p}, there * is no prime {@code q} such that {@code this < q < p}. * * @return the first integer greater than this {@code BigInteger} that * is probably prime. * @throws ArithmeticException {@code this < 0} or {@code this} is too large. */ BigInteger nextProbablePrime() { if (this._signum < 0) throw new ArithmeticException("start < 0: " ~ this.toString()); // Handle trivial cases if ((this._signum == 0) || this.equals(ONE)) return TWO; BigInteger result = this.add(ONE); // Fastpath for small numbers if (result.bitLength() < SMALL_PRIME_THRESHOLD) { // Ensure an odd number if (!result.testBit(0)) result = result.add(ONE); while (true) { // Do cheap "pre-test" if applicable if (result.bitLength() > 6) { long r = result.remainder(SMALL_PRIME_PRODUCT).longValue(); if ((r%3==0) || (r%5==0) || (r%7==0) || (r%11==0) || (r%13==0) || (r%17==0) || (r%19==0) || (r%23==0) || (r%29==0) || (r%31==0) || (r%37==0) || (r%41==0)) { result = result.add(TWO); continue; // Candidate is composite; try another } } // All candidates of bitLength 2 and 3 are prime by this point if (result.bitLength() < 4) return result; // The expensive test if (result.primeToCertainty(DEFAULT_PRIME_CERTAINTY, null)) return result; result = result.add(TWO); } } // Start at previous even number if (result.testBit(0)) result = result.subtract(ONE); // Looking for the next large prime int searchLen = getPrimeSearchLen(result.bitLength()); while (true) { BitSieve searchSieve = new BitSieve(result, searchLen); BigInteger candidate = searchSieve.retrieve(result, DEFAULT_PRIME_CERTAINTY, null); if (candidate !is null) return candidate; result = result.add(BigInteger.valueOf(2 * searchLen)); } } private static int getPrimeSearchLen(int bitLength) { if (bitLength > PRIME_SEARCH_BIT_LENGTH_LIMIT + 1) { throw new ArithmeticException("Prime search implementation restriction on bitLength"); } return bitLength / 20 * 64; } /** * Returns {@code true} if this BigInteger is probably prime, * {@code false} if it's definitely composite. * * This method assumes bitLength > 2. * * @param certainty a measure of the uncertainty that the caller is * willing to tolerate: if the call returns {@code true} * the probability that this BigInteger is prime exceeds * {@code (1 - 1/2<sup>certainty</sup>)}. The execution time of * this method is proportional to the value of this parameter. * @return {@code true} if this BigInteger is probably prime, * {@code false} if it's definitely composite. */ bool primeToCertainty(int certainty, Random* random) { int rounds = 0; int n = (std.algorithm.min(certainty, int.max-1)+1)/2; // The relationship between the certainty and the number of rounds // we perform is given in the draft standard ANSI X9.80, "PRIME // NUMBER GENERATION, PRIMALITY TESTING, AND PRIMALITY CERTIFICATES". int sizeInBits = this.bitLength(); if (sizeInBits < 100) { rounds = 50; rounds = n < rounds ? n : rounds; return passesMillerRabin(rounds, random); } if (sizeInBits < 256) { rounds = 27; } else if (sizeInBits < 512) { rounds = 15; } else if (sizeInBits < 768) { rounds = 8; } else if (sizeInBits < 1024) { rounds = 4; } else { rounds = 2; } rounds = n < rounds ? n : rounds; return passesMillerRabin(rounds, random) && passesLucasLehmer(); } /** * Returns true iff this BigInteger is a Lucas-Lehmer probable prime. * * The following assumptions are made: * This BigInteger is a positive, odd number. */ private bool passesLucasLehmer() { BigInteger thisPlusOne = this.add(ONE); // Step 1 int d = 5; while (jacobiSymbol(d, this) != -1) { // 5, -7, 9, -11, ... d = (d < 0) ? std.math.abs(d)+2 : -(d+2); } // Step 2 BigInteger u = lucasLehmerSequence(d, thisPlusOne, this); // Step 3 return u.mod(this).equals(ZERO); } /** * Computes Jacobi(p,n). * Assumes n positive, odd, n>=3. */ private static int jacobiSymbol(int p, BigInteger n) { if (p == 0) return 0; // Algorithm and comments adapted from Colin Plumb's C library. int j = 1; int u = n.mag[$-1]; // Make p positive if (p < 0) { p = -p; int n8 = u & 7; if ((n8 == 3) || (n8 == 7)) j = -j; // 3 (011) or 7 (111) mod 8 } // Get rid of factors of 2 in p while ((p & 3) == 0) p >>= 2; if ((p & 1) == 0) { p >>= 1; if (((u ^ (u>>1)) & 2) != 0) j = -j; // 3 (011) or 5 (101) mod 8 } if (p == 1) return j; // Then, apply quadratic reciprocity if ((p & u & 2) != 0) // p = u = 3 (mod 4)? j = -j; // And reduce u mod p u = n.mod(BigInteger.valueOf(p)).intValue(); // Now compute Jacobi(u,p), u < p while (u != 0) { while ((u & 3) == 0) u >>= 2; if ((u & 1) == 0) { u >>= 1; if (((p ^ (p>>1)) & 2) != 0) j = -j; // 3 (011) or 5 (101) mod 8 } if (u == 1) return j; // Now both u and p are odd, so use quadratic reciprocity assert (u < p); int t = u; u = p; p = t; if ((u & p & 2) != 0) // u = p = 3 (mod 4)? j = -j; // Now u >= p, so it can be reduced u %= p; } return 0; } private static BigInteger lucasLehmerSequence(int z, BigInteger k, BigInteger n) { BigInteger d = BigInteger.valueOf(z); BigInteger u = ONE; BigInteger u2; BigInteger v = ONE; BigInteger v2; for (int i=k.bitLength()-2; i >= 0; i--) { u2 = u.multiply(v).mod(n); v2 = v.square().add(d.multiply(u.square())).mod(n); if (v2.testBit(0)) v2 = v2.subtract(n); v2 = v2.shiftRight(1); u = u2; v = v2; if (k.testBit(i)) { u2 = u.add(v).mod(n); if (u2.testBit(0)) u2 = u2.subtract(n); u2 = u2.shiftRight(1); v2 = v.add(d.multiply(u)).mod(n); if (v2.testBit(0)) v2 = v2.subtract(n); v2 = v2.shiftRight(1); u = u2; v = v2; } } return u; } /** * Returns true iff this BigInteger passes the specified number of * Miller-Rabin tests. This test is taken from the DSA spec (NIST FIPS * 186-2). * * The following assumptions are made: * This BigInteger is a positive, odd number greater than 2. * iterations<=50. */ private bool passesMillerRabin(int iterations, Random* rnd) { // Find a and m such that m is odd and this == 1 + 2**a * m BigInteger thisMinusOne = this.subtract(ONE); BigInteger m = thisMinusOne; int a = m.getLowestSetBit(); m = m.shiftRight(a); // Do the tests // if (rnd is null) { // rnd = ThreadLocalRandom.current(); // } for (int i=0; i < iterations; i++) { // Generate a uniform random on (1, this) BigInteger b; do { b = new BigInteger(this.bitLength(), rnd); } while (b.compareTo(ONE) <= 0 || b.compareTo(this) >= 0); int j = 0; BigInteger z = b.modPow(m, this); while (!((j == 0 && z.equals(ONE)) || z.equals(thisMinusOne))) { if (j > 0 && z.equals(ONE) || ++j == a) return false; z = z.modPow(TWO, this); } } return true; } /** * This internal constructor differs from its cousin * with the arguments reversed in two ways: it assumes that its * arguments are correct, and it doesn't copy the magnitude array. */ this(int[] magnitude, int signum) { this._signum = (magnitude.length == 0 ? 0 : signum); this.mag = magnitude; if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /** * This private constructor is for internal use and assumes that its * arguments are correct. The {@code magnitude} array is assumed to be * unchanged for the duration of the constructor call. */ private this(byte[] magnitude, int signum) { this._signum = (magnitude.length == 0 ? 0 : signum); this.mag = stripLeadingZeroBytes(magnitude, 0, cast(int)magnitude.length); if (mag.length >= MAX_MAG_LENGTH) { checkRange(); } } /** * Throws an {@code ArithmeticException} if the {@code BigInteger} would be * out of the supported range. * * @throws ArithmeticException if {@code this} exceeds the supported range. */ private void checkRange() { if (mag.length > MAX_MAG_LENGTH || mag.length == MAX_MAG_LENGTH && mag[0] < 0) { reportOverflow(); } } private static void reportOverflow() { throw new ArithmeticException("BigInteger would overflow supported range"); } //Static Factory Methods /** * Returns a BigInteger whose value is equal to that of the * specified {@code long}. * * @apiNote This static factory method is provided in preference * to a ({@code long}) constructor because it allows for reuse of * frequently used BigIntegers. * * @param val value of the BigInteger to return. * @return a BigInteger with the specified value. */ static BigInteger valueOf(long val) { // If -MAX_CONSTANT < val < MAX_CONSTANT, return stashed constant if (val == 0) return ZERO; if (val > 0 && val <= MAX_CONSTANT) return posConst[cast(int) val]; else if (val < 0 && val >= -MAX_CONSTANT) return negConst[cast(int) -val]; return new BigInteger(val); } /** * Constructs a BigInteger with the specified value, which may not be zero. */ private this(long val) { if (val < 0) { val = -val; _signum = -1; } else { _signum = 1; } int highWord = cast(int)(val >>> 32); if (highWord == 0) { mag = new int[1]; mag[0] = cast(int)val; } else { mag = new int[2]; mag[0] = highWord; mag[1] = cast(int)val; } } /** * Returns a BigInteger with the given two's complement representation. * Assumes that the input array will not be modified (the returned * BigInteger will reference the input array if feasible). */ private static BigInteger valueOf(int[] val) { return (val[0] > 0 ? new BigInteger(val, 1) : new BigInteger(val)); } // Constants /** * Initialize static constant array when class is loaded. */ private enum int MAX_CONSTANT = 16; private __gshared BigInteger[] posConst; private __gshared BigInteger[] negConst; /** * The cache of powers of each radix. This allows us to not have to * recalculate powers of radix^(2^n) more than once. This speeds * Schoenhage recursive base conversion significantly. */ private __gshared BigInteger[][] powerCache; /** The cache of logarithms of radices for base conversion. */ private __gshared double[] logCache; /** The natural log of 2. This is used in computing cache indices. */ private __gshared immutable double LOG_TWO; shared static this() { LOG_TWO = std.math.log(2.0); posConst = new BigInteger[MAX_CONSTANT+1]; negConst = new BigInteger[MAX_CONSTANT+1]; for (int i = 1; i <= MAX_CONSTANT; i++) { int[] magnitude = [i]; posConst[i] = new BigInteger(magnitude, 1); negConst[i] = new BigInteger(magnitude, -1); } /* * Initialize the cache of radix^(2^x) values used for base conversion * with just the very first value. Additional values will be created * on demand. */ powerCache = new BigInteger[][Char.MAX_RADIX+1]; logCache = new double[Char.MAX_RADIX+1]; for (int i=Char.MIN_RADIX; i <= Char.MAX_RADIX; i++) { powerCache[i] = [BigInteger.valueOf(i)]; logCache[i] = std.math.log(i); } } /** * The BigInteger constant zero. * * @since 1.2 */ __gshared static BigInteger ZERO; /** * The BigInteger constant one. * * @since 1.2 */ __gshared static BigInteger ONE; /** * The BigInteger constant two. * * @since 9 */ __gshared static BigInteger TWO; /** * The BigInteger constant -1. (Not exported.) */ private __gshared static BigInteger NEGATIVE_ONE; /** * The BigInteger constant ten. * * @since 1.5 */ __gshared static BigInteger TEN; shared static this() { ZERO = new BigInteger(cast(byte[])[], 0); ONE = valueOf(1); TWO = valueOf(2); NEGATIVE_ONE = valueOf(-1); TEN = valueOf(10); } // Arithmetic Operations /** * Returns a BigInteger whose value is {@code (this + val)}. * * @param val value to be added to this BigInteger. * @return {@code this + val} */ BigInteger add(BigInteger val) { if (val._signum == 0) return this; if (_signum == 0) return val; if (val._signum == signum) return new BigInteger(add(mag, val.mag), signum); int cmp = compareMagnitude(val); if (cmp == 0) return ZERO; int[] resultMag = (cmp > 0 ? subtract(mag, val.mag) : subtract(val.mag, mag)); resultMag = trustedStripLeadingZeroInts(resultMag); return new BigInteger(resultMag, cmp == signum ? 1 : -1); } /** * Package private methods used by BigDecimal code to add a BigInteger * with a long. Assumes val is not equal to INFLATED. */ BigInteger add(long val) { if (val == 0) return this; if (_signum == 0) return valueOf(val); if (Long.signum(val) == signum) return new BigInteger(add(mag, std.math.abs(val)), signum); int cmp = compareMagnitude(val); if (cmp == 0) return ZERO; int[] resultMag = (cmp > 0 ? subtract(mag, std.math.abs(val)) : subtract(std.math.abs(val), mag)); resultMag = trustedStripLeadingZeroInts(resultMag); return new BigInteger(resultMag, cmp == signum ? 1 : -1); } /** * Adds the contents of the int array x and long value val. This * method allocates a new int array to hold the answer and returns * a reference to that array. Assumes x.length &gt; 0 and val is * non-negative */ private static int[] add(int[] x, long val) { int[] y; long sum = 0; int xIndex = cast(int)x.length; int[] result; int highWord = cast(int)(val >>> 32); if (highWord == 0) { result = new int[xIndex]; sum = (x[--xIndex] & LONG_MASK) + val; result[xIndex] = cast(int)sum; } else { if (xIndex == 1) { result = new int[2]; sum = val + (x[0] & LONG_MASK); result[1] = cast(int)sum; result[0] = cast(int)(sum >>> 32); return result; } else { result = new int[xIndex]; sum = (x[--xIndex] & LONG_MASK) + (val & LONG_MASK); result[xIndex] = cast(int)sum; sum = (x[--xIndex] & LONG_MASK) + (highWord & LONG_MASK) + (sum >>> 32); result[xIndex] = cast(int)sum; } } // Copy remainder of longer number while carry propagation is required bool carry = (sum >>> 32 != 0); while (xIndex > 0 && carry) carry = ((result[--xIndex] = x[xIndex] + 1) == 0); // Copy remainder of longer number while (xIndex > 0) result[--xIndex] = x[xIndex]; // Grow result if necessary if (carry) { size_t len = cast(int)result.length; int[] bigger = new int[len + 1]; // System.arraycopy(result, 0, bigger, 1, result.length); bigger[1 .. len+1] = result[0..$]; bigger[0] = 0x01; return bigger; } return result; } /** * Adds the contents of the int arrays x and y. This method allocates * a new int array to hold the answer and returns a reference to that * array. */ private static int[] add(int[] x, int[] y) { // If x is shorter, swap the two arrays if (x.length < y.length) { int[] tmp = x; x = y; y = tmp; } int xIndex = cast(int)x.length; int yIndex = cast(int)y.length; int[] result = new int[xIndex]; long sum = 0; if (yIndex == 1) { sum = (x[--xIndex] & LONG_MASK) + (y[0] & LONG_MASK) ; result[xIndex] = cast(int)sum; } else { // Add common parts of both numbers while (yIndex > 0) { sum = (x[--xIndex] & LONG_MASK) + (y[--yIndex] & LONG_MASK) + (sum >>> 32); result[xIndex] = cast(int)sum; } } // Copy remainder of longer number while carry propagation is required bool carry = (sum >>> 32 != 0); while (xIndex > 0 && carry) carry = ((result[--xIndex] = x[xIndex] + 1) == 0); // Copy remainder of longer number while (xIndex > 0) result[--xIndex] = x[xIndex]; // Grow result if necessary if (carry) { size_t len = cast(int)result.length; int[] bigger = new int[len + 1]; // System.arraycopy(result, 0, bigger, 1, result.length); bigger[1 .. 1+len] = result[0 .. $]; bigger[0] = 0x01; return bigger; } return result; } private static int[] subtract(long val, int[] little) { int highWord = cast(int)(val >>> 32); if (highWord == 0) { int[] result = new int[1]; result[0] = cast(int)(val - (little[0] & LONG_MASK)); return result; } else { int[] result = new int[2]; if (little.length == 1) { long difference = (cast(int)val & LONG_MASK) - (little[0] & LONG_MASK); result[1] = cast(int)difference; // Subtract remainder of longer number while borrow propagates bool borrow = (difference >> 32 != 0); if (borrow) { result[0] = highWord - 1; } else { // Copy remainder of longer number result[0] = highWord; } return result; } else { // little.length == 2 long difference = (cast(int)val & LONG_MASK) - (little[1] & LONG_MASK); result[1] = cast(int)difference; difference = (highWord & LONG_MASK) - (little[0] & LONG_MASK) + (difference >> 32); result[0] = cast(int)difference; return result; } } } /** * Subtracts the contents of the second argument (val) from the * first (big). The first int array (big) must represent a larger number * than the second. This method allocates the space necessary to hold the * answer. * assumes val &gt;= 0 */ private static int[] subtract(int[] big, long val) { int highWord = cast(int)(val >>> 32); int bigIndex = cast(int)big.length; int[] result = new int[bigIndex]; long difference = 0; if (highWord == 0) { difference = (big[--bigIndex] & LONG_MASK) - val; result[bigIndex] = cast(int)difference; } else { difference = (big[--bigIndex] & LONG_MASK) - (val & LONG_MASK); result[bigIndex] = cast(int)difference; difference = (big[--bigIndex] & LONG_MASK) - (highWord & LONG_MASK) + (difference >> 32); result[bigIndex] = cast(int)difference; } // Subtract remainder of longer number while borrow propagates bool borrow = (difference >> 32 != 0); while (bigIndex > 0 && borrow) borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1); // Copy remainder of longer number while (bigIndex > 0) result[--bigIndex] = big[bigIndex]; return result; } /** * Returns a BigInteger whose value is {@code (this - val)}. * * @param val value to be subtracted from this BigInteger. * @return {@code this - val} */ BigInteger subtract(BigInteger val) { if (val._signum == 0) return this; if (_signum == 0) return val.negate(); if (val.signum != signum) return new BigInteger(add(mag, val.mag), signum); int cmp = compareMagnitude(val); if (cmp == 0) return ZERO; int[] resultMag = (cmp > 0 ? subtract(mag, val.mag) : subtract(val.mag, mag)); resultMag = trustedStripLeadingZeroInts(resultMag); return new BigInteger(resultMag, cmp == signum ? 1 : -1); } /** * Subtracts the contents of the second int arrays (little) from the * first (big). The first int array (big) must represent a larger number * than the second. This method allocates the space necessary to hold the * answer. */ private static int[] subtract(int[] big, int[] little) { int bigIndex = cast(int)big.length; int[] result = new int[bigIndex]; int littleIndex = cast(int)little.length; long difference = 0; // Subtract common parts of both numbers while (littleIndex > 0) { difference = (big[--bigIndex] & LONG_MASK) - (little[--littleIndex] & LONG_MASK) + (difference >> 32); result[bigIndex] = cast(int)difference; } // Subtract remainder of longer number while borrow propagates bool borrow = (difference >> 32 != 0); while (bigIndex > 0 && borrow) borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1); // Copy remainder of longer number while (bigIndex > 0) result[--bigIndex] = big[bigIndex]; return result; } /** * Returns a BigInteger whose value is {@code (this * val)}. * * @implNote An implementation may offer better algorithmic * performance when {@code val == this}. * * @param val value to be multiplied by this BigInteger. * @return {@code this * val} */ BigInteger multiply(BigInteger val) { if (val._signum == 0 || _signum == 0) return ZERO; int xlen = cast(int)mag.length; if (val == this && xlen > MULTIPLY_SQUARE_THRESHOLD) { return square(); } int ylen = cast(int)val.mag.length; if ((xlen < KARATSUBA_THRESHOLD) || (ylen < KARATSUBA_THRESHOLD)) { int resultSign = _signum == val.signum ? 1 : -1; if (val.mag.length == 1) { return multiplyByInt(mag,val.mag[0], resultSign); } if (mag.length == 1) { return multiplyByInt(val.mag,mag[0], resultSign); } int[] result = multiplyToLen(mag, xlen, val.mag, ylen, null); result = trustedStripLeadingZeroInts(result); return new BigInteger(result, resultSign); } else { if ((xlen < TOOM_COOK_THRESHOLD) && (ylen < TOOM_COOK_THRESHOLD)) { return multiplyKaratsuba(this, val); } else { return multiplyToomCook3(this, val); } } } private static BigInteger multiplyByInt(int[] x, int y, int sign) { if (Integer.bitCount(y) == 1) { return new BigInteger(shiftLeft(x, Integer.numberOfTrailingZeros(y)), sign); } int xlen = cast(int)x.length; int[] rmag = new int[xlen + 1]; long carry = 0; long yl = y & LONG_MASK; int rstart = cast(int)rmag.length - 1; for (int i = xlen - 1; i >= 0; i--) { long product = (x[i] & LONG_MASK) * yl + carry; rmag[rstart--] = cast(int)product; carry = product >>> 32; } if (carry == 0L) { rmag = rmag[1 .. $]; // java.util.Arrays.copyOfRange(rmag, 1, rmag.length); } else { rmag[rstart] = cast(int)carry; } return new BigInteger(rmag, sign); } /** * Package private methods used by BigDecimal code to multiply a BigInteger * with a long. Assumes v is not equal to INFLATED. */ BigInteger multiply(long v) { if (v == 0 || _signum == 0) return ZERO; if (v == long.min) return multiply(BigInteger.valueOf(v)); int rsign = (v > 0 ? signum : -signum); if (v < 0) v = -v; long dh = v >>> 32; // higher order bits long dl = v & LONG_MASK; // lower order bits int xlen = cast(int)mag.length; int[] value = mag; int[] rmag = (dh == 0L) ? (new int[xlen + 1]) : (new int[xlen + 2]); long carry = 0; int rstart = cast(int)rmag.length - 1; for (int i = xlen - 1; i >= 0; i--) { long product = (value[i] & LONG_MASK) * dl + carry; rmag[rstart--] = cast(int)product; carry = product >>> 32; } rmag[rstart] = cast(int)carry; if (dh != 0L) { carry = 0; rstart = cast(int)rmag.length - 2; for (int i = xlen - 1; i >= 0; i--) { long product = (value[i] & LONG_MASK) * dh + (rmag[rstart] & LONG_MASK) + carry; rmag[rstart--] = cast(int)product; carry = product >>> 32; } rmag[0] = cast(int)carry; } if (carry == 0L) rmag = rmag[1 .. $]; //java.util.Arrays.copyOfRange(rmag, 1, rmag.length); return new BigInteger(rmag, rsign); } /** * Multiplies int arrays x and y to the specified lengths and places * the result into z. There will be no leading zeros in the resultant array. */ private static int[] multiplyToLen(int[] x, int xlen, int[] y, int ylen, int[] z) { multiplyToLenCheck(x, xlen); multiplyToLenCheck(y, ylen); return implMultiplyToLen(x, xlen, y, ylen, z); } private static int[] implMultiplyToLen(int[] x, int xlen, int[] y, int ylen, int[] z) { int xstart = xlen - 1; int ystart = ylen - 1; if (z is null || z.length < (xlen+ ylen)) z = new int[xlen+ylen]; long carry = 0; for (int j=ystart, k=ystart+1+xstart; j >= 0; j--, k--) { long product = (y[j] & LONG_MASK) * (x[xstart] & LONG_MASK) + carry; z[k] = cast(int)product; carry = product >>> 32; } z[xstart] = cast(int)carry; for (int i = xstart-1; i >= 0; i--) { carry = 0; for (int j=ystart, k=ystart+1+i; j >= 0; j--, k--) { long product = (y[j] & LONG_MASK) * (x[i] & LONG_MASK) + (z[k] & LONG_MASK) + carry; z[k] = cast(int)product; carry = product >>> 32; } z[i] = cast(int)carry; } return z; } private static void multiplyToLenCheck(int[] array, int length) { if (length <= 0) { return; // not an error because multiplyToLen won't execute if len <= 0 } assert(array !is null); if (length > array.length) { throw new ArrayIndexOutOfBoundsException(length - 1); } } /** * Multiplies two BigIntegers using the Karatsuba multiplication * algorithm. This is a recursive divide-and-conquer algorithm which is * more efficient for large numbers than what is commonly called the * "grade-school" algorithm used in multiplyToLen. If the numbers to be * multiplied have length n, the "grade-school" algorithm has an * asymptotic complexity of O(n^2). In contrast, the Karatsuba algorithm * has complexity of O(n^(log2(3))), or O(n^1.585). It achieves this * increased performance by doing 3 multiplies instead of 4 when * evaluating the product. As it has some overhead, should be used when * both numbers are larger than a certain threshold (found * experimentally). * * See: http://en.wikipedia.org/wiki/Karatsuba_algorithm */ private static BigInteger multiplyKaratsuba(BigInteger x, BigInteger y) { int xlen = cast(int)x.mag.length; int ylen = cast(int)y.mag.length; // The number of ints in each half of the number. int half = (std.algorithm.max(xlen, ylen)+1) / 2; // xl and yl are the lower halves of x and y respectively, // xh and yh are the upper halves. BigInteger xl = x.getLower(half); BigInteger xh = x.getUpper(half); BigInteger yl = y.getLower(half); BigInteger yh = y.getUpper(half); BigInteger p1 = xh.multiply(yh); // p1 = xh*yh BigInteger p2 = xl.multiply(yl); // p2 = xl*yl // p3=(xh+xl)*(yh+yl) BigInteger p3 = xh.add(xl).multiply(yh.add(yl)); // result = p1 * 2^(32*2*half) + (p3 - p1 - p2) * 2^(32*half) + p2 BigInteger result = p1.shiftLeft(32*half).add(p3.subtract(p1).subtract(p2)).shiftLeft(32*half).add(p2); if (x.signum != y.signum) { return result.negate(); } else { return result; } } /** * Multiplies two BigIntegers using a 3-way Toom-Cook multiplication * algorithm. This is a recursive divide-and-conquer algorithm which is * more efficient for large numbers than what is commonly called the * "grade-school" algorithm used in multiplyToLen. If the numbers to be * multiplied have length n, the "grade-school" algorithm has an * asymptotic complexity of O(n^2). In contrast, 3-way Toom-Cook has a * complexity of about O(n^1.465). It achieves this increased asymptotic * performance by breaking each number into three parts and by doing 5 * multiplies instead of 9 when evaluating the product. Due to overhead * (additions, shifts, and one division) in the Toom-Cook algorithm, it * should only be used when both numbers are larger than a certain * threshold (found experimentally). This threshold is generally larger * than that for Karatsuba multiplication, so this algorithm is generally * only used when numbers become significantly larger. * * The algorithm used is the "optimal" 3-way Toom-Cook algorithm outlined * by Marco Bodrato. * * See: http://bodrato.it/toom-cook/ * http://bodrato.it/papers/#WAIFI2007 * * "Towards Optimal Toom-Cook Multiplication for Univariate and * Multivariate Polynomials in Characteristic 2 and 0." by Marco BODRATO; * In C.Carlet and B.Sunar, Eds., "WAIFI'07 proceedings", p. 116-133, * LNCS #4547. Springer, Madrid, Spain, June 21-22, 2007. * */ private static BigInteger multiplyToomCook3(BigInteger a, BigInteger b) { int alen = cast(int)a.mag.length; int blen = cast(int)b.mag.length; int largest = std.algorithm.max(alen, blen); // k is the size (in ints) of the lower-order slices. int k = (largest+2)/3; // Equal to ceil(largest/3) // r is the size (in ints) of the highest-order slice. int r = largest - 2*k; // Obtain slices of the numbers. a2 and b2 are the most significant // bits of the numbers a and b, and a0 and b0 the least significant. BigInteger a0, a1, a2, b0, b1, b2; a2 = a.getToomSlice(k, r, 0, largest); a1 = a.getToomSlice(k, r, 1, largest); a0 = a.getToomSlice(k, r, 2, largest); b2 = b.getToomSlice(k, r, 0, largest); b1 = b.getToomSlice(k, r, 1, largest); b0 = b.getToomSlice(k, r, 2, largest); BigInteger v0, v1, v2, vm1, vinf, t1, t2, tm1, da1, db1; v0 = a0.multiply(b0); da1 = a2.add(a0); db1 = b2.add(b0); vm1 = da1.subtract(a1).multiply(db1.subtract(b1)); da1 = da1.add(a1); db1 = db1.add(b1); v1 = da1.multiply(db1); v2 = da1.add(a2).shiftLeft(1).subtract(a0).multiply( db1.add(b2).shiftLeft(1).subtract(b0)); vinf = a2.multiply(b2); // The algorithm requires two divisions by 2 and one by 3. // All divisions are known to be exact, that is, they do not produce // remainders, and all results are positive. The divisions by 2 are // implemented as right shifts which are relatively efficient, leaving // only an exact division by 3, which is done by a specialized // linear-time algorithm. t2 = v2.subtract(vm1).exactDivideBy3(); tm1 = v1.subtract(vm1).shiftRight(1); t1 = v1.subtract(v0); t2 = t2.subtract(t1).shiftRight(1); t1 = t1.subtract(tm1).subtract(vinf); t2 = t2.subtract(vinf.shiftLeft(1)); tm1 = tm1.subtract(t2); // Number of bits to shift left. int ss = k*32; BigInteger result = vinf.shiftLeft(ss).add(t2).shiftLeft(ss).add(t1).shiftLeft(ss).add(tm1).shiftLeft(ss).add(v0); if (a.signum != b.signum) { return result.negate(); } else { return result; } } /** * Returns a slice of a BigInteger for use in Toom-Cook multiplication. * * @param lowerSize The size of the lower-order bit slices. * @param upperSize The size of the higher-order bit slices. * @param slice The index of which slice is requested, which must be a * number from 0 to size-1. Slice 0 is the highest-order bits, and slice * size-1 are the lowest-order bits. Slice 0 may be of different size than * the other slices. * @param fullsize The size of the larger integer array, used to align * slices to the appropriate position when multiplying different-sized * numbers. */ private BigInteger getToomSlice(int lowerSize, int upperSize, int slice, int fullsize) { int start, end, sliceSize, len, offset; len = cast(int)mag.length; offset = fullsize - len; if (slice == 0) { start = 0 - offset; end = upperSize - 1 - offset; } else { start = upperSize + (slice-1)*lowerSize - offset; end = start + lowerSize - 1; } if (start < 0) { start = 0; } if (end < 0) { return ZERO; } sliceSize = (end-start) + 1; if (sliceSize <= 0) { return ZERO; } // While performing Toom-Cook, all slices are positive and // the sign is adjusted when the final number is composed. if (start == 0 && sliceSize >= len) { return this.abs(); } int[] intSlice = mag[start .. start + sliceSize]; // int[] intSlice = new int[sliceSize]; //System.arraycopy(mag, start, intSlice, 0, sliceSize); return new BigInteger(trustedStripLeadingZeroInts(intSlice), 1); } /** * Does an exact division (that is, the remainder is known to be zero) * of the specified number by 3. This is used in Toom-Cook * multiplication. This is an efficient algorithm that runs in linear * time. If the argument is not exactly divisible by 3, results are * undefined. Note that this is expected to be called with positive * arguments only. */ private BigInteger exactDivideBy3() { int len = cast(int)mag.length; int[] result = new int[len]; long x, w, q, borrow; borrow = 0L; for (int i=len-1; i >= 0; i--) { x = (mag[i] & LONG_MASK); w = x - borrow; if (borrow > x) { // Did we make the number go negative? borrow = 1L; } else { borrow = 0L; } // 0xAAAAAAAB is the modular inverse of 3 (mod 2^32). Thus, // the effect of this is to divide by 3 (mod 2^32). // This is much faster than division on most architectures. q = (w * 0xAAAAAAABL) & LONG_MASK; result[i] = cast(int) q; // Now check the borrow. The second check can of course be // eliminated if the first fails. if (q >= 0x55555556L) { borrow++; if (q >= 0xAAAAAAABL) borrow++; } } result = trustedStripLeadingZeroInts(result); return new BigInteger(result, signum); } /** * Returns a new BigInteger representing n lower ints of the number. * This is used by Karatsuba multiplication and Karatsuba squaring. */ private BigInteger getLower(int n) { int len = cast(int)mag.length; if (len <= n) { return abs(); } int[] lowerInts = mag[len-n .. len]; // int[] lowerInts = new int[n]; // System.arraycopy(mag, len-n, lowerInts, 0, n); return new BigInteger(trustedStripLeadingZeroInts(lowerInts), 1); } /** * Returns a new BigInteger representing mag.length-n upper * ints of the number. This is used by Karatsuba multiplication and * Karatsuba squaring. */ private BigInteger getUpper(int n) { int len = cast(int)mag.length; if (len <= n) { return ZERO; } int upperLen = len - n; int[] upperInts = mag[0 .. upperLen]; // int[] upperInts = new int[upperLen]; // System.arraycopy(mag, 0, upperInts, 0, upperLen); return new BigInteger(trustedStripLeadingZeroInts(upperInts), 1); } // Squaring /** * Returns a BigInteger whose value is {@code (this<sup>2</sup>)}. * * @return {@code this<sup>2</sup>} */ private BigInteger square() { if (_signum == 0) { return ZERO; } int len = cast(int)mag.length; if (len < KARATSUBA_SQUARE_THRESHOLD) { int[] z = squareToLen(mag, len, null); return new BigInteger(trustedStripLeadingZeroInts(z), 1); } else { if (len < TOOM_COOK_SQUARE_THRESHOLD) { return squareKaratsuba(); } else { return squareToomCook3(); } } } /** * Squares the contents of the int array x. The result is placed into the * int array z. The contents of x are not changed. */ private static int[] squareToLen(int[] x, int len, int[] z) { int zlen = len << 1; if (z is null || z.length < zlen) z = new int[zlen]; // Execute checks before calling intrinsified method. implSquareToLenChecks(x, len, z, zlen); return implSquareToLen(x, len, z, zlen); } /** * Parameters validation. */ private static void implSquareToLenChecks(int[] x, int len, int[] z, int zlen) { if (len < 1) { throw new IllegalArgumentException("invalid input length: " ~ len.to!string().to!string()); } if (len > x.length) { throw new IllegalArgumentException("input length out of bound: " ~ len.to!string() ~ " > " ~ x.length.to!string()); } if (len * 2 > z.length) { throw new IllegalArgumentException("input length out of bound: " ~ (len * 2).to!string() ~ " > " ~ z.length.to!string()); } if (zlen < 1) { throw new IllegalArgumentException("invalid input length: " ~ zlen.to!string()); } if (zlen > z.length) { throw new IllegalArgumentException("input length out of bound: " ~ len.to!string() ~ " > " ~ z.length.to!string()); } } /** * Java Runtime may use intrinsic for this method. */ private static final int[] implSquareToLen(int[] x, int len, int[] z, int zlen) { /* * The algorithm used here is adapted from Colin Plumb's C library. * Technique: Consider the partial products in the multiplication * of "abcde" by itself: * * a b c d e * * a b c d e * ================== * ae be ce de ee * ad bd cd dd de * ac bc cc cd ce * ab bb bc bd be * aa ab ac ad ae * * Note that everything above the main diagonal: * ae be ce de = (abcd) * e * ad bd cd = (abc) * d * ac bc = (ab) * c * ab = (a) * b * * is a copy of everything below the main diagonal: * de * cd ce * bc bd be * ab ac ad ae * * Thus, the sum is 2 * (off the diagonal) + diagonal. * * This is accumulated beginning with the diagonal (which * consist of the squares of the digits of the input), which is then * divided by two, the off-diagonal added, and multiplied by two * again. The low bit is simply a copy of the low bit of the * input, so it doesn't need special care. */ // Store the squares, right shifted one bit (i.e., divided by 2) int lastProductLowWord = 0; for (int j=0, i=0; j < len; j++) { long piece = (x[j] & LONG_MASK); long product = piece * piece; z[i++] = (lastProductLowWord << 31) | cast(int)(product >>> 33); z[i++] = cast(int)(product >>> 1); lastProductLowWord = cast(int)product; } // Add in off-diagonal sums for (int i=len, offset=1; i > 0; i--, offset+=2) { int t = x[i-1]; t = mulAdd(z, x, offset, i-1, t); addOne(z, offset-1, i, t); } // Shift back up and set low bit primitiveLeftShift(z, zlen, 1); z[zlen-1] |= x[len-1] & 1; return z; } /** * Squares a BigInteger using the Karatsuba squaring algorithm. It should * be used when both numbers are larger than a certain threshold (found * experimentally). It is a recursive divide-and-conquer algorithm that * has better asymptotic performance than the algorithm used in * squareToLen. */ private BigInteger squareKaratsuba() { int half = cast(int)(mag.length+1) / 2; BigInteger xl = getLower(half); BigInteger xh = getUpper(half); BigInteger xhs = xh.square(); // xhs = xh^2 BigInteger xls = xl.square(); // xls = xl^2 // xh^2 << 64 + (((xl+xh)^2 - (xh^2 + xl^2)) << 32) + xl^2 return xhs.shiftLeft(half*32).add(xl.add(xh).square().subtract(xhs.add(xls))).shiftLeft(half*32).add(xls); } /** * Squares a BigInteger using the 3-way Toom-Cook squaring algorithm. It * should be used when both numbers are larger than a certain threshold * (found experimentally). It is a recursive divide-and-conquer algorithm * that has better asymptotic performance than the algorithm used in * squareToLen or squareKaratsuba. */ private BigInteger squareToomCook3() { int len = cast(int)mag.length; // k is the size (in ints) of the lower-order slices. int k = (len+2)/3; // Equal to ceil(largest/3) // r is the size (in ints) of the highest-order slice. int r = len - 2*k; // Obtain slices of the numbers. a2 is the most significant // bits of the number, and a0 the least significant. BigInteger a0, a1, a2; a2 = getToomSlice(k, r, 0, len); a1 = getToomSlice(k, r, 1, len); a0 = getToomSlice(k, r, 2, len); BigInteger v0, v1, v2, vm1, vinf, t1, t2, tm1, da1; v0 = a0.square(); da1 = a2.add(a0); vm1 = da1.subtract(a1).square(); da1 = da1.add(a1); v1 = da1.square(); vinf = a2.square(); v2 = da1.add(a2).shiftLeft(1).subtract(a0).square(); // The algorithm requires two divisions by 2 and one by 3. // All divisions are known to be exact, that is, they do not produce // remainders, and all results are positive. The divisions by 2 are // implemented as right shifts which are relatively efficient, leaving // only a division by 3. // The division by 3 is done by an optimized algorithm for this case. t2 = v2.subtract(vm1).exactDivideBy3(); tm1 = v1.subtract(vm1).shiftRight(1); t1 = v1.subtract(v0); t2 = t2.subtract(t1).shiftRight(1); t1 = t1.subtract(tm1).subtract(vinf); t2 = t2.subtract(vinf.shiftLeft(1)); tm1 = tm1.subtract(t2); // Number of bits to shift left. int ss = k*32; return vinf.shiftLeft(ss).add(t2).shiftLeft(ss).add(t1).shiftLeft(ss).add(tm1).shiftLeft(ss).add(v0); } // Division /** * Returns a BigInteger whose value is {@code (this / val)}. * * @param val value by which this BigInteger is to be divided. * @return {@code this / val} * @throws ArithmeticException if {@code val} is zero. */ BigInteger divide(BigInteger val) { // if (val.mag.length < BURNIKEL_ZIEGLER_THRESHOLD || // mag.length - val.mag.length < BURNIKEL_ZIEGLER_OFFSET) { // return divideKnuth(val); // } else { // return divideBurnikelZiegler(val); // } return null; } /** * Returns a BigInteger whose value is {@code (this / val)} using an O(n^2) algorithm from Knuth. * * @param val value by which this BigInteger is to be divided. * @return {@code this / val} * @throws ArithmeticException if {@code val} is zero. * @see MutableBigInteger#divideKnuth(MutableBigInteger, MutableBigInteger, bool) */ // private BigInteger divideKnuth(BigInteger val) { // MutableBigInteger q = new MutableBigInteger(), // a = new MutableBigInteger(this.mag), // b = new MutableBigInteger(val.mag); // a.divideKnuth(b, q, false); // return q.toBigInteger(this._signum * val.signum); // } /** * Returns an array of two BigIntegers containing {@code (this / val)} * followed by {@code (this % val)}. * * @param val value by which this BigInteger is to be divided, and the * remainder computed. * @return an array of two BigIntegers: the quotient {@code (this / val)} * is the initial element, and the remainder {@code (this % val)} * is the final element. * @throws ArithmeticException if {@code val} is zero. */ BigInteger[] divideAndRemainder(BigInteger val) { if (val.mag.length < BURNIKEL_ZIEGLER_THRESHOLD || mag.length - val.mag.length < BURNIKEL_ZIEGLER_OFFSET) { return divideAndRemainderKnuth(val); } else { return divideAndRemainderBurnikelZiegler(val); } } /** Long division */ private BigInteger[] divideAndRemainderKnuth(BigInteger val) { BigInteger[] result = new BigInteger[2]; MutableBigInteger q = new MutableBigInteger(), a = new MutableBigInteger(this.mag), b = new MutableBigInteger(val.mag); MutableBigInteger r = a.divideKnuth(b, q); result[0] = q.toBigInteger(this._signum == val.signum ? 1 : -1); result[1] = r.toBigInteger(this._signum); return result; } /** * Returns a BigInteger whose value is {@code (this % val)}. * * @param val value by which this BigInteger is to be divided, and the * remainder computed. * @return {@code this % val} * @throws ArithmeticException if {@code val} is zero. */ BigInteger remainder(BigInteger val) { if (val.mag.length < BURNIKEL_ZIEGLER_THRESHOLD || mag.length - val.mag.length < BURNIKEL_ZIEGLER_OFFSET) { return remainderKnuth(val); } else { return remainderBurnikelZiegler(val); } } /** Long division */ private BigInteger remainderKnuth(BigInteger val) { MutableBigInteger q = new MutableBigInteger(), a = new MutableBigInteger(this.mag), b = new MutableBigInteger(val.mag); return a.divideKnuth(b, q).toBigInteger(this._signum); } /** * Calculates {@code this / val} using the Burnikel-Ziegler algorithm. * @param val the divisor * @return {@code this / val} */ private BigInteger divideBurnikelZiegler(BigInteger val) { return divideAndRemainderBurnikelZiegler(val)[0]; } /** * Calculates {@code this % val} using the Burnikel-Ziegler algorithm. * @param val the divisor * @return {@code this % val} */ private BigInteger remainderBurnikelZiegler(BigInteger val) { return divideAndRemainderBurnikelZiegler(val)[1]; } /** * Computes {@code this / val} and {@code this % val} using the * Burnikel-Ziegler algorithm. * @param val the divisor * @return an array containing the quotient and remainder */ private BigInteger[] divideAndRemainderBurnikelZiegler(BigInteger val) { MutableBigInteger q = new MutableBigInteger(); MutableBigInteger r = new MutableBigInteger(this).divideAndRemainderBurnikelZiegler(new MutableBigInteger(val), q); BigInteger qBigInt = q.isZero() ? ZERO : q.toBigInteger(signum*val.signum); BigInteger rBigInt = r.isZero() ? ZERO : r.toBigInteger(signum); return [qBigInt, rBigInt]; } /** * Returns a BigInteger whose value is <code>(this<sup>exponent</sup>)</code>. * Note that {@code exponent} is an integer rather than a BigInteger. * * @param exponent exponent to which this BigInteger is to be raised. * @return <code>this<sup>exponent</sup></code> * @throws ArithmeticException {@code exponent} is negative. (This would * cause the operation to yield a non-integer value.) */ BigInteger pow(int exponent) { if (exponent < 0) { throw new ArithmeticException("Negative exponent"); } if (_signum == 0) { return (exponent == 0 ? ONE : this); } BigInteger partToSquare = this.abs(); // Factor out powers of two from the base, as the exponentiation of // these can be done by left shifts only. // The remaining part can then be exponentiated faster. The // powers of two will be multiplied back at the end. int powersOfTwo = partToSquare.getLowestSetBit(); long bitsToShift = cast(long)powersOfTwo * exponent; if (bitsToShift > int.max) { reportOverflow(); } int remainingBits; // Factor the powers of two out quickly by shifting right, if needed. if (powersOfTwo > 0) { partToSquare = partToSquare.shiftRight(powersOfTwo); remainingBits = partToSquare.bitLength(); if (remainingBits == 1) { // Nothing left but +/- 1? if (signum < 0 && (exponent&1) == 1) { return NEGATIVE_ONE.shiftLeft(powersOfTwo*exponent); } else { return ONE.shiftLeft(powersOfTwo*exponent); } } } else { remainingBits = partToSquare.bitLength(); if (remainingBits == 1) { // Nothing left but +/- 1? if (signum < 0 && (exponent&1) == 1) { return NEGATIVE_ONE; } else { return ONE; } } } // This is a quick way to approximate the size of the result, // similar to doing log2[n] * exponent. This will give an upper bound // of how big the result can be, and which algorithm to use. long scaleFactor = cast(long)remainingBits * exponent; // Use slightly different algorithms for small and large operands. // See if the result will safely fit into a long. (Largest 2^63-1) if (partToSquare.mag.length == 1 && scaleFactor <= 62) { // Small number algorithm. Everything fits into a long. int newSign = (signum <0 && (exponent&1) == 1 ? -1 : 1); long result = 1; long baseToPow2 = partToSquare.mag[0] & LONG_MASK; int workingExponent = exponent; // Perform exponentiation using repeated squaring trick while (workingExponent != 0) { if ((workingExponent & 1) == 1) { result = result * baseToPow2; } if ((workingExponent >>>= 1) != 0) { baseToPow2 = baseToPow2 * baseToPow2; } } // Multiply back the powers of two (quickly, by shifting left) if (powersOfTwo > 0) { if (bitsToShift + scaleFactor <= 62) { // Fits in long? return valueOf((result << bitsToShift) * newSign); } else { return valueOf(result*newSign).shiftLeft(cast(int) bitsToShift); } } else { return valueOf(result*newSign); } } else { // Large number algorithm. This is basically identical to // the algorithm above, but calls multiply() and square() // which may use more efficient algorithms for large numbers. BigInteger answer = ONE; int workingExponent = exponent; // Perform exponentiation using repeated squaring trick while (workingExponent != 0) { if ((workingExponent & 1) == 1) { answer = answer.multiply(partToSquare); } if ((workingExponent >>>= 1) != 0) { partToSquare = partToSquare.square(); } } // Multiply back the (exponentiated) powers of two (quickly, // by shifting left) if (powersOfTwo > 0) { answer = answer.shiftLeft(powersOfTwo*exponent); } if (signum < 0 && (exponent&1) == 1) { return answer.negate(); } else { return answer; } } } /** * Returns the integer square root of this BigInteger. The integer square * root of the corresponding mathematical integer {@code n} is the largest * mathematical integer {@code s} such that {@code s*s <= n}. It is equal * to the value of {@code floor(sqrt(n))}, where {@code sqrt(n)} denotes the * real square root of {@code n} treated as a real. Note that the integer * square root will be less than the real square root if the latter is not * representable as an integral value. * * @return the integer square root of {@code this} * @throws ArithmeticException if {@code this} is negative. (The square * root of a negative integer {@code val} is * {@code (i * sqrt(-val))} where <i>i</i> is the * <i>imaginary unit</i> and is equal to * {@code sqrt(-1)}.) * @since 9 */ BigInteger sqrt() { if (this._signum < 0) { throw new ArithmeticException("Negative BigInteger"); } return new MutableBigInteger(this.mag).sqrt().toBigInteger(); } /** * Returns an array of two BigIntegers containing the integer square root * {@code s} of {@code this} and its remainder {@code this - s*s}, * respectively. * * @return an array of two BigIntegers with the integer square root at * offset 0 and the remainder at offset 1 * @throws ArithmeticException if {@code this} is negative. (The square * root of a negative integer {@code val} is * {@code (i * sqrt(-val))} where <i>i</i> is the * <i>imaginary unit</i> and is equal to * {@code sqrt(-1)}.) * @see #sqrt() * @since 9 */ BigInteger[] sqrtAndRemainder() { BigInteger s = sqrt(); BigInteger r = this.subtract(s.square()); assert(r.compareTo(BigInteger.ZERO) >= 0); return [s, r]; } /** * Returns a BigInteger whose value is the greatest common divisor of * {@code abs(this)} and {@code abs(val)}. Returns 0 if * {@code this == 0 && val == 0}. * * @param val value with which the GCD is to be computed. * @return {@code GCD(abs(this), abs(val))} */ BigInteger gcd(BigInteger val) { if (val._signum == 0) return this.abs(); else if (this._signum == 0) return val.abs(); MutableBigInteger a = new MutableBigInteger(this); MutableBigInteger b = new MutableBigInteger(val); MutableBigInteger result = a.hybridGCD(b); return result.toBigInteger(1); } /** * Package private method to return bit length for an integer. */ static int bitLengthForInt(int n) { return 32 - Integer.numberOfLeadingZeros(n); } /** * Left shift int array a up to len by n bits. Returns the array that * results from the shift since space may have to be reallocated. */ private static int[] leftShift(int[] a, int len, int n) { int nInts = n >>> 5; int nBits = n&0x1F; int bitsInHighWord = bitLengthForInt(a[0]); // If shift can be done without recopy, do so if (n <= (32-bitsInHighWord)) { primitiveLeftShift(a, len, nBits); return a; } else { // Array must be resized if (nBits <= (32-bitsInHighWord)) { int[] result = new int[nInts+len]; // System.arraycopy(a, 0, result, 0, len); result[0..len] = a[0..len]; primitiveLeftShift(result, cast(int)result.length, nBits); return result; } else { int[] result = new int[nInts+len+1]; // System.arraycopy(a, 0, result, 0, len); result[0..len] = a[0..len]; primitiveRightShift(result, cast(int)result.length, 32 - nBits); return result; } } } // shifts a up to len right n bits assumes no leading zeros, 0<n<32 static void primitiveRightShift(int[] a, int len, int n) { int n2 = 32 - n; for (int i=len-1, c=a[i]; i > 0; i--) { int b = c; c = a[i-1]; a[i] = (c << n2) | (b >>> n); } a[0] >>>= n; } // shifts a up to len left n bits assumes no leading zeros, 0<=n<32 static void primitiveLeftShift(int[] a, int len, int n) { if (len == 0 || n == 0) return; int n2 = 32 - n; for (int i=0, c=a[i], m=i+len-1; i < m; i++) { int b = c; c = a[i+1]; a[i] = (b << n) | (c >>> n2); } a[len-1] <<= n; } /** * Calculate bitlength of contents of the first len elements an int array, * assuming there are no leading zero ints. */ private static int bitLength(int[] val, int len) { if (len == 0) return 0; return ((len - 1) << 5) + bitLengthForInt(val[0]); } /** * Returns a BigInteger whose value is the absolute value of this * BigInteger. * * @return {@code abs(this)} */ BigInteger abs() { return (signum >= 0 ? this : this.negate()); } /** * Returns a BigInteger whose value is {@code (-this)}. * * @return {@code -this} */ BigInteger negate() { return new BigInteger(this.mag, -this._signum); } /** * Returns the signum function of this BigInteger. * * @return -1, 0 or 1 as the value of this BigInteger is negative, zero or * positive. */ int signum() { return this._signum; } // Modular Arithmetic Operations /** * Returns a BigInteger whose value is {@code (this mod m}). This method * differs from {@code remainder} in that it always returns a * <i>non-negative</i> BigInteger. * * @param m the modulus. * @return {@code this mod m} * @throws ArithmeticException {@code m} &le; 0 * @see #remainder */ BigInteger mod(BigInteger m) { if (m.signum <= 0) throw new ArithmeticException("BigInteger: modulus not positive"); BigInteger result = this.remainder(m); return (result.signum >= 0 ? result : result.add(m)); } /** * Returns a BigInteger whose value is * <code>(this<sup>exponent</sup> mod m)</code>. (Unlike {@code pow}, this * method permits negative exponents.) * * @param exponent the exponent. * @param m the modulus. * @return <code>this<sup>exponent</sup> mod m</code> * @throws ArithmeticException {@code m} &le; 0 or the exponent is * negative and this BigInteger is not <i>relatively * prime</i> to {@code m}. * @see #modInverse */ BigInteger modPow(BigInteger exponent, BigInteger m) { if (m.signum <= 0) throw new ArithmeticException("BigInteger: modulus not positive"); // Trivial cases if (exponent._signum == 0) return (m.equals(ONE) ? ZERO : ONE); if (this.equals(ONE)) return (m.equals(ONE) ? ZERO : ONE); if (this.equals(ZERO) && exponent.signum >= 0) return ZERO; if (this.equals(negConst[1]) && (!exponent.testBit(0))) return (m.equals(ONE) ? ZERO : ONE); bool invertResult; invertResult = (exponent.signum < 0); if (invertResult) exponent = exponent.negate(); BigInteger base = (this._signum < 0 || this.compareTo(m) >= 0 ? this.mod(m) : this); BigInteger result; if (m.testBit(0)) { // odd modulus result = base.oddModPow(exponent, m); } else { /* * Even modulus. Tear it into an "odd part" (m1) and power of two * (m2), exponentiate mod m1, manually exponentiate mod m2, and * use Chinese Remainder Theorem to combine results. */ // Tear m apart into odd part (m1) and power of 2 (m2) int p = m.getLowestSetBit(); // Max pow of 2 that divides m BigInteger m1 = m.shiftRight(p); // m/2**p BigInteger m2 = ONE.shiftLeft(p); // 2**p // Calculate new base from m1 BigInteger base2 = (this._signum < 0 || this.compareTo(m1) >= 0 ? this.mod(m1) : this); // Caculate (base ** exponent) mod m1. BigInteger a1 = (m1.equals(ONE) ? ZERO : base2.oddModPow(exponent, m1)); // Calculate (this ** exponent) mod m2 BigInteger a2 = base.modPow2(exponent, p); // Combine results using Chinese Remainder Theorem BigInteger y1 = m2.modInverse(m1); BigInteger y2 = m1.modInverse(m2); if (m.mag.length < MAX_MAG_LENGTH / 2) { result = a1.multiply(m2).multiply(y1).add(a2.multiply(m1).multiply(y2)).mod(m); } else { MutableBigInteger t1 = new MutableBigInteger(); new MutableBigInteger(a1.multiply(m2)).multiply(new MutableBigInteger(y1), t1); MutableBigInteger t2 = new MutableBigInteger(); new MutableBigInteger(a2.multiply(m1)).multiply(new MutableBigInteger(y2), t2); t1.add(t2); MutableBigInteger q = new MutableBigInteger(); result = t1.divide(new MutableBigInteger(m), q).toBigInteger(); } } return (invertResult ? result.modInverse(m) : result); } // Montgomery multiplication. These are wrappers for // implMontgomeryXX routines which are expected to be replaced by // virtual machine intrinsics. We don't use the intrinsics for // very large operands: MONTGOMERY_INTRINSIC_THRESHOLD should be // larger than any reasonable crypto key. private static int[] montgomeryMultiply(int[] a, int[] b, int[] n, int len, long inv, int[] product) { implMontgomeryMultiplyChecks(a, b, n, len, product); if (len > MONTGOMERY_INTRINSIC_THRESHOLD) { // Very long argument: do not use an intrinsic product = multiplyToLen(a, len, b, len, product); return montReduce(product, n, len, cast(int)inv); } else { return implMontgomeryMultiply(a, b, n, len, inv, materialize(product, len)); } } private static int[] montgomerySquare(int[] a, int[] n, int len, long inv, int[] product) { implMontgomeryMultiplyChecks(a, a, n, len, product); if (len > MONTGOMERY_INTRINSIC_THRESHOLD) { // Very long argument: do not use an intrinsic product = squareToLen(a, len, product); return montReduce(product, n, len, cast(int)inv); } else { return implMontgomerySquare(a, n, len, inv, materialize(product, len)); } } // Range-check everything. private static void implMontgomeryMultiplyChecks (int[] a, int[] b, int[] n, int len, int[] product) { if (len % 2 != 0) { throw new IllegalArgumentException("input array length must be even: " ~ len.to!string()); } if (len < 1) { throw new IllegalArgumentException("invalid input length: " ~ len.to!string()); } if (len > a.length || len > b.length || len > n.length || (product !is null && len > product.length)) { throw new IllegalArgumentException("input array length out of bound: " ~ len.to!string()); } } // Make sure that the int array z (which is expected to contain // the result of a Montgomery multiplication) is present and // sufficiently large. private static int[] materialize(int[] z, int len) { if (z is null || z.length < len) z = new int[len]; return z; } // These methods are intended to be replaced by virtual machine // intrinsics. private static int[] implMontgomeryMultiply(int[] a, int[] b, int[] n, int len, long inv, int[] product) { product = multiplyToLen(a, len, b, len, product); return montReduce(product, n, len, cast(int)inv); } private static int[] implMontgomerySquare(int[] a, int[] n, int len, long inv, int[] product) { product = squareToLen(a, len, product); return montReduce(product, n, len, cast(int)inv); } enum int[] bnExpModThreshTable = [7, 25, 81, 241, 673, 1793, int.max]; // Sentinel /** * Returns a BigInteger whose value is x to the power of y mod z. * Assumes: z is odd && x < z. */ private BigInteger oddModPow(BigInteger y, BigInteger z) { /* * The algorithm is adapted from Colin Plumb's C library. * * The window algorithm: * The idea is to keep a running product of b1 = n^(high-order bits of exp) * and then keep appending exponent bits to it. The following patterns * apply to a 3-bit window (k = 3): * To append 0: square * To append 1: square, multiply by n^1 * To append 10: square, multiply by n^1, square * To append 11: square, square, multiply by n^3 * To append 100: square, multiply by n^1, square, square * To append 101: square, square, square, multiply by n^5 * To append 110: square, square, multiply by n^3, square * To append 111: square, square, square, multiply by n^7 * * Since each pattern involves only one multiply, the longer the pattern * the better, except that a 0 (no multiplies) can be appended directly. * We precompute a table of odd powers of n, up to 2^k, and can then * multiply k bits of exponent at a time. Actually, assuming random * exponents, there is on average one zero bit between needs to * multiply (1/2 of the time there's none, 1/4 of the time there's 1, * 1/8 of the time, there's 2, 1/32 of the time, there's 3, etc.), so * you have to do one multiply per k+1 bits of exponent. * * The loop walks down the exponent, squaring the result buffer as * it goes. There is a wbits+1 bit lookahead buffer, buf, that is * filled with the upcoming exponent bits. (What is read after the * end of the exponent is unimportant, but it is filled with zero here.) * When the most-significant bit of this buffer becomes set, i.e. * (buf & tblmask) != 0, we have to decide what pattern to multiply * by, and when to do it. We decide, remember to do it in future * after a suitable number of squarings have passed (e.g. a pattern * of "100" in the buffer requires that we multiply by n^1 immediately; * a pattern of "110" calls for multiplying by n^3 after one more * squaring), clear the buffer, and continue. * * When we start, there is one more optimization: the result buffer * is implcitly one, so squaring it or multiplying by it can be * optimized away. Further, if we start with a pattern like "100" * in the lookahead window, rather than placing n into the buffer * and then starting to square it, we have already computed n^2 * to compute the odd-powers table, so we can place that into * the buffer and save a squaring. * * This means that if you have a k-bit window, to compute n^z, * where z is the high k bits of the exponent, 1/2 of the time * it requires no squarings. 1/4 of the time, it requires 1 * squaring, ... 1/2^(k-1) of the time, it reqires k-2 squarings. * And the remaining 1/2^(k-1) of the time, the top k bits are a * 1 followed by k-1 0 bits, so it again only requires k-2 * squarings, not k-1. The average of these is 1. Add that * to the one squaring we have to do to compute the table, * and you'll see that a k-bit window saves k-2 squarings * as well as reducing the multiplies. (It actually doesn't * hurt in the case k = 1, either.) */ // Special case for exponent of one if (y.equals(ONE)) return this; // Special case for base of zero if (_signum == 0) return ZERO; int[] base = mag.dup; int[] exp = y.mag; int[] mod = z.mag; int modLen = cast(int)mod.length; // Make modLen even. It is conventional to use a cryptographic // modulus that is 512, 768, 1024, or 2048 bits, so this code // will not normally be executed. However, it is necessary for // the correct functioning of the HotSpot intrinsics. if ((modLen & 1) != 0) { int[] x = new int[modLen + 1]; // System.arraycopy(mod, 0, x, 1, modLen); x[1 .. modLen+1] = mod[0 .. modLen]; mod = x; modLen++; } // Select an appropriate window size int wbits = 0; int ebits = bitLength(exp, cast(int)exp.length); // if exponent is 65537 (0x10001), use minimum window size if ((ebits != 17) || (exp[0] != 65537)) { while (ebits > bnExpModThreshTable[wbits]) { wbits++; } } // Calculate appropriate table size int tblmask = 1 << wbits; // Allocate table for precomputed odd powers of base in Montgomery form int[][] table = new int[][tblmask]; for (int i=0; i < tblmask; i++) table[i] = new int[modLen]; // Compute the modular inverse of the least significant 64-bit // digit of the modulus long n0 = (mod[modLen-1] & LONG_MASK) + ((mod[modLen-2] & LONG_MASK) << 32); long inv = -MutableBigInteger.inverseMod64(n0); // Convert base to Montgomery form int[] a = leftShift(base, cast(int)base.length, modLen << 5); MutableBigInteger q = new MutableBigInteger(), a2 = new MutableBigInteger(a), b2 = new MutableBigInteger(mod); b2.normalize(); // MutableBigInteger.divide() assumes that its // divisor is in normal form. MutableBigInteger r= a2.divide(b2, q); table[0] = r.toIntArray(); // Pad table[0] with leading zeros so its length is at least modLen if (table[0].length < modLen) { size_t len = table[0].length; size_t offset = modLen - len; int[] t2 = new int[modLen]; t2[offset .. offset+len] = table[0][0 .. $]; // System.arraycopy(table[0], 0, t2, offset, table[0].length); table[0] = t2; } // Set b to the square of the base int[] b = montgomerySquare(table[0], mod, modLen, inv, null); // Set t to high half of b int[] t = b[0..modLen].dup; // Arrays.copyOf(b, modLen); // Fill in the table with odd powers of the base for (int i=1; i < tblmask; i++) { table[i] = montgomeryMultiply(t, table[i-1], mod, modLen, inv, null); } // Pre load the window that slides over the exponent int bitpos = 1 << ((ebits-1) & (32-1)); int buf = 0; int elen = cast(int)exp.length; int eIndex = 0; for (int i = 0; i <= wbits; i++) { buf = (buf << 1) | (((exp[eIndex] & bitpos) != 0)?1:0); bitpos >>>= 1; if (bitpos == 0) { eIndex++; bitpos = 1 << (32-1); elen--; } } int multpos = ebits; // The first iteration, which is hoisted out of the main loop ebits--; bool isone = true; multpos = ebits - wbits; while ((buf & 1) == 0) { buf >>>= 1; multpos++; } int[] mult = table[buf >>> 1]; buf = 0; if (multpos == ebits) isone = false; // The main loop while (true) { ebits--; // Advance the window buf <<= 1; if (elen != 0) { buf |= ((exp[eIndex] & bitpos) != 0) ? 1 : 0; bitpos >>>= 1; if (bitpos == 0) { eIndex++; bitpos = 1 << (32-1); elen--; } } // Examine the window for pending multiplies if ((buf & tblmask) != 0) { multpos = ebits - wbits; while ((buf & 1) == 0) { buf >>>= 1; multpos++; } mult = table[buf >>> 1]; buf = 0; } // Perform multiply if (ebits == multpos) { if (isone) { b = mult.dup; isone = false; } else { t = b; a = montgomeryMultiply(t, mult, mod, modLen, inv, a); t = a; a = b; b = t; } } // Check if done if (ebits == 0) break; // Square the input if (!isone) { t = b; a = montgomerySquare(t, mod, modLen, inv, a); t = a; a = b; b = t; } } // Convert result out of Montgomery form and return int[] t2 = new int[2*modLen]; // System.arraycopy(b, 0, t2, modLen, modLen); t2[modLen .. modLen+modLen] = b[0 .. modLen]; b = montReduce(t2, mod, modLen, cast(int)inv); // t2 = Arrays.copyOf(b, modLen); t2 = b[0 .. modLen].dup; return new BigInteger(1, t2); } /** * Montgomery reduce n, modulo mod. This reduces modulo mod and divides * by 2^(32*mlen). Adapted from Colin Plumb's C library. */ private static int[] montReduce(int[] n, int[] mod, int mlen, int inv) { int c=0; int len = mlen; int offset=0; do { int nEnd = n[n.length-1-offset]; int carry = mulAdd(n, mod, offset, mlen, inv * nEnd); c += addOne(n, offset, mlen, carry); offset++; } while (--len > 0); while (c > 0) c += subN(n, mod, mlen); while (intArrayCmpToLen(n, mod, mlen) >= 0) subN(n, mod, mlen); return n; } /* * Returns -1, 0 or +1 as big-endian unsigned int array arg1 is less than, * equal to, or greater than arg2 up to length len. */ private static int intArrayCmpToLen(int[] arg1, int[] arg2, int len) { for (int i=0; i < len; i++) { long b1 = arg1[i] & LONG_MASK; long b2 = arg2[i] & LONG_MASK; if (b1 < b2) return -1; if (b1 > b2) return 1; } return 0; } /** * Subtracts two numbers of same length, returning borrow. */ private static int subN(int[] a, int[] b, int len) { long sum = 0; while (--len >= 0) { sum = (a[len] & LONG_MASK) - (b[len] & LONG_MASK) + (sum >> 32); a[len] = cast(int)sum; } return cast(int)(sum >> 32); } /** * Multiply an array by one word k and add to result, return the carry */ static int mulAdd(int[] ot, int[] input, int offset, int len, int k) { implMulAddCheck(ot, input, offset, len, k); return implMulAdd(ot, input, offset, len, k); } /** * Parameters validation. */ private static void implMulAddCheck(int[] ot, int[] input, int offset, int len, int k) { if (len > input.length) { throw new IllegalArgumentException("input length is out of bound: " ~ len.to!string() ~ " > " ~ to!string(input.length)); } if (offset < 0) { throw new IllegalArgumentException("input offset is invalid: " ~ offset.to!string()); } if (offset > (ot.length - 1)) { throw new IllegalArgumentException("input offset is out of bound: " ~ offset.to!string() ~ " > " ~ to!string(ot.length - 1)); } if (len > (ot.length - offset)) { throw new IllegalArgumentException("input len is out of bound: " ~ len.to!string() ~ " > " ~ to!string(ot.length - offset)); } } /** * Java Runtime may use intrinsic for this method. */ private static int implMulAdd(int[] output, int[] input, int offset, int len, int k) { long kLong = k & LONG_MASK; long carry = 0; offset = cast(int)output.length-offset - 1; for (int j=len-1; j >= 0; j--) { long product = (input[j] & LONG_MASK) * kLong + (output[offset] & LONG_MASK) + carry; output[offset--] = cast(int)product; carry = product >>> 32; } return cast(int)carry; } /** * Add one word to the number a mlen words into a. Return the resulting * carry. */ static int addOne(int[] a, int offset, int mlen, int carry) { offset = cast(int)a.length-1-mlen-offset; long t = (a[offset] & LONG_MASK) + (carry & LONG_MASK); a[offset] = cast(int)t; if ((t >>> 32) == 0) return 0; while (--mlen >= 0) { if (--offset < 0) { // Carry out of number return 1; } else { a[offset]++; if (a[offset] != 0) return 0; } } return 1; } /** * Returns a BigInteger whose value is (this ** exponent) mod (2**p) */ private BigInteger modPow2(BigInteger exponent, int p) { /* * Perform exponentiation using repeated squaring trick, chopping off * high order bits as indicated by modulus. */ BigInteger result = ONE; BigInteger baseToPow2 = this.mod2(p); int expOffset = 0; int limit = exponent.bitLength(); if (this.testBit(0)) limit = (p-1) < limit ? (p-1) : limit; while (expOffset < limit) { if (exponent.testBit(expOffset)) result = result.multiply(baseToPow2).mod2(p); expOffset++; if (expOffset < limit) baseToPow2 = baseToPow2.square().mod2(p); } return result; } /** * Returns a BigInteger whose value is this mod(2**p). * Assumes that this {@code BigInteger >= 0} and {@code p > 0}. */ private BigInteger mod2(int p) { if (bitLength() <= p) return this; // Copy remaining ints of mag int numInts = (p + 31) >>> 5; int[] mag = new int[numInts]; // System.arraycopy(this.mag, (this.mag.length - numInts), mag, 0, numInts); mag[0..numInts] = this.mag[$-numInts .. $].dup; // Mask out any excess bits int excessBits = (numInts << 5) - p; mag[0] &= (1L << (32-excessBits)) - 1; return (mag[0] == 0 ? new BigInteger(1, mag) : new BigInteger(mag, 1)); } /** * Returns a BigInteger whose value is {@code (this}<sup>-1</sup> {@code mod m)}. * * @param m the modulus. * @return {@code this}<sup>-1</sup> {@code mod m}. * @throws ArithmeticException {@code m} &le; 0, or this BigInteger * has no multiplicative inverse mod m (that is, this BigInteger * is not <i>relatively prime</i> to m). */ BigInteger modInverse(BigInteger m) { if (m.signum != 1) throw new ArithmeticException("BigInteger: modulus not positive"); if (m.equals(ONE)) return ZERO; // Calculate (this mod m) BigInteger modVal = this; if (signum < 0 || (this.compareMagnitude(m) >= 0)) modVal = this.mod(m); if (modVal.equals(ONE)) return ONE; MutableBigInteger a = new MutableBigInteger(modVal); MutableBigInteger b = new MutableBigInteger(m); MutableBigInteger result = a.mutableModInverse(b); return result.toBigInteger(1); } // Shift Operations /** * Returns a BigInteger whose value is {@code (this << n)}. * The shift distance, {@code n}, may be negative, in which case * this method performs a right shift. * (Computes <code>floor(this * 2<sup>n</sup>)</code>.) * * @param n shift distance, in bits. * @return {@code this << n} * @see #shiftRight */ BigInteger shiftLeft(int n) { if (_signum == 0) return ZERO; if (n > 0) { return new BigInteger(shiftLeft(mag, n), signum); } else if (n == 0) { return this; } else { // Possible int overflow in (-n) is not a trouble, // because shiftRightImpl considers its argument unsigned return shiftRightImpl(-n); } } /** * Returns a magnitude array whose value is {@code (mag << n)}. * The shift distance, {@code n}, is considered unnsigned. * (Computes <code>this * 2<sup>n</sup></code>.) * * @param mag magnitude, the most-significant int ({@code mag[0]}) must be non-zero. * @param n unsigned shift distance, in bits. * @return {@code mag << n} */ private static int[] shiftLeft(int[] mag, int n) { int nInts = n >>> 5; int nBits = n & 0x1f; int magLen = cast(int)mag.length; int[] newMag = null; if (nBits == 0) { newMag = new int[magLen + nInts]; // System.arraycopy(mag, 0, newMag, 0, magLen); newMag[0..magLen] = mag[0..magLen].dup; } else { int i = 0; int nBits2 = 32 - nBits; int highBits = mag[0] >>> nBits2; if (highBits != 0) { newMag = new int[magLen + nInts + 1]; newMag[i++] = highBits; } else { newMag = new int[magLen + nInts]; } int j=0; while (j < magLen-1) newMag[i++] = mag[j++] << nBits | mag[j] >>> nBits2; newMag[i] = mag[j] << nBits; } return newMag; } /** * Returns a BigInteger whose value is {@code (this >> n)}. Sign * extension is performed. The shift distance, {@code n}, may be * negative, in which case this method performs a left shift. * (Computes <code>floor(this / 2<sup>n</sup>)</code>.) * * @param n shift distance, in bits. * @return {@code this >> n} * @see #shiftLeft */ BigInteger shiftRight(int n) { if (_signum == 0) return ZERO; if (n > 0) { return shiftRightImpl(n); } else if (n == 0) { return this; } else { // Possible int overflow in {@code -n} is not a trouble, // because shiftLeft considers its argument unsigned return new BigInteger(shiftLeft(mag, -n), signum); } } /** * Returns a BigInteger whose value is {@code (this >> n)}. The shift * distance, {@code n}, is considered unsigned. * (Computes <code>floor(this * 2<sup>-n</sup>)</code>.) * * @param n unsigned shift distance, in bits. * @return {@code this >> n} */ private BigInteger shiftRightImpl(int n) { int nInts = n >>> 5; int nBits = n & 0x1f; int magLen = cast(int)mag.length; int[] newMag = null; // Special case: entire contents shifted off the end if (nInts >= magLen) return (signum >= 0 ? ZERO : negConst[1]); if (nBits == 0) { int newMagLen = magLen - nInts; // newMag = Arrays.copyOf(mag, newMagLen); newMag = mag[0..newMagLen].dup; } else { int i = 0; int highBits = mag[0] >>> nBits; if (highBits != 0) { newMag = new int[magLen - nInts]; newMag[i++] = highBits; } else { newMag = new int[magLen - nInts -1]; } int nBits2 = 32 - nBits; int j=0; while (j < magLen - nInts - 1) newMag[i++] = (mag[j++] << nBits2) | (mag[j] >>> nBits); } if (signum < 0) { // Find out whether any one-bits were shifted off the end. bool onesLost = false; for (int i=magLen-1, j=magLen-nInts; i >= j && !onesLost; i--) onesLost = (mag[i] != 0); if (!onesLost && nBits != 0) onesLost = (mag[magLen - nInts - 1] << (32 - nBits) != 0); if (onesLost) newMag = javaIncrement(newMag); } return new BigInteger(newMag, signum); } int[] javaIncrement(int[] val) { int lastSum = 0; for (size_t i=val.length-1; i >= 0 && lastSum == 0; i--) lastSum = (val[i] += 1); if (lastSum == 0) { val = new int[val.length+1]; val[0] = 1; } return val; } // Bitwise Operations /** * Returns a BigInteger whose value is {@code (this & val)}. (This * method returns a negative BigInteger if and only if this and val are * both negative.) * * @param val value to be AND'ed with this BigInteger. * @return {@code this & val} */ BigInteger and(BigInteger val) { int[] result = new int[std.algorithm.max(intLength(), val.intLength())]; for (int i=0; i < cast(int)result.length; i++) result[i] = (getInt(cast(int)result.length-i-1) & val.getInt(cast(int)result.length-i-1)); return valueOf(result); } /** * Returns a BigInteger whose value is {@code (this | val)}. (This method * returns a negative BigInteger if and only if either this or val is * negative.) * * @param val value to be OR'ed with this BigInteger. * @return {@code this | val} */ BigInteger or(BigInteger val) { int[] result = new int[std.algorithm.max(intLength(), val.intLength())]; for (int i=0; i < cast(int)result.length; i++) result[i] = (getInt(cast(int)result.length-i-1) | val.getInt(cast(int)result.length-i-1)); return valueOf(result); } /** * Returns a BigInteger whose value is {@code (this ^ val)}. (This method * returns a negative BigInteger if and only if exactly one of this and * val are negative.) * * @param val value to be XOR'ed with this BigInteger. * @return {@code this ^ val} */ BigInteger xor(BigInteger val) { int[] result = new int[std.algorithm.max(intLength(), val.intLength())]; for (int i=0; i < cast(int)result.length; i++) result[i] = (getInt(cast(int)result.length-i-1) ^ val.getInt(cast(int)result.length-i-1)); return valueOf(result); } /** * Returns a BigInteger whose value is {@code (~this)}. (This method * returns a negative value if and only if this BigInteger is * non-negative.) * * @return {@code ~this} */ BigInteger not() { int[] result = new int[intLength()]; for (int i=0; i < cast(int)result.length; i++) result[i] = ~getInt(cast(int)result.length-i-1); return valueOf(result); } /** * Returns a BigInteger whose value is {@code (this & ~val)}. This * method, which is equivalent to {@code and(val.not())}, is provided as * a convenience for masking operations. (This method returns a negative * BigInteger if and only if {@code this} is negative and {@code val} is * positive.) * * @param val value to be complemented and AND'ed with this BigInteger. * @return {@code this & ~val} */ BigInteger andNot(BigInteger val) { int[] result = new int[std.algorithm.max(intLength(), val.intLength())]; for (int i=0; i < cast(int)result.length; i++) result[i] = (getInt(cast(int)result.length-i-1) & ~val.getInt(cast(int)result.length-i-1)); return valueOf(result); } // Single Bit Operations /** * Returns {@code true} if and only if the designated bit is set. * (Computes {@code ((this & (1<<n)) != 0)}.) * * @param n index of bit to test. * @return {@code true} if and only if the designated bit is set. * @throws ArithmeticException {@code n} is negative. */ bool testBit(int n) { if (n < 0) throw new ArithmeticException("Negative bit address"); return (getInt(n >>> 5) & (1 << (n & 31))) != 0; } /** * Returns a BigInteger whose value is equivalent to this BigInteger * with the designated bit set. (Computes {@code (this | (1<<n))}.) * * @param n index of bit to set. * @return {@code this | (1<<n)} * @throws ArithmeticException {@code n} is negative. */ BigInteger setBit(int n) { if (n < 0) throw new ArithmeticException("Negative bit address"); int intNum = n >>> 5; int[] result = new int[std.algorithm.max(intLength(), intNum+2)]; for (int i=0; i < cast(int)result.length; i++) result[result.length-i-1] = getInt(i); result[result.length-intNum-1] |= (1 << (n & 31)); return valueOf(result); } /** * Returns a BigInteger whose value is equivalent to this BigInteger * with the designated bit cleared. * (Computes {@code (this & ~(1<<n))}.) * * @param n index of bit to clear. * @return {@code this & ~(1<<n)} * @throws ArithmeticException {@code n} is negative. */ BigInteger clearBit(int n) { if (n < 0) throw new ArithmeticException("Negative bit address"); int intNum = n >>> 5; int[] result = new int[std.algorithm.max(intLength(), ((n + 1) >>> 5) + 1)]; for (int i=0; i < cast(int)result.length; i++) result[result.length-i-1] = getInt(i); result[result.length-intNum-1] &= ~(1 << (n & 31)); return valueOf(result); } /** * Returns a BigInteger whose value is equivalent to this BigInteger * with the designated bit flipped. * (Computes {@code (this ^ (1<<n))}.) * * @param n index of bit to flip. * @return {@code this ^ (1<<n)} * @throws ArithmeticException {@code n} is negative. */ BigInteger flipBit(int n) { if (n < 0) throw new ArithmeticException("Negative bit address"); int intNum = n >>> 5; int[] result = new int[std.algorithm.max(intLength(), intNum+2)]; for (int i=0; i < cast(int)result.length; i++) result[result.length-i-1] = getInt(i); result[result.length-intNum-1] ^= (1 << (n & 31)); return valueOf(result); } /** * Returns the index of the rightmost (lowest-order) one bit in this * BigInteger (the number of zero bits to the right of the rightmost * one bit). Returns -1 if this BigInteger contains no one bits. * (Computes {@code (this == 0? -1 : log2(this & -this))}.) * * @return index of the rightmost one bit in this BigInteger. */ int getLowestSetBit() { int lsb = lowestSetBitPlusTwo - 2; if (lsb == -2) { // lowestSetBit not initialized yet lsb = 0; if (_signum == 0) { lsb -= 1; } else { // Search for lowest order nonzero int int i,b; for (i=0; (b = getInt(i)) == 0; i++) {} lsb += (i << 5) + Integer.numberOfTrailingZeros(b); } lowestSetBitPlusTwo = lsb + 2; } return lsb; } // Miscellaneous Bit Operations /** * Returns the number of bits in the minimal two's-complement * representation of this BigInteger, <em>excluding</em> a sign bit. * For positive BigIntegers, this is equivalent to the number of bits in * the ordinary binary representation. (Computes * {@code (ceil(log2(this < 0 ? -this : this+1)))}.) * * @return number of bits in the minimal two's-complement * representation of this BigInteger, <em>excluding</em> a sign bit. */ int bitLength() { int n = bitLengthPlusOne - 1; if (n == -1) { // bitLength not initialized yet int[] m = mag; int len = cast(int)m.length; if (len == 0) { n = 0; // offset by one to initialize } else { // Calculate the bit length of the magnitude int magBitLength = ((len - 1) << 5) + bitLengthForInt(mag[0]); if (signum < 0) { // Check if magnitude is a power of two bool pow2 = (Integer.bitCount(mag[0]) == 1); for (int i=1; i< len && pow2; i++) pow2 = (mag[i] == 0); n = (pow2 ? magBitLength -1 : magBitLength); } else { n = magBitLength; } } bitLengthPlusOne = n + 1; } return n; } /** * Returns the number of bits in the two's complement representation * of this BigInteger that differ from its sign bit. This method is * useful when implementing bit-vector style sets atop BigIntegers. * * @return number of bits in the two's complement representation * of this BigInteger that differ from its sign bit. */ int bitCount() { int bc = bitCountPlusOne - 1; if (bc == -1) { // bitCount not initialized yet bc = 0; // offset by one to initialize // Count the bits in the magnitude for (int i=0; i < mag.length; i++) bc += Integer.bitCount(mag[i]); if (signum < 0) { // Count the trailing zeros in the magnitude int magTrailingZeroCount = 0, j; for (j=cast(int)mag.length-1; mag[j] == 0; j--) magTrailingZeroCount += 32; magTrailingZeroCount += Integer.numberOfTrailingZeros(mag[j]); bc += magTrailingZeroCount - 1; } bitCountPlusOne = bc + 1; } return bc; } // Primality Testing /** * Returns {@code true} if this BigInteger is probably prime, * {@code false} if it's definitely composite. If * {@code certainty} is &le; 0, {@code true} is * returned. * * @param certainty a measure of the uncertainty that the caller is * willing to tolerate: if the call returns {@code true} * the probability that this BigInteger is prime exceeds * (1 - 1/2<sup>{@code certainty}</sup>). The execution time of * this method is proportional to the value of this parameter. * @return {@code true} if this BigInteger is probably prime, * {@code false} if it's definitely composite. */ bool isProbablePrime(int certainty) { if (certainty <= 0) return true; BigInteger w = this.abs(); if (w.equals(TWO)) return true; if (!w.testBit(0) || w.equals(ONE)) return false; return w.primeToCertainty(certainty, null); } // Comparison Operations /** * Compares this BigInteger with the specified BigInteger. This * method is provided in preference to individual methods for each * of the six bool comparison operators ({@literal <}, ==, * {@literal >}, {@literal >=}, !=, {@literal <=}). The suggested * idiom for performing these comparisons is: {@code * (x.compareTo(y)} &lt;<i>op</i>&gt; {@code 0)}, where * &lt;<i>op</i>&gt; is one of the six comparison operators. * * @param val BigInteger to which this BigInteger is to be compared. * @return -1, 0 or 1 as this BigInteger is numerically less than, equal * to, or greater than {@code val}. */ int compareTo(BigInteger val) { if (_signum == val.signum) { switch (signum) { case 1: return compareMagnitude(val); case -1: return val.compareMagnitude(this); default: return 0; } } return signum > val.signum ? 1 : -1; } /** * Compares the magnitude array of this BigInteger with the specified * BigInteger's. This is the version of compareTo ignoring sign. * * @param val BigInteger whose magnitude array to be compared. * @return -1, 0 or 1 as this magnitude array is less than, equal to or * greater than the magnitude aray for the specified BigInteger's. */ final int compareMagnitude(BigInteger val) { int[] m1 = mag; int len1 = cast(int)m1.length; int[] m2 = val.mag; int len2 = cast(int)m2.length; if (len1 < len2) return -1; if (len1 > len2) return 1; for (int i = 0; i < len1; i++) { int a = m1[i]; int b = m2[i]; if (a != b) return ((a & LONG_MASK) < (b & LONG_MASK)) ? -1 : 1; } return 0; } /** * Version of compareMagnitude that compares magnitude with long value. * val can't be long.min. */ final int compareMagnitude(long val) { assert(val != long.min); int[] m1 = mag; int len = cast(int)m1.length; if (len > 2) { return 1; } if (val < 0) { val = -val; } int highWord = cast(int)(val >>> 32); if (highWord == 0) { if (len < 1) return -1; if (len > 1) return 1; int a = m1[0]; int b = cast(int)val; if (a != b) { return ((a & LONG_MASK) < (b & LONG_MASK))? -1 : 1; } return 0; } else { if (len < 2) return -1; int a = m1[0]; int b = highWord; if (a != b) { return ((a & LONG_MASK) < (b & LONG_MASK))? -1 : 1; } a = m1[1]; b = cast(int)val; if (a != b) { return ((a & LONG_MASK) < (b & LONG_MASK))? -1 : 1; } return 0; } } /** * Compares this BigInteger with the specified Object for equality. * * @param x Object to which this BigInteger is to be compared. * @return {@code true} if and only if the specified Object is a * BigInteger whose value is numerically equal to this BigInteger. */ bool equals(Object x) { return opEquals(x); } override bool opEquals(Object x) { // This test is just an optimization, which may or may not help if (x is this) return true; BigInteger xInt = cast(BigInteger) x; if(xInt is null) return false; if (xInt.signum != signum) return false; int[] m = mag; int len = cast(int)m.length; int[] xm = xInt.mag; if (len != xm.length) return false; for (int i = 0; i < len; i++) if (xm[i] != m[i]) return false; return true; } /** * Returns the minimum of this BigInteger and {@code val}. * * @param val value with which the minimum is to be computed. * @return the BigInteger whose value is the lesser of this BigInteger and * {@code val}. If they are equal, either may be returned. */ BigInteger min(BigInteger val) { return (compareTo(val) < 0 ? this : val); } /** * Returns the maximum of this BigInteger and {@code val}. * * @param val value with which the maximum is to be computed. * @return the BigInteger whose value is the greater of this and * {@code val}. If they are equal, either may be returned. */ BigInteger max(BigInteger val) { return (compareTo(val) > 0 ? this : val); } // Hash Function /** * Returns the hash code for this BigInteger. * * @return hash code for this BigInteger. */ size_t hashCode() { return toHash(); } override size_t toHash() @trusted nothrow { size_t hashCode = 0; for (size_t i=0; i < mag.length; i++) hashCode = cast(size_t)(31*hashCode + (mag[i] & LONG_MASK)); return hashCode * _signum; } /** * Returns the string representation of this BigInteger in the * given radix. If the radix is outside the range from {@link * Character#MIN_RADIX} to {@link Character#MAX_RADIX} inclusive, * it will default to 10 (as is the case for * {@code Integer.toString}). The digit-to-character mapping * provided by {@code Char.forDigit} is used, and a minus * sign is prepended if appropriate. (This representation is * compatible with the {@link #BigInteger(string, int) (string, * int)} constructor.) * * @param radix radix of the string representation. * @return string representation of this BigInteger in the given radix. * @see Integer#toString * @see Character#forDigit * @see #BigInteger(java.lang.string, int) */ string toString(int radix) { if (_signum == 0) return "0"; if (radix < Char.MIN_RADIX || radix > Char.MAX_RADIX) radix = 10; // If it's small enough, use smallToString. if (mag.length <= SCHOENHAGE_BASE_CONVERSION_THRESHOLD) return smallToString(radix); // Otherwise use recursive toString, which requires positive arguments. // The results will be concatenated into this StringBuilder StringBuilder sb = new StringBuilder(); string r; if (signum < 0) { toString(this.negate(), sb, radix, 0); // sb.insert(0, '-'); r = "-" ~ sb.toString(); } else { toString(this, sb, radix, 0); r = sb.toString(); } return r; } /** This method is used to perform toString when arguments are small. */ private string smallToString(int radix) { if (_signum == 0) { return "0"; } // Compute upper bound on number of digit groups and allocate space int maxNumDigitGroups = cast(int)(4*mag.length + 6)/7; string[] digitGroup = new string[maxNumDigitGroups]; // Translate number to string, a digit group at a time BigInteger tmp = this.abs(); int numGroups = 0; while (tmp.signum != 0) { BigInteger d = longRadix[radix]; MutableBigInteger q = new MutableBigInteger(), a = new MutableBigInteger(tmp.mag), b = new MutableBigInteger(d.mag); MutableBigInteger r = a.divide(b, q); BigInteger q2 = q.toBigInteger(tmp.signum * d.signum); BigInteger r2 = r.toBigInteger(tmp.signum * d.signum); digitGroup[numGroups++] = to!string(r2.longValue(), radix); tmp = q2; } // Put sign (if any) and first digit group into result buffer StringBuilder buf = new StringBuilder(numGroups*digitsPerLong[radix]+1); if (signum < 0) { buf.append('-'); } buf.append(digitGroup[numGroups-1]); // Append remaining digit groups padded with leading zeros for (int i=numGroups-2; i >= 0; i--) { // Prepend (any) leading zeros for this digit group int numLeadingZeros = digitsPerLong[radix] - cast(int)digitGroup[i].length; if (numLeadingZeros != 0) { buf.append(zeros[numLeadingZeros]); } buf.append(digitGroup[i]); } return buf.toString(); } /** * Converts the specified BigInteger to a string and appends to * {@code sb}. This implements the recursive Schoenhage algorithm * for base conversions. * <p> * See Knuth, Donald, _The Art of Computer Programming_, Vol. 2, * Answers to Exercises (4.4) Question 14. * * @param u The number to convert to a string. * @param sb The StringBuilder that will be appended to in place. * @param radix The base to convert to. * @param digits The minimum number of digits to pad to. */ private static void toString(BigInteger u, StringBuilder sb, int radix, int digits) { // If we're smaller than a certain threshold, use the smallToString // method, padding with leading zeroes when necessary. if (u.mag.length <= SCHOENHAGE_BASE_CONVERSION_THRESHOLD) { string s = u.smallToString(radix); // Pad with internal zeros if necessary. // Don't pad if we're at the beginning of the string. if ((s.length < digits) && (sb.length > 0)) { for (size_t i=s.length; i < digits; i++) { sb.append('0'); } } sb.append(s); return; } int b, n; b = u.bitLength(); // Calculate a value for n in the equation radix^(2^n) = u // and subtract 1 from that value. This is used to find the // cache index that contains the best value to divide u. n = cast(int) std.math.round(std.math.log(b * LOG_TWO / logCache[radix]) / LOG_TWO - 1.0); BigInteger v = getRadixConversionCache(radix, n); BigInteger[] results; results = u.divideAndRemainder(v); int expectedDigits = 1 << n; // Now recursively build the two halves of each number. toString(results[0], sb, radix, digits-expectedDigits); toString(results[1], sb, radix, expectedDigits); } /** * Returns the value radix^(2^exponent) from the cache. * If this value doesn't already exist in the cache, it is added. * <p> * This could be changed to a more complicated caching method using * {@code Future}. */ private static BigInteger getRadixConversionCache(int radix, int exponent) { BigInteger[] cacheLine = powerCache[radix]; // read if (exponent < cacheLine.length) { return cacheLine[exponent]; } int oldLength = cast(int)cacheLine.length; BigInteger[] oldCacheLine = cacheLine; cacheLine = new BigInteger[exponent + 1]; cacheLine[0..oldLength] = oldCacheLine[0..$]; // cacheLine = Arrays.copyOf(cacheLine, exponent + 1); for (int i = oldLength; i <= exponent; i++) { cacheLine[i] = cacheLine[i - 1].pow(2); } BigInteger[][] pc = powerCache; // read again if (exponent >= pc[radix].length) { pc = pc.dup; pc[radix] = cacheLine; powerCache = pc; // write, publish } return cacheLine[exponent]; } /* zero[i] is a string of i consecutive zeros. */ private __gshared static string[] zeros; shared static this() { zeros = new string[64]; zeros[63] = "000000000000000000000000000000000000000000000000000000000000000"; for (int i=0; i < 63; i++) zeros[i] = zeros[63][0 .. i]; } /** * Returns the decimal string representation of this BigInteger. * The digit-to-character mapping provided by * {@code Char.forDigit} is used, and a minus sign is * prepended if appropriate. (This representation is compatible * with the {@link #BigInteger(string) (string)} constructor, and * allows for string concatenation with Java's + operator.) * * @return decimal string representation of this BigInteger. * @see Character#forDigit * @see #BigInteger(java.lang.string) */ override string toString() { return toString(10); } /** * Returns a byte array containing the two's-complement * representation of this BigInteger. The byte array will be in * <i>big-endian</i> byte-order: the most significant byte is in * the zeroth element. The array will contain the minimum number * of bytes required to represent this BigInteger, including at * least one sign bit, which is {@code (ceil((this.bitLength() + * 1)/8))}. (This representation is compatible with the * {@link #BigInteger(byte[]) (byte[])} constructor.) * * @return a byte array containing the two's-complement representation of * this BigInteger. * @see #BigInteger(byte[]) */ byte[] toByteArray() { int byteLen = bitLength()/8 + 1; byte[] byteArray = new byte[byteLen]; for (int i=byteLen-1, bytesCopied=4, nextInt=0, intIndex=0; i >= 0; i--) { if (bytesCopied == 4) { nextInt = getInt(intIndex++); bytesCopied = 1; } else { nextInt >>>= 8; bytesCopied++; } byteArray[i] = cast(byte)nextInt; } return byteArray; } /** * Converts this BigInteger to an {@code int}. This * conversion is analogous to a * <i>narrowing primitive conversion</i> from {@code long} to * {@code int} as defined in * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger is too big to fit in an * {@code int}, only the low-order 32 bits are returned. * Note that this conversion can lose information about the * overall magnitude of the BigInteger value as well as return a * result with the opposite sign. * * @return this BigInteger converted to an {@code int}. * @see #intValueExact() * @jls 5.1.3 Narrowing Primitive Conversion */ int intValue() { int result = 0; result = getInt(0); return result; } /** * Converts this BigInteger to a {@code long}. This * conversion is analogous to a * <i>narrowing primitive conversion</i> from {@code long} to * {@code int} as defined in * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger is too big to fit in a * {@code long}, only the low-order 64 bits are returned. * Note that this conversion can lose information about the * overall magnitude of the BigInteger value as well as return a * result with the opposite sign. * * @return this BigInteger converted to a {@code long}. * @see #longValueExact() * @jls 5.1.3 Narrowing Primitive Conversion */ long longValue() { long result = 0; for (int i=1; i >= 0; i--) result = (result << 32) + (getInt(i) & LONG_MASK); return result; } /** * Converts this BigInteger to a {@code float}. This * conversion is similar to the * <i>narrowing primitive conversion</i> from {@code double} to * {@code float} as defined in * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger has too great a magnitude * to represent as a {@code float}, it will be converted to * {@link Float#NEGATIVE_INFINITY} or {@link * Float#POSITIVE_INFINITY} as appropriate. Note that even when * the return value is finite, this conversion can lose * information about the precision of the BigInteger value. * * @return this BigInteger converted to a {@code float}. * @jls 5.1.3 Narrowing Primitive Conversion */ float floatValue() { if (_signum == 0) { return 0.0f; } int exponent =cast(int)(cast(int)(mag.length - 1) << 5) + bitLengthForInt(mag[0]) - 1; // exponent == floor(log2(abs(this))) if (exponent < Long.SIZE - 1) { return longValue(); } else if (exponent > Float.MAX_EXPONENT) { return signum > 0 ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY; } /* * We need the top SIGNIFICAND_WIDTH bits, including the "implicit" * one bit. To make rounding easier, we pick out the top * SIGNIFICAND_WIDTH + 1 bits, so we have one to help us round up or * down. twiceSignifFloor will contain the top SIGNIFICAND_WIDTH + 1 * bits, and signifFloor the top SIGNIFICAND_WIDTH. * * It helps to consider the real number signif = abs(this) * * 2^(SIGNIFICAND_WIDTH - 1 - exponent). */ int shift = exponent - FloatConsts.SIGNIFICAND_WIDTH; int twiceSignifFloor; // twiceSignifFloor will be == abs().shiftRight(shift).intValue() // We do the shift into an int directly to improve performance. int nBits = shift & 0x1f; int nBits2 = 32 - nBits; if (nBits == 0) { twiceSignifFloor = mag[0]; } else { twiceSignifFloor = mag[0] >>> nBits; if (twiceSignifFloor == 0) { twiceSignifFloor = (mag[0] << nBits2) | (mag[1] >>> nBits); } } int signifFloor = twiceSignifFloor >> 1; signifFloor &= FloatConsts.SIGNIF_BIT_MASK; // remove the implied bit /* * We round up if either the fractional part of signif is strictly * greater than 0.5 (which is true if the 0.5 bit is set and any lower * bit is set), or if the fractional part of signif is >= 0.5 and * signifFloor is odd (which is true if both the 0.5 bit and the 1 bit * are set). This is equivalent to the desired HALF_EVEN rounding. */ bool increment = (twiceSignifFloor & 1) != 0 && ((signifFloor & 1) != 0 || abs().getLowestSetBit() < shift); int signifRounded = increment ? signifFloor + 1 : signifFloor; int bits = ((exponent + FloatConsts.EXP_BIAS)) << (FloatConsts.SIGNIFICAND_WIDTH - 1); bits += signifRounded; /* * If signifRounded == 2^24, we'd need to set all of the significand * bits to zero and add 1 to the exponent. This is exactly the behavior * we get from just adding signifRounded to bits directly. If the * exponent is Float.MAX_EXPONENT, we round up (correctly) to * Float.POSITIVE_INFINITY. */ bits |= signum & FloatConsts.SIGN_BIT_MASK; return Float.intBitsToFloat(bits); } /** * Converts this BigInteger to a {@code double}. This * conversion is similar to the * <i>narrowing primitive conversion</i> from {@code double} to * {@code float} as defined in * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger has too great a magnitude * to represent as a {@code double}, it will be converted to * {@link Double#NEGATIVE_INFINITY} or {@link * Double#POSITIVE_INFINITY} as appropriate. Note that even when * the return value is finite, this conversion can lose * information about the precision of the BigInteger value. * * @return this BigInteger converted to a {@code double}. * @jls 5.1.3 Narrowing Primitive Conversion */ double doubleValue() { if (_signum == 0) { return 0.0; } int exponent = (cast(int)(mag.length - 1) << 5) + bitLengthForInt(mag[0]) - 1; // exponent == floor(log2(abs(this))Double) if (exponent < Long.SIZE - 1) { return longValue(); } else if (exponent > Double.MAX_EXPONENT) { return signum > 0 ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY; } /* * We need the top SIGNIFICAND_WIDTH bits, including the "implicit" * one bit. To make rounding easier, we pick out the top * SIGNIFICAND_WIDTH + 1 bits, so we have one to help us round up or * down. twiceSignifFloor will contain the top SIGNIFICAND_WIDTH + 1 * bits, and signifFloor the top SIGNIFICAND_WIDTH. * * It helps to consider the real number signif = abs(this) * * 2^(SIGNIFICAND_WIDTH - 1 - exponent). */ int shift = exponent - DoubleConsts.SIGNIFICAND_WIDTH; long twiceSignifFloor; // twiceSignifFloor will be == abs().shiftRight(shift).longValue() // We do the shift into a long directly to improve performance. int nBits = shift & 0x1f; int nBits2 = 32 - nBits; int highBits; int lowBits; if (nBits == 0) { highBits = mag[0]; lowBits = mag[1]; } else { highBits = mag[0] >>> nBits; lowBits = (mag[0] << nBits2) | (mag[1] >>> nBits); if (highBits == 0) { highBits = lowBits; lowBits = (mag[1] << nBits2) | (mag[2] >>> nBits); } } twiceSignifFloor = ((highBits & LONG_MASK) << 32) | (lowBits & LONG_MASK); long signifFloor = twiceSignifFloor >> 1; signifFloor &= DoubleConsts.SIGNIF_BIT_MASK; // remove the implied bit /* * We round up if either the fractional part of signif is strictly * greater than 0.5 (which is true if the 0.5 bit is set and any lower * bit is set), or if the fractional part of signif is >= 0.5 and * signifFloor is odd (which is true if both the 0.5 bit and the 1 bit * are set). This is equivalent to the desired HALF_EVEN rounding. */ bool increment = (twiceSignifFloor & 1) != 0 && ((signifFloor & 1) != 0 || abs().getLowestSetBit() < shift); long signifRounded = increment ? signifFloor + 1 : signifFloor; long bits = cast(long) ((exponent + DoubleConsts.EXP_BIAS)) << (DoubleConsts.SIGNIFICAND_WIDTH - 1); bits += signifRounded; /* * If signifRounded == 2^53, we'd need to set all of the significand * bits to zero and add 1 to the exponent. This is exactly the behavior * we get from just adding signifRounded to bits directly. If the * exponent is Double.MAX_EXPONENT, we round up (correctly) to * Double.POSITIVE_INFINITY. */ bits |= signum & DoubleConsts.SIGN_BIT_MASK; return Double.longBitsToDouble(bits); } byte byteValue() { return cast(byte) intValue(); } short shortValue() { return cast(short) intValue(); } /** * Returns a copy of the input array stripped of any leading zero bytes. */ private static int[] stripLeadingZeroInts(int[] val) { int vlen = cast(int)val.length; int keep; // Find first nonzero byte for (keep = 0; keep < vlen && val[keep] == 0; keep++){} return val[keep .. vlen].dup; // java.util.Arrays.copyOfRange(val, keep, vlen); } /** * Returns the input array stripped of any leading zero bytes. * Since the source is trusted the copying may be skipped. */ private static int[] trustedStripLeadingZeroInts(int[] val) { int vlen = cast(int)val.length; int keep; // Find first nonzero byte for (keep = 0; keep < vlen && val[keep] == 0; keep++){} return keep == 0 ? val : val[keep .. vlen].dup; // java.util.Arrays.copyOfRange(val, keep, vlen); } /** * Returns a copy of the input array stripped of any leading zero bytes. */ private static int[] stripLeadingZeroBytes(byte[] a, int off, int len) { int indexBound = off + len; int keep; // Find first nonzero byte for (keep = off; keep < indexBound && a[keep] == 0; keep++){} // Allocate new array and copy relevant part of input array int intLength = ((indexBound - keep) + 3) >>> 2; int[] result = new int[intLength]; int b = indexBound - 1; for (int i = intLength-1; i >= 0; i--) { result[i] = a[b--] & 0xff; int bytesRemaining = b - keep + 1; int bytesToTransfer = std.algorithm.min(3, bytesRemaining); for (int j=8; j <= (bytesToTransfer << 3); j += 8) result[i] |= ((a[b--] & 0xff) << j); } return result; } /** * Takes an array a representing a negative 2's-complement number and * returns the minimal (no leading zero bytes) unsigned whose value is -a. */ private static int[] makePositive(byte[] a, int off, int len) { int keep, k; int indexBound = off + len; // Find first non-sign (0xff) byte of input for (keep=off; keep < indexBound && a[keep] == -1; keep++) {} /* Allocate output array. If all non-sign bytes are 0x00, we must * allocate space for one extra output byte. */ for (k=keep; k < indexBound && a[k] == 0; k++) {} int extraByte = (k == indexBound) ? 1 : 0; int intLength = ((indexBound - keep + extraByte) + 3) >>> 2; int[] result = new int[intLength]; /* Copy one's complement of input into output, leaving extra * byte (if it exists) == 0x00 */ int b = indexBound - 1; for (int i = intLength-1; i >= 0; i--) { result[i] = a[b--] & 0xff; int numBytesToTransfer = std.algorithm.min(3, b-keep+1); if (numBytesToTransfer < 0) numBytesToTransfer = 0; for (int j=8; j <= 8*numBytesToTransfer; j += 8) result[i] |= ((a[b--] & 0xff) << j); // Mask indicates which bits must be complemented int mask = -1 >>> (8*(3-numBytesToTransfer)); result[i] = ~result[i] & mask; } // Add one to one's complement to generate two's complement for (size_t i=result.length-1; i >= 0; i--) { result[i] = cast(int)((result[i] & LONG_MASK) + 1); if (result[i] != 0) break; } return result; } /** * Takes an array a representing a negative 2's-complement number and * returns the minimal (no leading zero ints) unsigned whose value is -a. */ private static int[] makePositive(int[] a) { int keep, j; // Find first non-sign (0xffffffff) int of input for (keep=0; keep < a.length && a[keep] == -1; keep++){} /* Allocate output array. If all non-sign ints are 0x00, we must * allocate space for one extra output int. */ for (j=keep; j < a.length && a[j] == 0; j++){} int extraInt = (j == a.length ? 1 : 0); int[] result = new int[a.length - keep + extraInt]; /* Copy one's complement of input into output, leaving extra * int (if it exists) == 0x00 */ for (int i = keep; i < a.length; i++) result[i - keep + extraInt] = ~a[i]; // Add one to one's complement to generate two's complement for (size_t i=result.length-1; ++result[i] == 0; i--){} return result; } /* * The following two arrays are used for fast string conversions. Both * are indexed by radix. The first is the number of digits of the given * radix that can fit in a Java long without "going negative", i.e., the * highest integer n such that radix**n < 2**63. The second is the * "long radix" that tears each number into "long digits", each of which * consists of the number of digits in the corresponding element in * digitsPerLong (longRadix[i] = i**digitPerLong[i]). Both arrays have * nonsense values in their 0 and 1 elements, as radixes 0 and 1 are not * used. */ private static int[] digitsPerLong = [0, 0, 62, 39, 31, 27, 24, 22, 20, 19, 18, 18, 17, 17, 16, 16, 15, 15, 15, 14, 14, 14, 14, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12]; private __gshared static BigInteger[] longRadix; shared static this() { longRadix = [null, null, valueOf(0x4000000000000000L), valueOf(0x383d9170b85ff80bL), valueOf(0x4000000000000000L), valueOf(0x6765c793fa10079dL), valueOf(0x41c21cb8e1000000L), valueOf(0x3642798750226111L), valueOf(0x1000000000000000L), valueOf(0x12bf307ae81ffd59L), valueOf( 0xde0b6b3a7640000L), valueOf(0x4d28cb56c33fa539L), valueOf(0x1eca170c00000000L), valueOf(0x780c7372621bd74dL), valueOf(0x1e39a5057d810000L), valueOf(0x5b27ac993df97701L), valueOf(0x1000000000000000L), valueOf(0x27b95e997e21d9f1L), valueOf(0x5da0e1e53c5c8000L), valueOf( 0xb16a458ef403f19L), valueOf(0x16bcc41e90000000L), valueOf(0x2d04b7fdd9c0ef49L), valueOf(0x5658597bcaa24000L), valueOf( 0x6feb266931a75b7L), valueOf( 0xc29e98000000000L), valueOf(0x14adf4b7320334b9L), valueOf(0x226ed36478bfa000L), valueOf(0x383d9170b85ff80bL), valueOf(0x5a3c23e39c000000L), valueOf( 0x4e900abb53e6b71L), valueOf( 0x7600ec618141000L), valueOf( 0xaee5720ee830681L), valueOf(0x1000000000000000L), valueOf(0x172588ad4f5f0981L), valueOf(0x211e44f7d02c1000L), valueOf(0x2ee56725f06e5c71L), valueOf(0x41c21cb8e1000000L)]; } /* * These two arrays are the integer analogue of above. */ private enum int[] digitsPerInt = [0, 0, 30, 19, 15, 13, 11, 11, 10, 9, 9, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5]; private enum int[] intRadix =[0, 0, 0x40000000, 0x4546b3db, 0x40000000, 0x48c27395, 0x159fd800, 0x75db9c97, 0x40000000, 0x17179149, 0x3b9aca00, 0xcc6db61, 0x19a10000, 0x309f1021, 0x57f6c100, 0xa2f1b6f, 0x10000000, 0x18754571, 0x247dbc80, 0x3547667b, 0x4c4b4000, 0x6b5a6e1d, 0x6c20a40, 0x8d2d931, 0xb640000, 0xe8d4a51, 0x1269ae40, 0x17179149, 0x1cb91000, 0x23744899, 0x2b73a840, 0x34e63b41, 0x40000000, 0x4cfa3cc1, 0x5c13d840, 0x6d91b519, 0x39aa400 ]; /** * These routines provide access to the two's complement representation * of BigIntegers. */ /** * Returns the length of the two's complement representation in ints, * including space for at least one sign bit. */ private int intLength() { return (bitLength() >>> 5) + 1; } /* Returns sign bit */ private int signBit() { return signum < 0 ? 1 : 0; } /* Returns an int of sign bits */ private int signInt() { return signum < 0 ? -1 : 0; } /** * Returns the specified int of the little-endian two's complement * representation (int 0 is the least significant). The int number can * be arbitrarily high (values are logically preceded by infinitely many * sign ints). */ private int getInt(int n) { if (n < 0) return 0; if (n >= cast(int)mag.length) return signInt(); int magInt = mag[mag.length-n-1]; return (signum >= 0 ? magInt : (n <= firstNonzeroIntNum() ? -magInt : ~magInt)); } /** * Returns the index of the int that contains the first nonzero int in the * little-endian binary representation of the magnitude (int 0 is the * least significant). If the magnitude is zero, return value is undefined. * * <p>Note: never used for a BigInteger with a magnitude of zero. * @see #getInt. */ private int firstNonzeroIntNum() { int fn = firstNonzeroIntNumPlusTwo - 2; if (fn == -2) { // firstNonzeroIntNum not initialized yet // Search for the first nonzero int int i; int mlen = cast(int)mag.length; for (i = mlen - 1; i >= 0 && mag[i] == 0; i--) {} fn = mlen - i - 1; firstNonzeroIntNumPlusTwo = fn + 2; // offset by two to initialize } return fn; } /** use serialVersionUID from JDK 1.1. for interoperability */ // private static final long serialVersionUID = -8287574255936472291L; /** * Serializable fields for BigInteger. * * @serialField signum int * signum of this BigInteger * @serialField magnitude byte[] * magnitude array of this BigInteger * @serialField bitCount int * appears in the serialized form for backward compatibility * @serialField bitLength int * appears in the serialized form for backward compatibility * @serialField firstNonzeroByteNum int * appears in the serialized form for backward compatibility * @serialField lowestSetBit int * appears in the serialized form for backward compatibility */ // private static final ObjectStreamField[] serialPersistentFields = { // new ObjectStreamField("signum", Integer.TYPE), // new ObjectStreamField("magnitude", byte[].class), // new ObjectStreamField("bitCount", Integer.TYPE), // new ObjectStreamField("bitLength", Integer.TYPE), // new ObjectStreamField("firstNonzeroByteNum", Integer.TYPE), // new ObjectStreamField("lowestSetBit", Integer.TYPE) // }; /** * Reconstitute the {@code BigInteger} instance from a stream (that is, * deserialize it). The magnitude is read in as an array of bytes * for historical reasons, but it is converted to an array of ints * and the byte array is discarded. * Note: * The current convention is to initialize the cache fields, bitCountPlusOne, * bitLengthPlusOne and lowestSetBitPlusTwo, to 0 rather than some other * marker value. Therefore, no explicit action to set these fields needs to * be taken in readObject because those fields already have a 0 value by * default since defaultReadObject is not being used. */ // private void readObject(java.io.ObjectInputStream s) // throws java.io.IOException, ClassNotFoundException { // // prepare to read the alternate persistent fields // ObjectInputStream.GetField fields = s.readFields(); // // Read the alternate persistent fields that we care about // int sign = fields.get("signum", -2); // byte[] magnitude = (byte[])fields.get("magnitude", null); // // Validate signum // if (sign < -1 || sign > 1) { // string message = "BigInteger: Invalid signum value"; // if (fields.defaulted("signum")) // message = "BigInteger: Signum not present in stream"; // throw new java.io.StreamCorruptedException(message); // } // int[] mag = stripLeadingZeroBytes(magnitude, 0, magnitude.length); // if (cast(int)(mag.length == 0) != (sign == 0)) { // string message = "BigInteger: signum-magnitude mismatch"; // if (fields.defaulted("magnitude")) // message = "BigInteger: Magnitude not present in stream"; // throw new java.io.StreamCorruptedException(message); // } // // Commit final fields via Unsafe // UnsafeHolder.putSign(this, sign); // // Calculate mag field from magnitude and discard magnitude // UnsafeHolder.putMag(this, mag); // if (mag.length >= MAX_MAG_LENGTH) { // try { // checkRange(); // } catch (ArithmeticException e) { // throw new java.io.StreamCorruptedException("BigInteger: Out of the supported range"); // } // } // } // // Support for resetting final fields while deserializing // private static class UnsafeHolder { // private static final jdk.internal.misc.Unsafe unsafe // = jdk.internal.misc.Unsafe.getUnsafe(); // private static final long signumOffset // = unsafe.objectFieldOffset(BigInteger.class, "signum"); // private static final long magOffset // = unsafe.objectFieldOffset(BigInteger.class, "mag"); // static void putSign(BigInteger bi, int sign) { // unsafe.putInt(bi, signumOffset, sign); // } // static void putMag(BigInteger bi, int[] magnitude) { // unsafe.putObject(bi, magOffset, magnitude); // } // } /** * Save the {@code BigInteger} instance to a stream. The magnitude of a * {@code BigInteger} is serialized as a byte array for historical reasons. * To maintain compatibility with older implementations, the integers * -1, -1, -2, and -2 are written as the values of the obsolete fields * {@code bitCount}, {@code bitLength}, {@code lowestSetBit}, and * {@code firstNonzeroByteNum}, respectively. These values are compatible * with older implementations, but will be ignored by current * implementations. */ // private void writeObject(ObjectOutputStream s) throws IOException { // // set the values of the Serializable fields // ObjectOutputStream.PutField fields = s.putFields(); // fields.put("signum", signum); // fields.put("magnitude", magSerializedForm()); // // The values written for cached fields are compatible with older // // versions, but are ignored in readObject so don't otherwise matter. // fields.put("bitCount", -1); // fields.put("bitLength", -1); // fields.put("lowestSetBit", -2); // fields.put("firstNonzeroByteNum", -2); // // save them // s.writeFields(); // } /** * Returns the mag array as an array of bytes. */ private byte[] magSerializedForm() { int len = cast(int)mag.length; int bitLen = (len == 0 ? 0 : ((len - 1) << 5) + bitLengthForInt(mag[0])); int byteLen = (bitLen + 7) >>> 3; byte[] result = new byte[byteLen]; for (int i = byteLen - 1, bytesCopied = 4, intIndex = len - 1, nextInt = 0; i >= 0; i--) { if (bytesCopied == 4) { nextInt = mag[intIndex--]; bytesCopied = 1; } else { nextInt >>>= 8; bytesCopied++; } result[i] = cast(byte)nextInt; } return result; } /** * Converts this {@code BigInteger} to a {@code long}, checking * for lost information. If the value of this {@code BigInteger} * is out of the range of the {@code long} type, then an * {@code ArithmeticException} is thrown. * * @return this {@code BigInteger} converted to a {@code long}. * @throws ArithmeticException if the value of {@code this} will * not exactly fit in a {@code long}. * @see BigInteger#longValue * @since 1.8 */ long longValueExact() { if (mag.length <= 2 && bitLength() <= 63) return longValue(); else throw new ArithmeticException("BigInteger out of long range"); } /** * Converts this {@code BigInteger} to an {@code int}, checking * for lost information. If the value of this {@code BigInteger} * is out of the range of the {@code int} type, then an * {@code ArithmeticException} is thrown. * * @return this {@code BigInteger} converted to an {@code int}. * @throws ArithmeticException if the value of {@code this} will * not exactly fit in an {@code int}. * @see BigInteger#intValue * @since 1.8 */ int intValueExact() { if (mag.length <= 1 && bitLength() <= 31) return intValue(); else throw new ArithmeticException("BigInteger out of int range"); } /** * Converts this {@code BigInteger} to a {@code short}, checking * for lost information. If the value of this {@code BigInteger} * is out of the range of the {@code short} type, then an * {@code ArithmeticException} is thrown. * * @return this {@code BigInteger} converted to a {@code short}. * @throws ArithmeticException if the value of {@code this} will * not exactly fit in a {@code short}. * @see BigInteger#shortValue * @since 1.8 */ short shortValueExact() { if (mag.length <= 1 && bitLength() <= 31) { int value = intValue(); if (value >= short.min && value <= short.max) return shortValue(); } throw new ArithmeticException("BigInteger out of short range"); } /** * Converts this {@code BigInteger} to a {@code byte}, checking * for lost information. If the value of this {@code BigInteger} * is out of the range of the {@code byte} type, then an * {@code ArithmeticException} is thrown. * * @return this {@code BigInteger} converted to a {@code byte}. * @throws ArithmeticException if the value of {@code this} will * not exactly fit in a {@code byte}. * @see BigInteger#byteValue * @since 1.8 */ byte byteValueExact() { if (mag.length <= 1 && bitLength() <= 31) { int value = intValue(); if (value >= byte.min && value <= byte.max) return byteValue(); } throw new ArithmeticException("BigInteger out of byte range"); } } class MutableBigInteger { /** * Holds the magnitude of this MutableBigInteger in big endian order. * The magnitude may start at an offset into the value array, and it may * end before the length of the value array. */ int[] value; /** * The number of ints of the value array that are currently used * to hold the magnitude of this MutableBigInteger. The magnitude starts * at an offset and offset + intLen may be less than value.length. */ int intLen; /** * The offset into the value array where the magnitude of this * MutableBigInteger begins. */ int offset = 0; // Constants /** * MutableBigInteger with one element value array with the value 1. Used by * BigDecimal divideAndRound to increment the quotient. Use this constant * only when the method is not going to modify this object. */ __gshared MutableBigInteger ONE; /** * The minimum {@code intLen} for cancelling powers of two before * dividing. * If the number of ints is less than this threshold, * {@code divideKnuth} does not eliminate common powers of two from * the dividend and divisor. */ enum int KNUTH_POW2_THRESH_LEN = 6; /** * The minimum number of trailing zero ints for cancelling powers of two * before dividing. * If the dividend and divisor don't share at least this many zero ints * at the end, {@code divideKnuth} does not eliminate common powers * of two from the dividend and divisor. */ enum int KNUTH_POW2_THRESH_ZEROS = 3; private enum long INFLATED = long.min; private enum LONG_MASK = BigInteger.LONG_MASK; shared static this() { ONE = new MutableBigInteger(1); } // Constructors /** * The default constructor. An empty MutableBigInteger is created with * a one word capacity. */ this() { value = new int[1]; intLen = 0; } /** * Construct a new MutableBigInteger with a magnitude specified by * the int val. */ this(int val) { value = new int[1]; intLen = 1; value[0] = val; } /** * Construct a new MutableBigInteger with the specified value array * up to the length of the array supplied. */ this(int[] val) { value = val; intLen = cast(int)val.length; } /** * Construct a new MutableBigInteger with a magnitude equal to the * specified BigInteger. */ this(BigInteger b) { intLen = cast(int)b.mag.length; // value = Arrays.copyOf(b.mag, intLen); value = b.mag.dup; } /** * Construct a new MutableBigInteger with a magnitude equal to the * specified MutableBigInteger. */ this(MutableBigInteger val) { intLen = val.intLen; // value = Arrays.copyOfRange(val.value, val.offset, val.offset + intLen); value = val.cloneValue(); } int[] cloneValue() { return value[offset .. offset + intLen].dup; } /** * Makes this number an {@code n}-int number all of whose bits are ones. * Used by Burnikel-Ziegler division. * @param n number of ints in the {@code value} array * @return a number equal to {@code ((1<<(32*n)))-1} */ private void ones(int n) { if (n > value.length) value = new int[n]; // Arrays.fill(value, -1); value[] = -1; offset = 0; intLen = n; } /** * Internal helper method to return the magnitude array. The caller is not * supposed to modify the returned array. */ private int[] getMagnitudeArray() { if (offset > 0 || value.length != intLen) // return Arrays.copyOfRange(value, offset, offset + intLen); return value[offset .. offset + intLen]; return value; } /** * Convert this MutableBigInteger to a long value. The caller has to make * sure this MutableBigInteger can be fit into long. */ private long toLong() { assert (intLen <= 2, "this MutableBigInteger exceeds the range of long"); if (intLen == 0) return 0; long d = value[offset] & LONG_MASK; return (intLen == 2) ? d << 32 | (value[offset + 1] & LONG_MASK) : d; } /** * Convert this MutableBigInteger to a BigInteger object. */ BigInteger toBigInteger(int sign) { if (intLen == 0 || sign == 0) return BigInteger.ZERO; return new BigInteger(getMagnitudeArray(), sign); } /** * Converts this number to a nonnegative {@code BigInteger}. */ BigInteger toBigInteger() { normalize(); return toBigInteger(isZero() ? 0 : 1); } /** * Convert this MutableBigInteger to BigDecimal object with the specified sign * and scale. */ // BigDecimal toBigDecimal(int sign, int scale) { // if (intLen == 0 || sign == 0) // return BigDecimal.zeroValueOf(scale); // int[] mag = getMagnitudeArray(); // int len = cast(int)mag.length; // int d = mag[0]; // // If this MutableBigInteger can't be fit into long, we need to // // make a BigInteger object for the resultant BigDecimal object. // if (len > 2 || (d < 0 && len == 2)) // return new BigDecimal(new BigInteger(mag, sign), INFLATED, scale, 0); // long v = (len == 2) ? // ((mag[1] & LONG_MASK) | (d & LONG_MASK) << 32) : // d & LONG_MASK; // return BigDecimal.valueOf(sign == -1 ? -v : v, scale); // } /** * This is for internal use in converting from a MutableBigInteger * object into a long value given a specified sign. * returns INFLATED if value is not fit into long */ long toCompactValue(int sign) { if (intLen == 0 || sign == 0) return 0L; int[] mag = getMagnitudeArray(); int len = cast(int)mag.length; int d = mag[0]; // If this MutableBigInteger can not be fitted into long, we need to // make a BigInteger object for the resultant BigDecimal object. if (len > 2 || (d < 0 && len == 2)) return INFLATED; long v = (len == 2) ? ((mag[1] & LONG_MASK) | (d & LONG_MASK) << 32) : d & LONG_MASK; return sign == -1 ? -v : v; } /** * Clear out a MutableBigInteger for reuse. */ void clear() { offset = intLen = 0; for (int index=0, n=cast(int)value.length; index < n; index++) value[index] = 0; } /** * Set a MutableBigInteger to zero, removing its offset. */ void reset() { offset = intLen = 0; } /** * Compare the magnitude of two MutableBigIntegers. Returns -1, 0 or 1 * as this MutableBigInteger is numerically less than, equal to, or * greater than {@code b}. */ final int compare(MutableBigInteger b) { int blen = b.intLen; if (intLen < blen) return -1; if (intLen > blen) return 1; // Add Integer.MIN_VALUE to make the comparison act as unsigned integer // comparison. int[] bval = b.value; for (int i = offset, j = b.offset; i < intLen + offset; i++, j++) { int b1 = value[i] + 0x80000000; int b2 = bval[j] + 0x80000000; if (b1 < b2) return -1; if (b1 > b2) return 1; } return 0; } /** * Returns a value equal to what {@code b.leftShift(32*ints); return compare(b);} * would return, but doesn't change the value of {@code b}. */ private int compareShifted(MutableBigInteger b, int ints) { int blen = b.intLen; int alen = intLen - ints; if (alen < blen) return -1; if (alen > blen) return 1; // Add Integer.MIN_VALUE to make the comparison act as unsigned integer // comparison. int[] bval = b.value; for (int i = offset, j = b.offset; i < alen + offset; i++, j++) { int b1 = value[i] + 0x80000000; int b2 = bval[j] + 0x80000000; if (b1 < b2) return -1; if (b1 > b2) return 1; } return 0; } /** * Compare this against half of a MutableBigInteger object (Needed for * remainder tests). * Assumes no leading unnecessary zeros, which holds for results * from divide(). */ final int compareHalf(MutableBigInteger b) { int blen = b.intLen; int len = intLen; if (len <= 0) return blen <= 0 ? 0 : -1; if (len > blen) return 1; if (len < blen - 1) return -1; int[] bval = b.value; int bstart = 0; int carry = 0; // Only 2 cases left:len == blen or len == blen - 1 if (len != blen) { // len == blen - 1 if (bval[bstart] == 1) { ++bstart; carry = 0x80000000; } else return -1; } // compare values with right-shifted values of b, // carrying shifted-out bits across words int[] val = value; for (int i = offset, j = bstart; i < len + offset;) { int bv = bval[j++]; long hb = ((bv >>> 1) + carry) & LONG_MASK; long v = val[i++] & LONG_MASK; if (v != hb) return v < hb ? -1 : 1; carry = (bv & 1) << 31; // carray will be either 0x80000000 or 0 } return carry == 0 ? 0 : -1; } /** * Return the index of the lowest set bit in this MutableBigInteger. If the * magnitude of this MutableBigInteger is zero, -1 is returned. */ private final int getLowestSetBit() { if (intLen == 0) return -1; int j, b; for (j=intLen-1; (j > 0) && (value[j+offset] == 0); j--) {} b = value[j+offset]; if (b == 0) return -1; return ((intLen-1-j)<<5) + Integer.numberOfTrailingZeros(b); } /** * Return the int in use in this MutableBigInteger at the specified * index. This method is not used because it is not inlined on all * platforms. */ private final int getInt(int index) { return value[offset+index]; } /** * Return a long which is equal to the unsigned value of the int in * use in this MutableBigInteger at the specified index. This method is * not used because it is not inlined on all platforms. */ private final long getLong(int index) { return value[offset+index] & LONG_MASK; } /** * Ensure that the MutableBigInteger is in normal form, specifically * making sure that there are no leading zeros, and that if the * magnitude is zero, then intLen is zero. */ final void normalize() { if (intLen == 0) { offset = 0; return; } int index = offset; if (value[index] != 0) return; int indexBound = index+intLen; do { index++; } while(index < indexBound && value[index] == 0); int numZeros = index - offset; intLen -= numZeros; offset = (intLen == 0 ? 0 : offset+numZeros); } /** * If this MutableBigInteger cannot hold len words, increase the size * of the value array to len words. */ private final void ensureCapacity(int len) { if (value.length < len) { value = new int[len]; offset = 0; intLen = len; } } /** * Convert this MutableBigInteger into an int array with no leading * zeros, of a length that is equal to this MutableBigInteger's intLen. */ int[] toIntArray() { int[] result = new int[intLen]; for(int i=0; i < intLen; i++) result[i] = value[offset+i]; return result; } /** * Sets the int at index+offset in this MutableBigInteger to val. * This does not get inlined on all platforms so it is not used * as often as originally intended. */ void setInt(int index, int val) { value[offset + index] = val; } /** * Sets this MutableBigInteger's value array to the specified array. * The intLen is set to the specified length. */ void setValue(int[] val, int length) { value = val; intLen = length; offset = 0; } /** * Sets this MutableBigInteger's value array to a copy of the specified * array. The intLen is set to the length of the new array. */ void copyValue(MutableBigInteger src) { int len = src.intLen; if (value.length < len) value = new int[len]; //System.arraycopy(src.value, src.offset, value, 0, len); value[0 .. len] = src.cloneValue(); intLen = len; offset = 0; } /** * Sets this MutableBigInteger's value array to a copy of the specified * array. The intLen is set to the length of the specified array. */ void copyValue(int[] val) { int len = cast(int)val.length; if (value.length < len) value = new int[len]; // System.arraycopy(val, 0, value, 0, len); value[0..len] = val[0 .. len]; intLen = len; offset = 0; } /** * Returns true iff this MutableBigInteger has a value of one. */ bool isOne() { return (intLen == 1) && (value[offset] == 1); } /** * Returns true iff this MutableBigInteger has a value of zero. */ bool isZero() { return (intLen == 0); } /** * Returns true iff this MutableBigInteger is even. */ bool isEven() { return (intLen == 0) || ((value[offset + intLen - 1] & 1) == 0); } /** * Returns true iff this MutableBigInteger is odd. */ bool isOdd() { return isZero() ? false : ((value[offset + intLen - 1] & 1) == 1); } /** * Returns true iff this MutableBigInteger is in normal form. A * MutableBigInteger is in normal form if it has no leading zeros * after the offset, and intLen + offset <= cast(int)value.length. */ bool isNormal() { if (intLen + offset > value.length) return false; if (intLen == 0) return true; return (value[offset] != 0); } /** * Returns a string representation of this MutableBigInteger in radix 10. */ override string toString() { BigInteger b = toBigInteger(1); return b.toString(); } /** * Like {@link #rightShift(int)} but {@code n} can be greater than the length of the number. */ void safeRightShift(int n) { if (n/32 >= intLen) { reset(); } else { rightShift(n); } } /** * Right shift this MutableBigInteger n bits. The MutableBigInteger is left * in normal form. */ void rightShift(int n) { if (intLen == 0) return; int nInts = n >>> 5; int nBits = n & 0x1F; this.intLen -= nInts; if (nBits == 0) return; int bitsInHighWord = BigInteger.bitLengthForInt(value[offset]); if (nBits >= bitsInHighWord) { this.primitiveLeftShift(32 - nBits); this.intLen--; } else { primitiveRightShift(nBits); } } /** * Like {@link #leftShift(int)} but {@code n} can be zero. */ void safeLeftShift(int n) { if (n > 0) { leftShift(n); } } /** * Left shift this MutableBigInteger n bits. */ void leftShift(int n) { /* * If there is enough storage space in this MutableBigInteger already * the available space will be used. Space to the right of the used * ints in the value array is faster to utilize, so the extra space * will be taken from the right if possible. */ if (intLen == 0) return; int nInts = n >>> 5; int nBits = n&0x1F; int bitsInHighWord = BigInteger.bitLengthForInt(value[offset]); // If shift can be done without moving words, do so if (n <= (32-bitsInHighWord)) { primitiveLeftShift(nBits); return; } int newLen = intLen + nInts +1; if (nBits <= (32-bitsInHighWord)) newLen--; if (value.length < newLen) { // The array must grow int[] result = new int[newLen]; for (int i=0; i < intLen; i++) result[i] = value[offset+i]; setValue(result, newLen); } else if (value.length - offset >= newLen) { // Use space on right for(int i=0; i < newLen - intLen; i++) value[offset+intLen+i] = 0; } else { // Must use space on left for (int i=0; i < intLen; i++) value[i] = value[offset+i]; for (int i=intLen; i < newLen; i++) value[i] = 0; offset = 0; } intLen = newLen; if (nBits == 0) return; if (nBits <= (32-bitsInHighWord)) primitiveLeftShift(nBits); else primitiveRightShift(32 -nBits); } /** * A primitive used for division. This method adds in one multiple of the * divisor a back to the dividend result at a specified offset. It is used * when qhat was estimated too large, and must be adjusted. */ private int divadd(int[] a, int[] result, int offset) { long carry = 0; for (int j=cast(int)a.length-1; j >= 0; j--) { long sum = (a[j] & LONG_MASK) + (result[j+offset] & LONG_MASK) + carry; result[j+offset] = cast(int)sum; carry = sum >>> 32; } return cast(int)carry; } /** * This method is used for division. It multiplies an n word input a by one * word input x, and subtracts the n word product from q. This is needed * when subtracting qhat*divisor from dividend. */ private int mulsub(int[] q, int[] a, int x, int len, int offset) { long xLong = x & LONG_MASK; long carry = 0; offset += len; for (int j=len-1; j >= 0; j--) { long product = (a[j] & LONG_MASK) * xLong + carry; long difference = q[offset] - product; q[offset--] = cast(int)difference; carry = (product >>> 32) + (((difference & LONG_MASK) > (((~cast(int)product) & LONG_MASK))) ? 1:0); } return cast(int)carry; } /** * The method is the same as mulsun, except the fact that q array is not * updated, the only result of the method is borrow flag. */ private int mulsubBorrow(int[] q, int[] a, int x, int len, int offset) { long xLong = x & LONG_MASK; long carry = 0; offset += len; for (int j=len-1; j >= 0; j--) { long product = (a[j] & LONG_MASK) * xLong + carry; long difference = q[offset--] - product; carry = (product >>> 32) + (((difference & LONG_MASK) > (((~cast(int)product) & LONG_MASK))) ? 1:0); } return cast(int)carry; } /** * Right shift this MutableBigInteger n bits, where n is * less than 32. * Assumes that intLen > 0, n > 0 for speed */ private final void primitiveRightShift(int n) { int[] val = value; int n2 = 32 - n; for (int i=offset+intLen-1, c=val[i]; i > offset; i--) { int b = c; c = val[i-1]; val[i] = (c << n2) | (b >>> n); } val[offset] >>>= n; } /** * Left shift this MutableBigInteger n bits, where n is * less than 32. * Assumes that intLen > 0, n > 0 for speed */ private final void primitiveLeftShift(int n) { int[] val = value; int n2 = 32 - n; for (int i=offset, c=val[i], m=i+intLen-1; i < m; i++) { int b = c; c = val[i+1]; val[i] = (b << n) | (c >>> n2); } val[offset+intLen-1] <<= n; } /** * Returns a {@code BigInteger} equal to the {@code n} * low ints of this number. */ private BigInteger getLower(int n) { if (isZero()) { return BigInteger.ZERO; } else if (intLen < n) { return toBigInteger(1); } else { // strip zeros int len = n; while (len > 0 && value[offset+intLen-len] == 0) len--; int sign = len > 0 ? 1 : 0; // return new BigInteger(Arrays.copyOfRange(value, offset+intLen-len, offset+intLen), sign); return new BigInteger(value[offset+intLen-len .. offset+intLen], sign); } } /** * Discards all ints whose index is greater than {@code n}. */ private void keepLower(int n) { if (intLen >= n) { offset += intLen - n; intLen = n; } } /** * Adds the contents of two MutableBigInteger objects.The result * is placed within this MutableBigInteger. * The contents of the addend are not changed. */ void add(MutableBigInteger addend) { int x = intLen; int y = addend.intLen; int resultLen = (intLen > addend.intLen ? intLen : addend.intLen); int[] result = (value.length < resultLen ? new int[resultLen] : value); int rstart = cast(int)result.length-1; long sum; long carry = 0; // Add common parts of both numbers while(x > 0 && y > 0) { x--; y--; sum = (value[x+offset] & LONG_MASK) + (addend.value[y+addend.offset] & LONG_MASK) + carry; result[rstart--] = cast(int)sum; carry = sum >>> 32; } // Add remainder of the longer number while(x > 0) { x--; if (carry == 0 && result == value && rstart == (x + offset)) return; sum = (value[x+offset] & LONG_MASK) + carry; result[rstart--] = cast(int)sum; carry = sum >>> 32; } while(y > 0) { y--; sum = (addend.value[y+addend.offset] & LONG_MASK) + carry; result[rstart--] = cast(int)sum; carry = sum >>> 32; } if (carry > 0) { // Result must grow in length resultLen++; size_t len = cast(int)result.length; if (len < resultLen) { int[] temp = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. // System.arraycopy(result, 0, temp, 1, result.length); temp[1 .. len+1] = result[0..$]; temp[0] = 1; result = temp; } else { result[rstart--] = 1; } } value = result; intLen = resultLen; offset = cast(int)result.length - resultLen; } /** * Adds the value of {@code addend} shifted {@code n} ints to the left. * Has the same effect as {@code addend.leftShift(32*ints); add(addend);} * but doesn't change the value of {@code addend}. */ void addShifted(MutableBigInteger addend, int n) { if (addend.isZero()) { return; } int x = intLen; int y = addend.intLen + n; int resultLen = (intLen > y ? intLen : y); int[] result = (value.length < resultLen ? new int[resultLen] : value); int rstart = cast(int)result.length-1; long sum; long carry = 0; // Add common parts of both numbers while (x > 0 && y > 0) { x--; y--; int bval = y+addend.offset < addend.value.length ? addend.value[y+addend.offset] : 0; sum = (value[x+offset] & LONG_MASK) + (bval & LONG_MASK) + carry; result[rstart--] = cast(int)sum; carry = sum >>> 32; } // Add remainder of the longer number while (x > 0) { x--; if (carry == 0 && result == value && rstart == (x + offset)) { return; } sum = (value[x+offset] & LONG_MASK) + carry; result[rstart--] = cast(int)sum; carry = sum >>> 32; } while (y > 0) { y--; int bval = y+addend.offset < addend.value.length ? addend.value[y+addend.offset] : 0; sum = (bval & LONG_MASK) + carry; result[rstart--] = cast(int)sum; carry = sum >>> 32; } if (carry > 0) { // Result must grow in length resultLen++; size_t len = cast(int)result.length; if (len < resultLen) { int[] temp = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. // System.arraycopy(result, 0, temp, 1, result.length); temp[1 .. len+1] = result[0..$]; temp[0] = 1; result = temp; } else { result[rstart--] = 1; } } value = result; intLen = resultLen; offset = cast(int)result.length - resultLen; } /** * Like {@link #addShifted(MutableBigInteger, int)} but {@code this.intLen} must * not be greater than {@code n}. In other words, concatenates {@code this} * and {@code addend}. */ void addDisjoint(MutableBigInteger addend, int n) { if (addend.isZero()) return; int x = intLen; int y = addend.intLen + n; int resultLen = (intLen > y ? intLen : y); int[] result; if (value.length < resultLen) result = new int[resultLen]; else { result = value; //Arrays.fill(value, offset+intLen, value.length, 0); value[offset+intLen .. $] = 0; } int rstart = cast(int)result.length-1; // copy from this if needed // System.arraycopy(value, offset, result, rstart+1-x, x); result[rstart+1-x .. rstart+1] = value[offset .. x]; y -= x; rstart -= x; int len = std.algorithm.min(y, addend.value.length-addend.offset); // System.arraycopy(addend.value, addend.offset, result, rstart+1-y, len); result[rstart+1-y .. rstart+1] = addend.value[addend.offset .. len]; // zero the gap for (int i=rstart+1-y+len; i < rstart+1; i++) result[i] = 0; value = result; intLen = resultLen; offset = cast(int)result.length - resultLen; } /** * Adds the low {@code n} ints of {@code addend}. */ void addLower(MutableBigInteger addend, int n) { MutableBigInteger a = new MutableBigInteger(addend); if (a.offset + a.intLen >= n) { a.offset = a.offset + a.intLen - n; a.intLen = n; } a.normalize(); add(a); } /** * Subtracts the smaller of this and b from the larger and places the * result into this MutableBigInteger. */ int subtract(MutableBigInteger b) { MutableBigInteger a = this; int[] result = value; int sign = a.compare(b); if (sign == 0) { reset(); return 0; } if (sign < 0) { MutableBigInteger tmp = a; a = b; b = tmp; } int resultLen = a.intLen; if (result.length < resultLen) result = new int[resultLen]; long diff = 0; int x = a.intLen; int y = b.intLen; int rstart = cast(int)result.length - 1; // Subtract common parts of both numbers while (y > 0) { x--; y--; diff = (a.value[x+a.offset] & LONG_MASK) - (b.value[y+b.offset] & LONG_MASK) - (cast(int)-(diff>>32)); result[rstart--] = cast(int)diff; } // Subtract remainder of longer number while (x > 0) { x--; diff = (a.value[x+a.offset] & LONG_MASK) - (cast(int)-(diff>>32)); result[rstart--] = cast(int)diff; } value = result; intLen = resultLen; offset = cast(int)value.length - resultLen; normalize(); return sign; } /** * Subtracts the smaller of a and b from the larger and places the result * into the larger. Returns 1 if the answer is in a, -1 if in b, 0 if no * operation was performed. */ private int difference(MutableBigInteger b) { MutableBigInteger a = this; int sign = a.compare(b); if (sign == 0) return 0; if (sign < 0) { MutableBigInteger tmp = a; a = b; b = tmp; } long diff = 0; int x = a.intLen; int y = b.intLen; // Subtract common parts of both numbers while (y > 0) { x--; y--; diff = (a.value[a.offset+ x] & LONG_MASK) - (b.value[b.offset+ y] & LONG_MASK) - (cast(int)-(diff>>32)); a.value[a.offset+x] = cast(int)diff; } // Subtract remainder of longer number while (x > 0) { x--; diff = (a.value[a.offset+ x] & LONG_MASK) - (cast(int)-(diff>>32)); a.value[a.offset+x] = cast(int)diff; } a.normalize(); return sign; } /** * Multiply the contents of two MutableBigInteger objects. The result is * placed into MutableBigInteger z. The contents of y are not changed. */ void multiply(MutableBigInteger y, MutableBigInteger z) { int xLen = intLen; int yLen = y.intLen; int newLen = xLen + yLen; // Put z into an appropriate state to receive product if (z.value.length < newLen) z.value = new int[newLen]; z.offset = 0; z.intLen = newLen; // The first iteration is hoisted out of the loop to avoid extra add long carry = 0; for (int j=yLen-1, k=yLen+xLen-1; j >= 0; j--, k--) { long product = (y.value[j+y.offset] & LONG_MASK) * (value[xLen-1+offset] & LONG_MASK) + carry; z.value[k] = cast(int)product; carry = product >>> 32; } z.value[xLen-1] = cast(int)carry; // Perform the multiplication word by word for (int i = xLen-2; i >= 0; i--) { carry = 0; for (int j=yLen-1, k=yLen+i; j >= 0; j--, k--) { long product = (y.value[j+y.offset] & LONG_MASK) * (value[i+offset] & LONG_MASK) + (z.value[k] & LONG_MASK) + carry; z.value[k] = cast(int)product; carry = product >>> 32; } z.value[i] = cast(int)carry; } // Remove leading zeros from product z.normalize(); } /** * Multiply the contents of this MutableBigInteger by the word y. The * result is placed into z. */ void mul(int y, MutableBigInteger z) { if (y == 1) { z.copyValue(this); return; } if (y == 0) { z.clear(); return; } // Perform the multiplication word by word long ylong = y & LONG_MASK; int[] zval = (z.value.length < intLen+1 ? new int[intLen + 1] : z.value); long carry = 0; for (int i = intLen-1; i >= 0; i--) { long product = ylong * (value[i+offset] & LONG_MASK) + carry; zval[i+1] = cast(int)product; carry = product >>> 32; } if (carry == 0) { z.offset = 1; z.intLen = intLen; } else { z.offset = 0; z.intLen = intLen + 1; zval[0] = cast(int)carry; } z.value = zval; } /** * This method is used for division of an n word dividend by a one word * divisor. The quotient is placed into quotient. The one word divisor is * specified by divisor. * * @return the remainder of the division is returned. * */ int divideOneWord(int divisor, MutableBigInteger quotient) { long divisorLong = divisor & LONG_MASK; // Special case of one word dividend if (intLen == 1) { long dividendValue = value[offset] & LONG_MASK; int q = cast(int) (dividendValue / divisorLong); int r = cast(int) (dividendValue - q * divisorLong); quotient.value[0] = q; quotient.intLen = (q == 0) ? 0 : 1; quotient.offset = 0; return r; } if (quotient.value.length < intLen) quotient.value = new int[intLen]; quotient.offset = 0; quotient.intLen = intLen; // Normalize the divisor int shift = Integer.numberOfLeadingZeros(divisor); int rem = value[offset]; long remLong = rem & LONG_MASK; if (remLong < divisorLong) { quotient.value[0] = 0; } else { quotient.value[0] = cast(int)(remLong / divisorLong); rem = cast(int) (remLong - (quotient.value[0] * divisorLong)); remLong = rem & LONG_MASK; } int xlen = intLen; while (--xlen > 0) { long dividendEstimate = (remLong << 32) | (value[offset + intLen - xlen] & LONG_MASK); int q; if (dividendEstimate >= 0) { q = cast(int) (dividendEstimate / divisorLong); rem = cast(int) (dividendEstimate - q * divisorLong); } else { long tmp = divWord(dividendEstimate, divisor); q = cast(int) (tmp & LONG_MASK); rem = cast(int) (tmp >>> 32); } quotient.value[intLen - xlen] = q; remLong = rem & LONG_MASK; } quotient.normalize(); // Unnormalize if (shift > 0) return rem % divisor; else return rem; } /** * Calculates the quotient of this div b and places the quotient in the * provided MutableBigInteger objects and the remainder object is returned. * */ MutableBigInteger divide(MutableBigInteger b, MutableBigInteger quotient) { return divide(b,quotient,true); } MutableBigInteger divide(MutableBigInteger b, MutableBigInteger quotient, bool needRemainder) { if (b.intLen < BigInteger.BURNIKEL_ZIEGLER_THRESHOLD || intLen - b.intLen < BigInteger.BURNIKEL_ZIEGLER_OFFSET) { return divideKnuth(b, quotient, needRemainder); } else { return divideAndRemainderBurnikelZiegler(b, quotient); } } /** * @see #divideKnuth(MutableBigInteger, MutableBigInteger, bool) */ MutableBigInteger divideKnuth(MutableBigInteger b, MutableBigInteger quotient) { return divideKnuth(b,quotient,true); } /** * Calculates the quotient of this div b and places the quotient in the * provided MutableBigInteger objects and the remainder object is returned. * * Uses Algorithm D in Knuth section 4.3.1. * Many optimizations to that algorithm have been adapted from the Colin * Plumb C library. * It special cases one word divisors for speed. The content of b is not * changed. * */ MutableBigInteger divideKnuth(MutableBigInteger b, MutableBigInteger quotient, bool needRemainder) { if (b.intLen == 0) throw new ArithmeticException("BigInteger divide by zero"); // Dividend is zero if (intLen == 0) { quotient.intLen = quotient.offset = 0; return needRemainder ? new MutableBigInteger() : null; } int cmp = compare(b); // Dividend less than divisor if (cmp < 0) { quotient.intLen = quotient.offset = 0; return needRemainder ? new MutableBigInteger(this) : null; } // Dividend equal to divisor if (cmp == 0) { quotient.value[0] = quotient.intLen = 1; quotient.offset = 0; return needRemainder ? new MutableBigInteger() : null; } quotient.clear(); // Special case one word divisor if (b.intLen == 1) { int r = divideOneWord(b.value[b.offset], quotient); if(needRemainder) { if (r == 0) return new MutableBigInteger(); return new MutableBigInteger(r); } else { return null; } } // Cancel common powers of two if we're above the KNUTH_POW2_* thresholds if (intLen >= KNUTH_POW2_THRESH_LEN) { int trailingZeroBits = std.algorithm.min(getLowestSetBit(), b.getLowestSetBit()); if (trailingZeroBits >= KNUTH_POW2_THRESH_ZEROS*32) { MutableBigInteger a = new MutableBigInteger(this); b = new MutableBigInteger(b); a.rightShift(trailingZeroBits); b.rightShift(trailingZeroBits); MutableBigInteger r = a.divideKnuth(b, quotient); r.leftShift(trailingZeroBits); return r; } } return divideMagnitude(b, quotient, needRemainder); } /** * Computes {@code this/b} and {@code this%b} using the * <a href="http://cr.yp.to/bib/1998/burnikel.ps"> Burnikel-Ziegler algorithm</a>. * This method implements algorithm 3 from pg. 9 of the Burnikel-Ziegler paper. * The parameter beta was chosen to b 2<sup>32</sup> so almost all shifts are * multiples of 32 bits.<br/> * {@code this} and {@code b} must be nonnegative. * @param b the divisor * @param quotient output parameter for {@code this/b} * @return the remainder */ MutableBigInteger divideAndRemainderBurnikelZiegler(MutableBigInteger b, MutableBigInteger quotient) { int r = intLen; int s = b.intLen; // Clear the quotient quotient.offset = quotient.intLen = 0; if (r < s) { return this; } else { // Unlike Knuth division, we don't check for common powers of two here because // BZ already runs faster if both numbers contain powers of two and cancelling them has no // additional benefit. // step 1: let m = min{2^k | (2^k)*BURNIKEL_ZIEGLER_THRESHOLD > s} int m = 1 << (32-Integer.numberOfLeadingZeros(s/BigInteger.BURNIKEL_ZIEGLER_THRESHOLD)); int j = (s+m-1) / m; // step 2a: j = ceil(s/m) int n = j * m; // step 2b: block length in 32-bit units long n32 = 32L * n; // block length in bits int sigma = cast(int) std.algorithm.max(0, n32 - b.bitLength()); // step 3: sigma = max{T | (2^T)*B < beta^n} MutableBigInteger bShifted = new MutableBigInteger(b); bShifted.safeLeftShift(sigma); // step 4a: shift b so its length is a multiple of n MutableBigInteger aShifted = new MutableBigInteger (this); aShifted.safeLeftShift(sigma); // step 4b: shift a by the same amount // step 5: t is the number of blocks needed to accommodate a plus one additional bit int t = cast(int) ((aShifted.bitLength()+n32) / n32); if (t < 2) { t = 2; } // step 6: conceptually split a into blocks a[t-1], ..., a[0] MutableBigInteger a1 = aShifted.getBlock(t-1, t, n); // the most significant block of a // step 7: z[t-2] = [a[t-1], a[t-2]] MutableBigInteger z = aShifted.getBlock(t-2, t, n); // the second to most significant block z.addDisjoint(a1, n); // z[t-2] // do schoolbook division on blocks, dividing 2-block numbers by 1-block numbers MutableBigInteger qi = new MutableBigInteger(); MutableBigInteger ri; for (int i=t-2; i > 0; i--) { // step 8a: compute (qi,ri) such that z=b*qi+ri ri = z.divide2n1n(bShifted, qi); // step 8b: z = [ri, a[i-1]] z = aShifted.getBlock(i-1, t, n); // a[i-1] z.addDisjoint(ri, n); quotient.addShifted(qi, i*n); // update q (part of step 9) } // final iteration of step 8: do the loop one more time for i=0 but leave z unchanged ri = z.divide2n1n(bShifted, qi); quotient.add(qi); ri.rightShift(sigma); // step 9: a and b were shifted, so shift back return ri; } } /** * This method implements algorithm 1 from pg. 4 of the Burnikel-Ziegler paper. * It divides a 2n-digit number by a n-digit number.<br/> * The parameter beta is 2<sup>32</sup> so all shifts are multiples of 32 bits. * <br/> * {@code this} must be a nonnegative number such that {@code this.bitLength() <= 2*b.bitLength()} * @param b a positive number such that {@code b.bitLength()} is even * @param quotient output parameter for {@code this/b} * @return {@code this%b} */ private MutableBigInteger divide2n1n(MutableBigInteger b, MutableBigInteger quotient) { int n = b.intLen; // step 1: base case if (n%2 != 0 || n < BigInteger.BURNIKEL_ZIEGLER_THRESHOLD) { return divideKnuth(b, quotient); } // step 2: view this as [a1,a2,a3,a4] where each ai is n/2 ints or less MutableBigInteger aUpper = new MutableBigInteger(this); aUpper.safeRightShift(32*(n/2)); // aUpper = [a1,a2,a3] keepLower(n/2); // this = a4 // step 3: q1=aUpper/b, r1=aUpper%b MutableBigInteger q1 = new MutableBigInteger(); MutableBigInteger r1 = aUpper.divide3n2n(b, q1); // step 4: quotient=[r1,this]/b, r2=[r1,this]%b addDisjoint(r1, n/2); // this = [r1,this] MutableBigInteger r2 = divide3n2n(b, quotient); // step 5: let quotient=[q1,quotient] and return r2 quotient.addDisjoint(q1, n/2); return r2; } /** * This method implements algorithm 2 from pg. 5 of the Burnikel-Ziegler paper. * It divides a 3n-digit number by a 2n-digit number.<br/> * The parameter beta is 2<sup>32</sup> so all shifts are multiples of 32 bits.<br/> * <br/> * {@code this} must be a nonnegative number such that {@code 2*this.bitLength() <= 3*b.bitLength()} * @param quotient output parameter for {@code this/b} * @return {@code this%b} */ private MutableBigInteger divide3n2n(MutableBigInteger b, MutableBigInteger quotient) { int n = b.intLen / 2; // half the length of b in ints // step 1: view this as [a1,a2,a3] where each ai is n ints or less; let a12=[a1,a2] MutableBigInteger a12 = new MutableBigInteger(this); a12.safeRightShift(32*n); // step 2: view b as [b1,b2] where each bi is n ints or less MutableBigInteger b1 = new MutableBigInteger(b); b1.safeRightShift(n * 32); BigInteger b2 = b.getLower(n); MutableBigInteger r; MutableBigInteger d; if (compareShifted(b, n) < 0) { // step 3a: if a1<b1, let quotient=a12/b1 and r=a12%b1 r = a12.divide2n1n(b1, quotient); // step 4: d=quotient*b2 d = new MutableBigInteger(quotient.toBigInteger().multiply(b2)); } else { // step 3b: if a1>=b1, let quotient=beta^n-1 and r=a12-b1*2^n+b1 quotient.ones(n); a12.add(b1); b1.leftShift(32*n); a12.subtract(b1); r = a12; // step 4: d=quotient*b2=(b2 << 32*n) - b2 d = new MutableBigInteger(b2); d.leftShift(32 * n); d.subtract(new MutableBigInteger(b2)); } // step 5: r = r*beta^n + a3 - d (paper says a4) // However, don't subtract d until after the while loop so r doesn't become negative r.leftShift(32 * n); r.addLower(this, n); // step 6: add b until r>=d while (r.compare(d) < 0) { r.add(b); quotient.subtract(MutableBigInteger.ONE); } r.subtract(d); return r; } /** * Returns a {@code MutableBigInteger} containing {@code blockLength} ints from * {@code this} number, starting at {@code index*blockLength}.<br/> * Used by Burnikel-Ziegler division. * @param index the block index * @param numBlocks the total number of blocks in {@code this} number * @param blockLength length of one block in units of 32 bits * @return */ private MutableBigInteger getBlock(int index, int numBlocks, int blockLength) { int blockStart = index * blockLength; if (blockStart >= intLen) { return new MutableBigInteger(); } int blockEnd; if (index == numBlocks-1) { blockEnd = intLen; } else { blockEnd = (index+1) * blockLength; } if (blockEnd > intLen) { return new MutableBigInteger(); } // int[] newVal = Arrays.copyOfRange(value, offset+intLen-blockEnd, offset+intLen-blockStart); int[] newVal = value[offset+intLen-blockEnd .. offset+intLen-blockStart]; return new MutableBigInteger(newVal); } /** @see BigInteger#bitLength() */ long bitLength() { if (intLen == 0) return 0; return intLen*32L - Integer.numberOfLeadingZeros(value[offset]); } /** * Internally used to calculate the quotient of this div v and places the * quotient in the provided MutableBigInteger object and the remainder is * returned. * * @return the remainder of the division will be returned. */ long divide(long v, MutableBigInteger quotient) { if (v == 0) throw new ArithmeticException("BigInteger divide by zero"); // Dividend is zero if (intLen == 0) { quotient.intLen = quotient.offset = 0; return 0; } if (v < 0) v = -v; int d = cast(int)(v >>> 32); quotient.clear(); // Special case on word divisor if (d == 0) return divideOneWord(cast(int)v, quotient) & LONG_MASK; else { return divideLongMagnitude(v, quotient).toLong(); } } private static void copyAndShift(int[] src, int srcFrom, int srcLen, int[] dst, int dstFrom, int shift) { int n2 = 32 - shift; int c=src[srcFrom]; for (int i=0; i < srcLen-1; i++) { int b = c; c = src[++srcFrom]; dst[dstFrom+i] = (b << shift) | (c >>> n2); } dst[dstFrom+srcLen-1] = c << shift; } /** * Divide this MutableBigInteger by the divisor. * The quotient will be placed into the provided quotient object & * the remainder object is returned. */ private MutableBigInteger divideMagnitude(MutableBigInteger div, MutableBigInteger quotient, bool needRemainder ) { // assert div.intLen > 1 // D1 normalize the divisor int shift = Integer.numberOfLeadingZeros(div.value[div.offset]); // Copy divisor value to protect divisor int dlen = div.intLen; int[] divisor; MutableBigInteger rem; // Remainder starts as dividend with space for a leading zero if (shift > 0) { divisor = new int[dlen]; copyAndShift(div.value,div.offset,dlen,divisor,0,shift); if (Integer.numberOfLeadingZeros(value[offset]) >= shift) { int[] remarr = new int[intLen + 1]; rem = new MutableBigInteger(remarr); rem.intLen = intLen; rem.offset = 1; copyAndShift(value,offset,intLen,remarr,1,shift); } else { int[] remarr = new int[intLen + 2]; rem = new MutableBigInteger(remarr); rem.intLen = intLen+1; rem.offset = 1; int rFrom = offset; int c=0; int n2 = 32 - shift; for (int i=1; i < intLen+1; i++,rFrom++) { int b = c; c = value[rFrom]; remarr[i] = (b << shift) | (c >>> n2); } remarr[intLen+1] = c << shift; } } else { // divisor = Arrays.copyOfRange(div.value, div.offset, div.offset + div.intLen); divisor = div.cloneValue(); rem = new MutableBigInteger(new int[intLen + 1]); // System.arraycopy(value, offset, rem.value, 1, intLen); rem.value[1 .. 1+intLen] = value[offset .. offset+intLen]; rem.intLen = intLen; rem.offset = 1; } int nlen = rem.intLen; // Set the quotient size int limit = nlen - dlen + 1; if (quotient.value.length < limit) { quotient.value = new int[limit]; quotient.offset = 0; } quotient.intLen = limit; int[] q = quotient.value; // Must insert leading 0 in rem if its length did not change if (rem.intLen == nlen) { rem.offset = 0; rem.value[0] = 0; rem.intLen++; } int dh = divisor[0]; long dhLong = dh & LONG_MASK; int dl = divisor[1]; // D2 Initialize j for (int j=0; j < limit-1; j++) { // D3 Calculate qhat // estimate qhat int qhat = 0; int qrem = 0; bool skipCorrection = false; int nh = rem.value[j+rem.offset]; int nh2 = nh + 0x80000000; int nm = rem.value[j+1+rem.offset]; if (nh == dh) { qhat = ~0; qrem = nh + nm; skipCorrection = qrem + 0x80000000 < nh2; } else { long nChunk = ((cast(long)nh) << 32) | (nm & LONG_MASK); if (nChunk >= 0) { qhat = cast(int) (nChunk / dhLong); qrem = cast(int) (nChunk - (qhat * dhLong)); } else { long tmp = divWord(nChunk, dh); qhat = cast(int) (tmp & LONG_MASK); qrem = cast(int) (tmp >>> 32); } } if (qhat == 0) continue; if (!skipCorrection) { // Correct qhat long nl = rem.value[j+2+rem.offset] & LONG_MASK; long rs = ((qrem & LONG_MASK) << 32) | nl; long estProduct = (dl & LONG_MASK) * (qhat & LONG_MASK); if (unsignedLongCompare(estProduct, rs)) { qhat--; qrem = cast(int)((qrem & LONG_MASK) + dhLong); if ((qrem & LONG_MASK) >= dhLong) { estProduct -= (dl & LONG_MASK); rs = ((qrem & LONG_MASK) << 32) | nl; if (unsignedLongCompare(estProduct, rs)) qhat--; } } } // D4 Multiply and subtract rem.value[j+rem.offset] = 0; int borrow = mulsub(rem.value, divisor, qhat, dlen, j+rem.offset); // D5 Test remainder if (borrow + 0x80000000 > nh2) { // D6 Add back divadd(divisor, rem.value, j+1+rem.offset); qhat--; } // Store the quotient digit q[j] = qhat; } // D7 loop on j // D3 Calculate qhat // estimate qhat int qhat = 0; int qrem = 0; bool skipCorrection = false; int nh = rem.value[limit - 1 + rem.offset]; int nh2 = nh + 0x80000000; int nm = rem.value[limit + rem.offset]; if (nh == dh) { qhat = ~0; qrem = nh + nm; skipCorrection = qrem + 0x80000000 < nh2; } else { long nChunk = ((cast(long) nh) << 32) | (nm & LONG_MASK); if (nChunk >= 0) { qhat = cast(int) (nChunk / dhLong); qrem = cast(int) (nChunk - (qhat * dhLong)); } else { long tmp = divWord(nChunk, dh); qhat = cast(int) (tmp & LONG_MASK); qrem = cast(int) (tmp >>> 32); } } if (qhat != 0) { if (!skipCorrection) { // Correct qhat long nl = rem.value[limit + 1 + rem.offset] & LONG_MASK; long rs = ((qrem & LONG_MASK) << 32) | nl; long estProduct = (dl & LONG_MASK) * (qhat & LONG_MASK); if (unsignedLongCompare(estProduct, rs)) { qhat--; qrem = cast(int) ((qrem & LONG_MASK) + dhLong); if ((qrem & LONG_MASK) >= dhLong) { estProduct -= (dl & LONG_MASK); rs = ((qrem & LONG_MASK) << 32) | nl; if (unsignedLongCompare(estProduct, rs)) qhat--; } } } // D4 Multiply and subtract int borrow; rem.value[limit - 1 + rem.offset] = 0; if(needRemainder) borrow = mulsub(rem.value, divisor, qhat, dlen, limit - 1 + rem.offset); else borrow = mulsubBorrow(rem.value, divisor, qhat, dlen, limit - 1 + rem.offset); // D5 Test remainder if (borrow + 0x80000000 > nh2) { // D6 Add back if(needRemainder) divadd(divisor, rem.value, limit - 1 + 1 + rem.offset); qhat--; } // Store the quotient digit q[(limit - 1)] = qhat; } if (needRemainder) { // D8 Unnormalize if (shift > 0) rem.rightShift(shift); rem.normalize(); } quotient.normalize(); return needRemainder ? rem : null; } /** * Divide this MutableBigInteger by the divisor represented by positive long * value. The quotient will be placed into the provided quotient object & * the remainder object is returned. */ private MutableBigInteger divideLongMagnitude(long ldivisor, MutableBigInteger quotient) { // Remainder starts as dividend with space for a leading zero MutableBigInteger rem = new MutableBigInteger(new int[intLen + 1]); // System.arraycopy(value, offset, rem.value, 1, intLen); rem.value[1 .. 1+intLen] = value[offset .. offset+intLen].dup; rem.intLen = intLen; rem.offset = 1; int nlen = rem.intLen; int limit = nlen - 2 + 1; if (quotient.value.length < limit) { quotient.value = new int[limit]; quotient.offset = 0; } quotient.intLen = limit; int[] q = quotient.value; // D1 normalize the divisor int shift = Long.numberOfLeadingZeros(ldivisor); if (shift > 0) { ldivisor<<=shift; rem.leftShift(shift); } // Must insert leading 0 in rem if its length did not change if (rem.intLen == nlen) { rem.offset = 0; rem.value[0] = 0; rem.intLen++; } int dh = cast(int)(ldivisor >>> 32); long dhLong = dh & LONG_MASK; int dl = cast(int)(ldivisor & LONG_MASK); // D2 Initialize j for (int j = 0; j < limit; j++) { // D3 Calculate qhat // estimate qhat int qhat = 0; int qrem = 0; bool skipCorrection = false; int nh = rem.value[j + rem.offset]; int nh2 = nh + 0x80000000; int nm = rem.value[j + 1 + rem.offset]; if (nh == dh) { qhat = ~0; qrem = nh + nm; skipCorrection = qrem + 0x80000000 < nh2; } else { long nChunk = ((cast(long) nh) << 32) | (nm & LONG_MASK); if (nChunk >= 0) { qhat = cast(int) (nChunk / dhLong); qrem = cast(int) (nChunk - (qhat * dhLong)); } else { long tmp = divWord(nChunk, dh); qhat = cast(int)(tmp & LONG_MASK); qrem = cast(int)(tmp>>>32); } } if (qhat == 0) continue; if (!skipCorrection) { // Correct qhat long nl = rem.value[j + 2 + rem.offset] & LONG_MASK; long rs = ((qrem & LONG_MASK) << 32) | nl; long estProduct = (dl & LONG_MASK) * (qhat & LONG_MASK); if (unsignedLongCompare(estProduct, rs)) { qhat--; qrem = cast(int) ((qrem & LONG_MASK) + dhLong); if ((qrem & LONG_MASK) >= dhLong) { estProduct -= (dl & LONG_MASK); rs = ((qrem & LONG_MASK) << 32) | nl; if (unsignedLongCompare(estProduct, rs)) qhat--; } } } // D4 Multiply and subtract rem.value[j + rem.offset] = 0; int borrow = mulsubLong(rem.value, dh, dl, qhat, j + rem.offset); // D5 Test remainder if (borrow + 0x80000000 > nh2) { // D6 Add back divaddLong(dh,dl, rem.value, j + 1 + rem.offset); qhat--; } // Store the quotient digit q[j] = qhat; } // D7 loop on j // D8 Unnormalize if (shift > 0) rem.rightShift(shift); quotient.normalize(); rem.normalize(); return rem; } /** * A primitive used for division by long. * Specialized version of the method divadd. * dh is a high part of the divisor, dl is a low part */ private int divaddLong(int dh, int dl, int[] result, int offset) { long carry = 0; long sum = (dl & LONG_MASK) + (result[1+offset] & LONG_MASK); result[1+offset] = cast(int)sum; sum = (dh & LONG_MASK) + (result[offset] & LONG_MASK) + carry; result[offset] = cast(int)sum; carry = sum >>> 32; return cast(int)carry; } /** * This method is used for division by long. * Specialized version of the method sulsub. * dh is a high part of the divisor, dl is a low part */ private int mulsubLong(int[] q, int dh, int dl, int x, int offset) { long xLong = x & LONG_MASK; offset += 2; long product = (dl & LONG_MASK) * xLong; long difference = q[offset] - product; q[offset--] = cast(int)difference; long carry = (product >>> 32) + (((difference & LONG_MASK) > (((~cast(int)product) & LONG_MASK))) ? 1:0); product = (dh & LONG_MASK) * xLong + carry; difference = q[offset] - product; q[offset--] = cast(int)difference; carry = (product >>> 32) + (((difference & LONG_MASK) > (((~cast(int)product) & LONG_MASK))) ? 1:0); return cast(int)carry; } /** * Compare two longs as if they were unsigned. * Returns true iff one is bigger than two. */ private bool unsignedLongCompare(long one, long two) { return (one+long.min) > (two+long.min); } /** * This method divides a long quantity by an int to estimate * qhat for two multi precision numbers. It is used when * the signed value of n is less than zero. * Returns long value where high 32 bits contain remainder value and * low 32 bits contain quotient value. */ static long divWord(long n, int d) { long dLong = d & LONG_MASK; long r; long q; if (dLong == 1) { q = cast(int)n; r = 0; return (r << 32) | (q & LONG_MASK); } // Approximate the quotient and remainder q = (n >>> 1) / (dLong >>> 1); r = n - q*dLong; // Correct the approximation while (r < 0) { r += dLong; q--; } while (r >= dLong) { r -= dLong; q++; } // n - q*dlong == r && 0 <= r <dLong, hence we're done. return (r << 32) | (q & LONG_MASK); } /** * Calculate the integer square root {@code floor(sqrt(this))} where * {@code sqrt(.)} denotes the mathematical square root. The contents of * {@code this} are <b>not</b> changed. The value of {@code this} is assumed * to be non-negative. * * @implNote The implementation is based on the material in Henry S. Warren, * Jr., <i>Hacker's Delight (2nd ed.)</i> (Addison Wesley, 2013), 279-282. * * @throws ArithmeticException if the value returned by {@code bitLength()} * overflows the range of {@code int}. * @return the integer square root of {@code this} */ MutableBigInteger sqrt() { // Special cases. if (this.isZero()) { return new MutableBigInteger(0); } else if (this.value.length == 1 && (this.value[0] & LONG_MASK) < 4) { // result is unity return ONE; } if (bitLength() <= 63) { // Initial estimate is the square root of the positive long value. long v = new BigInteger(this.value, 1).longValueExact(); long xk = cast(long)std.math.floor(std.math.sqrt(cast(float)v)); // Refine the estimate. do { long xk1 = (xk + v/xk)/2; // Terminate when non-decreasing. if (xk1 >= xk) { return new MutableBigInteger( [cast(int)(xk >>> 32), cast(int)(xk & LONG_MASK)] ); } xk = xk1; } while (true); } else { // Set up the initial estimate of the iteration. // Obtain the bitLength > 63. int bitLength = cast(int) this.bitLength(); if (bitLength != this.bitLength()) { throw new ArithmeticException("bitLength() integer overflow"); } // Determine an even valued right shift into positive long range. int shift = bitLength - 63; if (shift % 2 == 1) { shift++; } // Shift the value into positive long range. MutableBigInteger xk = new MutableBigInteger(this); xk.rightShift(shift); xk.normalize(); // Use the square root of the shifted value as an approximation. double d = new BigInteger(xk.value, 1).doubleValue(); BigInteger bi = BigInteger.valueOf(cast(long)std.math.ceil(std.math.sqrt(d))); xk = new MutableBigInteger(bi.mag); // Shift the approximate square root back into the original range. xk.leftShift(shift / 2); // Refine the estimate. MutableBigInteger xk1 = new MutableBigInteger(); do { // xk1 = (xk + n/xk)/2 this.divide(xk, xk1, false); xk1.add(xk); xk1.rightShift(1); // Terminate when non-decreasing. if (xk1.compare(xk) >= 0) { return xk; } // xk = xk1 xk.copyValue(xk1); xk1.reset(); } while (true); } } /** * Calculate GCD of this and b. This and b are changed by the computation. */ MutableBigInteger hybridGCD(MutableBigInteger b) { // Use Euclid's algorithm until the numbers are approximately the // same length, then use the binary GCD algorithm to find the GCD. MutableBigInteger a = this; MutableBigInteger q = new MutableBigInteger(); while (b.intLen != 0) { if (std.math.abs(a.intLen - b.intLen) < 2) return a.binaryGCD(b); MutableBigInteger r = a.divide(b, q); a = b; b = r; } return a; } /** * Calculate GCD of this and v. * Assumes that this and v are not zero. */ private MutableBigInteger binaryGCD(MutableBigInteger v) { // Algorithm B from Knuth section 4.5.2 MutableBigInteger u = this; MutableBigInteger r = new MutableBigInteger(); // step B1 int s1 = u.getLowestSetBit(); int s2 = v.getLowestSetBit(); int k = (s1 < s2) ? s1 : s2; if (k != 0) { u.rightShift(k); v.rightShift(k); } // step B2 bool uOdd = (k == s1); MutableBigInteger t = uOdd ? v: u; int tsign = uOdd ? -1 : 1; int lb; while ((lb = t.getLowestSetBit()) >= 0) { // steps B3 and B4 t.rightShift(lb); // step B5 if (tsign > 0) u = t; else v = t; // Special case one word numbers if (u.intLen < 2 && v.intLen < 2) { int x = u.value[u.offset]; int y = v.value[v.offset]; x = binaryGcd(x, y); r.value[0] = x; r.intLen = 1; r.offset = 0; if (k > 0) r.leftShift(k); return r; } // step B6 if ((tsign = u.difference(v)) == 0) break; t = (tsign >= 0) ? u : v; } if (k > 0) u.leftShift(k); return u; } /** * Calculate GCD of a and b interpreted as unsigned integers. */ static int binaryGcd(int a, int b) { if (b == 0) return a; if (a == 0) return b; // Right shift a & b till their last bits equal to 1. int aZeros = Integer.numberOfTrailingZeros(a); int bZeros = Integer.numberOfTrailingZeros(b); a >>>= aZeros; b >>>= bZeros; int t = (aZeros < bZeros ? aZeros : bZeros); while (a != b) { if ((a+0x80000000) > (b+0x80000000)) { // a > b as unsigned a -= b; a >>>= Integer.numberOfTrailingZeros(a); } else { b -= a; b >>>= Integer.numberOfTrailingZeros(b); } } return a<<t; } /** * Returns the modInverse of this mod p. This and p are not affected by * the operation. */ MutableBigInteger mutableModInverse(MutableBigInteger p) { // Modulus is odd, use Schroeppel's algorithm if (p.isOdd()) return modInverse(p); // Base and modulus are even, throw exception if (isEven()) throw new ArithmeticException("BigInteger not invertible."); // Get even part of modulus expressed as a power of 2 int powersOf2 = p.getLowestSetBit(); // Construct odd part of modulus MutableBigInteger oddMod = new MutableBigInteger(p); oddMod.rightShift(powersOf2); if (oddMod.isOne()) return modInverseMP2(powersOf2); // Calculate 1/a mod oddMod MutableBigInteger oddPart = modInverse(oddMod); // Calculate 1/a mod evenMod MutableBigInteger evenPart = modInverseMP2(powersOf2); // Combine the results using Chinese Remainder Theorem MutableBigInteger y1 = modInverseBP2(oddMod, powersOf2); MutableBigInteger y2 = oddMod.modInverseMP2(powersOf2); MutableBigInteger temp1 = new MutableBigInteger(); MutableBigInteger temp2 = new MutableBigInteger(); MutableBigInteger result = new MutableBigInteger(); oddPart.leftShift(powersOf2); oddPart.multiply(y1, result); evenPart.multiply(oddMod, temp1); temp1.multiply(y2, temp2); result.add(temp2); return result.divide(p, temp1); } /* * Calculate the multiplicative inverse of this mod 2^k. */ MutableBigInteger modInverseMP2(int k) { if (isEven()) throw new ArithmeticException("Non-invertible. (GCD != 1)"); if (k > 64) return euclidModInverse(k); int t = inverseMod32(value[offset+intLen-1]); if (k < 33) { t = (k == 32 ? t : t & ((1 << k) - 1)); return new MutableBigInteger(t); } long pLong = (value[offset+intLen-1] & LONG_MASK); if (intLen > 1) pLong |= (cast(long)value[offset+intLen-2] << 32); long tLong = t & LONG_MASK; tLong = tLong * (2 - pLong * tLong); // 1 more Newton iter step tLong = (k == 64 ? tLong : tLong & ((1L << k) - 1)); MutableBigInteger result = new MutableBigInteger(new int[2]); result.value[0] = cast(int)(tLong >>> 32); result.value[1] = cast(int)tLong; result.intLen = 2; result.normalize(); return result; } /** * Returns the multiplicative inverse of val mod 2^32. Assumes val is odd. */ static int inverseMod32(int val) { // Newton's iteration! int t = val; t *= 2 - val*t; t *= 2 - val*t; t *= 2 - val*t; t *= 2 - val*t; return t; } /** * Returns the multiplicative inverse of val mod 2^64. Assumes val is odd. */ static long inverseMod64(long val) { // Newton's iteration! long t = val; t *= 2 - val*t; t *= 2 - val*t; t *= 2 - val*t; t *= 2 - val*t; t *= 2 - val*t; assert(t * val == 1); return t; } /** * Calculate the multiplicative inverse of 2^k mod mod, where mod is odd. */ static MutableBigInteger modInverseBP2(MutableBigInteger mod, int k) { // Copy the mod to protect original return fixup(new MutableBigInteger(1), new MutableBigInteger(mod), k); } /** * Calculate the multiplicative inverse of this mod mod, where mod is odd. * This and mod are not changed by the calculation. * * This method implements an algorithm due to Richard Schroeppel, that uses * the same intermediate representation as Montgomery Reduction * ("Montgomery Form"). The algorithm is described in an unpublished * manuscript entitled "Fast Modular Reciprocals." */ private MutableBigInteger modInverse(MutableBigInteger mod) { MutableBigInteger p = new MutableBigInteger(mod); MutableBigInteger f = new MutableBigInteger(this); MutableBigInteger g = new MutableBigInteger(p); SignedMutableBigInteger c = new SignedMutableBigInteger(1); SignedMutableBigInteger d = new SignedMutableBigInteger(); MutableBigInteger temp = null; SignedMutableBigInteger sTemp = null; int k = 0; // Right shift f k times until odd, left shift d k times if (f.isEven()) { int trailingZeros = f.getLowestSetBit(); f.rightShift(trailingZeros); d.leftShift(trailingZeros); k = trailingZeros; } // The Almost Inverse Algorithm while (!f.isOne()) { // If gcd(f, g) != 1, number is not invertible modulo mod if (f.isZero()) throw new ArithmeticException("BigInteger not invertible."); // If f < g exchange f, g and c, d if (f.compare(g) < 0) { temp = f; f = g; g = temp; sTemp = d; d = c; c = sTemp; } // If f == g (mod 4) if (((f.value[f.offset + f.intLen - 1] ^ g.value[g.offset + g.intLen - 1]) & 3) == 0) { f.subtract(g); c.signedSubtract(d); } else { // If f != g (mod 4) f.add(g); c.signedAdd(d); } // Right shift f k times until odd, left shift d k times int trailingZeros = f.getLowestSetBit(); f.rightShift(trailingZeros); d.leftShift(trailingZeros); k += trailingZeros; } while (c.sign < 0) c.signedAdd(p); return fixup(c, p, k); } /** * The Fixup Algorithm * Calculates X such that X = C * 2^(-k) (mod P) * Assumes C<P and P is odd. */ static MutableBigInteger fixup(MutableBigInteger c, MutableBigInteger p, int k) { MutableBigInteger temp = new MutableBigInteger(); // Set r to the multiplicative inverse of p mod 2^32 int r = -inverseMod32(p.value[p.offset+p.intLen-1]); for (int i=0, numWords = k >> 5; i < numWords; i++) { // V = R * c (mod 2^j) int v = r * c.value[c.offset + c.intLen-1]; // c = c + (v * p) p.mul(v, temp); c.add(temp); // c = c / 2^j c.intLen--; } int numBits = k & 0x1f; if (numBits != 0) { // V = R * c (mod 2^j) int v = r * c.value[c.offset + c.intLen-1]; v &= ((1<<numBits) - 1); // c = c + (v * p) p.mul(v, temp); c.add(temp); // c = c / 2^j c.rightShift(numBits); } // In theory, c may be greater than p at this point (Very rare!) while (c.compare(p) >= 0) c.subtract(p); return c; } /** * Uses the extended Euclidean algorithm to compute the modInverse of base * mod a modulus that is a power of 2. The modulus is 2^k. */ MutableBigInteger euclidModInverse(int k) { MutableBigInteger b = new MutableBigInteger(1); b.leftShift(k); MutableBigInteger mod = new MutableBigInteger(b); MutableBigInteger a = new MutableBigInteger(this); MutableBigInteger q = new MutableBigInteger(); MutableBigInteger r = b.divide(a, q); MutableBigInteger swapper = b; // swap b & r b = r; r = swapper; MutableBigInteger t1 = new MutableBigInteger(q); MutableBigInteger t0 = new MutableBigInteger(1); MutableBigInteger temp = new MutableBigInteger(); while (!b.isOne()) { r = a.divide(b, q); if (r.intLen == 0) throw new ArithmeticException("BigInteger not invertible."); swapper = r; a = swapper; if (q.intLen == 1) t1.mul(q.value[q.offset], temp); else q.multiply(t1, temp); swapper = q; q = temp; temp = swapper; t0.add(q); if (a.isOne()) return t0; r = b.divide(a, q); if (r.intLen == 0) throw new ArithmeticException("BigInteger not invertible."); swapper = b; b = r; if (q.intLen == 1) t0.mul(q.value[q.offset], temp); else q.multiply(t0, temp); swapper = q; q = temp; temp = swapper; t1.add(q); } mod.subtract(t1); return mod; } } /** * A class used to represent multiprecision integers that makes efficient * use of allocated space by allowing a number to occupy only part of * an array so that the arrays do not have to be reallocated as often. * When performing an operation with many iterations the array used to * hold a number is only increased when necessary and does not have to * be the same size as the number it represents. A mutable number allows * calculations to occur on the same number without having to create * a new number for every step of the calculation as occurs with * BigIntegers. * * Note that SignedMutableBigIntegers only support signed addition and * subtraction. All other operations occur as with MutableBigIntegers. * * @see BigInteger * @author Michael McCloskey * @since 1.3 */ class SignedMutableBigInteger : MutableBigInteger { /** * The sign of this MutableBigInteger. */ int sign = 1; // Constructors /** * The default constructor. An empty MutableBigInteger is created with * a one word capacity. */ this() { super(); } /** * Construct a new MutableBigInteger with a magnitude specified by * the int val. */ this(int val) { super(val); } /** * Construct a new MutableBigInteger with a magnitude equal to the * specified MutableBigInteger. */ this(MutableBigInteger val) { super(val); } // Arithmetic Operations /** * Signed addition built upon unsigned add and subtract. */ void signedAdd(SignedMutableBigInteger addend) { if (sign == addend.sign) add(addend); else sign = sign * subtract(addend); } /** * Signed addition built upon unsigned add and subtract. */ void signedAdd(MutableBigInteger addend) { if (sign == 1) add(addend); else sign = sign * subtract(addend); } /** * Signed subtraction built upon unsigned add and subtract. */ void signedSubtract(SignedMutableBigInteger addend) { if (sign == addend.sign) sign = sign * subtract(addend); else add(addend); } /** * Signed subtraction built upon unsigned add and subtract. */ void signedSubtract(MutableBigInteger addend) { if (sign == 1) sign = sign * subtract(addend); else add(addend); if (intLen == 0) sign = 1; } /** * Print out the first intLen ints of this MutableBigInteger's value * array starting at offset. */ override string toString() { return this.toBigInteger(sign).toString(); } } /** * A simple bit sieve used for finding prime number candidates. Allows setting * and clearing of bits in a storage array. The size of the sieve is assumed to * be constant to reduce overhead. All the bits of a new bitSieve are zero, and * bits are removed from it by setting them. * * To reduce storage space and increase efficiency, no even numbers are * represented in the sieve (each bit in the sieve represents an odd number). * The relationship between the index of a bit and the number it represents is * given by * N = offset + (2*index + 1); * Where N is the integer represented by a bit in the sieve, offset is some * even integer offset indicating where the sieve begins, and index is the * index of a bit in the sieve array. * * @see BigInteger * @author Michael McCloskey * @since 1.3 */ class BitSieve { /** * Stores the bits in this bitSieve. */ private long[] bits; /** * Length is how many bits this sieve holds. */ private int length; /** * A small sieve used to filter out multiples of small primes in a search * sieve. */ private __gshared BitSieve smallSieve; shared static this() { smallSieve = new BitSieve(); } /** * Construct a "small sieve" with a base of 0. This constructor is * used internally to generate the set of "small primes" whose multiples * are excluded from sieves generated by the main (package private) * constructor, BitSieve(BigInteger base, int searchLen). The length * of the sieve generated by this constructor was chosen for performance; * it controls a tradeoff between how much time is spent constructing * other sieves, and how much time is wasted testing composite candidates * for primality. The length was chosen experimentally to yield good * performance. */ private this() { length = 150 * 64; bits = new long[(unitIndex(length - 1) + 1)]; // Mark 1 as composite set(0); int nextIndex = 1; int nextPrime = 3; // Find primes and remove their multiples from sieve do { sieveSingle(length, nextIndex + nextPrime, nextPrime); nextIndex = sieveSearch(length, nextIndex + 1); nextPrime = 2*nextIndex + 1; } while((nextIndex > 0) && (nextPrime < length)); } /** * Construct a bit sieve of searchLen bits used for finding prime number * candidates. The new sieve begins at the specified base, which must * be even. */ this(BigInteger base, int searchLen) { /* * Candidates are indicated by clear bits in the sieve. As a candidates * nonprimality is calculated, a bit is set in the sieve to eliminate * it. To reduce storage space and increase efficiency, no even numbers * are represented in the sieve (each bit in the sieve represents an * odd number). */ bits = new long[(unitIndex(searchLen-1) + 1)]; length = searchLen; int start = 0; int step = smallSieve.sieveSearch(smallSieve.length, start); int convertedStep = (step *2) + 1; // Construct the large sieve at an even offset specified by base MutableBigInteger b = new MutableBigInteger(base); MutableBigInteger q = new MutableBigInteger(); do { // Calculate base mod convertedStep start = b.divideOneWord(convertedStep, q); // Take each multiple of step out of sieve start = convertedStep - start; if (start%2 == 0) start += convertedStep; sieveSingle(searchLen, (start-1)/2, convertedStep); // Find next prime from small sieve step = smallSieve.sieveSearch(smallSieve.length, step+1); convertedStep = (step *2) + 1; } while (step > 0); } /** * Given a bit index return unit index containing it. */ private static int unitIndex(int bitIndex) { return bitIndex >>> 6; } /** * Return a unit that masks the specified bit in its unit. */ private static long bit(int bitIndex) { return 1L << (bitIndex & ((1<<6) - 1)); } /** * Get the value of the bit at the specified index. */ private bool get(int bitIndex) { int unitIndex = unitIndex(bitIndex); return ((bits[unitIndex] & bit(bitIndex)) != 0); } /** * Set the bit at the specified index. */ private void set(int bitIndex) { int unitIndex = unitIndex(bitIndex); bits[unitIndex] |= bit(bitIndex); } /** * This method returns the index of the first clear bit in the search * array that occurs at or after start. It will not search past the * specified limit. It returns -1 if there is no such clear bit. */ private int sieveSearch(int limit, int start) { if (start >= limit) return -1; int index = start; do { if (!get(index)) return index; index++; } while(index < limit-1); return -1; } /** * Sieve a single set of multiples out of the sieve. Begin to remove * multiples of the specified step starting at the specified start index, * up to the specified limit. */ private void sieveSingle(int limit, int start, int step) { while(start < limit) { set(start); start += step; } } /** * Test probable primes in the sieve and return successful candidates. */ BigInteger retrieve(BigInteger initValue, int certainty, Random* random) { // Examine the sieve one long at a time to find possible primes int offset = 1; for (int i=0; i<bits.length; i++) { long nextLong = ~bits[i]; for (int j=0; j<64; j++) { if ((nextLong & 1) == 1) { BigInteger candidate = initValue.add( BigInteger.valueOf(offset)); if (candidate.primeToCertainty(certainty, random)) return candidate; } nextLong >>>= 1; offset+=2; } } return null; } }
D
/* Copyright (c) 2011-2023 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. */ /** * Generic image interface and its implementations for integer pixel formats * * Copyright: Timur Gafarov 2011-2023. * License: $(LINK2 boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Timur Gafarov */ module dlib.image.image; import std.stdio; import std.math; import std.conv; import std.range; import dlib.core.memory; import dlib.math.vector; import dlib.math.interpolation; import dlib.image.color; /// sRGBa integer pixel formats, 8 and 16 bits per channel enum IntegerPixelFormat: uint { L8 = 0, LA8 = 1, RGB8 = 2, RGBA8 = 3, L16 = 4, LA16 = 5, RGB16 = 6, RGBA16 = 7 } /** * Abstract image interface */ interface SuperImage: Freeable { /** * Image width in pixels */ @property uint width(); /** * Image height in pixels */ @property uint height(); /** * Bits per channel */ @property uint bitDepth(); /** * Number of channels */ @property uint channels(); /** * Bytes per pixel */ @property uint pixelSize(); /** * This is compatible with IntegerPixelFormat and other internal format enums in dlib. * Values from 0 to 255 are reserved for dlib. * Values 256 and above are application-specific and can be used for custom SuperImage implementations */ @property uint pixelFormat(); /** * Returns raw buffer of image data in scan order. * Pixel layout is specified by pixelFormat */ @property ubyte[] data(); /** * Pixel access operator. * Should always return floating-point sRGBa or linear RGBa, * depending on format family (IntegerPixelFormat or FloatPixelFormat) */ Color4f opIndex(int x, int y); /** * Pixel assignment operator. * Accepts floating-point sRGBa or linear RGBa, * depending on format family (IntegerPixelFormat or FloatPixelFormat) */ Color4f opIndexAssign(Color4f c, int x, int y); /** * Makes a copy of the image */ @property SuperImage dup(); /** * Makes a blank image of the same format */ SuperImage createSameFormat(uint w, uint h); /** * Range of x pixel indices */ final @property auto row() { return iota(0, width); } /** * Range of y pixel indices */ final @property auto col() { return iota(0, height); } /** * Enumerates all pixels of the image in scan order */ final int opApply(scope int delegate(ref Color4f p, uint x, uint y) dg) { int result = 0; foreach(uint y; col) { foreach(uint x; row) { Color4f col = opIndex(x, y); result = dg(col, x, y); opIndexAssign(col, x, y); if (result) break; } if (result) break; } return result; } } /** * SuperImage implementation template for integer pixel formats */ class Image(IntegerPixelFormat fmt): SuperImage { public: override @property uint width() { return _width; } override @property uint height() { return _height; } override @property uint bitDepth() { return _bitDepth; } override @property uint channels() { return _channels; } override @property uint pixelSize() { return _pixelSize; } override @property uint pixelFormat() { return fmt; } override @property ubyte[] data() { return _data; } override @property SuperImage dup() { auto res = new Image!(fmt)(_width, _height); res.data[] = data[]; return res; } override SuperImage createSameFormat(uint w, uint h) { return new Image!(fmt)(w, h); } this(uint w, uint h) { _width = w; _height = h; _bitDepth = [ IntegerPixelFormat.L8: 8, IntegerPixelFormat.LA8: 8, IntegerPixelFormat.RGB8: 8, IntegerPixelFormat.RGBA8: 8, IntegerPixelFormat.L16: 16, IntegerPixelFormat.LA16: 16, IntegerPixelFormat.RGB16: 16, IntegerPixelFormat.RGBA16: 16 ][fmt]; _channels = [ IntegerPixelFormat.L8: 1, IntegerPixelFormat.LA8: 2, IntegerPixelFormat.RGB8: 3, IntegerPixelFormat.RGBA8: 4, IntegerPixelFormat.L16: 1, IntegerPixelFormat.LA16: 2, IntegerPixelFormat.RGB16: 3, IntegerPixelFormat.RGBA16: 4 ][fmt]; _pixelSize = (_bitDepth / 8) * _channels; enum maxDimension = int.max; if (w > maxDimension) { writeln("Image data is not allocated. Exceeded maximum image width ", maxDimension); return; } if (h > maxDimension) { writeln("Image data is not allocated. Exceeded maximum image height ", maxDimension); return; } allocateData(); } protected void allocateData() { size_t size = cast(size_t)_width * cast(size_t)_height * cast(size_t)_pixelSize; _data = new ubyte[size]; } public Color4 getPixel(int x, int y) { ubyte[] pixData = data(); if (x >= width) x = width-1; else if (x < 0) x = 0; if (y >= height) y = height-1; else if (y < 0) y = 0; size_t index = (cast(size_t)y * cast(size_t)_width + cast(size_t)x) * cast(size_t)_pixelSize; auto maxv = (2 ^^ bitDepth) - 1; static if (fmt == IntegerPixelFormat.L8) { auto v = pixData[index]; return Color4(v, v, v); } else if (fmt == IntegerPixelFormat.LA8) { auto v = pixData[index]; return Color4(v, v, v, pixData[index+1]); } else if (fmt == IntegerPixelFormat.RGB8) { return Color4(pixData[index], pixData[index+1], pixData[index+2], cast(ubyte)maxv); } else if (fmt == IntegerPixelFormat.RGBA8) { return Color4(pixData[index], pixData[index+1], pixData[index+2], pixData[index+3]); } else if (fmt == IntegerPixelFormat.L16) { ushort v = pixData[index] << 8 | pixData[index+1]; return Color4(v, v, v); } else if (fmt == IntegerPixelFormat.LA16) { ushort v = pixData[index] << 8 | pixData[index+1]; ushort a = pixData[index+2] << 8 | pixData[index+3]; return Color4(v, v, v, a); } else if (fmt == IntegerPixelFormat.RGB16) { ushort r = pixData[index] << 8 | pixData[index+1]; ushort g = pixData[index+2] << 8 | pixData[index+3]; ushort b = pixData[index+4] << 8 | pixData[index+5]; ushort a = cast(ushort)maxv; return Color4(r, g, b, a); } else if (fmt == IntegerPixelFormat.RGBA16) { ushort r = pixData[index] << 8 | pixData[index+1]; ushort g = pixData[index+2] << 8 | pixData[index+3]; ushort b = pixData[index+4] << 8 | pixData[index+5]; ushort a = pixData[index+6] << 8 | pixData[index+7]; return Color4(r, g, b, a); } else { assert (0, "Image.opIndex is not implemented for IntegerPixelFormat." ~ to!string(fmt)); } } public Color4 setPixel(Color4 c, int x, int y) { ubyte[] pixData = data(); if (x >= width || y >= height || x < 0 || y < 0) return c; size_t index = (cast(size_t)y * cast(size_t)_width + cast(size_t)x) * cast(size_t)_pixelSize; static if (fmt == IntegerPixelFormat.L8) { pixData[index] = cast(ubyte)c.r; } else if (fmt == IntegerPixelFormat.LA8) { pixData[index] = cast(ubyte)c.r; pixData[index+1] = cast(ubyte)c.a; } else if (fmt == IntegerPixelFormat.RGB8) { pixData[index] = cast(ubyte)c.r; pixData[index+1] = cast(ubyte)c.g; pixData[index+2] = cast(ubyte)c.b; } else if (fmt == IntegerPixelFormat.RGBA8) { pixData[index] = cast(ubyte)c.r; pixData[index+1] = cast(ubyte)c.g; pixData[index+2] = cast(ubyte)c.b; pixData[index+3] = cast(ubyte)c.a; } else if (fmt == IntegerPixelFormat.L16) { pixData[index] = cast(ubyte)(c.r >> 8); pixData[index+1] = cast(ubyte)(c.r & 0xFF); } else if (fmt == IntegerPixelFormat.LA16) { pixData[index] = cast(ubyte)(c.r >> 8); pixData[index+1] = cast(ubyte)(c.r & 0xFF); pixData[index+2] = cast(ubyte)(c.a >> 8); pixData[index+3] = cast(ubyte)(c.a & 0xFF); } else if (fmt == IntegerPixelFormat.RGB16) { pixData[index] = cast(ubyte)(c.r >> 8); pixData[index+1] = cast(ubyte)(c.r & 0xFF); pixData[index+2] = cast(ubyte)(c.g >> 8); pixData[index+3] = cast(ubyte)(c.g & 0xFF); pixData[index+4] = cast(ubyte)(c.b >> 8); pixData[index+5] = cast(ubyte)(c.b & 0xFF); } else if (fmt == IntegerPixelFormat.RGBA16) { pixData[index] = cast(ubyte)(c.r >> 8); pixData[index+1] = cast(ubyte)(c.r & 0xFF); pixData[index+2] = cast(ubyte)(c.g >> 8); pixData[index+3] = cast(ubyte)(c.g & 0xFF); pixData[index+4] = cast(ubyte)(c.b >> 8); pixData[index+5] = cast(ubyte)(c.b & 0xFF); pixData[index+6] = cast(ubyte)(c.a >> 8); pixData[index+7] = cast(ubyte)(c.a & 0xFF); } else { assert (0, "Image.opIndexAssign is not implemented for IntegerPixelFormat." ~ to!string(fmt)); } return c; } override Color4f opIndex(int x, int y) { return Color4f(getPixel(x, y), _bitDepth); } override Color4f opIndexAssign(Color4f c, int x, int y) { setPixel(c.convert(_bitDepth), x, y); return c; } void free() { // Do nothing, let GC delete the object } protected: uint _width; uint _height; uint _bitDepth; uint _channels; uint _pixelSize; ubyte[] _data; } /// Specialization of Image for 8-bit luminance pixel format alias ImageL8 = Image!(IntegerPixelFormat.L8); /// Specialization of Image for 8-bit luminance-alpha pixel format alias ImageLA8 = Image!(IntegerPixelFormat.LA8); /// Specialization of Image for 8-bit RGB pixel format alias ImageRGB8 = Image!(IntegerPixelFormat.RGB8); /// Specialization of Image for 8-bit RGBA pixel format alias ImageRGBA8 = Image!(IntegerPixelFormat.RGBA8); /// Specialization of Image for 16-bit luminance pixel format alias ImageL16 = Image!(IntegerPixelFormat.L16); /// Specialization of Image for 16-bit luminance-alpha pixel format alias ImageLA16 = Image!(IntegerPixelFormat.LA16); /// Specialization of Image for 16-bit RGB pixel format alias ImageRGB16 = Image!(IntegerPixelFormat.RGB16); /// Specialization of Image for 16-bit RGBA pixel format alias ImageRGBA16 = Image!(IntegerPixelFormat.RGBA16); /** * All-in-one image factory interface */ interface SuperImageFactory { SuperImage createImage(uint w, uint h, uint channels, uint bitDepth, uint numFrames = 1); } /** * All-in-one image factory class */ class ImageFactory: SuperImageFactory { SuperImage createImage(uint w, uint h, uint channels, uint bitDepth, uint numFrames = 1) { return image(w, h, channels, bitDepth); } } private SuperImageFactory _defaultImageFactory; /** * Get default image factory singleton */ SuperImageFactory defaultImageFactory() { if (!_defaultImageFactory) _defaultImageFactory = new ImageFactory(); return _defaultImageFactory; } /// Create an image with specified parameters SuperImage image(uint w, uint h, uint channels = 3, uint bitDepth = 8) in { assert(channels > 0 && channels <= 4); assert(bitDepth == 8 || bitDepth == 16); } do { switch(channels) { case 1: { if (bitDepth == 8) return new ImageL8(w, h); else return new ImageL16(w, h); } case 2: { if (bitDepth == 8) return new ImageLA8(w, h); else return new ImageLA16(w, h); } case 3: { if (bitDepth == 8) return new ImageRGB8(w, h); else return new ImageRGB16(w, h); } case 4: { if (bitDepth == 8) return new ImageRGBA8(w, h); else return new ImageRGBA16(w, h); } default: assert(0); } } /// Convert image to specified pixel format T convert(T)(SuperImage img) { auto res = new T(img.width, img.height); foreach(x; 0..img.width) foreach(y; 0..img.height) res[x, y] = img[x, y]; return res; } /// Get interpolated pixel value from an image Color4f bilinearPixel(SuperImage img, float x, float y) { real intX; real fracX = modf(x, intX); real intY; real fracY = modf(y, intY); Color4f c1 = img[cast(int)intX, cast(int)intY]; Color4f c2 = img[cast(int)(intX + 1.0f), cast(int)intY]; Color4f c3 = img[cast(int)(intX + 1.0f), cast(int)(intY + 1.0f)]; Color4f c4 = img[cast(int)intX, cast(int)(intY + 1.0f)]; Color4f ic1 = lerp(c1, c2, fracX); Color4f ic2 = lerp(c4, c3, fracX); Color4f ic3 = lerp(ic1, ic2, fracY); return ic3; } /** * Rectangular region of an image that can be iterated with foreach */ struct ImageRegion { SuperImage img; uint xstart; uint ystart; uint width; uint height; final int opApply(scope int delegate(ref Color4f p, uint x, uint y) dg) { int result = 0; uint x1, y1; foreach(uint y; 0..height) { y1 = ystart + y; foreach(uint x; 0..width) { x1 = xstart + x; Color4f col = img[x1, y1]; result = dg(col, x, y); img[x1, y1] = col; if (result) break; } if (result) break; } return result; } } /// ImageRegion factory function ImageRegion region(SuperImage img, uint x, uint y, uint width, uint height) { return ImageRegion(img, x, y, width, height); } /** An InputRange of windows (regions around pixels) of an image that can be iterated with foreach */ struct ImageWindowRange { SuperImage img; uint width; uint height; private uint halfWidth; private uint halfHeight; private uint wx = 0; private uint wy = 0; this(SuperImage img, uint w, uint h) { this.img = img; this.width = w; this.height = h; this.halfWidth = this.width / 2; this.halfHeight = this.height / 2; } final int opApply(scope int delegate(ImageRegion w, uint x, uint y) dg) { int result = 0; foreach(uint y; img.col) { uint ystart = y - halfWidth; foreach(uint x; img.row) { uint xstart = x - halfHeight; auto window = region(img, xstart, ystart, width, height); result = dg(window, x, y); if (result) break; } if (result) break; } return result; } bool empty = false; void popFront() { wx++; if (wx == img.width) { wx = 0; wy++; if (wy == img.height) { wy = 0; empty = true; } } } @property ImageRegion front() { return region(img, wx - halfWidth, wy - halfHeight, width, height); } } /** ImageWindowRange factory function Examples: --- // Convolution with emboss kernel float[3][3] kernel = [ [-1, -1, 0], [-1, 0, 1], [ 0, 1, 1], ]; foreach(window, x, y; inputImage.windows(3, 3)) { Color4f sum = Color4f(0, 0, 0); foreach(ref Color4f pixel, x, y; window) sum += pixel * kernel[y][x]; outputImage[x, y] = sum / 4.0f + 0.5f; } --- */ ImageWindowRange windows(SuperImage img, uint width, uint height) { return ImageWindowRange(img, width, height); }
D
/Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Unbox.build/Objects-normal/x86_64/Typealiases.o : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathNode.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxCompatible.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableRawType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPath.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableByTransform.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableEnum.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableCollection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxCollectionElementTransformer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxContainer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxArrayContainer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxFormatter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathError.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxError.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Typealiases.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableWithContext.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int32+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt32+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int64+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt64+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/URL+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Data+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Sequence+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Double+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/String+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Decimal+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Optional+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Bool+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/JSONSerialization+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/DateFormatter+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Float+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/CGFloat+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Set+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Array+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/NSArray+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Dictionary+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/NSDictionary+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableKey.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/Unbox/Unbox-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Unbox.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/Unbox.build/Objects-normal/x86_64/Typealiases~partial.swiftmodule : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathNode.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxCompatible.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableRawType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPath.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableByTransform.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableEnum.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableCollection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxCollectionElementTransformer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxContainer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxArrayContainer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxFormatter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathError.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxError.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Typealiases.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableWithContext.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int32+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt32+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int64+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt64+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/URL+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Data+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Sequence+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Double+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/String+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Decimal+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Optional+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Bool+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/JSONSerialization+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/DateFormatter+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Float+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/CGFloat+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Set+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Array+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/NSArray+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Dictionary+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/NSDictionary+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableKey.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/Unbox/Unbox-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Unbox.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/Unbox.build/Objects-normal/x86_64/Typealiases~partial.swiftdoc : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathNode.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxCompatible.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableRawType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPath.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableByTransform.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableEnum.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableCollection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxCollectionElementTransformer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxContainer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxArrayContainer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxFormatter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathError.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxError.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Typealiases.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableWithContext.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int32+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt32+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int64+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt64+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/URL+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Data+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Sequence+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Double+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/String+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Decimal+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Optional+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Bool+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/JSONSerialization+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/DateFormatter+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Float+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/CGFloat+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Set+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Int+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UInt+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Array+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/NSArray+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Dictionary+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/NSDictionary+Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unbox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxableKey.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/Unbox/Unbox-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Unbox.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
struct struct_tag {} enum enum_tag; struct A { // types or values can be used as User Defined Attributes (UDA) int not_tagged; @struct_tag int tagged; @("value_tag") int also_tagged; @enum_tag int another_tagged; } void main() { // import anything, anywhere import std.stdio; // stanard libraries introspection utilites import std.traits; // unrolled for every value static foreach(member; A.tupleof) { static if(hasUDA!(member, struct_tag)) { member.stringof.writeln; } } }
D
/Users/xiaohongwei/projects/for_offer/target/debug/deps/lazy_static-2e637c6baaf04a69.rmeta: /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/lib.rs /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/inline_lazy.rs /Users/xiaohongwei/projects/for_offer/target/debug/deps/liblazy_static-2e637c6baaf04a69.rlib: /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/lib.rs /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/inline_lazy.rs /Users/xiaohongwei/projects/for_offer/target/debug/deps/lazy_static-2e637c6baaf04a69.d: /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/lib.rs /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/inline_lazy.rs /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/lib.rs: /Users/xiaohongwei/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.4.0/src/inline_lazy.rs:
D
document giving the tax collector information about the taxpayer's tax liability a coming to or returning home the occurrence of a change in direction back in the opposite direction getting something back again the act of going back to a prior location the income or profit arising from such transactions as the sale of land or other property happening again (especially at regular intervals a quick reply to a question or remark (especially a witty or critical one the key on electric typewriters or computer keyboards that causes a carriage return and a line feed a reciprocal group action a tennis stroke that sends the ball back to the other player (American football) the act of running back the ball after a kickoff or punt or interception or fumble the act of someone appearing again go or come back to place, condition, or activity where one has been before give back go back to a previous state go back to something earlier bring back to the point of departure return in kind make a return answer back be restored pay back pass down elect again be inherited by return to a previous position give or supply submit (a report, etc.) to someone in authority
D
module gfm.opengl.shader; import std.string, std.conv, std.experimental.logger; import bindbc.opengl; import gfm.opengl.opengl; /// OpenGL Shader wrapper. final class GLShader { public { /// Creates a shader devoid of source code. /// Throws: $(D OpenGLException) on error. this(GLenum shaderType) { _shader = glCreateShader(shaderType); if (_shader == 0) throw new OpenGLException("glCreateShader failed"); _initialized = true; } /// Creates a shader with source code and compiles it. /// Throws: $(D OpenGLException) on error. this(GLenum shaderType, string[] lines) { this(shaderType); try { load(lines); compile(); } catch(Exception e) { glDeleteShader(_shader); _initialized = false; throw e; } } /// Releases the OpenGL shader resource. ~this() { if (_initialized) { debug ensureNotInGC("GLShader"); glDeleteShader(_shader); _initialized = false; } } /// Load source code for this shader. /// Throws: $(D OpenGLException) on error. void load(string[] lines) { size_t lineCount = lines.length; auto lengths = new GLint[lineCount]; auto addresses = new immutable(GLchar)*[lineCount]; auto localLines = new string[lineCount]; for (size_t i = 0; i < lineCount; ++i) { localLines[i] = lines[i] ~ "\n"; lengths[i] = cast(GLint)(localLines[i].length); addresses[i] = localLines[i].ptr; } glShaderSource(_shader, cast(GLint)lineCount, cast(const(char)**)addresses.ptr, cast(const(int)*)(lengths.ptr)); runtimeCheck(); } /// Compile this OpenGL shader. /// Throws: $(D OpenGLException) on compilation error. void compile() { glCompileShader(_shader); runtimeCheck(); // print info log const(char)[] infoLog = getInfoLog(); if (infoLog != null && _logger) _logger.info(infoLog); GLint compiled; glGetShaderiv(_shader, GL_COMPILE_STATUS, &compiled); if (compiled != GL_TRUE) throw new OpenGLException("shader did not compile"); } /// Gets the compiling report. /// Returns: Log output of the GLSL compiler. Can return null! /// Throws: $(D OpenGLException) on error. const(char)[] getInfoLog() { GLint logLength; glGetShaderiv(_shader, GL_INFO_LOG_LENGTH, &logLength); if (logLength <= 0) // "If shader has no information log, a value of 0 is returned." return null; char[] log = new char[logLength]; GLint dummy; glGetShaderInfoLog(_shader, logLength, &dummy, log.ptr); runtimeCheck(); return fromStringz(log.ptr); } /// Sets a logger for the program. That allows additional output /// besides error reporting. void logger(Logger l) pure nothrow { _logger = l; } } package { GLuint _shader; } private { Logger _logger; bool _initialized; } }
D
/** * Implement CTFE for intrinsic (builtin) functions. * * Currently includes functions from `std.math`, `core.math` and `core.bitop`. * * Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 https://www.digitalmars.com, Walter Bright) * License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/builtin.d, _builtin.d) * Documentation: https://dlang.org/phobos/dmd_builtin.html * Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/builtin.d */ module dmd.builtin; import core.stdc.math; import core.stdc.string; import dmd.arraytypes; import dmd.astenums; import dmd.dmangle; import dmd.errors; import dmd.expression; import dmd.func; import dmd.globals; import dmd.mtype; import dmd.root.ctfloat; import dmd.root.stringtable; import dmd.tokens; import dmd.id; static import core.bitop; /********************************** * Determine if function is a builtin one that we can * evaluate at compile time. */ public extern (C++) BUILTIN isBuiltin(FuncDeclaration fd) { if (fd.builtin == BUILTIN.unknown) { fd.builtin = determine_builtin(fd); } return fd.builtin; } /************************************** * Evaluate builtin function. * Return result; NULL if cannot evaluate it. */ public extern (C++) Expression eval_builtin(const ref Loc loc, FuncDeclaration fd, Expressions* arguments) { if (fd.builtin == BUILTIN.unimp) return null; switch (fd.builtin) { foreach(e; __traits(allMembers, BUILTIN)) { static if (e == "unknown") case BUILTIN.unknown: assert(false); else mixin("case BUILTIN."~e~": return eval_"~e~"(loc, fd, arguments);"); } default: assert(0); } } private: /** * Handler for evaluating builtins during CTFE. * * Params: * loc = The call location, for error reporting. * fd = The callee declaration, e.g. to disambiguate between different overloads * in a single handler (LDC). * arguments = The function call arguments. * Returns: * An Expression containing the return value of the call. */ BUILTIN determine_builtin(FuncDeclaration func) { auto fd = func.toAliasFunc(); if (fd.isDeprecated()) return BUILTIN.unimp; auto m = fd.getModule(); if (!m || !m.md) return BUILTIN.unimp; const md = m.md; // Look for core.math, core.bitop, std.math, and std.math.<package> const id2 = (md.packages.length == 2) ? md.packages[1] : md.id; if (id2 != Id.math && id2 != Id.bitop) return BUILTIN.unimp; if (md.packages.length != 1 && !(md.packages.length == 2 && id2 == Id.math)) return BUILTIN.unimp; const id1 = md.packages[0]; if (id1 != Id.core && id1 != Id.std) return BUILTIN.unimp; const id3 = fd.ident; if (id1 == Id.core && id2 == Id.bitop) { if (id3 == Id.bsf) return BUILTIN.bsf; if (id3 == Id.bsr) return BUILTIN.bsr; if (id3 == Id.bswap) return BUILTIN.bswap; if (id3 == Id._popcnt) return BUILTIN.popcnt; return BUILTIN.unimp; } // Math if (id3 == Id.sin) return BUILTIN.sin; if (id3 == Id.cos) return BUILTIN.cos; if (id3 == Id.tan) return BUILTIN.tan; if (id3 == Id.atan2) return BUILTIN.unimp; // N.B unimplmeneted if (id3 == Id._sqrt) return BUILTIN.sqrt; if (id3 == Id.fabs) return BUILTIN.fabs; if (id3 == Id.exp) return BUILTIN.exp; if (id3 == Id.expm1) return BUILTIN.expm1; if (id3 == Id.exp2) return BUILTIN.exp2; if (id3 == Id.yl2x) return CTFloat.yl2x_supported ? BUILTIN.yl2x : BUILTIN.unimp; if (id3 == Id.yl2xp1) return CTFloat.yl2xp1_supported ? BUILTIN.yl2xp1 : BUILTIN.unimp; if (id3 == Id.log) return BUILTIN.log; if (id3 == Id.log2) return BUILTIN.log2; if (id3 == Id.log10) return BUILTIN.log10; if (id3 == Id.ldexp) return BUILTIN.ldexp; if (id3 == Id.round) return BUILTIN.round; if (id3 == Id.floor) return BUILTIN.floor; if (id3 == Id.ceil) return BUILTIN.ceil; if (id3 == Id.trunc) return BUILTIN.trunc; if (id3 == Id.fmin) return BUILTIN.fmin; if (id3 == Id.fmax) return BUILTIN.fmax; if (id3 == Id.fma) return BUILTIN.fma; if (id3 == Id.copysign) return BUILTIN.copysign; if (id3 == Id.isnan) return BUILTIN.isnan; if (id3 == Id.isInfinity) return BUILTIN.isinfinity; if (id3 == Id.isfinite) return BUILTIN.isfinite; // Only match pow(fp,fp) where fp is a floating point type if (id3 == Id._pow) { if ((*fd.parameters)[0].type.isfloating() && (*fd.parameters)[1].type.isfloating()) return BUILTIN.pow; return BUILTIN.unimp; } if (id3 != Id.toPrec) return BUILTIN.unimp; const(char)* me = mangleExact(fd); final switch (me["_D4core4math__T6toPrecHT".length]) { case 'd': return BUILTIN.toPrecDouble; case 'e': return BUILTIN.toPrecReal; case 'f': return BUILTIN.toPrecFloat; } } Expression eval_unimp(Loc loc, FuncDeclaration fd, Expressions* arguments) { return null; } Expression eval_sin(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.sin(arg0.toReal()), arg0.type); } Expression eval_cos(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.cos(arg0.toReal()), arg0.type); } Expression eval_tan(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.tan(arg0.toReal()), arg0.type); } Expression eval_sqrt(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.sqrt(arg0.toReal()), arg0.type); } Expression eval_fabs(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.fabs(arg0.toReal()), arg0.type); } Expression eval_ldexp(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.int64); return new RealExp(loc, CTFloat.ldexp(arg0.toReal(), cast(int) arg1.toInteger()), arg0.type); } Expression eval_log(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.log(arg0.toReal()), arg0.type); } Expression eval_log2(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.log2(arg0.toReal()), arg0.type); } Expression eval_log10(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.log10(arg0.toReal()), arg0.type); } Expression eval_exp(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.exp(arg0.toReal()), arg0.type); } Expression eval_expm1(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.expm1(arg0.toReal()), arg0.type); } Expression eval_exp2(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.exp2(arg0.toReal()), arg0.type); } Expression eval_round(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.round(arg0.toReal()), arg0.type); } Expression eval_floor(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.floor(arg0.toReal()), arg0.type); } Expression eval_ceil(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.ceil(arg0.toReal()), arg0.type); } Expression eval_trunc(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return new RealExp(loc, CTFloat.trunc(arg0.toReal()), arg0.type); } Expression eval_copysign(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); return new RealExp(loc, CTFloat.copysign(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_pow(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); return new RealExp(loc, CTFloat.pow(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_fmin(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); return new RealExp(loc, CTFloat.fmin(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_fmax(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); return new RealExp(loc, CTFloat.fmax(arg0.toReal(), arg1.toReal()), arg0.type); } Expression eval_fma(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); Expression arg2 = (*arguments)[2]; assert(arg2.op == EXP.float64); return new RealExp(loc, CTFloat.fma(arg0.toReal(), arg1.toReal(), arg2.toReal()), arg0.type); } Expression eval_isnan(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return IntegerExp.createBool(CTFloat.isNaN(arg0.toReal())); } Expression eval_isinfinity(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); return IntegerExp.createBool(CTFloat.isInfinity(arg0.toReal())); } Expression eval_isfinite(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); const value = !CTFloat.isNaN(arg0.toReal()) && !CTFloat.isInfinity(arg0.toReal()); return IntegerExp.createBool(value); } Expression eval_bsf(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.int64); uinteger_t n = arg0.toInteger(); if (n == 0) error(loc, "`bsf(0)` is undefined"); return new IntegerExp(loc, core.bitop.bsf(n), Type.tint32); } Expression eval_bsr(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.int64); uinteger_t n = arg0.toInteger(); if (n == 0) error(loc, "`bsr(0)` is undefined"); return new IntegerExp(loc, core.bitop.bsr(n), Type.tint32); } Expression eval_bswap(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.int64); uinteger_t n = arg0.toInteger(); TY ty = arg0.type.toBasetype().ty; if (ty == Tint64 || ty == Tuns64) return new IntegerExp(loc, core.bitop.bswap(cast(ulong) n), arg0.type); else return new IntegerExp(loc, core.bitop.bswap(cast(uint) n), arg0.type); } Expression eval_popcnt(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.int64); uinteger_t n = arg0.toInteger(); return new IntegerExp(loc, core.bitop.popcnt(n), Type.tint32); } Expression eval_yl2x(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); const x = arg0.toReal(); const y = arg1.toReal(); real_t result = CTFloat.zero; CTFloat.yl2x(&x, &y, &result); return new RealExp(loc, result, arg0.type); } Expression eval_yl2xp1(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; assert(arg0.op == EXP.float64); Expression arg1 = (*arguments)[1]; assert(arg1.op == EXP.float64); const x = arg0.toReal(); const y = arg1.toReal(); real_t result = CTFloat.zero; CTFloat.yl2xp1(&x, &y, &result); return new RealExp(loc, result, arg0.type); } Expression eval_toPrecFloat(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; float f = cast(real)arg0.toReal(); return new RealExp(loc, real_t(f), Type.tfloat32); } Expression eval_toPrecDouble(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; double d = cast(real)arg0.toReal(); return new RealExp(loc, real_t(d), Type.tfloat64); } Expression eval_toPrecReal(Loc loc, FuncDeclaration fd, Expressions* arguments) { Expression arg0 = (*arguments)[0]; return new RealExp(loc, arg0.toReal(), Type.tfloat80); } // These built-ins are reserved for GDC and LDC. Expression eval_gcc(Loc, FuncDeclaration, Expressions*) { assert(0); } Expression eval_llvm(Loc, FuncDeclaration, Expressions*) { assert(0); }
D
/* THIS FILE GENERATED BY bcd.gen */ module sys.x11.xrender; import sys.x11.xlib; extern(C): align(4): const int PictStandardARGB32 = 0; const int PictStandardRGB24 = 1; const int PictStandardA8 = 2; const int PictStandardA4 = 3; const int PictStandardA1 = 4; const int PictStandardNUM = 5; alias _XConicalGradient XConicalGradient; alias _XPointFixed XPointFixed; alias int XFixed; alias _XRadialGradient XRadialGradient; alias _XCircle XCircle; alias _XLinearGradient XLinearGradient; alias _XTrap XTrap; alias _XSpanFix XSpanFix; alias _XAnimCursor XAnimCursor; alias _XIndexValue XIndexValue; alias _XFilters XFilters; alias _XTransform XTransform; alias _XTrapezoid XTrapezoid; alias _XLineFixed XLineFixed; alias _XTriangle XTriangle; alias _XPointDouble XPointDouble; alias double XDouble; alias _XGlyphElt32 XGlyphElt32; alias _XGlyphElt16 XGlyphElt16; alias _XGlyphElt8 XGlyphElt8; alias _XGlyphInfo XGlyphInfo; alias _XRenderPictureAttributes XRenderPictureAttributes; extern (C) size_t XRenderCreateConicalGradient(void *, _XConicalGradient *, int *, XRenderColor *, int); extern (C) size_t XRenderCreateRadialGradient(void *, _XRadialGradient *, int *, XRenderColor *, int); extern (C) size_t XRenderCreateLinearGradient(void *, _XLinearGradient *, int *, XRenderColor *, int); extern (C) size_t XRenderCreateSolidFill(void *, XRenderColor *); extern (C) void XRenderAddTraps(void *, size_t, int, int, _XTrap *, int); extern (C) size_t XRenderCreateAnimCursor(void *, int, _XAnimCursor *); extern (C) void XRenderSetPictureFilter(void *, size_t, char *, int *, int); extern (C) _XFilters * XRenderQueryFilters(void *, size_t); extern (C) size_t XRenderCreateCursor(void *, size_t, size_t, size_t); extern (C) int XRenderParseColor(void *, char *, XRenderColor *); extern (C) void XRenderCompositeDoublePoly(void *, int, size_t, size_t, XRenderPictFormat *, int, int, int, int, _XPointDouble *, int, int); extern (C) void XRenderCompositeTriFan(void *, int, size_t, size_t, XRenderPictFormat *, int, int, _XPointFixed *, int); extern (C) void XRenderCompositeTriStrip(void *, int, size_t, size_t, XRenderPictFormat *, int, int, _XPointFixed *, int); extern (C) void XRenderCompositeTriangles(void *, int, size_t, size_t, XRenderPictFormat *, int, int, _XTriangle *, int); extern (C) void XRenderCompositeTrapezoids(void *, int, size_t, size_t, XRenderPictFormat *, int, int, _XTrapezoid *, int); extern (C) void XRenderFillRectangles(void *, int, size_t, XRenderColor *, XRectangle *, int); extern (C) void XRenderFillRectangle(void *, int, size_t, XRenderColor *, int, int, size_t, size_t); extern (C) void XRenderCompositeText32(void *, int, size_t, size_t, XRenderPictFormat *, int, int, int, int, _XGlyphElt32 *, int); extern (C) void XRenderCompositeText16(void *, int, size_t, size_t, XRenderPictFormat *, int, int, int, int, _XGlyphElt16 *, int); extern (C) void XRenderCompositeText8(void *, int, size_t, size_t, XRenderPictFormat *, int, int, int, int, _XGlyphElt8 *, int); extern (C) void XRenderCompositeString32(void *, int, size_t, size_t, XRenderPictFormat *, size_t, int, int, int, int, size_t *, int); extern (C) void XRenderCompositeString16(void *, int, size_t, size_t, XRenderPictFormat *, size_t, int, int, int, int, ushort *, int); extern (C) void XRenderCompositeString8(void *, int, size_t, size_t, XRenderPictFormat *, size_t, int, int, int, int, char *, int); extern (C) void XRenderFreeGlyphs(void *, size_t, size_t *, int); extern (C) void XRenderAddGlyphs(void *, size_t, size_t *, _XGlyphInfo *, int, char *, int); extern (C) void XRenderFreeGlyphSet(void *, size_t); extern (C) size_t XRenderReferenceGlyphSet(void *, size_t); extern (C) size_t XRenderCreateGlyphSet(void *, XRenderPictFormat *); extern (C) void XRenderComposite(void *, int, size_t, size_t, size_t, int, int, int, int, int, int, size_t, size_t); extern (C) void XRenderFreePicture(void *, size_t); extern (C) void XRenderSetPictureTransform(void *, size_t, _XTransform *); extern (C) void XRenderSetPictureClipRegion(void *, size_t, void *); extern (C) void XRenderSetPictureClipRectangles(void *, size_t, int, int, XRectangle *, int); extern (C) void XRenderChangePicture(void *, size_t, size_t, _XRenderPictureAttributes *); extern (C) size_t XRenderCreatePicture(void *, size_t, XRenderPictFormat *, size_t, _XRenderPictureAttributes *); extern (C) _XIndexValue * XRenderQueryPictIndexValues(void *, XRenderPictFormat *, int *); extern (C) XRenderPictFormat * XRenderFindStandardFormat(void *, int); extern (C) XRenderPictFormat * XRenderFindFormat(void *, size_t, XRenderPictFormat *, int); extern (C) XRenderPictFormat * XRenderFindVisualFormat(void *, Visual *); extern (C) int XRenderSetSubpixelOrder(void *, int, int); extern (C) int XRenderQuerySubpixelOrder(void *, int); extern (C) int XRenderQueryFormats(void *); extern (C) int XRenderQueryVersion(void *, int *, int *); extern (C) int XRenderQueryExtension(void *, int *, int *); alias void function(void *, char *, int, int, char * *) _BCD_func__1290; alias int function(void *) _BCD_func__1332; alias int function(void *, XErrorEvent *) _BCD_func__1333; alias void function(void *, char *, char *) _BCD_func__1406; alias int function(void *, char *, char *) _BCD_func__1407; alias void function(void *, char *, char *) _BCD_func__1408; struct _XConicalGradient { _XPointFixed center; int angle; } struct _XRadialGradient { _XCircle inner; _XCircle outer; } struct _XLinearGradient { _XPointFixed p1; _XPointFixed p2; } struct _XTrap { _XSpanFix top; _XSpanFix bottom; } struct _XSpanFix { int left; int right; int y; } struct _XAnimCursor { size_t cursor; size_t delay; } struct _XIndexValue { size_t pixel; ushort red; ushort green; ushort blue; ushort alpha; } struct _XFilters { int nfilter; char * * filter; int nalias; short * alias_; } struct _XTransform { int [3] [3] matrix; } struct _XTrapezoid { int top; int bottom; _XLineFixed left; _XLineFixed right; } struct _XCircle { int x; int y; int radius; } struct _XTriangle { _XPointFixed p1; _XPointFixed p2; _XPointFixed p3; } struct _XLineFixed { _XPointFixed p1; _XPointFixed p2; } struct _XPointFixed { int x; int y; } struct _XPointDouble { double x; double y; } struct _XGlyphElt32 { size_t glyphset; size_t * chars; int nchars; int xOff; int yOff; } struct _XGlyphElt16 { size_t glyphset; ushort * chars; int nchars; int xOff; int yOff; } struct _XGlyphElt8 { size_t glyphset; char * chars; int nchars; int xOff; int yOff; } struct _XGlyphInfo { ushort width; ushort height; short x; short y; short xOff; short yOff; } struct XRenderColor { ushort red; ushort green; ushort blue; ushort alpha; } struct _XRenderPictureAttributes { int repeat; size_t alpha_map; int alpha_x_origin; int alpha_y_origin; int clip_x_origin; int clip_y_origin; size_t clip_mask; int graphics_exposures; int subwindow_mode; int poly_edge; int poly_mode; size_t dither; int component_alpha; } struct XRenderPictFormat { size_t id; int type; int depth; XRenderDirectFormat direct; size_t colormap; } struct XRenderDirectFormat { short red; short redMask; short green; short greenMask; short blue; short blueMask; short alpha; short alphaMask; }
D
/* Copyright (c) 2013-2015 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 dmech.rigidbody; import std.math; import dlib.core.memory; import dlib.container.array; import dlib.math.vector; import dlib.math.matrix; import dlib.math.quaternion; import dlib.math.affine; import dlib.math.utils; import dmech.shape; import dmech.contact; interface CollisionDispatcher { void onNewContact(RigidBody rb, Contact c); } class RigidBody: Freeable { Vector3f position; Quaternionf orientation; Vector3f linearVelocity; Vector3f angularVelocity; Vector3f pseudoLinearVelocity; Vector3f pseudoAngularVelocity; Vector3f linearAcceleration; Vector3f angularAcceleration; float mass; float invMass; Matrix3x3f inertiaTensor; Matrix3x3f invInertiaTensor; //TODO: rename to invInertiaWorld Vector3f centerOfMass; Vector3f forceAccumulator; Vector3f torqueAccumulator; float bounce; float friction; bool active = true; bool useGravity = true; bool enableRotation = true; DynamicArray!ShapeComponent shapes; bool dynamic; float damping = 0.5f; float stopThreshold = 0.15f; //0.15f float stopThresholdPV = 0.0f; //0.01f bool useOwnGravity = false; Vector3f gravity = Vector3f(0, 0, 0); DynamicArray!CollisionDispatcher collisionDispatchers; void contactEvent(Contact c) { foreach(d; collisionDispatchers.data) { d.onNewContact(this, c); } } bool raycastable = true; uint numContacts = 0; bool useFriction = true; float maxSpeed = float.max; this() { position = Vector3f(0.0f, 0.0f, 0.0f); orientation = Quaternionf(0.0f, 0.0f, 0.0f, 1.0f); linearVelocity = Vector3f(0.0f, 0.0f, 0.0f); angularVelocity = Vector3f(0.0f, 0.0f, 0.0f); pseudoLinearVelocity = Vector3f(0.0f, 0.0f, 0.0f); pseudoAngularVelocity = Vector3f(0.0f, 0.0f, 0.0f); linearAcceleration = Vector3f(0.0f, 0.0f, 0.0f); angularAcceleration = Vector3f(0.0f, 0.0f, 0.0f); mass = 1.0f; invMass = 1.0f; inertiaTensor = matrixf( mass, 0, 0, 0, mass, 0, 0, 0, mass ); invInertiaTensor = matrixf( 0, 0, 0, 0, 0, 0, 0, 0, 0 ); centerOfMass = Vector3f(0.0f, 0.0f, 0.0f); forceAccumulator = Vector3f(0.0f, 0.0f, 0.0f); torqueAccumulator = Vector3f(0.0f, 0.0f, 0.0f); bounce = 0.0f; friction = 0.5f; dynamic = true; } Matrix4x4f transformation() { Matrix4x4f t; t = translationMatrix(position); t *= orientation.toMatrix4x4(); return t; } void addShapeComponent(ShapeComponent shape) { shape.transformation = transformation() * translationMatrix(shape.centroid); shapes.append(shape); if (!dynamic) return; centerOfMass = Vector3f(0, 0, 0); float m = 0.0f; foreach (sh; shapes.data) { m += sh.mass; centerOfMass += sh.mass * sh.centroid; } float invm = 1.0f / m; centerOfMass *= invm; mass += shape.mass; invMass = 1.0f / mass; // Compute inertia tensor using Huygens-Steiner theorem inertiaTensor = Matrix3x3f.zero; foreach (sh; shapes.data) { Vector3f r = centerOfMass - sh.centroid; inertiaTensor += sh.geometry.inertiaTensor(sh.mass) + (Matrix3x3f.identity * dot(r, r) - tensorProduct(r, r)) * sh.mass; } invInertiaTensor = inertiaTensor.inverse; } void integrateForces(float dt) { if (!active || !dynamic) return; linearAcceleration = forceAccumulator * invMass; if (enableRotation) angularAcceleration = torqueAccumulator * invInertiaTensor; linearVelocity += linearAcceleration * dt; if (enableRotation) angularVelocity += angularAcceleration * dt; } void integrateVelocities(float dt) { if (!active || !dynamic) return; float d = clamp(1.0f - dt * damping, 0.0f, 1.0f); linearVelocity *= d; angularVelocity *= d; float speed = linearVelocity.length; if (speed > maxSpeed) linearVelocity = linearVelocity.normalized * maxSpeed; if (speed > stopThreshold || numContacts < 3) { position += linearVelocity * dt; } if (enableRotation) if (angularVelocity.length > stopThreshold || numContacts < 3) { orientation += 0.5f * Quaternionf(angularVelocity, 0.0f) * orientation * dt; orientation.normalize(); } } void integratePseudoVelocities(float dt) { if (!active || !dynamic) return; float d = clamp(1.0f - dt * damping, 0.0f, 1.0f); pseudoLinearVelocity *= d; pseudoAngularVelocity *= d; if (pseudoLinearVelocity.length > stopThresholdPV) { position += pseudoLinearVelocity; } if (enableRotation) if (pseudoAngularVelocity.length > stopThresholdPV) { orientation += 0.5f * Quaternionf(pseudoAngularVelocity, 0.0f) * orientation; orientation.normalize(); } pseudoLinearVelocity = Vector3f(0.0f, 0.0f, 0.0f); pseudoAngularVelocity = Vector3f(0.0f, 0.0f, 0.0f); } @property Vector3f worldCenterOfMass() { return position + orientation.rotate(centerOfMass); } void updateInertia() { if (active && dynamic) { auto rot = orientation.toMatrix3x3; invInertiaTensor = (rot * inertiaTensor * rot.transposed).inverse; } } void updateShapeComponents() { foreach (sh; shapes.data) { sh.transformation = transformation() * translationMatrix(sh.centroid); } } void resetForces() { forceAccumulator = Vector3f(0, 0, 0); torqueAccumulator = Vector3f(0, 0, 0); } void applyForce(Vector3f force) { if (!active || !dynamic) return; forceAccumulator += force; } void applyTorque(Vector3f torque) { if (!active || !dynamic) return; torqueAccumulator += torque; } void applyImpulse(Vector3f impulse, Vector3f point) { if (!active || !dynamic) return; linearVelocity += impulse * invMass; Vector3f angularImpulse = cross(point - worldCenterOfMass, impulse); angularVelocity += angularImpulse * invInertiaTensor; } void applyPseudoImpulse(Vector3f impulse, Vector3f point) { if (!active || !dynamic) return; pseudoLinearVelocity += impulse * invMass; Vector3f angularImpulse = cross(point - worldCenterOfMass, impulse); pseudoAngularVelocity += angularImpulse * invInertiaTensor; } @property float linearKineticEnergy() { if (!active || !dynamic) return float.infinity; // 0.5 * m * v^2 float v = linearVelocity.length; return 0.5f * mass * v * v; } @property float angularKineticEnergy() { if (!active || !dynamic) return float.infinity; // 0.5 * w * I * w Vector3f w = angularVelocity; return 0.5f * dot(w * inertiaTensor, w); } ~this() { shapes.free(); collisionDispatchers.free(); } void free() { Delete(this); } }
D