code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
module statsystem.userstats;
import std.stdio, std.string;
import std.ctype;
import irccore.user, irccore.replyhandler;
struct UserStatInfo
{
ulong lines=0;
ulong words=0;
float lineLengthMean=0;
ulong joins=0;
ulong parts=0;
}
class UserStats
{
private:
UserStatInfo[string] userStats;
public:
this(){};
~this()
{
foreach( string user, UserStatInfo stats; userStats )
{
userStats.remove( user );
}
}
void PrintStats()
{
writeln( "----------------" );
writeln( "USER STATISTICS:" );
writeln( "----------------" );
foreach( string user, UserStatInfo stats; userStats )
{
writefln( "%s has:", user );
writefln( "\tspoke %d lines.", stats.lines );
writefln( "\tsaid %d words.", stats.words );
writefln( "\tline length mean of %.2f characters.", stats.lineLengthMean );
}
writeln( "" );
}
void InputPrivMsg( ReplyInfo info )
{
assert( info.user !is null );
string[] words = split( info.message );
string nick = info.user.nick;
if( nick !in userStats )
{
userStats[nick] = UserStatInfo();
}
UserStatInfo *stats = &userStats[nick];
stats.lines++;
stats.words += words.length;
stats.lineLengthMean = (stats.lineLengthMean*(stats.lines-1) + info.message.length-1)/(stats.lines);
}
}
|
D
|
module entities.entity;
import components.component;
import systems.system;
import game;
import entities.entityType;
import components.inventoryComponent;
import components.componentType;
import systems.systemType;
import std.algorithm : cmp, canFind, remove;
class Entity
{
protected Component[ComponentType] components;
protected System[SystemType] systems;
protected Game game;
protected EntityType[] types;
protected string name;
public this(EntityType _type, string _name) { this(null, [_type], _name); }
public this(Component _component, string _name) { this([_component], null, _name); }
public this(Component _component, EntityType _type, string _name) { this([_component], [_type], _name); }
public this(Component[] _components, EntityType _type, string _name) { this(_components, [_type], _name); }
public this(Component[] _components, EntityType[] _types) { this(_components, _types, "no name"); }
public this(Component[] _components, EntityType[] _types, string _name)
{
addComponent(_components);
addTypes(_types);
setName(_name);
}
public void init() {}
public void update() {}
public void addComponent(Component _component)
{
if (_component.getType !in components)
{
components[_component.getType] = _component;
_component.setEntity(this);
}
}
public void addComponent(Component[] _components)
{
foreach(_component; _components)
{
addComponent(_component);
}
}
public void removeComponent(ComponentType _type)
{
if (_type in components)
components.remove(_type);
}
public void turnOffComponent(ComponentType _type)
{
if (_type in components)
components[_type].turnOff;
}
public void turnOnComponent(ComponentType _type)
{
if (_type in components)
components[_type].turnOn;
}
public Component getComponent(ComponentType _type)
{
if (_type in components)
return components[_type];
else
return null;
}
public void addSystem(System _system)
{
if (_system.getType !in systems)
{
systems[_system.getType] = _system;
_system.addEntity(this);
}
}
public void addSystem(System[] _systems)
{
foreach(_system; _systems)
{
addSystem(_system);
}
}
public void removeSystem(SystemType _type)
{
if (_type in systems)
systems.remove(_type);
}
public System getSystem(SystemType _type)
{
if (_type in systems)
return systems[_type];
else
return null;
}
public void setGame(Game _game) { game = _game; }
public Game getGame() { return game; }
public void setName(const string _name) { name = _name; }
public const string getName() { return name; }
public void addTypes(EntityType[] _types)
{
foreach(_type; _types)
{
if (!canFind(types, _type))
types ~= _type;
}
}
public EntityType[] getTypes()
{
EntityType[] ret;
foreach(_type; types)
{
ret ~= _type;
}
return ret;
}
}
|
D
|
module test;
import std.array;
import std.process;
import std.stdio;
import std.file;
import std.path;
import std.algorithm;
import std.string;
import std.traits : ReturnType;
void main ()
{
TestRunner().run();
}
private:
/**
* The available test groups.
*
* The tests will be run in the order specified here.
*/
enum TestGroup
{
unit = "unit",
library = "library",
functional = "functional"
}
struct TestRunner
{
void run ()
{
import std.traits : EnumMembers;
foreach (test ; EnumMembers!TestGroup)
runTest!(test);
stdout.flush();
}
/**
* Run a single group of tests, i.e. functional, library or unit test.
*
* Params:
* testGroup = the test group to run
*
* Returns: the exist code of the test run
*/
void runTest (TestGroup testGroup)()
{
import std.string : capitalize;
enum beforeFunction = "before" ~ testGroup.capitalize;
static if (is(typeof(mixin(beforeFunction))))
mixin(beforeFunction ~ "();");
writef("Running %s tests ", testGroup);
stdout.flush();
const command = dubShellCommand("--config=test-" ~ testGroup);
executeCommand(command);
}
void beforeFunctional() @safe
{
if (dstepBuilt)
return;
writeln("Building DStep");
const command = dubShellCommand("build", "--build=debug");
executeCommand(command);
}
}
@safe:
bool dstepBuilt()
{
import std.file : exists;
version (Windows)
enum dstepPath = "bin/dstep.exe";
else version (Posix)
enum dstepPath = "bin/dstep";
return exists(dstepPath);
}
void executeCommand(const string[] args ...)
{
import std.process : spawnProcess, wait;
import std.array : join;
if (spawnProcess(args).wait() != 0)
throw new Exception("Failed to execute command: " ~ args.join(' '));
}
string[] dubShellCommand(string[] subCommands ...)
{
return (["dub", "--verror"] ~ subCommands ~ dubArch)
.filter!(e => e.length > 0)
.array;
}
string defaultArchitecture()
{
version (X86_64)
return "x86_64";
else
{
version (DigitalMars)
return "x86_mscoff";
else
return "x86";
}
}
string dubArch()
{
version (Windows)
{
import std.process : environment;
import std.string : split;
const architecture = environment
.get("DUB_ARCH", defaultArchitecture)
.split(" ")[$ - 1];
return "--arch=" ~ architecture;
}
else
return "";
}
|
D
|
// Written in the D programming language.
module windows.windowssystemassessmenttool;
public import windows.core;
public import windows.automation : BSTR, IDispatch, VARIANT;
public import windows.com : HRESULT, IUnknown;
public import windows.gdi : HBITMAP;
public import windows.systemservices : PWSTR;
public import windows.windowsaccessibility : IAccessible;
public import windows.windowsandmessaging : HWND;
public import windows.windowsprogramming : IXMLDOMNodeList;
extern(Windows) @nogc nothrow:
// Enums
alias __MIDL___MIDL_itf_winsatcominterfacei_0000_0000_0001 = int;
enum : int
{
WINSAT_OEM_DATA_VALID = 0x00000000,
WINSAT_OEM_DATA_NON_SYS_CONFIG_MATCH = 0x00000001,
WINSAT_OEM_DATA_INVALID = 0x00000002,
WINSAT_OEM_NO_DATA_SUPPLIED = 0x00000003,
}
///<p class="CCE_Message">[WINSAT_ASSESSMENT_STATE may be altered or unavailable for releases after Windows 8.1.]
///Defines the possible states of an assessment.
alias WINSAT_ASSESSMENT_STATE = int;
enum : int
{
///The minimum enumeration value for this enumeration.
WINSAT_ASSESSMENT_STATE_MIN = 0x00000000,
///The state of the assessment is unknown.
WINSAT_ASSESSMENT_STATE_UNKNOWN = 0x00000000,
///The assessment data is valid for the current computer configuration.
WINSAT_ASSESSMENT_STATE_VALID = 0x00000001,
///The assessment data does not match the current computer configuration. The hardware on the computer has changed
///since the last time a formal assessment was run.
WINSAT_ASSESSMENT_STATE_INCOHERENT_WITH_HARDWARE = 0x00000002,
///The assessment data is not available because a formal WinSAT assessment has not been run on this computer.
WINSAT_ASSESSMENT_STATE_NOT_AVAILABLE = 0x00000003,
///The assessment data is not valid.
WINSAT_ASSESSMENT_STATE_INVALID = 0x00000004,
///The maximum enumeration value for this enumeration.
WINSAT_ASSESSMENT_STATE_MAX = 0x00000004,
}
///<p class="CCE_Message">[WINSAT_ASSESSMENT_TYPE may be altered or unavailable for releases after Windows 8.1.] Defines
///the possible subcomponents of an assessment.
alias WINSAT_ASSESSMENT_TYPE = int;
enum : int
{
///Assess the memory of the computer.
WINSAT_ASSESSMENT_MEMORY = 0x00000000,
///Assess the processors on the computer.
WINSAT_ASSESSMENT_CPU = 0x00000001,
///Assess the primary hard disk on the computer.
WINSAT_ASSESSMENT_DISK = 0x00000002,
///After Windows 8.1, WinSAT no longer assesses the three-dimensional graphics (gaming) capabilities of the computer
///and the graphics driver's ability to render objects and execute shaders using this assessment. For compatibility,
///WinSAT reports sentinel values for the metrics and scores, however these are not calculated in real time.
WINSAT_ASSESSMENT_D3D = 0x00000003,
///Assess the video card abilities required for Desktop Window Manager (DWM) composition.
WINSAT_ASSESSMENT_GRAPHICS = 0x00000004,
}
///<p class="CCE_Message">[WINSAT_BITMAP_SIZE may be altered or unavailable for releases after Windows 8.1.] Defines the
///size of the bitmap to use to represent the WinSAT score.
alias WINSAT_BITMAP_SIZE = int;
enum : int
{
///Use a 32 x 24 bitmap (size is in pixels).
WINSAT_BITMAP_SIZE_SMALL = 0x00000000,
///Use an 80 x 80 bitmap (size is in pixels).
WINSAT_BITMAP_SIZE_NORMAL = 0x00000001,
}
// Interfaces
@GUID("489331DC-F5E0-4528-9FDA-45331BF4A571")
struct CInitiateWinSAT;
@GUID("F3BDFAD3-F276-49E9-9B17-C474F48F0764")
struct CQueryWinSAT;
@GUID("05DF8D13-C355-47F4-A11E-851B338CEFB8")
struct CQueryAllWinSAT;
@GUID("9F377D7E-E551-44F8-9F94-9DB392B03B7B")
struct CProvideWinSATVisuals;
@GUID("6E18F9C6-A3EB-495A-89B7-956482E19F7A")
struct CAccessiblityWinSAT;
@GUID("C47A41B7-B729-424F-9AF9-5CB3934F2DFA")
struct CQueryOEMWinSATCustomization;
///<p class="CCE_Message">[IProvideWinSATAssessmentInfo may be altered or unavailable for releases after Windows 8.1.]
///Gets summary information for a subcomponent of the assessment, for example, its score. To get this interface, call
///the IProvideWinSATResultsInfo::GetAssessmentInfo method.
@GUID("0CD1C380-52D3-4678-AC6F-E929E480BE9E")
interface IProvideWinSATAssessmentInfo : IDispatch
{
///<p class="CCE_Message">[IProvideWinSATAssessmentInfo::Score may be altered or unavailable for releases after
///Windows 8.1.] Retrieves the score for the subcomponent. This property is read-only.
HRESULT get_Score(float* score);
///<p class="CCE_Message">[IProvideWinSATAssessmentInfo::Title may be altered or unavailable for releases after
///Windows 8.1.] Retrieves the title of the subcomponent. This property is read-only.
HRESULT get_Title(BSTR* title);
///<p class="CCE_Message">[IProvideWinSATAssessmentInfo::Description may be altered or unavailable for releases
///after Windows 8.1.] Retrieves the description of the subcomponent. This property is read-only.
HRESULT get_Description(BSTR* description);
}
///<p class="CCE_Message">[IProvideWinSATResultsInfo may be altered or unavailable for releases after Windows 8.1.] Gets
///information about the results of an assessment, for example, the base score and the date that the assessment was run.
///To get this interface, call the IQueryRecentWinSATAssessment::get_Info method.
@GUID("F8334D5D-568E-4075-875F-9DF341506640")
interface IProvideWinSATResultsInfo : IDispatch
{
///<p class="CCE_Message">[IProvideWinSATResultsInfo::GetAssessmentInfo may be altered or unavailable for releases
///after Windows 8.1.] Retrieves summary information for a subcomponent of the assessment.
///Params:
/// assessment = A subcomponent of the assessment whose summary information you want to retrieve. For possible values, see the
/// WINSAT_ASSESSMENT_TYPE enumeration.
/// ppinfo = An IProvideWinSATAssessmentInfo interface that you use to get the score for the subcomponent.
///Returns:
/// Returns S_OK if successful.
///
HRESULT GetAssessmentInfo(WINSAT_ASSESSMENT_TYPE assessment, IProvideWinSATAssessmentInfo* ppinfo);
///<p class="CCE_Message">[IProvideWinSATResultsInfo::AssessmentState may be altered or unavailable for releases
///after Windows 8.1.] Retrieves the state of the assessment. This property is read-only.
HRESULT get_AssessmentState(WINSAT_ASSESSMENT_STATE* state);
///<p class="CCE_Message">[IProvideWinSATResultsInfo::AssessmentDateTime may be altered or unavailable for releases
///after Windows 8.1.] Retrieves the date and time that the assessment was run. This property is read-only.
HRESULT get_AssessmentDateTime(VARIANT* fileTime);
///<p class="CCE_Message">[IProvideWinSATResultsInfo::SystemRating may be altered or unavailable for releases after
///Windows 8.1.] Retrieves the base score for the computer. This property is read-only.
HRESULT get_SystemRating(float* level);
///<p class="CCE_Message">[IProvideWinSATResultsInfo::RatingStateDesc may be altered or unavailable for releases
///after Windows 8.1.] Retrieves a string that you can use in a UI to indicate whether the assessment is valid. This
///property is read-only.
HRESULT get_RatingStateDesc(BSTR* description);
}
///<p class="CCE_Message">[IQueryRecentWinSATAssessment may be altered or unavailable for releases after Windows 8.1.]
///Retrieves details about the results of the most recent formal WinSAT assessment. To retrieve this interface, call the
///CoCreateInstance function. Use __uuidof(CQueryWinSAT) as the class identifier and
///__uuidof(IQueryRecentWinSATAssessment) as the interface identifier.
@GUID("F8AD5D1F-3B47-4BDC-9375-7C6B1DA4ECA7")
interface IQueryRecentWinSATAssessment : IDispatch
{
///<p class="CCE_Message">[IQueryRecentWinSATAssessment::XML may be altered or unavailable for releases after
///Windows 8.1.] Retrieves data from the XML assessment document by using the specified XPath. The query is run
///against the most recent formal assessment in the WinSAT data store. This property is read-only.
HRESULT get_XML(BSTR xPath, BSTR namespaces, IXMLDOMNodeList* ppDomNodeList);
///<p class="CCE_Message">[IQueryRecentWinSATAssessment::Info may be altered or unavailable for releases after
///Windows 8.1.] Retrieves an interface that provides information about the results of the most recent formal
///assessment, for example, the base score and the date that the assessment was run. This property is read-only.
HRESULT get_Info(IProvideWinSATResultsInfo* ppWinSATAssessmentInfo);
}
///<p class="CCE_Message">[IProvideWinSATVisuals may be altered or unavailable for releases after Windows 8.1.]
///Retrieves elements that can be used in a user interface to graphically represent the WinSAT assessment. To retrieve
///this interface, call the CoCreateInstance function. Use __uuidof(CProvideWinSATVisuals) as the class identifier and
///__uuidof(IProvideWinSATVisuals) as the interface identifier.
@GUID("A9F4ADE0-871A-42A3-B813-3078D25162C9")
interface IProvideWinSATVisuals : IUnknown
{
///<p class="CCE_Message">[IProvideWinSATVisuals::get_Bitmap may be altered or unavailable for releases after
///Windows 8.1.] Retrieves a bitmap for the WinSAT base score.
///Params:
/// bitmapSize = Determines the size of the bitmap that this method returns. For possible values, see the WINSAT_BITMAP_SIZE
/// enumeration.
/// state = The state of the assessment. To get this value, call the IProvideWinSATResultsInfo::get_AssessmentState
/// method.
/// rating = The base score for the computer. To get this value, call the IProvideWinSATResultsInfo::get_SystemRating
/// method.
/// pBitmap = The handle to the bitmap. To free the handle when finished, call the DeleteObject function.
///Returns:
/// This method can return one of these values. The following table lists some of the HRESULT values that this
/// method returns. <table> <tr> <th>Return code/value</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> Successfully retrieved the bitmap. </td> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>WINSAT_ERROR_FAILEDTOLOADRESOURCE</b></dt> <dt>0x80040016</dt> </dl> </td> <td
/// width="60%"> The <i>rating</i> value is not valid. Valid values are 1.0 through 9.9. </td> </tr> </table>
///
HRESULT get_Bitmap(WINSAT_BITMAP_SIZE bitmapSize, WINSAT_ASSESSMENT_STATE state, float rating,
HBITMAP* pBitmap);
}
///<p class="CCE_Message">[IQueryAllWinSATAssessments may be altered or unavailable for releases after Windows 8.1.]
///Retrieves details about all formal WinSAT assessments. To retrieve this interface, call the CoCreateInstance
///function. Use __uuidof(CQueryAllWinSAT) as the class identifier and __uuidof(IQueryAllWinSATAssessments) as the
///interface identifier.
@GUID("0B89ED1D-6398-4FEA-87FC-567D8D19176F")
interface IQueryAllWinSATAssessments : IDispatch
{
///<p class="CCE_Message">[IQueryAllWinSATAssessments::AllXML may be altered or unavailable for releases after
///Windows 8.1.] Retrieves data from the formal XML assessment documents using the specified XPath. The query is run
///against all formal assessments in the WinSAT data store. This property is read-only.
HRESULT get_AllXML(BSTR xPath, BSTR namespaces, IXMLDOMNodeList* ppDomNodeList);
}
///<p class="CCE_Message">[IWinSATInitiateEvents may be altered or unavailable for releases after Windows 8.1.]
///Implement this interface to receive notifications when an assessment is complete or making progress.
@GUID("262A1918-BA0D-41D5-92C2-FAB4633EE74F")
interface IWinSATInitiateEvents : IUnknown
{
///<p class="CCE_Message">[IWinSATInitiateEvents::WinSATComplete may be altered or unavailable for releases after
///Windows 8.1.] Receives notification when an assessment succeeds, fails, or is canceled.
///Params:
/// hresult = The return value of the assessment. The following are the possible return values of the assessment. <table>
/// <tr> <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a
/// id="WINSAT_STATUS_COMPLETED_SUCCESS"></a><a id="winsat_status_completed_success"></a><dl>
/// <dt><b>WINSAT_STATUS_COMPLETED_SUCCESS</b></dt> <dt>0x40033</dt> </dl> </td> <td width="60%"> The assessment
/// completed successfully. </td> </tr> <tr> <td width="40%"><a id="WINSAT_ERROR_ASSESSMENT_INTERFERENCE"></a><a
/// id="winsat_error_assessment_interference"></a><dl> <dt><b>WINSAT_ERROR_ASSESSMENT_INTERFERENCE</b></dt>
/// <dt>0x80040034</dt> </dl> </td> <td width="60%"> The assessment could not complete due to system activity.
/// </td> </tr> <tr> <td width="40%"><a id="WINSAT_ERROR_COMPLETED_ERROR"></a><a
/// id="winsat_error_completed_error"></a><dl> <dt><b>WINSAT_ERROR_COMPLETED_ERROR</b></dt> <dt>0x80040035</dt>
/// </dl> </td> <td width="60%"> The assessment could not complete due to an internal or system error. </td>
/// </tr> <tr> <td width="40%"><a id="WINSAT_ERROR_WINSAT_CANCELED"></a><a
/// id="winsat_error_winsat_canceled"></a><dl> <dt><b>WINSAT_ERROR_WINSAT_CANCELED</b></dt> <dt>0x80040036</dt>
/// </dl> </td> <td width="60%"> The assessment was canceled. </td> </tr> <tr> <td width="40%"><a
/// id="WINSAT_ERROR_COMMAND_LINE_INVALID"></a><a id="winsat_error_command_line_invalid"></a><dl>
/// <dt><b>WINSAT_ERROR_COMMAND_LINE_INVALID</b></dt> <dt>0x80040037</dt> </dl> </td> <td width="60%"> The
/// command line passed to WinSAT was not valid. </td> </tr> <tr> <td width="40%"><a
/// id="WINSAT_ERROR_ACCESS_DENIED"></a><a id="winsat_error_access_denied"></a><dl>
/// <dt><b>WINSAT_ERROR_ACCESS_DENIED</b></dt> <dt>0x80040038</dt> </dl> </td> <td width="60%"> The user does not
/// have sufficient privileges to run WinSAT. </td> </tr> <tr> <td width="40%"><a
/// id="WINSAT_ERROR_WINSAT_ALREADY_RUNNING"></a><a id="winsat_error_winsat_already_running"></a><dl>
/// <dt><b>WINSAT_ERROR_WINSAT_ALREADY_RUNNING</b></dt> <dt>0x80040039</dt> </dl> </td> <td width="60%"> Another
/// copy of WinSAT.exe is already running; only one instance of WinSAT.exe can run on the computer at one time.
/// </td> </tr> </table>
/// strDescription = The description of the completion status. This string is valid during the life of this callback. Copy the
/// string if you need it after the callback returns.
///Returns:
/// This method should return S_OK; the value is ignored.
///
HRESULT WinSATComplete(HRESULT hresult, const(PWSTR) strDescription);
///<p class="CCE_Message">[IWinSATInitiateEvents::WinSATUpdate may be altered or unavailable for releases after
///Windows 8.1.] Receives notification when an assessment is making progress.
///Params:
/// uCurrentTick = The current progress tick of the assessment.
/// uTickTotal = The total number of progress ticks for the assessment.
/// strCurrentState = A string that contains the current state of the assessment. This string is valid during the life of this
/// callback. Copy the string if you need it after the callback returns.
///Returns:
/// This method should return S_OK; the value is ignored.
///
HRESULT WinSATUpdate(uint uCurrentTick, uint uTickTotal, const(PWSTR) strCurrentState);
}
///<p class="CCE_Message">[IInitiateWinSATAssessment may be altered or unavailable for releases after Windows 8.1.]
///Initiates an assessment. To retrieve this interface, call the CoCreateInstance function. Use
///__uuidof(CInitiateWinSAT) as the class identifier and __uuidof(IInitiateWinSATAssessment) as the interface
///identifier.
@GUID("D983FC50-F5BF-49D5-B5ED-CCCB18AA7FC1")
interface IInitiateWinSATAssessment : IUnknown
{
///<p class="CCE_Message">[IInitiateWinSATAssessment::InitiateAssessment may be altered or unavailable for releases
///after Windows 8.1.] Initiates an ad hoc assessment.
///Params:
/// cmdLine = Command-line arguments to pass to WinSAT. The command line cannot be empty. For command line usage, see
/// WinSAT Command Reference on Microsoft TechNet.
/// pCallbacks = An IWinSATInitiateEvents interface that you implement to receive notification when the assessment finishes or
/// makes progress. Can be <b>NULL</b> if you do not want to receive notifications.
/// callerHwnd = The window handle of your client. The handle is used to center the WinSAT dialog boxes. If <b>NULL</b>, the
/// dialog boxes are centered on the desktop.
///Returns:
/// This method can return one of these values. This following table lists some of the HRESULT values that this
/// method returns. <table> <tr> <th>Return code/value</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> WinSAT successfully started. To determine if the assessment
/// ran successfully, implement the IWinSATInitiateEvents::WinSATComplete method and check the value of the
/// <i>hresult</i> parameter. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>WINSAT_ERROR_COMMAND_LINE_EMPTY</b></dt> <dt>0x80040009</dt> </dl> </td> <td width="60%"> The command
/// line cannot be empty; you must provide command-line arguments. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>WINSAT_ERROR_COMMAND_LINE_TOO_LONG</b></dt> <dt>0x8004000A</dt> </dl> </td> <td width="60%"> The
/// command line is too long. The maximum length is 30,720 bytes. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>WINSAT_ERROR_WINSAT_DOES_NOT_EXIST</b></dt> <dt>0x80040011</dt> </dl> </td> <td width="60%"> Could not
/// find the WinSAT program where expected. </td> </tr> </table>
///
HRESULT InitiateAssessment(const(PWSTR) cmdLine, IWinSATInitiateEvents pCallbacks, HWND callerHwnd);
///<p class="CCE_Message">[IInitiateWinSATAssessment::InitiateFormalAssessment may be altered or unavailable for
///releases after Windows 8.1.] Initiates a formal assessment.
///Params:
/// pCallbacks = An IWinSATInitiateEvents interface that you implement to receive notification when the assessment finishes or
/// makes progress. Can be <b>NULL</b> if you do not want to receive notifications.
/// callerHwnd = The window handle of your client. The handle is used to center the WinSAT dialog boxes. If <b>NULL</b>, the
/// dialog boxes are centered on the desktop.
///Returns:
/// This method can return one of these values. This following table lists some of the HRESULT values that this
/// method returns. <table> <tr> <th>Return code/value</th> <th>Description</th> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>S_OK</b></dt> </dl> </td> <td width="60%"> WinSAT successfully started. To determine if the assessment
/// ran successfully, implement the IWinSATInitiateEvents::WinSATComplete method and check the value of the
/// <i>hresult</i> parameter. </td> </tr> <tr> <td width="40%"> <dl>
/// <dt><b>WINSAT_ERROR_WINSAT_DOES_NOT_EXIST</b></dt> <dt>0x80040011</dt> </dl> </td> <td width="60%"> Could not
/// find the WinSAT program where expected. </td> </tr> </table>
///
HRESULT InitiateFormalAssessment(IWinSATInitiateEvents pCallbacks, HWND callerHwnd);
///<p class="CCE_Message">[IInitiateWinSATAssessment::CancelAssessment may be altered or unavailable for releases
///after Windows 8.1.] Cancels a currently running assessment.
///Returns:
/// Returns S_OK if successful; otherwise, the method returns the following error code or a Win32 error code
/// returned as an HRESULT. <table> <tr> <th>Return code/value</th> <th>Description</th> </tr> <tr> <td
/// width="40%"> <dl> <dt><b>WINSAT_ERROR_WINSAT_NOT_RUNNING</b></dt> <dt>0x80040006</dt> </dl> </td> <td
/// width="60%"> There is no running assessment to cancel. </td> </tr> </table>
///
HRESULT CancelAssessment();
}
@GUID("30E6018A-94A8-4FF8-A69A-71B67413F07B")
interface IAccessibleWinSAT : IAccessible
{
HRESULT SetAccessiblityData(const(PWSTR) wsName, const(PWSTR) wsValue, const(PWSTR) wsDesc);
}
@GUID("BC9A6A9F-AD4E-420E-9953-B34671E9DF22")
interface IQueryOEMWinSATCustomization : IUnknown
{
HRESULT GetOEMPrePopulationInfo(__MIDL___MIDL_itf_winsatcominterfacei_0000_0000_0001* state);
}
// GUIDs
const GUID CLSID_CAccessiblityWinSAT = GUIDOF!CAccessiblityWinSAT;
const GUID CLSID_CInitiateWinSAT = GUIDOF!CInitiateWinSAT;
const GUID CLSID_CProvideWinSATVisuals = GUIDOF!CProvideWinSATVisuals;
const GUID CLSID_CQueryAllWinSAT = GUIDOF!CQueryAllWinSAT;
const GUID CLSID_CQueryOEMWinSATCustomization = GUIDOF!CQueryOEMWinSATCustomization;
const GUID CLSID_CQueryWinSAT = GUIDOF!CQueryWinSAT;
const GUID IID_IAccessibleWinSAT = GUIDOF!IAccessibleWinSAT;
const GUID IID_IInitiateWinSATAssessment = GUIDOF!IInitiateWinSATAssessment;
const GUID IID_IProvideWinSATAssessmentInfo = GUIDOF!IProvideWinSATAssessmentInfo;
const GUID IID_IProvideWinSATResultsInfo = GUIDOF!IProvideWinSATResultsInfo;
const GUID IID_IProvideWinSATVisuals = GUIDOF!IProvideWinSATVisuals;
const GUID IID_IQueryAllWinSATAssessments = GUIDOF!IQueryAllWinSATAssessments;
const GUID IID_IQueryOEMWinSATCustomization = GUIDOF!IQueryOEMWinSATCustomization;
const GUID IID_IQueryRecentWinSATAssessment = GUIDOF!IQueryRecentWinSATAssessment;
const GUID IID_IWinSATInitiateEvents = GUIDOF!IWinSATInitiateEvents;
|
D
|
/home/arttaaz/Documents/rust/advent/day_5/target/rls/debug/deps/day_5-825123a788215b46.rmeta: src/main.rs
/home/arttaaz/Documents/rust/advent/day_5/target/rls/debug/deps/day_5-825123a788215b46.d: src/main.rs
src/main.rs:
|
D
|
/**
WinAPI based event driver implementation.
This driver uses overlapped I/O to model asynchronous I/O operations
efficiently. The driver's event loop processes UI messages, so that
it integrates with GUI applications transparently.
*/
module eventcore.drivers.winapi.driver;
version (Windows):
import eventcore.driver;
import eventcore.drivers.timer;
import eventcore.drivers.winapi.core;
import eventcore.drivers.winapi.dns;
import eventcore.drivers.winapi.events;
import eventcore.drivers.winapi.files;
import eventcore.drivers.winapi.pipes;
import eventcore.drivers.winapi.processes;
import eventcore.drivers.winapi.signals;
import eventcore.drivers.winapi.sockets;
import eventcore.drivers.winapi.watchers;
import eventcore.internal.utils : mallocT, freeT;
import core.sys.windows.windows;
static assert(HANDLE.sizeof <= FD.BaseType.sizeof);
static assert(FD(cast(size_t)INVALID_HANDLE_VALUE, 0) == FD.init);
final class WinAPIEventDriver : EventDriver {
private {
WinAPIEventDriverCore m_core;
WinAPIEventDriverFiles m_files;
WinAPIEventDriverSockets m_sockets;
WinAPIEventDriverDNS m_dns;
LoopTimeoutTimerDriver m_timers;
WinAPIEventDriverEvents m_events;
WinAPIEventDriverSignals m_signals;
WinAPIEventDriverWatchers m_watchers;
WinAPIEventDriverProcesses m_processes;
WinAPIEventDriverPipes m_pipes;
}
static WinAPIEventDriver threadInstance;
this()
@safe nothrow @nogc {
assert(threadInstance is null);
threadInstance = this;
import std.exception : enforce;
WSADATA wd;
auto res = () @trusted { return WSAStartup(0x0202, &wd); } ();
assert(res == 0, "Failed to initialize WinSock");
m_signals = mallocT!WinAPIEventDriverSignals();
m_timers = mallocT!LoopTimeoutTimerDriver();
m_core = mallocT!WinAPIEventDriverCore(m_timers);
m_events = mallocT!WinAPIEventDriverEvents(m_core);
m_files = mallocT!WinAPIEventDriverFiles(m_core);
m_sockets = mallocT!WinAPIEventDriverSockets(m_core);
m_pipes = mallocT!WinAPIEventDriverPipes();
m_dns = mallocT!WinAPIEventDriverDNS();
m_watchers = mallocT!WinAPIEventDriverWatchers(m_core);
m_processes = mallocT!WinAPIEventDriverProcesses();
}
@safe: /*@nogc:*/ nothrow:
override @property inout(WinAPIEventDriverCore) core() inout { return m_core; }
override @property shared(inout(WinAPIEventDriverCore)) core() inout shared { return m_core; }
override @property inout(WinAPIEventDriverFiles) files() inout { return m_files; }
override @property inout(WinAPIEventDriverSockets) sockets() inout { return m_sockets; }
override @property inout(WinAPIEventDriverDNS) dns() inout { return m_dns; }
override @property inout(LoopTimeoutTimerDriver) timers() inout { return m_timers; }
override @property inout(WinAPIEventDriverEvents) events() inout { return m_events; }
override @property shared(inout(WinAPIEventDriverEvents)) events() inout shared { return m_events; }
override @property inout(WinAPIEventDriverSignals) signals() inout { return m_signals; }
override @property inout(WinAPIEventDriverWatchers) watchers() inout { return m_watchers; }
override @property inout(WinAPIEventDriverProcesses) processes() inout { return m_processes; }
override @property inout(WinAPIEventDriverPipes) pipes() inout { return m_pipes; }
override bool dispose()
{
if (!m_events) return true;
if (m_core.checkForLeakedHandles()) return false;
if (m_events.checkForLeakedHandles()) return false;
if (m_sockets.checkForLeakedHandles()) return false;
m_events.dispose();
m_core.dispose();
assert(threadInstance !is null);
threadInstance = null;
try () @trusted {
freeT(m_processes);
freeT(m_watchers);
freeT(m_dns);
freeT(m_pipes);
freeT(m_sockets);
freeT(m_files);
freeT(m_events);
freeT(m_core);
freeT(m_timers);
freeT(m_signals);
} ();
catch (Exception e) assert(false, e.msg);
return true;
}
}
|
D
|
///////////////////////////////////////////////////////////////////////
// Info EXIT
///////////////////////////////////////////////////////////////////////
INSTANCE WRK_227_Snaf_EXIT (C_INFO)
{
npc = WRK_227_Snaf;
nr = 999;
condition = WRK_227_Snaf_EXIT_Condition;
information = WRK_227_Snaf_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT WRK_227_Snaf_EXIT_Condition()
{
return TRUE;
};
FUNC VOID WRK_227_Snaf_EXIT_Info()
{
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info MEETAGAIN
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_MEETAGAIN (C_INFO)
{
npc = WRK_227_Snaf;
nr = 1;
condition = WRK_227_Snaf_MEETAGAIN_Condition;
information = WRK_227_Snaf_MEETAGAIN_Info;
important = TRUE;
permanent = FALSE;
};
func int WRK_227_Snaf_MEETAGAIN_Condition ()
{
return TRUE;
};
func void WRK_227_Snaf_MEETAGAIN_Info ()
{
AI_Output (self, hero, "WRK_227_MEETAGAIN_09_01"); //Ja ist das denn möglich!?
AI_Output (self, hero, "WRK_227_MEETAGAIN_09_02"); //Ich kenn dich doch!
Info_AddChoice (WRK_227_Snaf_MEETAGAIN, "Du kennst mich? Ich wüsste nicht woher!", WRK_227_Snaf_MEETAGAIN_DONTKNOW );
Info_AddChoice (WRK_227_Snaf_MEETAGAIN, "Snaf...? Snaf, der Koch!", WRK_227_Snaf_MEETAGAIN_SNAF );
};
func void WRK_227_Snaf_MEETAGAIN_SNAF ()
{
Info_ClearChoices (WRK_227_Snaf_MEETAGAIN);
AI_Output (hero, self, "WRK_227_MEETAGAIN_SNAF_15_01"); //Snaf...? Snaf, der Koch!
AI_Output (self, hero, "WRK_227_MEETAGAIN_SNAF_09_02"); //Ja Mann! Wo hast du dich die letzten Monate rumgetrieben?
AI_Output (hero, self, "WRK_227_MEETAGAIN_SNAF_15_03"); //Ich war... unpässlich!
AI_Output (self, hero, "WRK_227_MEETAGAIN_SNAF_09_04"); //Konntest wohl mein Fleischwanzenragout nicht mehr ertragen, was? (lacht)
Info_AddChoice (WRK_227_Snaf_MEETAGAIN, "Dein Ragout war wirklich eklig, aber daran lag's nicht!", WRK_227_Snaf_MEETAGAIN_SNAF_BAD );
Info_AddChoice (WRK_227_Snaf_MEETAGAIN, "Hey, ich steh auf dein Fleischwanzenragout, ehrlich!", WRK_227_Snaf_MEETAGAIN_SNAF_GOOD );
};
func void WRK_227_Snaf_MEETAGAIN_SNAF_GOOD ()
{
Info_ClearChoices (WRK_227_Snaf_MEETAGAIN);
AI_Output (hero, self, "WRK_227_MEETAGAIN_SNAF_GOOD_15_01"); //Hey, ich steh auf dein Fleischwanzenragout, ehrlich!
AI_Output (self, hero, "WRK_227_MEETAGAIN_SNAF_GOOD_09_02"); //Dann schmeckt dir bestimmt auch mein neues Rezept. Fleischwanzensuppe!
AI_Output (self, hero, "WRK_227_MEETAGAIN_SNAF_GOOD_09_03"); //Für meine Freunde hab ich immer etwas davon übrig!
Snaf_DailyRagout = TRUE;
};
func void WRK_227_Snaf_MEETAGAIN_SNAF_BAD ()
{
Info_ClearChoices (WRK_227_Snaf_MEETAGAIN);
AI_Output (hero, self, "WRK_227_MEETAGAIN_SNAF_BAD_15_01"); //Dein Ragout ist wirklich eklig, aber danan lag's nicht!
AI_Output (self, hero, "WRK_227_MEETAGAIN_SNAF_BAD_09_02"); //Eklig? Du findest es eklig?? Pah!
};
func void WRK_227_Snaf_MEETAGAIN_DONTKNOW ()
{
Info_ClearChoices (WRK_227_Snaf_MEETAGAIN);
AI_Output (hero, self, "WRK_227_MEETAGAIN_DONTKNOW_15_01"); //Du kennst mich? Ich wüsste nicht woher!
AI_Output (self, hero, "WRK_227_MEETAGAIN_DONTKNOW_09_02"); //Oh, dann hab ich dich wohl verwechselt!
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info DAILYRAGOUT
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_DAILYRAGOUT (C_INFO)
{
npc = WRK_227_Snaf;
nr = 10;
condition = WRK_227_Snaf_DAILYRAGOUT_Condition;
information = WRK_227_Snaf_DAILYRAGOUT_Info;
important = FALSE;
permanent = TRUE;
description = "Hast du etwas von der Fleischwanzensuppe für mich?";
};
func int WRK_227_Snaf_DAILYRAGOUT_Condition ()
{
if Snaf_DailyRagout
{
return TRUE;
};
};
func void WRK_227_Snaf_DAILYRAGOUT_Info ()
{
AI_Output (hero, self, "WRK_227_DAILYRAGOUT_15_01"); //Hast du etwas Fleischwanzensuppe für mich?
if (Npc_GetTalentSkill(hero, NPC_TALENT_COOK) >= 1)
&& Knows_RecipeMeatbug
{
AI_Output (self, hero, "WRK_227_DAILYRAGOUT_09_02"); //Du weisst doch jetzt selbst wie man sie zubereitet!
if Npc_KnowsInfo(hero, WRK_227_Snaf_HAVERECIPE)
{
AI_Output (self, hero, "WRK_227_DAILYRAGOUT_09_03"); //Ausserdem werde ich ab sofort das neue Rezept Fleischeintopf zubereiten.
Snaf_RagoutDay = B_GetDay()-1; // Damit der Fleischeintopf gleich rausgerückt wird!
};
WRK_227_Snaf_DAILYRAGOUT.permanent = FALSE;
AI_StopProcessInfos (self);
return;
};
if (Snaf_RagoutDay < B_GetDay())
{
AI_Output (self, hero, "WRK_227_DAILYRAGOUT_09_04"); //Hier nimm 3 Portionen und lass es dir schmecken!
B_GiveInvItems (self, hero, ItFo_MeatbugSoup, 3);
Snaf_RagoutDay = B_GetDay();
}
else
{
AI_Output (self, hero, "OUMULTI_NOMORE_09_00"); //Heute kann ich nicht mehr abgeben. Muss ja schliesslich auch noch was verkaufen.
};
};
///////////////////////////////////////////////////////////////////////
// Info SMELLSGOOD
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_SMELLSGOOD (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_SMELLSGOOD_Condition;
information = WRK_227_Snaf_SMELLSGOOD_Info;
important = FALSE;
permanent = FALSE;
description = "Das riecht lecker!";
};
func int WRK_227_Snaf_SMELLSGOOD_Condition ()
{
return TRUE;
};
func void WRK_227_Snaf_SMELLSGOOD_Info ()
{
AI_Output (hero, self, "WRK_227_SMELLSGOOD_15_01"); //Das riecht lecker!
AI_Output (self, hero, "WRK_227_SMELLSGOOD_09_02"); //Ahhh... Du weisst offensichtlich rustikale Küche zu schätzen.
AI_Output (self, hero, "WRK_227_SMELLSGOOD_09_03"); //Ich mache Fleischwanzensuppe!
AI_Output (self, hero, "WRK_227_SMELLSGOOD_09_04"); //Die ist sehr nahrhaft und hat sogar heilsame Wirkung!
AI_Output (self, hero, "WRK_227_SMELLSGOOD_09_05"); //Ist bei den Arenakämpfern sehr beliebt. Die Jungs müssen ständig Schnitte und Beulen auskurieren.
};
///////////////////////////////////////////////////////////////////////
// Info WANTLEARN
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_WANTLEARN (C_INFO)
{
npc = WRK_227_Snaf;
nr = 1;
condition = WRK_227_Snaf_WANTLEARN_Condition;
information = WRK_227_Snaf_WANTLEARN_Info;
important = FALSE;
permanent = FALSE;
description = "Zeig mir, wie man Fleischwanzensuppe macht.";
};
func int WRK_227_Snaf_WANTLEARN_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_SMELLSGOOD)
{
return TRUE;
};
};
func void WRK_227_Snaf_WANTLEARN_Info ()
{
AI_Output (hero, self, "WRK_227_WANTLEARN_15_01"); //Zeig mir, wie man Fleischwanzensuppe macht.
AI_Output (self, hero, "WRK_227_WANTLEARN_09_02"); //(Tiefes, langes Lachen)
AI_Output (self, hero, "WRK_227_WANTLEARN_09_03"); //Ich lebe davon, dass die Leute bei mir Schlange stehen.
AI_Output (self, hero, "WRK_227_WANTLEARN_09_04"); //Warum sollte ich meine besten Rezepte weitergeben?
};
///////////////////////////////////////////////////////////////////////
// Info WANTFAVOR
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_WANTFAVOR (C_INFO)
{
npc = WRK_227_Snaf;
nr = 1;
condition = WRK_227_Snaf_WANTFAVOR_Condition;
information = WRK_227_Snaf_WANTFAVOR_Info;
important = FALSE;
permanent = FALSE;
description = "Naja, ich sehe hier niemanden Schlange stehen.";
};
func int WRK_227_Snaf_WANTFAVOR_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_WANTLEARN)
{
return TRUE;
};
};
func void WRK_227_Snaf_WANTFAVOR_Info ()
{
AI_Output (hero, self, "WRK_227_WANTFAVOR_15_01"); //Naja...
AI_PlayAni (hero, "T_SEARCH");
AI_Output (hero, self, "WRK_227_WANTFAVOR_15_02"); //...ich sehe hier niemanden Schlange stehen.
AI_Output (self, hero, "WRK_227_WANTFAVOR_09_03"); //(zerknirscht) Hast ja recht, in letzter Zeit läuft es nicht so gut bei mir.
AI_Output (self, hero, "WRK_227_WANTFAVOR_09_04"); //Aber mir kommt da gerade eine Idee!
AI_Output (hero, self, "WRK_227_WANTFAVOR_15_05"); //Erzähl.
AI_Output (self, hero, "WRK_227_WANTFAVOR_09_06"); //Kennst Du Halvor?
Info_AddChoice (WRK_227_Snaf_WANTFAVOR, "Halvor? Nie gehört." , WRK_227_Snaf_WANTFAVOR_NO);
Info_AddChoice (WRK_227_Snaf_WANTFAVOR, "Ja, den kenne ich." , WRK_227_Snaf_WANTFAVOR_YES);
};
func void WRK_227_Snaf_WANTFAVOR_YES ()
{
Info_ClearChoices (WRK_227_Snaf_WANTFAVOR);
AI_Output (hero, self, "WRK_227_WANTFAVOR_YES_15_01"); //Ja, den kenne ich.
AI_Output (self, hero, "WRK_227_WANTFAVOR_YES_09_02"); //Wir sind gewissermassen... Konkurrenten.
AI_Output (self, hero, "WRK_227_WANTFAVOR_YES_09_03"); //Irgendwie scheint er es zu schaffen, mir meine Kundschaft abspenstig zu machen!
};
func void WRK_227_Snaf_WANTFAVOR_NO ()
{
Info_ClearChoices (WRK_227_Snaf_WANTFAVOR);
AI_Output (hero, self, "WRK_227_WANTFAVOR_NO_15_01"); //Halvor? Nie gehört.
AI_Output (self, hero, "WRK_227_WANTFAVOR_NO_09_02"); //Er ist der Koch in der Burgküche.
AI_Output (self, hero, "WRK_227_WANTFAVOR_NO_09_03"); //Sogar einige meiner Stammgäste kaufen sich jetzt ihr Essen bei ihm!
};
///////////////////////////////////////////////////////////////////////
// Info WHYNOTYOU
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_WHYNOTYOU (C_INFO)
{
npc = WRK_227_Snaf;
nr = 1;
condition = WRK_227_Snaf_WHYNOTYOU_Condition;
information = WRK_227_Snaf_WHYNOTYOU_Info;
important = FALSE;
permanent = FALSE;
description = "Warum gehst du der Sache nicht auf den Grund?";
};
func int WRK_227_Snaf_WHYNOTYOU_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_WANTFAVOR)
{
return TRUE;
};
};
func void WRK_227_Snaf_WHYNOTYOU_Info ()
{
AI_Output (hero, self, "WRK_227_WHYNOTYOU_15_01"); //Warum gehst du der Sache nicht auf den Grund?
AI_Output (self, hero, "WRK_227_WHYNOTYOU_09_02"); //Der Mistkerl lässt mich nichtmal in die Nähe seiner Küche!
AI_Output (self, hero, "WRK_227_WHYNOTYOU_09_03"); //Aber wenn du mein Problem löst, zeig ich dir, wie man Fleischwanzensuppe zubereitet!
AI_Output (hero, self, "WRK_227_WHYNOTYOU_15_04"); //Verstehe!
};
///////////////////////////////////////////////////////////////////////
// Info IGO
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_IGO (C_INFO)
{
npc = WRK_227_Snaf;
nr = 1;
condition = WRK_227_Snaf_IGO_Condition;
information = WRK_227_Snaf_IGO_Info;
important = FALSE;
permanent = FALSE;
description = "Ich werde mich um dein Problem kümmern!";
};
func int WRK_227_Snaf_IGO_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_WHYNOTYOU)
{
return TRUE;
};
};
func void WRK_227_Snaf_IGO_Info ()
{
AI_Output (hero, self, "WRK_227_IGO_15_01"); //Ich kümmere mich darum!
AI_Output (self, hero, "WRK_227_IGO_09_02"); //Dann haben wir eine Absprache?
AI_Output (hero, self, "WRK_227_IGO_15_03"); //Haben wir!
Log_CreateTopic (CH1_LearnCooking, LOG_MISSION);
Log_SetTopicStatus (CH1_LearnCooking, LOG_RUNNING);
B_LogEntry (CH1_LearnCooking, "Snaf, der Koch im Aussenring des Alten Lagers hat eingewilligt, mir das Zubereiten von heilsamen Nahrungsmitteln beizubringen, wenn ich ihm bei seinem Problem helfe: In letzter Zeit sind viele seiner Stammkunden zu Halvor, dem Koch in der Burgküche übergelaufen.");
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info FOUNDOUT
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_FOUNDOUT (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_FOUNDOUT_Condition;
information = WRK_227_Snaf_FOUNDOUT_Info;
important = FALSE;
permanent = FALSE;
description = "Ich weiss jetzt, warum alle bei Halvor essen gehen.";
};
func int WRK_227_Snaf_FOUNDOUT_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_IGO)
&& Npc_KnowsInfo(hero, MIL_100_Halvor_SNAF)
&& ((Snaf_MilitiaBribed + Snaf_MilitiaFrightened) < SNAF_NEW_CUSTOMERS)
{
return TRUE;
};
};
func void WRK_227_Snaf_FOUNDOUT_Info ()
{
AI_Output (hero, self, "WRK_227_FOUNDOUT_15_01"); //Ich weiss jetzt, warum alle bei Halvor essen gehen.
AI_Output (self, hero, "WRK_227_FOUNDOUT_09_02"); //Sag es mir! ich muss es wissen!
AI_Output (hero, self, "WRK_227_FOUNDOUT_15_03"); //Er bereitet seinen Fleischeintopf nach einem neuen Rezept zu.
AI_Output (hero, self, "WRK_227_FOUNDOUT_15_04"); //Sieht so aus, als ob es bei Halvor einfach besser schmeckt, als bei dir!
AI_Output (self, hero, "WRK_227_FOUNDOUT_09_05"); //Verdammt! Wie kriege ich meine Kundschaft wieder?
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info NOTHINGNEW
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_NOTHINGNEW (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_NOTHINGNEW_Condition;
information = WRK_227_Snaf_NOTHINGNEW_Info;
important = TRUE;
permanent = TRUE;
};
func int WRK_227_Snaf_NOTHINGNEW_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_FOUNDOUT)
&& ((Snaf_MilitiaBribed + Snaf_MilitiaFrightened) < SNAF_NEW_CUSTOMERS)
&& !Npc_HasItems(hero,ItWr_HalvorRecipe)
&& !Snaf_CustomerQuestSolved
&& C_NpcIsInvincible(self)
&& !C_NpcIsDead(MIL_100_Halvor)
{
return TRUE;
};
};
func void WRK_227_Snaf_NOTHINGNEW_Info ()
{
AI_Output (self, hero, "WRK_227_NOTHINGNEW_09_01"); //Bitte, du musst dich um mein Problem kümmern!
AI_Output (self, hero, "WRK_227_NOTHINGNEW_09_02"); //Frag doch mal bei den Milizsoldaten vor Halvor's Küche herum!
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info HALVORDEAD
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_HALVORDEAD (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_HALVORDEAD_Condition;
information = WRK_227_Snaf_HALVORDEAD_Info;
important = FALSE;
permanent = FALSE;
description = "Halvor ist tot. Dein Problem ist gelöst!";
};
func int WRK_227_Snaf_HALVORDEAD_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_FOUNDOUT)
&& C_NpcIsDead(MIL_100_Halvor)
{
return TRUE;
};
};
func void WRK_227_Snaf_HALVORDEAD_Info ()
{
AI_Output (hero, self, "WRK_227_HALVORDEAD_15_01"); //Halvor ist tot. Dein Problem ist gelöst!
AI_Output (self, hero, "WRK_227_HALVORDEAD_09_02"); //Bist du von allen guten Geistern verlassen. Du solltest meine Kunden zurückholen und keinen Kreig im Lager anfangen.
AI_Output (self, hero, "WRK_227_HALVORDEAD_09_03"); //Als ob die Orks da draussen nicht schon genug Probleme wären.
AI_Output (self, hero, "WRK_227_HALVORDEAD_09_04"); //Ich will nichts mehr mit dir zu tun haben.
B_SetAttitude (self, ATT_ANGRY);
B_LogEntry (CH1_LearnCooking, "Snaf ist stinksauer, weil ich Halvor getötet habe. Aus ihm werde ich nicht mehr herausbekommen. Meine Lösung seines Problems war wohl doch etwas zu extrem.");
Log_SetTopicStatus (CH1_LearnCooking, LOG_FAILED);
};
///////////////////////////////////////////////////////////////////////
// Info DEADAGAIN
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_DEADAGAIN (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_DEADAGAIN_Condition;
information = WRK_227_Snaf_DEADAGAIN_Info;
important = TRUE;
permanent = TRUE;
};
func int WRK_227_Snaf_DEADAGAIN_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_HALVORDEAD)
&& C_NpcIsInvincible(self)
{
return TRUE;
};
};
func void WRK_227_Snaf_DEADAGAIN_Info ()
{
AI_Output (self, hero, "WRK_227_DEADAGAIN_09_01"); //Ich will nichts mehr mit dir zu tun haben, du Mörder!
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info HAVERECIPE
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_HAVERECIPE (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_HAVERECIPE_Condition;
information = WRK_227_Snaf_HAVERECIPE_Info;
important = FALSE;
permanent = FALSE;
description = "Ich habe Halvor's Kochbuch ...ähm... organisiert!";
};
func int WRK_227_Snaf_HAVERECIPE_Condition ()
{
if Npc_KnowsInfo(hero, WRK_227_Snaf_FOUNDOUT)
&& Npc_HasItems(hero,ItWr_HalvorRecipe)
{
return TRUE;
};
};
func void WRK_227_Snaf_HAVERECIPE_Info ()
{
AI_Output (hero, self, "WRK_227_HAVERECIPE_15_01"); //Ich habe Halvor's Kochbuch ...ähm... organisiert!
B_GiveInvItems (hero, self, ItWr_HalvorRecipe, 1);
AI_Output (self, hero, "WRK_227_HAVERECIPE_09_02"); //Mann, das ist klasse! Will garnicht wissen, wie du das geschafft hast!
AI_Output (self, hero, "WRK_227_HAVERECIPE_09_03"); //Wenn ich auch Fleisch-Eintopf anbiete, werden bald wieder alle bei MIR schlange stehen!
B_GiveXP (XP_Snaf_GaveRecipe);
B_Snaf_NewRecipe ();
Snaf_CustomerQuestSolved = TRUE;
B_SetAttitude (self, ATT_FRIENDLY);
};
///////////////////////////////////////////////////////////////////////
// Info NEWCUSTOMERS
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_NEWCUSTOMERS (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_NEWCUSTOMERS_Condition;
information = WRK_227_Snaf_NEWCUSTOMERS_Info;
important = TRUE;
permanent = FALSE;
};
func int WRK_227_Snaf_NEWCUSTOMERS_Condition ()
{
if ((Snaf_MilitiaBribed + Snaf_MilitiaFrightened) >= SNAF_NEW_CUSTOMERS)
|| Halvor_StewSalted
{
return TRUE;
};
};
func void WRK_227_Snaf_NEWCUSTOMERS_Info ()
{
AI_SetWalkmode (self, NPC_RUN);
AI_GotoNpc (self, hero);
AI_Output (self, hero, "WRK_227_NEWCUSTOMERS_09_01"); //Hey, da bist du ja wieder!
AI_Output (self, hero, "WRK_227_NEWCUSTOMERS_09_02"); //Ich weiss nicht WAS du gemacht hast, aber viele der Milizsoldaten essen wieder bei mir, statt bei Halvor!
AI_Output (self, hero, "WRK_227_NEWCUSTOMERS_09_03"); //Sie stehen sogar wieder Schlange!
B_LogEntry (CH1_LearnCooking, "Snaf war ausser sich vor Freude über die zurückgewonnene Kundschaft. Besser er erfährt nie, wie ich das angestellt habe!");
Snaf_CustomerQuestSolved = TRUE;
B_SetAttitude (self, ATT_FRIENDLY);
};
///////////////////////////////////////////////////////////////////////
// Info TEACHCOOK
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_TEACHCOOK (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_TEACHCOOK_Condition;
information = WRK_227_Snaf_TEACHCOOK_Info;
important = FALSE;
permanent = TRUE;
description = B_BuildLearnString(NAME_LearnCook_1, LPCOST_TALENT_COOK_1, 0);
};
func int WRK_227_Snaf_TEACHCOOK_Condition ()
{
if Snaf_CustomerQuestSolved
&& (Npc_GetTalentSkill(hero, NPC_TALENT_COOK) < 1)
{
return TRUE;
};
};
func void WRK_227_Snaf_TEACHCOOK_Info ()
{
if B_GiveSkill(hero, NPC_TALENT_COOK, 1, LPCOST_TALENT_COOK_1)
{
AI_Output (hero, self, "WRK_227_TEACHCOOK_15_01"); //Zeigst du mir jetzt wie man Fleischwanzensuppe zubereitet?
AI_Output (self, hero, "WRK_227_TEACHCOOK_09_02"); //Gerne! Zuerst ein paar grundsätzliche Dinge:
AI_Output (self, hero, "WRK_227_TEACHCOOK_09_03"); //Achte auf das Feuer. Die Suppe muß immer leicht köcheln.
AI_Output (self, hero, "WRK_227_TEACHCOOK_09_04"); //Und du musst regelmässig mit dem Kochlöffel umrühren, damit sich der Geschmack richtig entfalten kann.
};
};
///////////////////////////////////////////////////////////////////////
// Info SCOOP
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_SCOOP (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_SCOOP_Condition;
information = WRK_227_Snaf_SCOOP_Info;
important = FALSE;
permanent = FALSE;
description = "Kochlöffel? Hab ich nicht!";
};
func int WRK_227_Snaf_SCOOP_Condition ()
{
if (Npc_GetTalentSkill(hero, NPC_TALENT_COOK) >= 1)
&& !Npc_HasItems(hero,ItMi_Scoop)
{
return TRUE;
};
};
func void WRK_227_Snaf_SCOOP_Info ()
{
AI_Output (hero, self, "WRK_227_SCOOP_15_01"); //Kochlöffel? Hab ich nicht!
AI_Output (self, hero, "WRK_227_SCOOP_09_02"); //Nimm den hier, ich habe mehr als genug davon!
B_GiveInvItems (self, hero, ItMi_Scoop, 1);
};
///////////////////////////////////////////////////////////////////////
// Info MEATBUGRECIPE
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_MEATBUGRECIPE (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_MEATBUGRECIPE_Condition;
information = WRK_227_Snaf_MEATBUGRECIPE_Info;
important = FALSE;
permanent = FALSE;
description = "...und wie macht man nun die Suppe?";
};
func int WRK_227_Snaf_MEATBUGRECIPE_Condition ()
{
if (Npc_GetTalentSkill(hero, NPC_TALENT_COOK) >= 1)
&& !Knows_RecipeMeatbug
{
return TRUE;
};
};
func void WRK_227_Snaf_MEATBUGRECIPE_Info ()
{
AI_Output (hero, self, "WRK_227_MEATBUGRECIPE_15_01"); //...und wie macht man nun die Suppe?
AI_Output (self, hero, "WRK_227_MEATBUGRECIPE_09_02"); //Ah ja... richtig! Im Grunde ist es garnicht so schwierig.
AI_Output (self, hero, "WRK_227_MEATBUGRECIPE_09_03"); //Schäle eine Fleischwanze vorsichtig aus ihrem Panzer, schneide das Fleisch klein und gib es nach und nach in das heisse Wasser.
AI_Output (self, hero, "WRK_227_MEATBUGRECIPE_09_04"); //Gebe noch etwas Brot hinein, um die Suppe etwas anzudicken. Nun noch gut umrühren, und mit einer Prise Salz abschmecken und fertig ist die Suppe.
B_LearnRecipeMeatbug();
B_LogEntry (CH1_LearnCooking, "Ich weiss nun, wie ich aus Fleischwanzen eine Suppe herstellen kann. Um allerdings Eintöpfe und Ragouts zuzubereiten, brauche ich einen besseren Lehrer!");
Log_SetTopicStatus (CH1_LearnCooking, LOG_SUCCESS);
};
///////////////////////////////////////////////////////////////////////
// Info WHEREBUGS
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_WHEREBUGS (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_WHEREBUGS_Condition;
information = WRK_227_Snaf_WHEREBUGS_Info;
important = FALSE;
permanent = FALSE;
description = "Wo finde ich solche Fleischwanzen?";
};
func int WRK_227_Snaf_WHEREBUGS_Condition ()
{
if Npc_KnowsInfo(hero,WRK_227_Snaf_MEATBUGRECIPE)
{
return TRUE;
};
};
func void WRK_227_Snaf_WHEREBUGS_Info ()
{
AI_Output (hero, self, "WRK_227_WHEREBUGS_15_01"); //Wo finde ich solche Fleischwanzen?
AI_Output (self, hero, "WRK_227_WHEREBUGS_09_02"); //Dieses kleine Krabbelgetier liebt Müll. Einfach unglaublich, dass sie so hervorragend schmecken!
AI_Output (self, hero, "WRK_227_WHEREBUGS_09_03"); //Es gibt hier im Lager zwei Müllberge, dort findest du eigentlich immer ein paar von den Biestern!
};
///////////////////////////////////////////////////////////////////////
// Info WHERESALTNLOAF
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_WHERESALTNLOAF (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_WHERESALTNLOAF_Condition;
information = WRK_227_Snaf_WHERESALTNLOAF_Info;
important = FALSE;
permanent = FALSE;
description = "Wo bekomme ich Brot und Salz her?";
};
func int WRK_227_Snaf_WHERESALTNLOAF_Condition ()
{
if Npc_KnowsInfo(hero,WRK_227_Snaf_MEATBUGRECIPE)
{
return TRUE;
};
};
func void WRK_227_Snaf_WHERESALTNLOAF_Info ()
{
AI_Output (hero, self, "WRK_227_WHERESALTNLOAF_15_01"); //Wo bekomme ich Brot und Salz her?
AI_Output (self, hero, "WRK_227_WHERESALTNLOAF_09_02"); //Ich hole mir die Zutaten immer von Agon im Händlerviertel.
AI_Output (self, hero, "WRK_227_WHERESALTNLOAF_09_03"); //Er ist zwar eigentlich ein Gauner, aber seine Vorräte sind immer gut gefüllt.
};
///////////////////////////////////////////////////////////////////////
// Info HOWDY
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_HOWDY (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_HOWDY_Condition;
information = WRK_227_Snaf_HOWDY_Info;
important = FALSE;
permanent = TRUE;
description = "Wie steht es um deine Kundschaft?";
};
func int WRK_227_Snaf_HOWDY_Condition ()
{
if !WRK_227_Snaf_DAILYRAGOUT.permanent
{
return TRUE;
};
};
func void WRK_227_Snaf_HOWDY_Info ()
{
AI_Output (hero, self, "WRK_227_HOWDY_15_01"); //Wie steht es um deine Kundschaft?
if Npc_KnowsInfo(hero, WRK_227_Snaf_HAVERECIPE)
{
AI_Output (self, hero, "WRK_227_HOWDY_09_02"); //Das neue Rezept ist ein voller Erfolg. Für den Fleisch-Eintopf stehen sie sogar wieder Schlange.
AI_Output (self, hero, "WRK_227_HOWDY_09_03"); //Danke nochmal für deine Hilfe, obwohl du mir bis heute nicht erzählt hast, WIE du an Halvor's Kochbuch gekommen bist!
}
else
{
AI_Output (self, hero, "WRK_227_HOWDY_09_04"); //Ausgezeichnet. Sie stehen wieder jeden Tag Schlange und wollen etwas von meiner Fleischwanzensuppe haben!!
AI_Output (self, hero, "WRK_227_HOWDY_09_05"); //Danke nochmal für deine Hilfe, obwohl du mir bis heute nicht erzählt hast, WIE du das angestellt hast!
};
AI_Output (hero, self, "WRK_227_HOWDY_15_06"); //(verschmitzt) Das willst du nicht wissen.
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info WANTMEATSTEW
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_WANTMEATSTEW (C_INFO)
{
npc = WRK_227_Snaf;
condition = WRK_227_Snaf_WANTMEATSTEW_Condition;
information = WRK_227_Snaf_WANTMEATSTEW_Info;
important = FALSE;
permanent = TRUE;
description = "Hast du etwas Fleischeintopf für mich?";
};
func int WRK_227_Snaf_WANTMEATSTEW_Condition ()
{
if !WRK_227_Snaf_DAILYRAGOUT.permanent
&& Npc_KnowsInfo(hero, WRK_227_Snaf_HAVERECIPE)
{
return TRUE;
};
};
func void WRK_227_Snaf_WANTMEATSTEW_Info ()
{
AI_Output (hero, self, "WRK_227_WANTMEATSTEW_15_01"); //Hast du etwas Fleischeintopf für mich?
if (Snaf_RagoutDay < B_GetDay())
{
AI_Output (self, hero, "WRK_227_WANTMEATSTEW_09_02"); //Hier nimm 3 Portionen. Schliesslich habe ich das neue Rezept dir zu verdanken.
B_GiveInvItems (self, hero, ItFo_MeatStew, 3);
Snaf_RagoutDay = B_GetDay();
}
else
{
AI_Output (self, hero, "OUMULTI_NOMORE_09_00"); //Heute kann ich nicht mehr abgeben. Muss ja schliesslich auch noch was verkaufen.
};
};
///////////////////////////////////////////////////////////////////////
// Info RugasMeal
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_RUGASMEAL (C_INFO)
{
npc = WRK_227_Snaf;
nr = 6;
condition = WRK_227_Snaf_RUGASMEAL_Condition;
information = WRK_227_Snaf_RUGASMEAL_Info;
important = FALSE;
permanent = FALSE;
description = "Kannst Du mir zwei Meatbugsuppen verkaufen?";
};
func int WRK_227_Snaf_RUGASMEAL_Condition ()
{
if int_RugaWantsMeal
&& (!int_PlayerHasRugasMeal)
{
return TRUE;
};
return FALSE;
};
func void WRK_227_Snaf_RUGASMEAL_Info ()
{
AI_Output (hero, self, "WRK_227_RUGASMEAL_15_01"); //Kannst Du mir zwei Meatbugsuppen verkaufen?
AI_Output (self, hero, "WRK_227_RUGASMEAL_09_02"); //Zwei Suppen kosten für Dich heute nur 15.
};
///////////////////////////////////////////////////////////////////////
// Info RugasMealNoMoney
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_RUGASMEALNOMONEY (C_INFO)
{
npc = WRK_227_Snaf;
nr = 8;
condition = WRK_227_Snaf_RUGASMEALNOMONEY_Condition;
information = WRK_227_Snaf_RUGASMEALNOMONEY_Info;
important = FALSE;
permanent = TRUE;
description = "(nicht genug Geld für Meatbugsuppe)";
};
func int WRK_227_Snaf_RUGASMEALNOMONEY_Condition ()
{
if int_RugaWantsMeal
&& (!int_PlayerHasRugasMeal)
&& (Npc_HasItems (hero, ItMi_Silver) < 15)
&& Npc_KnowsInfo (hero, WRK_227_Snaf_RUGASMEAL)
{
return TRUE;
};
return FALSE;
};
func void WRK_227_Snaf_RUGASMEALNOMONEY_Info ()
{
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////
// Info RugasMealMoney
///////////////////////////////////////////////////////////////////////
instance WRK_227_Snaf_RUGASMEALMONEY (C_INFO)
{
npc = WRK_227_Snaf;
nr = 5;
condition = WRK_227_Snaf_RUGASMEALMONEY_Condition;
information = WRK_227_Snaf_RUGASMEALMONEY_Info;
important = FALSE;
permanent = TRUE;
description = "Dann gib mir mal zwei Meatbugsuppen";
};
func int WRK_227_Snaf_RUGASMEALMONEY_Condition ()
{
if int_RugaWantsMeal
&& (!int_PlayerHasRugasMeal)
&& (Npc_HasItems (hero, ItMi_Silver) >= 15)
&& Npc_KnowsInfo (hero, WRK_227_Snaf_RUGASMEAL)
{
return TRUE;
};
return FALSE;
};
func void WRK_227_Snaf_RUGASMEALMONEY_Info ()
{
B_GiveInvItems (hero, self, ItMi_Silver, 15);
AI_Output (hero, self, "WRK_227_RUGASMEALMONEY_15_01"); //Dann gib mir mal zwei Meatbugsuppen
B_GiveInvItems (self, hero, ItFo_MeatBugSoup, 2);
AI_Output (self, hero, "WRK_227_RUGASMEALMONEY_09_02"); //Aber denk dran, ist ein Sonderpreis, nur für Dich.
int_PlayerHasRugasMeal = TRUE;
AI_StopProcessInfos (self);
};
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/test12558.d(32): Deprecation: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(32): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(36): Deprecation: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(36): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(43): Deprecation: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(43): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(47): Deprecation: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(47): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(56): Deprecation: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(56): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(31): Error: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(31): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(36): Error: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(36): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(42): Error: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(42): use `catch(Throwable)` for old behavior
fail_compilation/test12558.d(47): Error: `catch` statement without an exception specification is deprecated
fail_compilation/test12558.d(47): use `catch(Throwable)` for old behavior
---
*/
void main()
{
auto handler = () { };
try {
assert(0);
} catch
handler();
try {
assert(0);
} catch {
handler();
}
try {
assert(0);
} catch
handler();
try {
assert(0);
} catch {
handler();
}
}
void foo()()
{
try {}
catch
assert(false);
}
|
D
|
/**
*
* THIS FILE IS AUTO-GENERATED BY ./parse_specs.d FOR MCU atmega8535 WITH ARCHITECTURE avr4
*
*/
module avr.specs.specs_atmega8535;
enum __AVR_ARCH__ = 4;
enum __AVR_ASM_ONLY__ = false;
enum __AVR_ENHANCED__ = true;
enum __AVR_HAVE_MUL__ = true;
enum __AVR_HAVE_JMP_CALL__ = false;
enum __AVR_MEGA__ = false;
enum __AVR_HAVE_LPMX__ = true;
enum __AVR_HAVE_MOVW__ = true;
enum __AVR_HAVE_ELPM__ = false;
enum __AVR_HAVE_ELPMX__ = false;
enum __AVR_HAVE_EIJMP_EICALL_ = false;
enum __AVR_2_BYTE_PC__ = true;
enum __AVR_3_BYTE_PC__ = false;
enum __AVR_XMEGA__ = false;
enum __AVR_HAVE_RAMPX__ = false;
enum __AVR_HAVE_RAMPY__ = false;
enum __AVR_HAVE_RAMPZ__ = false;
enum __AVR_HAVE_RAMPD__ = false;
enum __AVR_TINY__ = false;
enum __AVR_PM_BASE_ADDRESS__ = 0;
enum __AVR_SFR_OFFSET__ = 32;
enum __AVR_DEVICE_NAME__ = "atmega8535";
|
D
|
/**
* Entry point for the new multi-pass experiment.
*/
module sdc.sdc;
import d.ir.symbol;
import d.llvm.backend;
import d.semantic.semantic;
import d.location;
import util.json;
final class SDC {
import d.base.context;
Context context;
SemanticPass semantic;
LLVMBackend backend;
string[] includePath;
Module[] modules;
this(string name, JSON conf, uint optLevel) {
import std.algorithm, std.array;
includePath = conf["includePath"].array.map!(path => cast(string) path).array();
context = new Context();
backend = new LLVMBackend(context, name, optLevel, conf["libPath"].array.map!(path => " -L" ~ (cast(string) path)).join());
semantic = new SemanticPass(context, backend.getEvaluator(), backend.getDataLayout(), &getFileSource);
// Review thet way this whole thing is built.
backend.getPass().object = semantic.object;
}
void compile(string filename) {
import std.algorithm, std.array;
auto packages = filename[0 .. $ - 2].split("/").map!(p => context.getName(p)).array();
modules ~= semantic.add(new FileSource(filename), packages);
}
import d.base.name;
void compile(Name[] packages) {
modules ~= semantic.add(getFileSource(packages), packages);
}
void buildMain() {
semantic.terminate();
backend.visit(semantic.buildMain(modules));
}
void codeGen(string objFile) {
semantic.terminate();
backend.emitObject(modules, objFile);
}
void codeGen(string objFile, string executable) {
codeGen(objFile);
backend.link(objFile, executable);
}
FileSource getFileSource(Name[] packages) {
import std.algorithm, std.array;
auto filename = "/" ~ packages.map!(p => p.toString(context)).join("/") ~ ".d";
foreach(path; includePath) {
auto fullpath = path ~ filename;
import std.file;
if (exists(fullpath)) {
return new FileSource(fullpath);
}
}
assert(0, "filenotfoundmalheur ! " ~ filename);
}
}
|
D
|
/Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/Build/Intermediates/protocolos.build/Debug-iphonesimulator/protocolos.build/Objects-normal/x86_64/TableViewController.o : /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/Actividad.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/ViewController.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/AppDelegate.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/ViewControllerCalificar.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/TableViewController.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /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/QuartzCore.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/Build/Intermediates/protocolos.build/Debug-iphonesimulator/protocolos.build/Objects-normal/x86_64/TableViewController~partial.swiftmodule : /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/Actividad.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/ViewController.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/AppDelegate.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/ViewControllerCalificar.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/TableViewController.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /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/QuartzCore.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/Build/Intermediates/protocolos.build/Debug-iphonesimulator/protocolos.build/Objects-normal/x86_64/TableViewController~partial.swiftdoc : /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/Actividad.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/ViewController.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/AppDelegate.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/ViewControllerCalificar.swift /Users/hernaniruegasvillarreal/Documents/TEC/semestre-8/dispositivos-moviles/segundo-parcial/protocolos/protocolos/TableViewController.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /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/QuartzCore.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.build/Console.swift.o : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Terminal/ANSI.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Console.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleStyle.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Choose.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicatorState.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Ask.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Terminal/Terminal.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/Console+Ephemeral.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Confirm.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/LoadingBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ProgressBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/Console+Clear.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/ConsoleClear.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/ConsoleLogger.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Center.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleColor.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/ConsoleError.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicator.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Wait.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleTextFragment.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Input.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Output.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.build/Console~partial.swiftmodule : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Terminal/ANSI.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Console.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleStyle.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Choose.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicatorState.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Ask.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Terminal/Terminal.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/Console+Ephemeral.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Confirm.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/LoadingBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ProgressBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/Console+Clear.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/ConsoleClear.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/ConsoleLogger.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Center.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleColor.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/ConsoleError.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicator.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Wait.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleTextFragment.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Input.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Output.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Console.build/Console~partial.swiftdoc : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Terminal/ANSI.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Deprecated.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Console.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleStyle.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Choose.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicatorState.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Ask.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Terminal/Terminal.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/Console+Ephemeral.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Confirm.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/LoadingBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ProgressBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityBar.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/Console+Clear.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Clear/ConsoleClear.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/ConsoleLogger.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Center.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleColor.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/ConsoleError.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Activity/ActivityIndicator.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Utilities/Exports.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Wait.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleTextFragment.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Input/Console+Input.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/Console+Output.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Console/Output/ConsoleText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
instance DIA_Vlk_534_Exit(C_Info)
{
npc = VLK_534_Buddler;
nr = 999;
condition = DIA_Vlk_534_Exit_Condition;
information = DIA_Vlk_534_Exit_Info;
permanent = 1;
description = DIALOG_ENDE;
};
func int DIA_Vlk_534_Exit_Condition()
{
return 1;
};
func void DIA_Vlk_534_Exit_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Vlk_534_LeaveMe(C_Info)
{
npc = VLK_534_Buddler;
nr = 1;
condition = DIA_Vlk_534_LeaveMe_Condition;
information = DIA_Vlk_534_LeaveMe_Info;
permanent = 1;
description = "Почему ты не в лагере?";
};
func int DIA_Vlk_534_LeaveMe_Condition()
{
return 1;
};
func void DIA_Vlk_534_LeaveMe_Info()
{
AI_Output(other,self,"DIA_Vlk_534_LeaveMe_15_00"); //Почему ты не в лагере?
AI_Output(self,other,"DIA_Vlk_534_LeaveMe_02_01"); //Я жду одного друга из шахты. Он задолжал мне руду.
AI_Output(self,other,"DIA_Vlk_534_LeaveMe_02_02"); //А без руды мне нельзя появляться в лагере, потому что я не смогу заплатить стражникам за защиту, и тогда у меня начнутся большие неприятности.
AI_StopProcessInfos(self);
};
|
D
|
module ak.xml.service;
private import std.stream;
private import std.string;
private import ak.xml.coreXML;
//private import std.stdio;
extern (C) int strtol(char *,char **,int);
const int XML_STAG_NORMAL =1;
const int XML_STAG_EMPTY =2;
const int XML_STAG_PI =3;
const int XML_STAG_CDATA =4;
const int XML_STAG_COMMENT =5;
const int XML_STAG_DOCTYPE =6;
const int XML_STAG_ENTITY =7;
const int XML_STAG_ELEMENT =8;
const int XML_STAG_ATTLIST =9;
const int XML_STAG_NOTATION =10;
const int XML_STAG_IGNORE =11;
const int XML_STAG_INCLUDE =12;
const int XML_ENTITY_PE =1;
const int XML_ENTITY_SYSTEM =2;
const int XML_ENTITY_PUBLIC =4;
const int XML_ENTITY_NDATA =8;
int xml_iswhitespace(char r)
{
if(r==0x20 || r==0x9 || r==0xD || r==0xA) return 1;
else return 0;
}
int xml_isnamestartchar(char r)
{
if((r>='a' && r<='z') || (r>='A' && r<='Z') || r=='_' || r==':' || (r>=0xC1 && r<=0xD6) || (r>=0xD8 && r<=0xF6) || (r>=0xF8 && r<=0x2FF) || (r>=0x370 && r<=0x37D) || (r>=0x37F && r<=0x1FFF) || (r>=0x200C && r<=0x200D) || (r>=0x2070 && r<=0x218F) || (r>=0x2C00 && r<=0x2FEF) || (r>=0x3001 && r<=0xD7FF) || (r>=0xF900 && r<=0xFDCF) || (r>=0xFDF0 && r<=0xFFFD) || (r>=0x10000 && r<=0xEFFFF)) return 1;
else return 0;
}
int xml_isnamechar(char r)
{
if(xml_isnamestartchar(r) || (r>='0' && r<='9') || r=='.' || r=='-' || r==0xB7 || (r>=0x0300 && r<=0x036F) || (r>=0x203F && r<=0x2040)) return 1;
else return 0;
}
int xml_iseq(char r)
{
if(r=='=') return 1;
else return 0;
}
int xml_read_whitespace(char[] buffer)
{
int c;
for(;c<buffer.length;c++)
{
if(xml_iswhitespace(buffer[c])) continue;
else break;
}
return ((c>0)?c:-1);
}
int xml_read_name(char[] buffer,inout char[] ret)
{
if(buffer.length==0) return -1;
if(!xml_isnamestartchar(buffer[0])) return -1;
uint c=1;
for(;c<buffer.length;c++)
{
if(xml_isnamechar(buffer[c])) continue;
else break;
}
ret=buffer[0..c];
return ret.length;
}
char[] xml_read_quoted(char[] buffer)
{
if(!buffer.length) return null;
if(buffer[0]!='\'' && buffer[0]!='"') return null;
char[] ret;
uint c=1;
for(;c<buffer.length;c++) if(buffer[c]==buffer[0]) break;
if(c<2) return ret;
ret.length=c-1;
ret[]=buffer[1..c];
return ret;
}
int xml_read_attributes(XML parent,char[] buffer,inout XMLattrib[] ret)
{
static int read_attribute(XML parent,char[] buffer,inout XMLattrib ret)
{
static int read_eq(char[] buffer)
{
int ret=xml_read_whitespace(buffer);
if(ret<0) ret=0;
if(xml_iseq(buffer[ret]))
{
int ret2=xml_read_whitespace(buffer[ret+1..buffer.length]);
if(ret2>=0) return ret+ret2+1;
else return ret+1;
}
return -1;
}
int len=-1,t;
ret=new XMLattrib;
if(xml_read_name(buffer,ret.m_name)>0)
{
int eq=read_eq(buffer[ret.m_name.length..buffer.length]);
if(eq>0)
{
ret.m_value=xml_read_quoted(buffer[(ret.m_name.length+eq)..buffer.length]);
int mv=ret.m_value.length;
char[] smtp;
xml_derefence(parent,null,ret.m_value,smtp);
ret.m_value=smtp;
len=ret.m_name.length+eq+mv+2;
}
}
return len;
}
XMLattrib r;
int len=0;
int alllen=0;
for(;;)
{
len=read_attribute(parent,buffer[alllen..buffer.length],r);
if(len>=0)
{
alllen+=len;
len=xml_read_whitespace(buffer[alllen..buffer.length]);
if(len>=0) alllen+=len;
ret~=r;
}
else
{
if(alllen==0) alllen=-1;
break;
}
}
return alllen;
}
int xml_find_notquoted(char[] buffer,char[] str)
{
int ppp=0,lastshit=0,pp2=0,pp3=0,ppm=0,fl=0,end=0;
for(;;)
{
ppp=find(buffer[lastshit..buffer.length],str);
if(ppp<0) return -1;
ppm=lastshit;
end=lastshit+ppp;
for(;;)
{
pp2=find(buffer[ppm..buffer.length],'"');
pp3=find(buffer[ppm..buffer.length],'\'');
if((pp2<0 || pp2+ppm>end) && (pp3<0 || pp3+ppm>end))
{
fl=1;
lastshit=end;
break;
}
else if(pp2<pp3 || pp3<0 || pp3+ppm>end)
{
ppm+=pp2+1;
pp2=find(buffer[ppm..buffer.length],'"');
if(pp2<0) return -1;
ppm+=pp2+1;
if(ppm>=end)
{
lastshit=ppm;
break;
}
}
else if(pp3<pp2 || pp2<0 || pp2+ppm>end)
{
ppm+=pp3+1;
pp3=find(buffer[ppm..buffer.length],'\'');
if(pp3<0) return -1;
ppm+=pp3+1;
if(ppm>=end)
{
lastshit=ppm;
break;
}
}
}
if(fl) break;
}
return lastshit;
}
int xml_read_stag(char[] buffer,inout char[] ret,inout int type)
{
type=0;
if(buffer.length<2) return -1;
if(buffer[0]=='<')
{
int ret2=find(buffer,'>');
if(ret2<1) return -1;
if(buffer[1]=='!')
{
int indent_comment(char[] buffer)
{
if(buffer.length<5) return 0;
if(buffer[0..2]!="--") return 0;
int ret=find(buffer[2..buffer.length],"-->");
if(ret<0) return 0;
else
{
type=XML_STAG_COMMENT;
return ret+6;
}
}
int indent_doctype(char[] buffer)
{
if(buffer.length<8) return 0;
if(buffer[0..7]!="DOCTYPE") return 0;
int lastshit=7;
int ppp=xml_find_notquoted(buffer[lastshit..buffer.length],"[");
if(ppp>=0)
{
lastshit+=ppp;
ppp=xml_find_notquoted(buffer[lastshit..buffer.length],"]");
if(ppp>=0) lastshit+=ppp;
else return 0;
}
int ret=xml_find_notquoted(buffer[lastshit..buffer.length],">");
if(ret<0) return 0;
else
{
type=XML_STAG_DOCTYPE;
return ret+lastshit+2;
}
}
int indent_cdata(char[] buffer)
{
if(buffer.length<10) return 0;
if(buffer[0..7]!="[CDATA[") return 0;
int ret=find(buffer[8..buffer.length],"]]>");
if(ret<0) return 0;
else
{
type=XML_STAG_CDATA;
return ret+12;
}
}
int indent_entity(char[] buffer)
{
if(buffer.length<7) return 0;
if(buffer[0..6]!="ENTITY") return 0;
int ret=xml_find_notquoted(buffer[7..buffer.length],">");
if(ret<0) return 0;
else
{
type=XML_STAG_ENTITY;
return ret+9;
}
}
ret2=indent_comment(buffer[2..buffer.length]);
if(!ret2) ret2=indent_doctype(buffer[2..buffer.length]);
if(!ret2) ret2=indent_cdata(buffer[2..buffer.length]);
if(!ret2) ret2=indent_entity(buffer[2..buffer.length]);
/*if(!ret2) ret2=indent_element(buffer[2..buffer.length]);
if(!ret2) ret2=indent_attlist(buffer[2..buffer.length]);
if(!re2t) ret2=indent_notation(buffer[2..buffer.length]);
if(!ret2) ret2=indent_ignore(buffer[2..buffer.length]);
if(!ret2) ret2=indent_include(buffer[2..buffer.length]);*/
if(!ret2) return -1;
/*7<!---->
9<!ENTITY>
10<!DOCTYPE>
10<!ELEMENT>
10<!ATTLIST>
11<!NOTATION>
12<![CDATA[]]>
13<![IGNORE[]]>
14<![INCLUDE[]]>*/
}
else if(buffer[1]=='?')
{
if(buffer[ret2-1]=='?') type=XML_STAG_PI;
else return -1;
}
else if(buffer[ret2-1]=='/') type=XML_STAG_EMPTY;
else type=XML_STAG_NORMAL;
ret=buffer[0..ret2+1];
return ret2+1;
}
return -1;
}
int xml_read_etag(char[] buffer,char[] name,inout char[] ret)
{
static int search_etag(char[] buffer,char[] name,inout char[] ret)
{
int l=0,l2=0,t=0,start=0;
for(;start<buffer.length;)
{
l=find(buffer[start..buffer.length],name);
if(l<0) return -1;
else
{
start+=l;
t=start+name.length;
if(t>=buffer.length) return -1;
if(buffer[t]=='>') l2=t+1;
else
{
l2=xml_read_whitespace(buffer[t..buffer.length]);
if(l2<0) l2=0;
if(buffer[t+l2]=='>') l2=t+l2+1;
else
{
start=t+l2;
continue;
}
}
ret=buffer[start..l2];
return start;
}
}
return -1;
}
static int search_stag(char[] buffer,char[] name,inout char[] ret)
{
int l=0,l2=0,t=0,start=0;
for(;start<buffer.length;)
{
l=find(buffer[start..buffer.length],name);
if(l<0) return -1;
start+=l;
t=start+name.length;
l=xml_read_whitespace(buffer[t..buffer.length]);
if(l<0) l=0;
if(l==0) {if(buffer[t+l]=='>') {l2=t+l; break;} else {start=t;continue;}}
t+=l;
l2=find(buffer[t..buffer.length],'>');
if(l2<0) return -1;
else if(buffer[t+l2-1]=='/')
{
start=t+l2;
continue;
}
else
{
l2=t+l2;
break;
}
}
ret=buffer[start..l2+1];
return start;
}
char[] name2="</"~name;
char[] name1="<"~name;
char[] rest1,rest2,m1,m2;
rest2=buffer;
rest1=buffer;
int l1=0,l2=0;
int ret2=0,ret1=0;
for(;;)
{
l2=search_etag(rest2,name2,m2);
if(l2>=0)
{
ret2+=l2;
l1=search_stag(rest1,name1,m1);
if(l1>=0)
{
ret1+=l1;
if(ret1>ret2) break;
else
{
ret2+=m2.length;
ret1+=m1.length;
rest1=rest1[l1+m1.length..rest1.length];
rest2=rest2[l2+m2.length..rest2.length];
}
}
else break;
}
else return -1;
}
ret=buffer[0..ret2];
return m2.length;
}
int xml_read_unknown(XML parent,char[] buffer,inout XMLnode ret)
{
int l=0;
uint start=0;
if(!ret) ret=new XMLnode;
for(;;)
{
l=find(buffer[start..buffer.length],'<');
if(l<0) l=buffer.length-start;
if(l>0)
{
ret.m_value~=buffer[start..start+l];
start+=l;
}
if(start<buffer.length)
{
XMLnode tmp;
int type=0;
l=xml_read_element(parent,buffer[start..buffer.length],tmp,type);
if(l>=0)
{
if(tmp)
{
if((type==XML_STAG_NORMAL || type==XML_STAG_EMPTY))
{
tmp.m_parent=ret;
char[] smtp;
xml_derefence(parent,null,tmp.m_value,smtp);
tmp.m_value=smtp;
ret.m_children~=tmp;
}
else if(type==XML_STAG_CDATA && tmp.m_value.length) ret.m_value~=tmp.m_value;
}
start+=l;
}
else return -1;
}
else break;
}
return 1;
}
int xml_parse_entity(XML parent,char[] buffer)
{
static int read_entity_value(char[] buffer,inout char[] ret)
{
ret=xml_read_quoted(buffer);
if(!ret) return -1;
else return ret.length+2;
}
static int read_entity_exteranlid(char[] buffer,inout XMLentity ntity)
{
static int read_system(char[] buffer,inout XMLentity ntity)
{
int r=-1;
if(buffer.length<9) return -1;
if(buffer[0..6]=="SYSTEM")
{
int t=xml_read_whitespace(buffer[6..buffer.length]);
if(t<0) return -1;
t+=6;
ntity.m_systemliteral=xml_read_quoted(buffer[t..buffer.length]);
if(!ntity.m_systemliteral) return -1;
ntity.m_flags|=XML_ENTITY_SYSTEM;
r=t+ntity.m_systemliteral.length+2;
}
return r;
}
if(buffer.length<8) return -1;
int t;
if(buffer[0..6]=="SYSTEM") return read_system(buffer,ntity);
else if(buffer[0..6]=="PUBLIC")
{
t=xml_read_whitespace(buffer[6..buffer.length]);
if(t<0) return -1;
t+=6;
ntity.m_pubidliteral=xml_read_quoted(buffer[t..buffer.length]);
if(!ntity.m_pubidliteral) return -1;
t+=ntity.m_pubidliteral.length+2;
int t2=xml_read_whitespace(buffer[t..buffer.length]);
if(t2<0) return -1;
t+=t2;
ntity.m_systemliteral=xml_read_quoted(buffer[t..buffer.length]);
if(!ntity.m_systemliteral) return -1;
ntity.m_flags|=XML_ENTITY_PUBLIC;
return t+ntity.m_systemliteral.length+2;
}
return -1;
}
static int read_entity_ndata(char[] buffer,inout XMLentity ntity)
{
if(buffer.length<8) return 0;
int t=xml_read_whitespace(buffer);
if(t<0) return 0;
int t6=t+5;
if(t6>=buffer.length) return 0;
if(buffer[t..t6]!="NDATA") return 0;
t=xml_read_whitespace(buffer[t6..buffer.length]);
if(t<0) return -1;
t+=t6;
if(xml_read_name(buffer[t..buffer.length],ntity.m_ndata)<0) return -1;
t+=ntity.m_ndata.length;
ntity.m_flags|=XML_ENTITY_NDATA;
return t+ntity.m_ndata.length;
}
static int read_entitydef(char[] buffer,inout XMLentity ntity)
{
int ret=read_entity_value(buffer,ntity.m_ogvalue);
if(ret<0)
{
ret=read_entity_exteranlid(buffer,ntity);
if(ret>=0)
{
int t=read_entity_ndata(buffer[ret..buffer.length],ntity);
if(t>=0) ret+=t;
else ret=-1;
}
}
return ret;
}
static int read_pedef(char[] buffer,inout XMLentity ntity)
{
int ret=read_entity_value(buffer,ntity.m_ogvalue);
if(ret<0) return read_entity_exteranlid(buffer,ntity);
return ret;
}
if(buffer.length<9) return -1;
char[] buff=buffer[8..buffer.length-1];
if(!buff.length) return -1;
XMLentity entity=new XMLentity;
int t=xml_read_whitespace(buff),s;
if(t<0) return -1;
s+=t;
if(buff[s]=='%')
{
entity.m_flags|=XML_ENTITY_PE;
s++;
if(s>=buff.length) return -1;
t=xml_read_whitespace(buff[s..buff.length]);
if(t<0) return -1;
s+=t;
}
if(xml_read_name(buff[s..buff.length],entity.m_name)<0) return -1;
s+=entity.m_name.length;
t=xml_read_whitespace(buff[s..buff.length]);
if(t<0) return -1;
s+=t;
if(entity.m_flags&XML_ENTITY_PE) t=read_pedef(buff[s..buff.length],entity);
else t=read_entitydef(buff[s..buff.length],entity);
if(t<0) return -1;
if(!(entity.m_flags&XML_ENTITY_PE)) if(xml_derefence(parent,entity.m_name,entity.m_ogvalue,entity.m_value)<0) return -1;
parent.m_entities[entity.m_name]=entity;
parent.m_entitiesorder~=entity.m_name;
return 1;
}
int xml_parse_pi(XML parent,char[] buffer)
{
if(buffer.length<5) return -1;
int end=buffer.length-2;
char[] name;
if(xml_read_name(buffer[2..end],name)<0) return -1;
int s=2+name.length;
int l=xml_read_whitespace(buffer[s..end]);
if(l<0) return -1;
s+=l;
char[] data=buffer[s..end];
if(l==0 && data.length) return -1;
return parent.OnPI(name,data);
}
int xml_read_element(XML parent,char[] buffer,inout XMLnode ret,inout int type)
{
int total=0;
char[] c;
int l=xml_read_stag(buffer,c,type);
if(l<=0) return -1;
total+=l;
if(type==XML_STAG_CDATA || type==XML_STAG_NORMAL || type==XML_STAG_EMPTY) if(!ret) ret=new XMLnode;
if(type==XML_STAG_CDATA)
{
ret.m_value~=c;
return total;
}
else if(type!=XML_STAG_PI && type!=XML_STAG_ENTITY && type>2)
{
parent.OnExclamation(c,type);
return total;
}
else if(type==XML_STAG_PI)
{
if(xml_parse_pi(parent,c)<0) return -1;
return total;
}
else if(type==XML_STAG_ENTITY)
{
if(xml_parse_entity(parent,c)<0) return -1;
return total;
}
if(xml_read_name(c[1..c.length],ret.m_name)<0) return -1;
l=xml_read_whitespace(c[ret.m_name.length+1..c.length]);
if(l>0) l=xml_read_attributes(parent,c[l+ret.m_name.length+1..c.length],ret.m_attributes);
if(type!=XML_STAG_EMPTY)
{
char[] content;
l=xml_read_etag(buffer[c.length..buffer.length],ret.m_name,content);
if(l>=0)
{
total+=l;
if(content.length)
{
total+=content.length;
l=xml_read_unknown(parent,content,ret);
if(l<0) return -1;
}
}
else return -1;
}
return total;
}
int xml_derefence(XML parent,char[] parentent,char[] buffer,inout char[] ret)
{
int s,r,r2,sr;
char[] Ref,deref;
for(;;)
{
if(s>=buffer.length) break;
r=find(buffer[s..buffer.length],'&');
if(r<0)
{
ret~=buffer[s..buffer.length];
break;
}
sr=s+r;
r2=find(buffer[sr..buffer.length],';');
if(r2<1) return -1;
ret~=buffer[s..sr];
s=sr+r2;
sr++;
Ref=buffer[sr..s];
s++;
//
if(Ref[0]=='#')
{
deref=null;
for(int chr;;)
{
if(Ref.length<2) return -1;
if(Ref[1]=='x')
{
if(Ref.length<3) return -1;
char[] refText = Ref[2..Ref.length];
chr=strtol(refText.ptr,null,16);
}
else
{
char[] refText = Ref[1..Ref.length];
chr=strtol(refText.ptr,null,10);
}
deref~=cast(char)chr;
if(s>=buffer.length) break;
if(buffer[s]=='#')
{
r=find(buffer[s..buffer.length],';');
if(r>0)
{
sr=s+r;
Ref=buffer[s..sr];
s=sr+1;
}
}
else break;
}
}
else
{
if(parentent.length && deref==parentent) return -1;
XMLentity *e=Ref in parent.m_entities;
if(!e) return -1;
deref=e.m_value;
}
ret~=deref;
}
return ret.length;
}
char[] xml_enreference(XML parent,char[] buffer)
{
char[] ret=replace(buffer,"&","&");
ret=replace(ret,"<","<");
ret=replace(ret,">",">");
ret=replace(ret,"'","'");
return replace(ret,"\"",""");
}
|
D
|
/*
* hunt-proton: AMQP Protocol library for D programming language.
*
* Copyright (C) 2018-2019 HuntLabs
*
* Website: https://www.huntlabs.net/
*
* Licensed under the Apache-2.0 License.
*
*/
module hunt.proton.amqp.messaging.Modified;
import hunt.collection.Map;
import hunt.Object;
import hunt.proton.amqp.Symbol;
import hunt.proton.amqp.transport.DeliveryState;
import hunt.proton.amqp.messaging.Outcome;
import std.concurrency: initOnce;
import hunt.Boolean;
class Modified : DeliveryState, Outcome
{
// public static Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:modified:list");
static Symbol DESCRIPTOR_SYMBOL()
{
__gshared Symbol inst;
return initOnce!inst(Symbol.valueOf("amqp:modified:list"));
}
private Boolean _deliveryFailed;
private Boolean _undeliverableHere;
private Map!(Symbol, Object) _messageAnnotations;
public Boolean getDeliveryFailed()
{
return _deliveryFailed;
}
public void setDeliveryFailed(Boolean deliveryFailed)
{
_deliveryFailed = deliveryFailed;
}
public Boolean getUndeliverableHere()
{
return _undeliverableHere;
}
public void setUndeliverableHere(Boolean undeliverableHere)
{
_undeliverableHere = undeliverableHere;
}
public Map!(Symbol, Object) getMessageAnnotations()
{
return _messageAnnotations;
}
public void setMessageAnnotations(Map!(Symbol, Object) messageAnnotations)
{
_messageAnnotations = messageAnnotations;
}
override
public DeliveryStateType getType() {
return DeliveryStateType.Modified;
}
}
|
D
|
///
module std.experimental.allocator.building_blocks.allocator_list;
import std.experimental.allocator.common;
import std.experimental.allocator.building_blocks.null_allocator;
import std.experimental.allocator.gc_allocator;
version(unittest) import std.stdio;
// Turn this on for debugging
// debug = allocator_list;
/**
Given an $(LUCKY object factory) of type `Factory` or a factory function
`factoryFunction`, and optionally also `BookkeepingAllocator` as a supplemental
allocator for bookkeeping, `AllocatorList` creates an allocator that lazily
creates as many allocators are needed for satisfying client allocation requests.
An embedded list builds a most-recently-used strategy: the most recent
allocators used in calls to either `allocate`, `owns` (successful calls
only), or `deallocate` are tried for new allocations in order of their most
recent use. Thus, although core operations take in theory $(BIGOH k) time for
$(D k) allocators in current use, in many workloads the factor is sublinear.
Details of the actual strategy may change in future releases.
`AllocatorList` is primarily intended for coarse-grained handling of
allocators, i.e. the number of allocators in the list is expected to be
relatively small compared to the number of allocations handled by each
allocator. However, the per-allocator overhead is small so using
`AllocatorList` with a large number of allocators should be satisfactory as long
as the most-recently-used strategy is fast enough for the application.
`AllocatorList` makes an effort to return allocated memory back when no
longer used. It does so by destroying empty allocators. However, in order to
avoid thrashing (excessive creation/destruction of allocators under certain use
patterns), it keeps unused allocators for a while.
Params:
factoryFunction = A function or template function (including function literals).
New allocators are created by calling `factoryFunction(n)` with strictly
positive numbers `n`. Delegates that capture their enviroment are not created
amid concerns regarding garbage creation for the environment. When the factory
needs state, a `Factory` object should be used.
BookkeepingAllocator = Allocator used for storing bookkeeping data. The size of
bookkeeping data is proportional to the number of allocators. If $(D
BookkeepingAllocator) is $(D NullAllocator), then $(D AllocatorList) is
"ouroboros-style", i.e. it keeps the bookkeeping data in memory obtained from
the allocators themselves. Note that for ouroboros-style management, the size
$(D n) passed to $(D make) will be occasionally different from the size
requested by client code.
Factory = Type of a factory object that returns new allocators on a need
basis. For an object $(D sweatshop) of type $(D Factory), `sweatshop(n)` should
return an allocator able to allocate at least `n` bytes (i.e. `Factory` must
define `opCall(size_t)` to return an allocator object). Usually the capacity of
allocators created should be much larger than $(D n) such that an allocator can
be used for many subsequent allocations. $(D n) is passed only to ensure the
minimum necessary for the next allocation. The factory object is allowed to hold
state, which will be stored inside `AllocatorList` as a direct `public` member
called `factory`.
*/
struct AllocatorList(Factory, BookkeepingAllocator = GCAllocator)
{
import std.traits : hasMember;
import std.conv : emplace;
import std.typecons : Ternary;
import std.experimental.allocator.building_blocks.stats_collector
: StatsCollector, Options;
private enum ouroboros = is(BookkeepingAllocator == NullAllocator);
/**
Alias for `typeof(Factory()(1))`, i.e. the type of the individual
allocators.
*/
alias Allocator = typeof(Factory.init(1));
// Allocator used internally
private alias SAllocator = StatsCollector!(Allocator, Options.bytesUsed);
private static struct Node
{
// Allocator in this node
SAllocator a;
Node* next;
@disable this(this);
// Is this node unused?
void setUnused() { next = &this; }
bool unused() const { return next is &this; }
// Just forward everything to the allocator
alias a this;
}
/**
If $(D BookkeepingAllocator) is not $(D NullAllocator), $(D bkalloc) is
defined and accessible.
*/
// State is stored in an array, but it has a list threaded through it by
// means of "nextIdx".
// state
static if (!ouroboros)
{
static if (stateSize!BookkeepingAllocator) BookkeepingAllocator bkalloc;
else alias bkalloc = BookkeepingAllocator.instance;
}
static if (stateSize!Factory)
{
Factory factory;
}
private Node[] allocators;
private Node* root;
static if (stateSize!Factory)
{
private auto make(size_t n) { return factory(n); }
}
else
{
private auto make(size_t n) { Factory f; return f(n); }
}
/**
Constructs an `AllocatorList` given a factory object. This constructor is
defined only if `Factory` has state.
*/
static if (stateSize!Factory)
this(ref Factory plant)
{
factory = plant;
}
/// Ditto
static if (stateSize!Factory)
this(Factory plant)
{
factory = plant;
}
static if (hasMember!(Allocator, "deallocateAll")
&& hasMember!(Allocator, "owns"))
~this()
{
deallocateAll;
}
/**
The alignment offered.
*/
enum uint alignment = Allocator.alignment;
/**
Allocate a block of size $(D s). First tries to allocate from the existing
list of already-created allocators. If neither can satisfy the request,
creates a new allocator by calling $(D make(s)) and delegates the request
to it. However, if the allocation fresh off a newly created allocator
fails, subsequent calls to $(D allocate) will not cause more calls to $(D
make).
*/
void[] allocate(size_t s)
{
for (auto p = &root, n = *p; n; p = &n.next, n = *p)
{
auto result = n.allocate(s);
if (result.length != s) continue;
// Bring to front if not already
if (root != n)
{
*p = n.next;
n.next = root;
root = n;
}
return result;
}
// Can't allocate from the current pool. Check if we just added a new
// allocator, in that case it won't do any good to add yet another.
if (root && root.empty == Ternary.yes)
{
// no can do
return null;
}
// Add a new allocator
if (auto a = addAllocator(s))
{
auto result = a.allocate(s);
assert(owns(result) == Ternary.yes || !result.ptr);
return result;
}
return null;
}
private void moveAllocators(void[] newPlace)
{
assert(newPlace.ptr.alignedAt(Node.alignof));
assert(newPlace.length % Node.sizeof == 0);
auto newAllocators = cast(Node[]) newPlace;
assert(allocators.length <= newAllocators.length);
// Move allocators
foreach (i, ref e; allocators)
{
if (e.unused)
{
newAllocators[i].setUnused;
continue;
}
import core.stdc.string : memcpy;
memcpy(&newAllocators[i].a, &e.a, e.a.sizeof);
if (e.next)
{
newAllocators[i].next = newAllocators.ptr
+ (e.next - allocators.ptr);
}
else
{
newAllocators[i].next = null;
}
}
// Mark the unused portion as unused
foreach (i; allocators.length .. newAllocators.length)
{
newAllocators[i].setUnused;
}
auto toFree = allocators;
// Change state
root = newAllocators.ptr + (root - allocators.ptr);
allocators = newAllocators;
// Free the olden buffer
static if (ouroboros)
{
static if (hasMember!(Allocator, "deallocate")
&& hasMember!(Allocator, "owns"))
deallocate(toFree);
}
else
{
bkalloc.deallocate(toFree);
}
}
static if (ouroboros)
private Node* addAllocator(size_t atLeastBytes)
{
void[] t = allocators;
static if (hasMember!(Allocator, "expand")
&& hasMember!(Allocator, "owns"))
{
immutable bool expanded = t && this.expand(t, Node.sizeof);
}
else
{
enum expanded = false;
}
if (expanded)
{
import std.c.string : memcpy;
assert(t.length % Node.sizeof == 0);
assert(t.ptr.alignedAt(Node.alignof));
allocators = cast(Node[]) t;
allocators[$ - 1].setUnused;
auto newAlloc = SAllocator(make(atLeastBytes));
memcpy(&allocators[$ - 1].a, &newAlloc, newAlloc.sizeof);
emplace(&newAlloc);
}
else
{
immutable toAlloc = (allocators.length + 1) * Node.sizeof
+ atLeastBytes + 128;
auto newAlloc = SAllocator(make(toAlloc));
auto newPlace = newAlloc.allocate(
(allocators.length + 1) * Node.sizeof);
if (!newPlace) return null;
moveAllocators(newPlace);
import core.stdc.string : memcpy;
memcpy(&allocators[$ - 1].a, &newAlloc, newAlloc.sizeof);
emplace(&newAlloc);
assert(allocators[$ - 1].owns(allocators) == Ternary.yes);
}
// Insert as new root
if (root != &allocators[$ - 1])
{
allocators[$ - 1].next = root;
root = &allocators[$ - 1];
}
else
{
// This is the first one
root.next = null;
}
assert(!root.unused);
return root;
}
static if (!ouroboros)
private Node* addAllocator(size_t atLeastBytes)
{
void[] t = allocators;
static if (hasMember!(BookkeepingAllocator, "expand"))
immutable bool expanded = bkalloc.expand(t, Node.sizeof);
else
immutable bool expanded = false;
if (expanded)
{
assert(t.length % Node.sizeof == 0);
assert(t.ptr.alignedAt(Node.alignof));
allocators = cast(Node[]) t;
allocators[$ - 1].setUnused;
}
else
{
// Could not expand, create a new block
t = bkalloc.allocate((allocators.length + 1) * Node.sizeof);
assert(t.length % Node.sizeof == 0);
if (!t.ptr) return null;
moveAllocators(t);
}
assert(allocators[$ - 1].unused);
auto newAlloc = SAllocator(make(atLeastBytes));
import core.stdc.string : memcpy;
memcpy(&allocators[$ - 1].a, &newAlloc, newAlloc.sizeof);
emplace(&newAlloc);
// Creation succeeded, insert as root
if (allocators.length == 1)
allocators[$ - 1].next = null;
else
allocators[$ - 1].next = root;
assert(allocators[$ - 1].a.bytesUsed == 0);
root = &allocators[$ - 1];
return root;
}
/**
Defined only if `Allocator` defines `owns`. Tries each allocator in
turn, in most-recently-used order. If the owner is found, it is moved to
the front of the list as a side effect under the assumption it will be used
soon.
Returns: `Ternary.yes` if one allocator was found to return `Ternary.yes`,
`Ternary.no` if all component allocators returned `Ternary.no`, and
`Ternary.unknown` if no allocator returned `Ternary.yes` and at least one
returned `Ternary.unknown`.
*/
static if (hasMember!(Allocator, "owns"))
Ternary owns(void[] b)
{
auto result = Ternary.no;
for (auto p = &root, n = *p; n; p = &n.next, n = *p)
{
immutable t = n.owns(b);
if (t != Ternary.yes)
{
if (t == Ternary.unknown) result = t;
continue;
}
// Move the owner to front, speculating it'll be used
if (n != root)
{
*p = n.next;
n.next = root;
root = n;
}
return Ternary.yes;
}
return result;
}
/**
Defined only if $(D Allocator.expand) is defined. Finds the owner of $(D b)
and calls $(D expand) for it. The owner is not brought to the head of the
list.
*/
static if (hasMember!(Allocator, "expand")
&& hasMember!(Allocator, "owns"))
bool expand(ref void[] b, size_t delta)
{
if (!b.ptr) return delta == 0;
for (auto p = &root, n = *p; n; p = &n.next, n = *p)
{
if (n.owns(b) == Ternary.yes) return n.expand(b, delta);
}
return false;
}
/**
Defined only if $(D Allocator.reallocate) is defined. Finds the owner of
$(D b) and calls $(D reallocate) for it. If that fails, calls the global
$(D reallocate), which allocates a new block and moves memory.
*/
static if (hasMember!(Allocator, "reallocate"))
bool reallocate(ref void[] b, size_t s)
{
// First attempt to reallocate within the existing node
if (!b.ptr)
{
b = allocate(s);
return b.length == s;
}
for (auto p = &root, n = *p; n; p = &n.next, n = *p)
{
if (n.owns(b) == Ternary.yes) return n.reallocate(b, s);
}
// Failed, but we may find new memory in a new node.
return .reallocate(this, b, s);
}
/**
Defined if $(D Allocator.deallocate) and $(D Allocator.owns) are defined.
*/
static if (hasMember!(Allocator, "deallocate")
&& hasMember!(Allocator, "owns"))
bool deallocate(void[] b)
{
if (!b.ptr) return true;
assert(allocators.length);
assert(owns(b) == Ternary.yes);
bool result;
for (auto p = &root, n = *p; ; p = &n.next, n = *p)
{
assert(n);
if (n.owns(b) != Ternary.yes) continue;
result = n.deallocate(b);
// Bring to front
if (n != root)
{
*p = n.next;
n.next = root;
root = n;
}
if (n.empty != Ternary.yes) return result;
break;
}
// Hmmm... should we return this allocator back to the wild? Let's
// decide if there are TWO empty allocators we can release ONE. This
// is to avoid thrashing.
// Note that loop starts from the second element.
for (auto p = &root.next, n = *p; n; p = &n.next, n = *p)
{
if (n.unused || n.empty != Ternary.yes) continue;
// Used and empty baby, nuke it!
n.a.destroy;
*p = n.next;
n.setUnused;
break;
}
return result;
}
/**
Defined only if $(D Allocator.owns) and $(D Allocator.deallocateAll) are
defined.
*/
static if (ouroboros && hasMember!(Allocator, "deallocateAll")
&& hasMember!(Allocator, "owns"))
bool deallocateAll()
{
Node* special;
foreach (ref n; allocators)
{
if (n.unused) continue;
if (n.owns(allocators) == Ternary.yes)
{
special = &n;
continue;
}
n.a.deallocateAll;
n.a.destroy;
}
assert(special || !allocators.ptr);
if (special)
{
special.deallocate(allocators);
}
allocators = null;
root = null;
return true;
}
static if (!ouroboros && hasMember!(Allocator, "deallocateAll")
&& hasMember!(Allocator, "owns"))
bool deallocateAll()
{
foreach (ref n; allocators)
{
if (n.unused) continue;
n.a.deallocateAll;
n.a.destroy;
}
bkalloc.deallocate(allocators);
allocators = null;
root = null;
return true;
}
/**
Returns `Ternary.yes` if no allocators are currently active,
`Ternary.no` otherwise. This methods never returns `Ternary.unknown`.
*/
Ternary empty() const
{
return Ternary(!allocators.length);
}
}
/// Ditto
template AllocatorList(alias factoryFunction,
BookkeepingAllocator = GCAllocator)
{
alias A = typeof(factoryFunction(1));
static assert(
// is a template function (including literals)
is(typeof({A function(size_t) @system x = factoryFunction!size_t;}))
||
// or a function (including literals)
is(typeof({A function(size_t) @system x = factoryFunction;}))
,
"Only function names and function literals that take size_t"
~ " and return an allocator are accepted, not "
~ typeof(factoryFunction).stringof
);
static struct Factory
{
A opCall(size_t n) { return factoryFunction(n); }
}
alias AllocatorList = .AllocatorList!(Factory, BookkeepingAllocator);
}
///
version(Posix) unittest
{
import std.algorithm.comparison : max;
import std.experimental.allocator.building_blocks.region : Region;
import std.experimental.allocator.mmap_allocator : MmapAllocator;
import std.experimental.allocator.building_blocks.segregator : Segregator;
import std.experimental.allocator.building_blocks.free_list
: ContiguousFreeList;
// Ouroboros allocator list based upon 4MB regions, fetched directly from
// mmap. All memory is released upon destruction.
alias A1 = AllocatorList!((n) => Region!MmapAllocator(max(n, 1024 * 4096)),
NullAllocator);
// Allocator list based upon 4MB regions, fetched from the garbage
// collector. All memory is released upon destruction.
alias A2 = AllocatorList!((n) => Region!GCAllocator(max(n, 1024 * 4096)));
// Ouroboros allocator list based upon 4MB regions, fetched from the garbage
// collector. Memory is left to the collector.
alias A3 = AllocatorList!(
(n) => Region!NullAllocator(new void[max(n, 1024 * 4096)]),
NullAllocator);
// Allocator list that creates one freelist for all objects
alias A4 =
Segregator!(
64, AllocatorList!(
(n) => ContiguousFreeList!(NullAllocator, 0, 64)(
GCAllocator.instance.allocate(4096))),
GCAllocator);
A4 a;
auto small = a.allocate(64);
assert(small);
a.deallocate(small);
auto b1 = a.allocate(1024 * 8192);
assert(b1 !is null); // still works due to overdimensioning
b1 = a.allocate(1024 * 10);
assert(b1.length == 1024 * 10);
}
unittest
{
// Create an allocator based upon 4MB regions, fetched from the GC heap.
import std.algorithm.comparison : max;
import std.experimental.allocator.building_blocks.region : Region;
AllocatorList!((n) => Region!GCAllocator(new void[max(n, 1024 * 4096)]),
NullAllocator) a;
const b1 = a.allocate(1024 * 8192);
assert(b1 !is null); // still works due to overdimensioning
const b2 = a.allocate(1024 * 10);
assert(b2.length == 1024 * 10);
a.deallocateAll();
}
unittest
{
// Create an allocator based upon 4MB regions, fetched from the GC heap.
import std.algorithm.comparison : max;
import std.experimental.allocator.building_blocks.region : Region;
AllocatorList!((n) => Region!()(new void[max(n, 1024 * 4096)])) a;
auto b1 = a.allocate(1024 * 8192);
assert(b1 !is null); // still works due to overdimensioning
b1 = a.allocate(1024 * 10);
assert(b1.length == 1024 * 10);
a.deallocateAll();
}
unittest
{
import std.algorithm.comparison : max;
import std.experimental.allocator.building_blocks.region : Region;
import std.typecons : Ternary;
AllocatorList!((n) => Region!()(new void[max(n, 1024 * 4096)])) a;
auto b1 = a.allocate(1024 * 8192);
assert(b1 !is null);
b1 = a.allocate(1024 * 10);
assert(b1.length == 1024 * 10);
a.allocate(1024 * 4095);
a.deallocateAll();
assert(a.empty == Ternary.yes);
}
unittest
{
import std.experimental.allocator.building_blocks.region : Region;
enum bs = GCAllocator.alignment;
AllocatorList!((n) => Region!GCAllocator(256 * bs)) a;
auto b1 = a.allocate(192 * bs);
assert(b1.length == 192 * bs);
assert(a.allocators.length == 1);
auto b2 = a.allocate(64 * bs);
assert(b2.length == 64 * bs);
assert(a.allocators.length == 1);
auto b3 = a.allocate(192 * bs);
assert(b3.length == 192 * bs);
assert(a.allocators.length == 2);
a.deallocate(b1);
b1 = a.allocate(64 * bs);
assert(b1.length == 64 * bs);
assert(a.allocators.length == 2);
a.deallocateAll();
}
|
D
|
/Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Empty.o : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Deprecated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Cancelable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObserverType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Reactive.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/RecursiveLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Errors.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/AtomicInt.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Event.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/First.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/Platform.Linux.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap /Users/MohamedNawar/Desktop/sharzein/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Empty~partial.swiftmodule : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Deprecated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Cancelable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObserverType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Reactive.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/RecursiveLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Errors.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/AtomicInt.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Event.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/First.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/Platform.Linux.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap /Users/MohamedNawar/Desktop/sharzein/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Empty~partial.swiftdoc : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Deprecated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Cancelable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObserverType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Reactive.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/RecursiveLock.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Errors.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/AtomicInt.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Event.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/First.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Rx.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/Platform/Platform.Linux.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit.modulemap /Users/MohamedNawar/Desktop/sharzein/build/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap /Users/MohamedNawar/Desktop/sharzein/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
CHAIN
IF WEIGHT #-7~Global("SanLuxley","GLOBAL",1)~THEN BFHLSEB Luxsan1
@0
DO~SetGlobal("SanLuxley","GLOBAL",2)~
==BSandr@1
==BFHLSEB@2
=@3
==BSandr@4
==BFHLSEB@5
==BSandr@6
==BFHLSEB@7EXIT
CHAIN
IF WEIGHT #-7~Global("SanLuxley","GLOBAL",3)~THEN BFHLAND Luxsan2
@8
DO~SetGlobal("SanLuxley","GLOBAL",4)RealSetGlobalTimer("SanLuxleytime","GLOBAL",3000)~
==BSandr@9
=@10
=@11
==BFHLAND@12
==BSandr@13
==BFHLAND@14
==BSandr@15
==BFHLAND@16
==BSandr@17EXIT
CHAIN
IF WEIGHT #-7~Global("SanLuxley","GLOBAL",5)~THEN BFHLSEB Luxsan3
@18
DO~SetGlobal("SanLuxley","GLOBAL",6) RealSetGlobalTimer("SanLuxleytime","GLOBAL",3000)~
==BSandr@19
==BFHLSEB@20
==BSandr@21
==BFHLSEB@22
==BSandr@23
==BFHLSEB@24
==BSandr@25
==BFHLSEB@26EXIT
CHAIN
IF WEIGHT #-7~Global("SanLuxley","GLOBAL",7)~THEN BFHLAND Luxsan4
@27
DO~SetGlobal("SanLuxley","GLOBAL",8) RealSetGlobalTimer("SanLuxleytime","GLOBAL",3000)~
==BSandr@28
==BFHLAND@29
==BSandr@30
==BFHLAND@31
==BSandr@32
==BFHLAND@33
==BSandr@34
==BFHLAND@35
==BSandr@36EXIT
CHAIN
IF WEIGHT #-7~Global("SanLuxley","GLOBAL",9)~THEN BFHLSEB Luxsan5
@37
=@38
DO~SetGlobal("SanLuxley","GLOBAL",10) RealSetGlobalTimer("SanLuxleytime","GLOBAL",3000)~
==BFHLAND@39
==BSandr@40
==BFHLSEB@41
==BFHLAND@42
=@43
==BSandr@44
==BFHLSEB@45
==BFHLAND@46
==BSandr@47
==BFHLAND@48
==BFHLSEB@49 EXIT
|
D
|
module decisioncenter;
import core.thread;
import std.json, std.file, std.conv, std.string, std.math;
import hardware.hardware, gpscoord, config, saillog, polar;
import core.sync.condition;
import core.sync.mutex;
public import autopilot, sailhandler;
/**
Singleton class where all decisions are taken, to guide the boat
*/
class DecisionCenter {
/**
Singleton getter
*/
static DecisionCenter Get(){
synchronized{
if(m_inst is null)
m_inst = new DecisionCenter();
}
return m_inst;
}
/**
Get/Set the targetted heading
Notes: Will modify autopilot heading
*/
@property{
double targetheading()const{return m_targetheading;}
void targetheading(double target){m_targetheading = target;}
}
/**
Get/set the targeted position
*/
@property{
GpsCoord targetposition()const{return m_route[m_nDestinationIndex];}
void targetposition(GpsCoord target){m_route[m_nDestinationIndex] = target;}
}
/**
Enable/disable the decision center thread (=ArtificialIntelligence)
*/
@property{
bool enabled()const{return m_bEnabled;}
void enabled(bool b){m_bEnabled = b;}
}
/**
Getter for Autopilot and SailHandler classes
*/
@property{
Autopilot autopilot(){return m_autopilot;}
SailHandler sailhandler(){return m_sailhandler;}
}
/**
Back to the starting position, registering the position
*/
void backToStartPosition(){
GpsCoord start = m_route[0];
GpsCoord now = Hardware.Get!Gps(DeviceID.Gps).value();
m_route = [now, start];
//next destination is the starting one
m_nDestinationIndex = 1;
}
void StartWithGPS(in GpsCoord startpoint){
if(!m_bStartedWithGPS){
m_bStartedWithGPS = true;
enabled(true);
m_route = startpoint~m_route;
if(Config.Get!bool("DecisionCenter", "ReturnToOrigin"))
m_route~=startpoint;
SailLog.Success("The complete route is: ",m_route);
// fill first cell with actual GPS position
MakeDecision();//Will update m_targetposition and m_targetheading
m_autopilot = new Autopilot();
m_sailhandler = new SailHandler();
m_thread = new Thread(&DecisionThread);
m_thread.name(typeof(this).stringof);
m_thread.isDaemon(true);
m_thread.start();
SailLog.Success("First GPS Coordinate received (",startpoint,") ! You RRRRRR ready to sail !");
}
else
SailLog.Warning("Called DecisionCenter.StartWithGPS when already started with GPS previously");
}
private:
static __gshared DecisionCenter m_inst;
/**
Does the Autopilot and SailHandler instantiation
*/
this() {
SailLog.Notify("Starting ",typeof(this).stringof," instantiation in ",Thread.getThis().name," thread...");
m_bEnabled = false;//Will be enabled by GPS device on first coordinate
m_stopCond = new Condition(new Mutex);
//Route parsing
string sFile = Config.Get!string("DecisionCenter", "RestoreRoute");
if(exists(sFile)){
readRoute(sFile);
}
else {
sFile = Config.Get!string("DecisionCenter", "Route");
readRoute(sFile);
}
m_nDestinationIndex = 1;
SailLog.Notify("Route set to: ",m_route, ". Waiting for first GPS coordinate...");
string sPolWind = Config.Get!string("Polars", "Wind");
string sPolHeading = Config.Get!string("Polars", "Heading");
m_polarWind = Polar(sPolWind);
m_polarHeading = Polar(sPolHeading);
SailLog.Notify("Using polars: ",sPolWind,", ",sPolHeading);
//Instanciate hardware class
Hardware.GetClass();
SailLog.Success(typeof(this).stringof~" instantiated in ",Thread.getThis().name," thread");
version(unittest){
StartWithGPS(GpsCoord(0,0));
}
else{
if(Config.Get!bool("DecisionCenter", "StartWithoutGPS")) StartWithGPS(GpsCoord(0,0));
}
}
~this(){
SailLog.Critical("Destroying ",typeof(this).stringof);
m_stop = true;
m_stopCond.notifyAll;
if(m_bStartedWithGPS){
m_autopilot.destroy;
m_sailhandler.destroy;
m_thread.join();
}
}
Thread m_thread;
shared bool m_stop = false;
Condition m_stopCond;
void DecisionThread(){
while(!m_stop){
try{
debug(thread){
SailLog.Post("Running "~typeof(this).stringof~" thread");
}
if(m_bEnabled)
MakeDecision();
}catch(Throwable t){
SailLog.Critical("In thread ",m_thread.name,": ",t.toString);
}
synchronized(m_stopCond.mutex) m_stopCond.wait(dur!("msecs")(Config.Get!uint("DecisionCenter", "Period")));
}
}
/**
THIS IS WHERE DECISIONS ARE TAKEN
*/
void MakeDecision(){
//Check if target is reached
CheckIsDestinationReached(); //Updates m_targetposition
//Heading
checkDistanceToRoute();
m_targetheading = getHeadingAngle();
}
/**
Factors applied on each polar vector (among its importance)
*/
enum PolarFactor : float {
Wind = 1.0,
Heading = 1.0
}
/**
Get an optimized heading angle using polars.
Using AIUR.
*/
float getHeadingAngle(){
//Reading fixed values (references)
//Target heading
float _targetDirection = (to!float(Hardware.Get!Gps(DeviceID.Gps).value.GetBearingTo(targetposition())) + 360.0 ) % 360.0;
float compassAngle = (to!float(Hardware.Get!Compass(DeviceID.Compass).value));
float heading_angle = _targetDirection - compassAngle;
if(isNaN(heading_angle)) heading_angle = 0;
//Wind direction
float wind_angle = Hardware.Get!WindDir(DeviceID.WindDir).value();
//Result vector = 0
float result = 0.0, res_sum = 0.0;
float h_vect, w_vect, s_vector;
//Solve "equation" on polars
//Move wind ruler (cap ruler is fixed at time t) from min (0) to max (360). For each position :
for(float i=0.0 ; i<=360.0 ; i=i+1.0){
//get boat heading vector (== pos 0 of wind ruler)
h_vect = m_polarHeading.getValue(i - heading_angle);
//get wind vector (position fixed)
w_vect = m_polarWind.getValue(wind_angle - i);
//apply coefs on those 2 vectors and sum them
s_vector = ( h_vect * PolarFactor.Heading ) * ( w_vect * PolarFactor.Wind );
//DBG : SailLog.Post("s_vector (",i,") : ", s_vector , "[w", w_vect, ";h", h_vect,"]");
//is the vector greater than result vector ?
if(s_vector > res_sum){
//YES : result vector = this new vector position
res_sum = s_vector;
result = i;
}
//NO : do nothing
}
//Return result vector (== heading angle)
return (result + compassAngle + 360.0) % 360.0;
}
/**
Checks if the distance to the route is not too important.
Forces the boat to turn by disablig a side of the polars.
*/
void checkDistanceToRoute(){
float distanceToRoute = to!float(Hardware.Get!Gps(DeviceID.Gps).value.GetDistanceToRoute(m_route[m_nDestinationIndex - 1], m_route[m_nDestinationIndex] ));
SailLog.Post("Distance to route: ", distanceToRoute, "m");
auto distToRouteMax = Config.Get!float("DecisionCenter", "DistanceToRoute");
if(distanceToRoute > distToRouteMax){
//Right : disable right side
m_polarHeading.setSide(true, false);
}
else if( -distanceToRoute > distToRouteMax){
//Left : disable left side
m_polarHeading.setSide(false, true);
}
else{
//Enable both sides
m_polarHeading.setSide();
}
}
void CheckIsDestinationReached(){
GpsCoord currPos = Hardware.Get!Gps(DeviceID.Gps).value;
float fDistance = currPos.GetDistanceTo(m_route[m_nDestinationIndex]);
SailLog.Post("Distance to target: ", fDistance, "m");
if(fDistance<=Config.Get!float("DecisionCenter", "DistanceToTarget")){
m_nDestinationIndex++;
SailLog.Notify("Set new target to ",m_route[m_nDestinationIndex].To(GpsCoord.Unit.DecDeg)," (index=",m_nDestinationIndex,")");
//Set RestoreRoute file
string sFile = Config.Get!string("DecisionCenter", "RestoreRoute");
File restoreFile;
restoreFile.open(sFile, "w+");
restoreFile.writeln("[");
for(int i = m_nDestinationIndex ; i < m_route.length-1 ; i++){
restoreFile.write("{\"unit\":\"DecDeg\", \"value\":\"", m_route[i].To(GpsCoord.Unit.DecDeg) ,"\"}");
if(i < m_route.length-2)restoreFile.writeln(",");
}
restoreFile.writeln("\n]");
restoreFile.flush();
restoreFile.close();
}
}
void readRoute(string sFile){
try{
JSONValue jsonFile = parseJSON(readText(sFile).removechars("\n\r\t"));
GpsCoord.Unit unit;
foreach(ref json ; jsonFile.array){
try{
switch(json["unit"].str){
case "DecDeg": unit=GpsCoord.Unit.DecDeg; break;
case "DegMinSec": unit=GpsCoord.Unit.DegMinSec; break;
case "GPS": unit=GpsCoord.Unit.GPS; break;
default: unit=GpsCoord.Unit.DecDeg; break;
}
m_route~=GpsCoord(unit, json["value"].str);
}catch(Exception e){
SailLog.Warning("Ignoring route Waypoint: ", e);
}
}
}catch(Exception e){
SailLog.Critical("Unable to read Route (",sFile,"): ", e);
}
}
bool m_bEnabled;
bool m_bStartedWithGPS = false;
double m_targetheading = 0;
uint m_nLoopTimeMS;
Autopilot m_autopilot;
SailHandler m_sailhandler;
ushort m_nDestinationIndex;
GpsCoord[] m_route;
Polar m_polarWind, m_polarHeading;
}
unittest{
auto dc = DecisionCenter.Get;
dc.enabled = false;
assert(dc.enabled == false);
dc.m_route = [GpsCoord(1, 1), GpsCoord(2,2)];
dc.backToStartPosition();
assert(dc.targetposition == GpsCoord(1,1));
dc.MakeDecision();
assert(dc.targetposition == GpsCoord(1,1));
auto gps = Hardware.Get!Gps(DeviceID.Gps);
gps.isemulated = true;
dc.m_route = [GpsCoord(1, 1), GpsCoord(2,1), GpsCoord(3,1)];
dc.m_nDestinationIndex = 0;
gps.value = GpsCoord(1,1);
dc.MakeDecision();
assert(dc.targetposition == GpsCoord(2,1));
//TODO: check polar decisions
}
|
D
|
import std.stdio;
import std.file;
import ecocap.classifier;
import ecocap.packetcapture;
import ecocap.domains;
import vibe.d;
__gshared TrafficClassifier classifier;
auto getTotals() {
Json data = Json.emptyObject;
data["total"] = classifier.data.serializeToJson;
data["download"] = classifier.downloadTimeline.get.serializeToJson;
data["upload"] = classifier.uploadTimeline.get.serializeToJson;
return data;
}
void file(string name, string mime)(HTTPServerRequest req, HTTPServerResponse res)
{
debug {
string content = readText("public/" ~ name);
} else {
enum string content = import(name);
}
res.writeBody(content, mime);
}
void data(HTTPServerRequest req, HTTPServerResponse res)
{
res.writeJsonBody(getTotals);
}
void handleWs(scope WebSocket sock)
{
while (sock.connected) {
try {
auto message = sock.receiveText.parseJsonString;
if("name" in message) {
switch(message["name"].to!string) {
case "report":
sock.send(getTotals.toString);
break;
default:
}
}
} catch(Exception e) { }
}
}
shared static this()
{
auto router = new URLRouter;
router.get("/data", &data);
router.get("/ws", handleWebSockets(&handleWs));
router.get("/js/main.js", &file!("js/main.js", "text/javascript"));
router.get("/js/chartist.min.js", &file!("js/chartist.min.js", "text/javascript"));
router.get("/css/chartist.min.css", &file!("css/chartist.min.css", "text/css"));
router.get("/", &file!("index.html", "text/html; charset=UTF-8"));
auto settings = new HTTPServerSettings;
settings.port = 8880;
listenHTTP(settings, router);
}
int main()
{
classifier = new TrafficClassifier();
PacketCapture capture = new PacketCapture();
capture.open();
capture.setFilter("ip");
capture.start();
void packetHandler(immutable Packet packet) {
classifier.writeln;
if(classifier is null) {// || packet.protocol != IpProtocol.IPPROTO_TCP) {
return;
}
classifier.add(packet);
writeln("total: ", classifier.data.serializeToJson.toPrettyString);
/*
writeln("hosts: ", classifier.hosts.serializeToJson.toPrettyString);
writeln("remote: ", classifier.remotesData.serializeToJson.toPrettyString);
writeln("timeline: ", classifier.downloadTimeline.get);*/
}
capture.handler(&packetHandler);
scope(exit) {
capture.close();
}
return runApplication();
}
|
D
|
/* GDC -- D front-end for GCC
Copyright (C) 2011, 2012 Free Software Foundation, Inc.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>.
*/
/* GNU/GCC unwind interface declarations for D. This must match unwind-pe.h */
module gcc.unwind_pe;
import gcc.unwind;
private import core.stdc.stdlib : abort;
/* Pointer encodings, from dwarf2.h. */
enum
{
DW_EH_PE_absptr = 0x00,
DW_EH_PE_omit = 0xff,
DW_EH_PE_uleb128 = 0x01,
DW_EH_PE_udata2 = 0x02,
DW_EH_PE_udata4 = 0x03,
DW_EH_PE_udata8 = 0x04,
DW_EH_PE_sleb128 = 0x09,
DW_EH_PE_sdata2 = 0x0A,
DW_EH_PE_sdata4 = 0x0B,
DW_EH_PE_sdata8 = 0x0C,
DW_EH_PE_signed = 0x08,
DW_EH_PE_pcrel = 0x10,
DW_EH_PE_textrel = 0x20,
DW_EH_PE_datarel = 0x30,
DW_EH_PE_funcrel = 0x40,
DW_EH_PE_aligned = 0x50,
DW_EH_PE_indirect = 0x80
}
version (NO_SIZE_OF_ENCODED_VALUE) {}
else
{
/* Given an encoding, return the number of bytes the format occupies.
This is only defined for fixed-size encodings, and so does not
include leb128. */
uint size_of_encoded_value (ubyte encoding)
{
if (encoding == DW_EH_PE_omit)
return 0;
final switch (encoding & 0x07)
{
case DW_EH_PE_absptr:
return (void *).sizeof;
case DW_EH_PE_udata2:
return 2;
case DW_EH_PE_udata4:
return 4;
case DW_EH_PE_udata8:
return 8;
}
assert(0);
}
}
version (NO_BASE_OF_ENCODED_VALUE) {}
else
{
/* Given an encoding and an _Unwind_Context, return the base to which
the encoding is relative. This base may then be passed to
read_encoded_value_with_base for use when the _Unwind_Context is
not available. */
_Unwind_Ptr base_of_encoded_value (ubyte encoding, _Unwind_Context *context)
{
if (encoding == DW_EH_PE_omit)
return cast(_Unwind_Ptr) 0;
final switch (encoding & 0x70)
{
case DW_EH_PE_absptr:
case DW_EH_PE_pcrel:
case DW_EH_PE_aligned:
return cast(_Unwind_Ptr) 0;
case DW_EH_PE_textrel:
return _Unwind_GetTextRelBase (context);
case DW_EH_PE_datarel:
return _Unwind_GetDataRelBase (context);
case DW_EH_PE_funcrel:
return _Unwind_GetRegionStart (context);
}
assert (0);
}
}
/* Read an unsigned leb128 value from P, store the value in VAL, return
P incremented past the value. We assume that a word is large enough to
hold any value so encoded; if it is smaller than a pointer on some target,
pointers should not be leb128 encoded on that target. */
ubyte *
read_uleb128 (ubyte *p, _uleb128_t *val)
{
uint shift = 0;
ubyte a_byte;
_uleb128_t result;
result = cast(_uleb128_t) 0;
do
{
a_byte = *p++;
result |= (cast(_uleb128_t)a_byte & 0x7f) << shift;
shift += 7;
}
while (a_byte & 0x80);
*val = result;
return p;
}
/* Similar, but read a signed leb128 value. */
ubyte *
read_sleb128 (ubyte *p, _sleb128_t *val)
{
uint shift = 0;
ubyte a_byte;
_uleb128_t result;
result = cast(_uleb128_t) 0;
do
{
a_byte = *p++;
result |= (cast(_uleb128_t)a_byte & 0x7f) << shift;
shift += 7;
}
while (a_byte & 0x80);
/* Sign-extend a negative value. */
if (shift < 8 * result.sizeof && (a_byte & 0x40) != 0)
result |= -((cast(_uleb128_t)1L) << shift);
*val = cast(_sleb128_t) result;
return p;
}
/* Load an encoded value from memory at P. The value is returned in VAL;
The function returns P incremented past the value. BASE is as given
by base_of_encoded_value for this encoding in the appropriate context. */
ubyte *
read_encoded_value_with_base (ubyte encoding, _Unwind_Ptr base,
ubyte *p, _Unwind_Ptr *val)
{
union unaligned
{
align(1):
void *ptr;
ushort u2;
uint u4;
ulong u8;
short s2;
int s4;
long s8;
}
unaligned *u = cast(unaligned *) p;
_Unwind_Internal_Ptr result;
if (encoding == DW_EH_PE_aligned)
{
_Unwind_Internal_Ptr a = cast(_Unwind_Internal_Ptr) p;
a = cast(_Unwind_Internal_Ptr)( (a + (void *).sizeof - 1) & - (void *).sizeof );
result = *cast(_Unwind_Internal_Ptr *) a;
p = cast(ubyte *) cast(_Unwind_Internal_Ptr) (a + (void *).sizeof);
}
else
{
switch (encoding & 0x0f)
{
case DW_EH_PE_absptr:
result = cast(_Unwind_Internal_Ptr) u.ptr;
p += (void *).sizeof;
break;
case DW_EH_PE_uleb128:
{
_uleb128_t tmp;
p = read_uleb128 (p, &tmp);
result = cast(_Unwind_Internal_Ptr) tmp;
}
break;
case DW_EH_PE_sleb128:
{
_sleb128_t tmp;
p = read_sleb128 (p, &tmp);
result = cast(_Unwind_Internal_Ptr) tmp;
}
break;
case DW_EH_PE_udata2:
result = cast(_Unwind_Internal_Ptr) u.u2;
p += 2;
break;
case DW_EH_PE_udata4:
result = cast(_Unwind_Internal_Ptr) u.u4;
p += 4;
break;
case DW_EH_PE_udata8:
result = cast(_Unwind_Internal_Ptr) u.u8;
p += 8;
break;
case DW_EH_PE_sdata2:
result = cast(_Unwind_Internal_Ptr) u.s2;
p += 2;
break;
case DW_EH_PE_sdata4:
result = cast(_Unwind_Internal_Ptr) u.s4;
p += 4;
break;
case DW_EH_PE_sdata8:
result = cast(_Unwind_Internal_Ptr) u.s8;
p += 8;
break;
default:
abort ();
}
if (result != 0)
{
result += ((encoding & 0x70) == DW_EH_PE_pcrel
? cast(_Unwind_Internal_Ptr) u : base);
if (encoding & DW_EH_PE_indirect)
result = *cast(_Unwind_Internal_Ptr *) result;
}
}
*val = result;
return p;
}
version (NO_BASE_OF_ENCODED_VALUE) {}
else
{
/* Like read_encoded_value_with_base, but get the base from the context
rather than providing it directly. */
ubyte *read_encoded_value (_Unwind_Context *context, ubyte encoding,
ubyte *p, _Unwind_Ptr *val)
{
return read_encoded_value_with_base (encoding,
base_of_encoded_value (encoding, context),
p, val);
}
}
|
D
|
/Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/MySQL.build/MySQL+Node.swift.o : /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind+Node.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Binds.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Connection.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Database.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Error.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Field+Variant.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Field.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Fields.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/MySQL+Date.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/MySQL+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/JSON.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Jay.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/MySQL.build/MySQL+Node~partial.swiftmodule : /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind+Node.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Binds.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Connection.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Database.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Error.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Field+Variant.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Field.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Fields.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/MySQL+Date.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/MySQL+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/JSON.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Jay.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/MySQL.build/MySQL+Node~partial.swiftdoc : /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind+Node.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Binds.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Connection.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Database.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Error.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Field+Variant.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Field.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Fields.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/MySQL+Date.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/MySQL+Node.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Core.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/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/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/JSON.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Jay.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/Polymorphic.swiftmodule
|
D
|
module allocation.tracking;
import allocation;
import collections.list;
public import allocation : IAllocator;
class TrackAllocator : IAllocator
{
IAllocator allocator;
List!(void[]) allocations;
static TrackAllocator make(IAllocator allocator, size_t items = 10)
{
return allocator.allocate!TrackAllocator(allocator, items);
}
this(IAllocator alloc, size_t items)
{
this.allocator = alloc;
this.allocations = List!(void[])(alloc, items);
}
void dispose()
{
deallocateAll();
auto a = this.allocator;
this.allocator = null;
a.deallocate(this);
}
void[] allocate_impl(size_t size, size_t alignment)
{
auto mem = allocator.allocate_impl(size, alignment);
allocations ~= mem;
return mem;
}
void deallocate_impl(void[] mem)
{
import std.algorithm.searching : countUntil;
auto idx = allocations.countUntil!(x => x.ptr == mem.ptr && x.length == mem.length);
assert(idx != -1);
allocations.removeAt(idx);
allocator.deallocate_impl(mem);
}
void deallocateAll()
{
for(int i = 0; i < allocations.length; i++)
{
allocator.deallocate_impl(allocations[i]);
}
allocations.deallocate();
}
}
|
D
|
E: c53, c15, c45, c7, c33, c55, c52, c8, c28, c43, c54, c36, c3, c4, c34, c51, c37, c2, c1, c5, c27, c24, c35, c30, c44, c32, c10, c6, c49, c56, c46, c14, c13, c23, c38, c41, c12, c39, c0, c22, c42, c40, c19, c20.
p2(E,E)
c53,c15
c52,c8
c28,c43
c37,c4
c52,c1
c2,c4
c34,c28
c14,c13
c55,c33
c13,c37
c12,c7
c45,c44
c41,c43
c0,c15
c40,c39
c7,c30
c41,c35
c45,c43
c14,c35
c41,c10
c2,c6
c30,c20
.
p8(E,E)
c45,c7
c53,c51
c51,c53
c1,c27
c38,c45
c32,c41
c37,c42
c42,c34
c41,c32
c42,c37
c7,c45
c45,c38
c34,c42
.
p3(E,E)
c33,c55
c7,c12
c1,c52
c15,c22
c6,c2
c37,c13
c39,c19
c28,c34
c8,c49
.
p4(E,E)
c54,c36
c3,c4
c2,c52
c24,c35
c55,c23
c5,c1
c45,c45
c49,c56
c4,c36
c52,c7
c22,c0
c24,c45
c12,c15
c12,c49
c5,c14
c1,c5
c37,c14
c34,c52
c13,c52
c46,c35
c19,c40
c4,c3
c39,c56
c14,c37
c49,c52
.
p10(E,E)
c28,c34
c4,c2
c33,c55
c5,c1
c6,c2
c43,c41
c4,c37
c15,c53
c14,c37
c15,c0
c3,c4
c45,c45
c35,c41
c43,c28
c43,c45
c37,c13
c4,c3
c37,c14
c7,c12
c39,c40
c10,c41
c39,c42
c41,c1
c35,c14
c13,c14
c8,c52
c30,c7
c1,c5
c44,c45
c1,c52
c52,c42
c20,c30
.
p9(E,E)
c35,c24
c36,c4
c56,c39
c45,c45
.
p0(E,E)
c45,c30
c7,c44
c32,c10
c27,c5
c32,c35
c32,c43
c38,c45
c34,c52
c34,c39
c7,c45
c37,c52
c42,c14
c42,c28
c51,c15
c38,c43
c27,c41
c37,c39
c7,c43
c38,c44
c42,c4
.
p7(E,E)
c54,c36
c49,c56
c46,c35
c24,c45
c5,c14
c4,c36
c12,c15
.
p1(E,E)
c37,c52
c33,c23
c28,c52
c6,c52
c7,c49
c1,c7
.
p5(E,E)
c40,c39
c14,c35
c0,c15
c41,c35
c2,c4
c41,c43
c37,c4
c52,c8
c28,c43
.
|
D
|
module rcd.ic.inputcontrol;
private {
import vibe.d : UrlRouter, handleWebSockets, WebSocket,
Json, staticTemplate, parseJsonString,
logError, logDebug, logInfo;
import std.stdio : writefln;
import std.signals;
import mouse = rcd.ic.mouse;
import rcd.utils.ctfe;
import rcd.utils.defaultaa : DefaultAA;
}
private struct SignalWrapper(Args...) {
mixin Signal!(Args);
}
private struct Action {
string command;
}
class InputControl {
protected DefaultAA!(SignalWrapper!(Json), string) actions;
this() {
init_actions();
}
protected void init_actions() {
alias T = typeof(this);
foreach(member; __traits(allMembers, T)) {
static if(__traits(compiles, hasAttribute!(mixin(member), Action)) &&
hasAttribute!(mixin(member), Action)) {
alias ParameterTypeTuple!(mixin(member)) Args;
static if(__traits(compiles, __traits(getAttributes, mixin(member))[0].command)) {
enum string n = __traits(getAttributes, mixin(member))[0].command;
static if(n.length) {
alias n command;
} else {
alias member command;
}
} else {
alias member command;
}
//pragma(msg, command);
actions[command].connect(&(_wrapper!(mixin(member), member, Args)));
}
}
}
private auto _wrapper(alias fun, string name, Args...)(Json json) {
Args new_args;
string[] names = [ParameterIdentifierTuple!fun];
foreach(i, arg; new_args) {
static if(is(typeof(arg) == Json)) {
new_args[i] = json;
} else {
new_args[i] = json[names[i]].get!(typeof(arg))();
}
}
return fun(new_args);
}
void dispatch(Json json) {
// these can both throw!
string action = json["action"].get!string();
actions[action].emit(json);
}
@Action
void move_mouse(int x, int y) {
mouse.move(x, y);
}
@Action
void move_mouse_to(int x, int y) {
mouse.move_to(x, y);
}
@Action
void click() {
mouse.click(true);
}
@Action
void click_release() {
mouse.click(false);
}
@Action("log")
void log_js(Json json) {
logInfo("[JS Log Request]: %s", json);
}
}
class WSInputControl : InputControl {
this(UrlRouter router) {
super();
router.get("/inputcontrol", staticTemplate!("inputcontrol.dt"));
router.get("/ws/inputcontrol", handleWebSockets(&on_new_connection));
}
void on_new_connection(WebSocket socket) {
while(socket.connected) {
auto msg = socket.receiveText();
// writefln("Incoming: %s", msg);
auto json = parseJsonString(msg);
dispatch(json);
}
}
override
void dispatch(Json json) {
try {
super.dispatch(json);
} catch(Exception e) {
logError("[Error: WSInputControl.dispatch]: %s", e.msg);
logDebug(e.toString());
}
}
}
|
D
|
/**
Management of packages on the local computer.
Copyright: © 2012-2016 rejectedsoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig, Matthias Dondorff
*/
module dub.packagemanager;
import dub.dependency;
import dub.internal.utils;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.path;
import dub.package_;
import std.algorithm : countUntil, filter, sort, canFind, remove;
import std.array;
import std.conv;
import std.digest.sha;
import std.encoding : sanitize;
import std.exception;
import std.file;
import std.string;
import std.zip;
/// The PackageManager can retrieve present packages and get / remove
/// packages.
class PackageManager {
private {
Repository[] m_repositories;
NativePath[] m_searchPath;
Package[] m_packages;
Package[] m_temporaryPackages;
bool m_disableDefaultSearchPaths = false;
}
/**
Instantiate an instance with a single search path
This constructor is used when dub is invoked with the '--bar' CLI switch.
The instance will not look up the default repositories
(e.g. ~/.dub/packages), using only `path` instead.
Params:
path = Path of the single repository
*/
this(NativePath path)
{
this.m_searchPath = [ path ];
this.m_disableDefaultSearchPaths = true;
this.refresh(true);
}
deprecated("Use the overload which accepts 3 `NativePath` arguments")
this(NativePath user_path, NativePath system_path, bool refresh_packages = true)
{
m_repositories = [
Repository(user_path ~ "packages/"),
Repository(system_path ~ "packages/")];
if (refresh_packages) refresh(true);
}
this(NativePath package_path, NativePath user_path, NativePath system_path, bool refresh_packages = true)
{
m_repositories = [
Repository(package_path ~ ".dub/packages/"),
Repository(user_path ~ "packages/"),
Repository(system_path ~ "packages/")];
if (refresh_packages) refresh(true);
}
/** Gets/sets the list of paths to search for local packages.
*/
@property void searchPath(NativePath[] paths)
{
if (paths == m_searchPath) return;
m_searchPath = paths.dup;
refresh(false);
}
/// ditto
@property const(NativePath)[] searchPath() const { return m_searchPath; }
/** Disables searching DUB's predefined search paths.
*/
deprecated("Instantiate a PackageManager instance with the single-argument constructor: `new PackageManager(path)`")
@property void disableDefaultSearchPaths(bool val)
{
this._disableDefaultSearchPaths(val);
}
// Non deprecated instance of the previous symbol,
// as `Dub.updatePackageSearchPath` calls it and while nothing in Dub app
// itself relies on it, just removing the call from `updatePackageSearchPath`
// could break the library use case.
package(dub) void _disableDefaultSearchPaths(bool val)
{
if (val == m_disableDefaultSearchPaths) return;
m_disableDefaultSearchPaths = val;
refresh(true);
}
/** Returns the effective list of search paths, including default ones.
*/
@property const(NativePath)[] completeSearchPath()
const {
auto ret = appender!(NativePath[])();
ret.put(cast(NativePath[])m_searchPath); // work around Phobos 17251
if (!m_disableDefaultSearchPaths) {
foreach (ref repo; m_repositories) {
ret.put(cast(NativePath[])repo.searchPath);
ret.put(cast(NativePath)repo.packagePath);
}
}
return ret.data;
}
/** Sets additional (read-only) package cache paths to search for packages.
Cache paths have the same structure as the default cache paths, such as
".dub/packages/".
Note that previously set custom paths will be removed when setting this
property.
*/
@property void customCachePaths(NativePath[] custom_cache_paths)
{
import std.algorithm.iteration : map;
import std.array : array;
m_repositories.length = LocalPackageType.max+1;
m_repositories ~= custom_cache_paths.map!(p => Repository(p)).array;
refresh(false);
}
/** Looks up a specific package.
Looks up a package matching the given version/path in the set of
registered packages. The lookup order is done according the the
usual rules (see getPackageIterator).
Params:
name = The name of the package
ver = The exact version of the package to query
path = An exact path that the package must reside in. Note that
the package must still be registered in the package manager.
enable_overrides = Apply the local package override list before
returning a package (enabled by default)
Returns:
The matching package or null if no match was found.
*/
Package getPackage(string name, Version ver, bool enable_overrides = true)
{
if (enable_overrides) {
foreach (ref repo; m_repositories)
foreach (ovr; repo.overrides)
if (ovr.package_ == name && ovr.version_.matches(ver)) {
Package pack;
if (!ovr.targetPath.empty) pack = getOrLoadPackage(ovr.targetPath);
else pack = getPackage(name, ovr.targetVersion, false);
if (pack) return pack;
logWarn("Package override %s %s -> %s %s doesn't reference an existing package.",
ovr.package_, ovr.version_, ovr.targetVersion, ovr.targetPath);
}
}
foreach (p; getPackageIterator(name))
if (p.version_ == ver)
return p;
return null;
}
/// ditto
Package getPackage(string name, string ver, bool enable_overrides = true)
{
return getPackage(name, Version(ver), enable_overrides);
}
/// ditto
Package getPackage(string name, Version ver, NativePath path)
{
foreach (p; getPackageIterator(name))
if (p.version_ == ver && p.path.startsWith(path))
return p;
return null;
}
/// ditto
Package getPackage(string name, string ver, NativePath path)
{
return getPackage(name, Version(ver), path);
}
/// ditto
Package getPackage(string name, NativePath path)
{
foreach( p; getPackageIterator(name) )
if (p.path.startsWith(path))
return p;
return null;
}
/** Looks up the first package matching the given name.
*/
Package getFirstPackage(string name)
{
foreach (ep; getPackageIterator(name))
return ep;
return null;
}
/** Looks up the latest package matching the given name.
*/
Package getLatestPackage(string name)
{
Package pkg;
foreach (ep; getPackageIterator(name))
if (pkg is null || pkg.version_ < ep.version_)
pkg = ep;
return pkg;
}
/** For a given package path, returns the corresponding package.
If the package is already loaded, a reference is returned. Otherwise
the package gets loaded and cached for the next call to this function.
Params:
path = NativePath to the root directory of the package
recipe_path = Optional path to the recipe file of the package
allow_sub_packages = Also return a sub package if it resides in the given folder
Returns: The packages loaded from the given path
Throws: Throws an exception if no package can be loaded
*/
Package getOrLoadPackage(NativePath path, NativePath recipe_path = NativePath.init, bool allow_sub_packages = false)
{
path.endsWithSlash = true;
foreach (p; getPackageIterator())
if (p.path == path && (!p.parentPackage || (allow_sub_packages && p.parentPackage.path != p.path)))
return p;
auto pack = Package.load(path, recipe_path);
addPackages(m_temporaryPackages, pack);
return pack;
}
/** For a given SCM repository, returns the corresponding package.
An SCM repository is provided as its remote URL, the repository is cloned
and in the dependency speicfied commit is checked out.
If the target directory already exists, just returns the package
without cloning.
Params:
name = Package name
dependency = Dependency that contains the repository URL and a specific commit
Returns:
The package loaded from the given SCM repository or null if the
package couldn't be loaded.
*/
Package loadSCMPackage(string name, Dependency dependency)
in { assert(!dependency.repository.empty); }
do {
Package pack;
with (dependency.repository) final switch (kind)
{
case Kind.git:
pack = loadGitPackage(name, dependency.versionSpec, dependency.repository.remote);
}
if (pack !is null) {
addPackages(m_temporaryPackages, pack);
}
return pack;
}
private Package loadGitPackage(string name, string versionSpec, string remote)
{
import dub.internal.git : cloneRepository;
if (!versionSpec.startsWith("~") && !versionSpec.isGitHash) {
return null;
}
string gitReference = versionSpec.chompPrefix("~");
const destination = m_repositories[LocalPackageType.user].packagePath ~
NativePath(name ~ "-" ~ gitReference) ~ (name~"/");
foreach (p; getPackageIterator(name)) {
if (p.path == destination) {
return p;
}
}
if (!cloneRepository(remote, gitReference, destination.toNativeString())) {
return null;
}
return Package.load(destination);
}
/** Searches for the latest version of a package matching the given dependency.
*/
Package getBestPackage(string name, Dependency version_spec, bool enable_overrides = true)
{
Package ret;
foreach (p; getPackageIterator(name))
if (version_spec.matches(p.version_) && (!ret || p.version_ > ret.version_))
ret = p;
if (enable_overrides && ret) {
if (auto ovr = getPackage(name, ret.version_))
return ovr;
}
return ret;
}
/// ditto
Package getBestPackage(string name, string version_spec)
{
return getBestPackage(name, Dependency(version_spec));
}
/** Gets the a specific sub package.
In contrast to `Package.getSubPackage`, this function supports path
based sub packages.
Params:
base_package = The package from which to get a sub package
sub_name = Name of the sub package (not prefixed with the base
package name)
silent_fail = If set to true, the function will return `null` if no
package is found. Otherwise will throw an exception.
*/
Package getSubPackage(Package base_package, string sub_name, bool silent_fail)
{
foreach (p; getPackageIterator(base_package.name~":"~sub_name))
if (p.parentPackage is base_package)
return p;
enforce(silent_fail, "Sub package \""~base_package.name~":"~sub_name~"\" doesn't exist.");
return null;
}
/** Determines if a package is managed by DUB.
Managed packages can be upgraded and removed.
*/
bool isManagedPackage(Package pack)
const {
auto ppath = pack.basePackage.path;
return isManagedPath(ppath);
}
/** Determines if a specific path is within a DUB managed package folder.
By default, managed folders are "~/.dub/packages" and
"/var/lib/dub/packages".
*/
bool isManagedPath(NativePath path)
const {
foreach (rep; m_repositories) {
NativePath rpath = rep.packagePath;
if (path.startsWith(rpath))
return true;
}
return false;
}
/** Enables iteration over all known local packages.
Returns: A delegate suitable for use with `foreach` is returned.
*/
int delegate(int delegate(ref Package)) getPackageIterator()
{
int iterator(int delegate(ref Package) del)
{
foreach (tp; m_temporaryPackages)
if (auto ret = del(tp)) return ret;
// first search local packages
foreach (ref repo; m_repositories)
foreach (p; repo.localPackages)
if (auto ret = del(p)) return ret;
// and then all packages gathered from the search path
foreach( p; m_packages )
if( auto ret = del(p) )
return ret;
return 0;
}
return &iterator;
}
/** Enables iteration over all known local packages with a certain name.
Returns: A delegate suitable for use with `foreach` is returned.
*/
int delegate(int delegate(ref Package)) getPackageIterator(string name)
{
int iterator(int delegate(ref Package) del)
{
foreach (p; getPackageIterator())
if (p.name == name)
if (auto ret = del(p)) return ret;
return 0;
}
return &iterator;
}
/** Returns a list of all package overrides for the given scope.
*/
const(PackageOverride)[] getOverrides(LocalPackageType scope_)
const {
return m_repositories[scope_].overrides;
}
/** Adds a new override for the given package.
*/
void addOverride(LocalPackageType scope_, string package_, Dependency version_spec, Version target)
{
m_repositories[scope_].overrides ~= PackageOverride(package_, version_spec, target);
writeLocalPackageOverridesFile(scope_);
}
/// ditto
void addOverride(LocalPackageType scope_, string package_, Dependency version_spec, NativePath target)
{
m_repositories[scope_].overrides ~= PackageOverride(package_, version_spec, target);
writeLocalPackageOverridesFile(scope_);
}
/** Removes an existing package override.
*/
void removeOverride(LocalPackageType scope_, string package_, Dependency version_spec)
{
Repository* rep = &m_repositories[scope_];
foreach (i, ovr; rep.overrides) {
if (ovr.package_ != package_ || ovr.version_ != version_spec)
continue;
rep.overrides = rep.overrides[0 .. i] ~ rep.overrides[i+1 .. $];
writeLocalPackageOverridesFile(scope_);
return;
}
throw new Exception(format("No override exists for %s %s", package_, version_spec));
}
/// Extracts the package supplied as a path to it's zip file to the
/// destination and sets a version field in the package description.
Package storeFetchedPackage(NativePath zip_file_path, Json package_info, NativePath destination)
{
import std.range : walkLength;
auto package_name = package_info["name"].get!string;
auto package_version = package_info["version"].get!string;
logDebug("Placing package '%s' version '%s' to location '%s' from file '%s'",
package_name, package_version, destination.toNativeString(), zip_file_path.toNativeString());
if( existsFile(destination) ){
throw new Exception(format("%s (%s) needs to be removed from '%s' prior placement.", package_name, package_version, destination));
}
// open zip file
ZipArchive archive;
{
logDebug("Opening file %s", zip_file_path);
auto f = openFile(zip_file_path, FileMode.read);
scope(exit) f.close();
archive = new ZipArchive(f.readAll());
}
logDebug("Extracting from zip.");
// In a github zip, the actual contents are in a subfolder
alias PSegment = typeof(NativePath.init.head);
PSegment[] zip_prefix;
outer: foreach(ArchiveMember am; archive.directory) {
auto path = NativePath(am.name).bySegment.array;
foreach (fil; packageInfoFiles)
if (path.length == 2 && path[$-1].name == fil.filename) {
zip_prefix = path[0 .. $-1];
break outer;
}
}
logDebug("zip root folder: %s", zip_prefix);
NativePath getCleanedPath(string fileName) {
auto path = NativePath(fileName);
if (zip_prefix.length && !path.bySegment.startsWith(zip_prefix)) return NativePath.init;
static if (is(typeof(path[0 .. 1]))) return path[zip_prefix.length .. $];
else return NativePath(path.bySegment.array[zip_prefix.length .. $]);
}
static void setAttributes(string path, ArchiveMember am)
{
import std.datetime : DosFileTimeToSysTime;
auto mtime = DosFileTimeToSysTime(am.time);
setTimes(path, mtime, mtime);
if (auto attrs = am.fileAttributes)
std.file.setAttributes(path, attrs);
}
// extract & place
mkdirRecurse(destination.toNativeString());
logDebug("Copying all files...");
int countFiles = 0;
foreach(ArchiveMember a; archive.directory) {
auto cleanedPath = getCleanedPath(a.name);
if(cleanedPath.empty) continue;
auto dst_path = destination ~ cleanedPath;
logDebug("Creating %s", cleanedPath);
if( dst_path.endsWithSlash ){
if( !existsDirectory(dst_path) )
mkdirRecurse(dst_path.toNativeString());
} else {
if( !existsDirectory(dst_path.parentPath) )
mkdirRecurse(dst_path.parentPath.toNativeString());
{
auto dstFile = openFile(dst_path, FileMode.createTrunc);
scope(exit) dstFile.close();
dstFile.put(archive.expand(a));
}
setAttributes(dst_path.toNativeString(), a);
++countFiles;
}
}
logDebug("%s file(s) copied.", to!string(countFiles));
// overwrite dub.json (this one includes a version field)
auto pack = Package.load(destination, NativePath.init, null, package_info["version"].get!string);
if (pack.recipePath.head != defaultPackageFilename)
// Storeinfo saved a default file, this could be different to the file from the zip.
removeFile(pack.recipePath);
pack.storeInfo();
addPackages(m_packages, pack);
return pack;
}
/// Removes the given the package.
void remove(in Package pack)
{
logDebug("Remove %s, version %s, path '%s'", pack.name, pack.version_, pack.path);
enforce(!pack.path.empty, "Cannot remove package "~pack.name~" without a path.");
// remove package from repositories' list
bool found = false;
bool removeFrom(Package[] packs, in Package pack) {
auto packPos = countUntil!("a.path == b.path")(packs, pack);
if(packPos != -1) {
packs = .remove(packs, packPos);
return true;
}
return false;
}
foreach(repo; m_repositories) {
if(removeFrom(repo.localPackages, pack)) {
found = true;
break;
}
}
if(!found)
found = removeFrom(m_packages, pack);
enforce(found, "Cannot remove, package not found: '"~ pack.name ~"', path: " ~ to!string(pack.path));
logDebug("About to delete root folder for package '%s'.", pack.path);
rmdirRecurse(pack.path.toNativeString());
logInfo("Removed package: '"~pack.name~"'");
}
/// Compatibility overload. Use the version without a `force_remove` argument instead.
deprecated("Use `remove(pack)` directly instead, the boolean has no effect")
void remove(in Package pack, bool force_remove)
{
remove(pack);
}
Package addLocalPackage(NativePath path, string verName, LocalPackageType type)
{
path.endsWithSlash = true;
auto pack = Package.load(path);
enforce(pack.name.length, "The package has no name, defined in: " ~ path.toString());
if (verName.length)
pack.version_ = Version(verName);
// don't double-add packages
Package[]* packs = &m_repositories[type].localPackages;
foreach (p; *packs) {
if (p.path == path) {
enforce(p.version_ == pack.version_, "Adding the same local package twice with differing versions is not allowed.");
logInfo("Package is already registered: %s (version: %s)", p.name, p.version_);
return p;
}
}
addPackages(*packs, pack);
writeLocalPackageList(type);
logInfo("Registered package: %s (version: %s)", pack.name, pack.version_);
return pack;
}
void removeLocalPackage(NativePath path, LocalPackageType type)
{
path.endsWithSlash = true;
Package[]* packs = &m_repositories[type].localPackages;
size_t[] to_remove;
foreach( i, entry; *packs )
if( entry.path == path )
to_remove ~= i;
enforce(to_remove.length > 0, "No "~type.to!string()~" package found at "~path.toNativeString());
string[Version] removed;
foreach_reverse( i; to_remove ) {
removed[(*packs)[i].version_] = (*packs)[i].name;
*packs = (*packs)[0 .. i] ~ (*packs)[i+1 .. $];
}
writeLocalPackageList(type);
foreach(ver, name; removed)
logInfo("Deregistered package: %s (version: %s)", name, ver);
}
/// For the given type add another path where packages will be looked up.
void addSearchPath(NativePath path, LocalPackageType type)
{
m_repositories[type].searchPath ~= path;
writeLocalPackageList(type);
}
/// Removes a search path from the given type.
void removeSearchPath(NativePath path, LocalPackageType type)
{
m_repositories[type].searchPath = m_repositories[type].searchPath.filter!(p => p != path)().array();
writeLocalPackageList(type);
}
void refresh(bool refresh_existing_packages)
{
logDiagnostic("Refreshing local packages (refresh existing: %s)...", refresh_existing_packages);
// load locally defined packages
void scanLocalPackages(LocalPackageType type)
{
NativePath list_path = m_repositories[type].packagePath;
Package[] packs;
NativePath[] paths;
try {
auto local_package_file = list_path ~ LocalPackagesFilename;
logDiagnostic("Looking for local package map at %s", local_package_file.toNativeString());
if( !existsFile(local_package_file) ) return;
logDiagnostic("Try to load local package map at %s", local_package_file.toNativeString());
auto packlist = jsonFromFile(list_path ~ LocalPackagesFilename);
enforce(packlist.type == Json.Type.array, LocalPackagesFilename~" must contain an array.");
foreach( pentry; packlist ){
try {
auto name = pentry["name"].get!string;
auto path = NativePath(pentry["path"].get!string);
if (name == "*") {
paths ~= path;
} else {
auto ver = Version(pentry["version"].get!string);
Package pp;
if (!refresh_existing_packages) {
foreach (p; m_repositories[type].localPackages)
if (p.path == path) {
pp = p;
break;
}
}
if (!pp) {
auto infoFile = Package.findPackageFile(path);
if (!infoFile.empty) pp = Package.load(path, infoFile);
else {
logWarn("Locally registered package %s %s was not found. Please run 'dub remove-local \"%s\"'.",
name, ver, path.toNativeString());
auto info = Json.emptyObject;
info["name"] = name;
pp = new Package(info, path);
}
}
if (pp.name != name)
logWarn("Local package at %s has different name than %s (%s)", path.toNativeString(), name, pp.name);
pp.version_ = ver;
addPackages(packs, pp);
}
} catch( Exception e ){
logWarn("Error adding local package: %s", e.msg);
}
}
} catch( Exception e ){
logDiagnostic("Loading of local package list at %s failed: %s", list_path.toNativeString(), e.msg);
}
m_repositories[type].localPackages = packs;
m_repositories[type].searchPath = paths;
}
if (!m_disableDefaultSearchPaths)
{
scanLocalPackages(LocalPackageType.system);
scanLocalPackages(LocalPackageType.user);
scanLocalPackages(LocalPackageType.package_);
}
auto old_packages = m_packages;
// rescan the system and user package folder
void scanPackageFolder(NativePath path)
{
if( path.existsDirectory() ){
logDebug("iterating dir %s", path.toNativeString());
try foreach( pdir; iterateDirectory(path) ){
logDebug("iterating dir %s entry %s", path.toNativeString(), pdir.name);
if (!pdir.isDirectory) continue;
auto pack_path = path ~ (pdir.name ~ "/");
auto packageFile = Package.findPackageFile(pack_path);
if (isManagedPath(path) && packageFile.empty) {
// Search for a single directory within this directory which happen to be a prefix of pdir
// This is to support new folder structure installed over the ancient one.
foreach (subdir; iterateDirectory(path ~ (pdir.name ~ "/")))
if (subdir.isDirectory && pdir.name.startsWith(subdir.name)) {// eg: package vibe-d will be in "vibe-d-x.y.z/vibe-d"
pack_path ~= subdir.name ~ "/";
packageFile = Package.findPackageFile(pack_path);
break;
}
}
if (packageFile.empty) continue;
Package p;
try {
if (!refresh_existing_packages)
foreach (pp; old_packages)
if (pp.path == pack_path) {
p = pp;
break;
}
if (!p) p = Package.load(pack_path, packageFile);
addPackages(m_packages, p);
} catch( Exception e ){
logError("Failed to load package in %s: %s", pack_path, e.msg);
logDiagnostic("Full error: %s", e.toString().sanitize());
}
}
catch(Exception e) logDiagnostic("Failed to enumerate %s packages: %s", path.toNativeString(), e.toString());
}
}
m_packages = null;
foreach (p; this.completeSearchPath)
scanPackageFolder(p);
void loadOverrides(LocalPackageType type)
{
m_repositories[type].overrides = null;
auto ovrfilepath = m_repositories[type].packagePath ~ LocalOverridesFilename;
if (existsFile(ovrfilepath)) {
foreach (entry; jsonFromFile(ovrfilepath)) {
PackageOverride ovr;
ovr.package_ = entry["name"].get!string;
ovr.version_ = Dependency(entry["version"].get!string);
if (auto pv = "targetVersion" in entry) ovr.targetVersion = Version(pv.get!string);
if (auto pv = "targetPath" in entry) ovr.targetPath = NativePath(pv.get!string);
m_repositories[type].overrides ~= ovr;
}
}
}
if (!m_disableDefaultSearchPaths)
{
loadOverrides(LocalPackageType.package_);
loadOverrides(LocalPackageType.user);
loadOverrides(LocalPackageType.system);
}
}
alias Hash = ubyte[];
/// Generates a hash value for a given package.
/// Some files or folders are ignored during the generation (like .dub and
/// .svn folders)
Hash hashPackage(Package pack)
{
string[] ignored_directories = [".git", ".dub", ".svn"];
// something from .dub_ignore or what?
string[] ignored_files = [];
SHA1 sha1;
foreach(file; dirEntries(pack.path.toNativeString(), SpanMode.depth)) {
if(file.isDir && ignored_directories.canFind(NativePath(file.name).head.name))
continue;
else if(ignored_files.canFind(NativePath(file.name).head.name))
continue;
sha1.put(cast(ubyte[])NativePath(file.name).head.name);
if(file.isDir) {
logDebug("Hashed directory name %s", NativePath(file.name).head);
}
else {
sha1.put(openFile(NativePath(file.name)).readAll());
logDebug("Hashed file contents from %s", NativePath(file.name).head);
}
}
auto hash = sha1.finish();
logDebug("Project hash: %s", hash);
return hash[].dup;
}
private void writeLocalPackageList(LocalPackageType type)
{
Json[] newlist;
foreach (p; m_repositories[type].searchPath) {
auto entry = Json.emptyObject;
entry["name"] = "*";
entry["path"] = p.toNativeString();
newlist ~= entry;
}
foreach (p; m_repositories[type].localPackages) {
if (p.parentPackage) continue; // do not store sub packages
auto entry = Json.emptyObject;
entry["name"] = p.name;
entry["version"] = p.version_.toString();
entry["path"] = p.path.toNativeString();
newlist ~= entry;
}
NativePath path = m_repositories[type].packagePath;
if( !existsDirectory(path) ) mkdirRecurse(path.toNativeString());
writeJsonFile(path ~ LocalPackagesFilename, Json(newlist));
}
private void writeLocalPackageOverridesFile(LocalPackageType type)
{
Json[] newlist;
foreach (ovr; m_repositories[type].overrides) {
auto jovr = Json.emptyObject;
jovr["name"] = ovr.package_;
jovr["version"] = ovr.version_.versionSpec;
if (!ovr.targetPath.empty) jovr["targetPath"] = ovr.targetPath.toNativeString();
else jovr["targetVersion"] = ovr.targetVersion.toString();
newlist ~= jovr;
}
auto path = m_repositories[type].packagePath;
if (!existsDirectory(path)) mkdirRecurse(path.toNativeString());
writeJsonFile(path ~ LocalOverridesFilename, Json(newlist));
}
/// Adds the package and scans for subpackages.
private void addPackages(ref Package[] dst_repos, Package pack)
const {
// Add the main package.
dst_repos ~= pack;
// Additionally to the internally defined subpackages, whose metadata
// is loaded with the main dub.json, load all externally defined
// packages after the package is available with all the data.
foreach (spr; pack.subPackages) {
Package sp;
if (spr.path.length) {
auto p = NativePath(spr.path);
p.normalize();
enforce(!p.absolute, "Sub package paths must be sub paths of the parent package.");
auto path = pack.path ~ p;
if (!existsFile(path)) {
logError("Package %s declared a sub-package, definition file is missing: %s", pack.name, path.toNativeString());
continue;
}
sp = Package.load(path, NativePath.init, pack);
} else sp = new Package(spr.recipe, pack.path, pack);
// Add the subpackage.
try {
dst_repos ~= sp;
} catch (Exception e) {
logError("Package '%s': Failed to load sub-package %s: %s", pack.name,
spr.path.length ? spr.path : spr.recipe.name, e.msg);
logDiagnostic("Full error: %s", e.toString().sanitize());
}
}
}
}
struct PackageOverride {
string package_;
Dependency version_;
Version targetVersion;
NativePath targetPath;
this(string package_, Dependency version_, Version target_version)
{
this.package_ = package_;
this.version_ = version_;
this.targetVersion = target_version;
}
this(string package_, Dependency version_, NativePath target_path)
{
this.package_ = package_;
this.version_ = version_;
this.targetPath = target_path;
}
}
enum LocalPackageType {
package_,
user,
system
}
private enum LocalPackagesFilename = "local-packages.json";
private enum LocalOverridesFilename = "local-overrides.json";
private struct Repository {
NativePath packagePath;
NativePath[] searchPath;
Package[] localPackages;
PackageOverride[] overrides;
this(NativePath path)
{
this.packagePath = path;
}
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1985-1998 by Symantec
* Copyright (c) 2000-2017 by Digital Mars, 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/ddmd/backend/cgcv.c, backend/cgcv.c)
*/
/* Header for cgcv.c */
module ddmd.backend.cgcv;
// Online documentation: https://dlang.org/phobos/ddmd_backend_cgcv.html
import ddmd.backend.cc : Classsym, Symbol;
import ddmd.backend.type;
import ddmd.tk.dlist;
extern (C++):
@nogc:
nothrow:
alias LIST* symlist_t;
extern char* ftdbname;
void cv_init();
uint cv_typidx(type* t);
void cv_outsym(Symbol* s);
void cv_func(Symbol* s);
void cv_term();
uint cv4_struct(Classsym*, int);
/* =================== Added for MARS compiler ========================= */
alias uint idx_t; // type of type index
/* Data structure for a type record */
struct debtyp_t
{
align(1):
uint prev; // previous debtyp_t with same hash
ushort length; // length of following array
ubyte[2] data; // variable size array
}
struct Cgcv
{
uint signature;
symlist_t list; // deferred list of symbols to output
idx_t deb_offset; // offset added to type index
uint sz_idx; // size of stored type index
int LCFDoffset;
int LCFDpointer;
int FD_code; // frame for references to code
}
__gshared Cgcv cgcv;
debtyp_t* debtyp_alloc(uint length);
int cv_stringbytes(const(char)* name);
uint cv4_numericbytes(uint value);
void cv4_storenumeric(ubyte* p, uint value);
idx_t cv_debtyp(debtyp_t* d);
int cv_namestring(ubyte* p, const(char)* name, int length = -1);
uint cv4_typidx(type* t);
idx_t cv4_arglist(type* t, uint* pnparam);
ubyte cv4_callconv(type* t);
idx_t cv_numdebtypes();
void TOWORD(ubyte* a, uint b)
{
*cast(ushort*)a = cast(ushort)b;
}
void TOLONG(ubyte* a, uint b)
{
*cast(uint*)a = b;
}
void TOIDX(ubyte* a, uint b)
{
if (cgcv.sz_idx == 4)
TOLONG(a,b);
else
TOWORD(a,b);
}
enum DEBSYM = 5; // segment of symbol info
enum DEBTYP = 6; // segment of type info
/* ======================== Added for Codeview 8 =========================== */
void cv8_initfile(const(char)* filename);
void cv8_termfile(const(char)* objfilename);
void cv8_initmodule(const(char)* filename, const(char)* modulename);
void cv8_termmodule();
void cv8_func_start(Symbol* sfunc);
void cv8_func_term(Symbol* sfunc);
//void cv8_linnum(Srcpos srcpos, uint offset); // Srcpos isn't available yet
void cv8_outsym(Symbol* s);
void cv8_udt(const(char)* id, idx_t typidx);
int cv8_regnum(Symbol* s);
idx_t cv8_fwdref(Symbol* s);
idx_t cv8_darray(type* tnext, idx_t etypidx);
idx_t cv8_ddelegate(type* t, idx_t functypidx);
idx_t cv8_daarray(type* t, idx_t keyidx, idx_t validx);
|
D
|
import std.conv;
import std.stdio;
import std.range;
import std.algorithm;
import std.digest.md;
const secret = "ckczppom";
void main() {
writefln("mined with 5 zeros: %d", findSecret([0x00, 0x00, 0x0F]));
writefln("mined with 6 zeros: %d", findSecret([0x00, 0x00, 0x00]));
}
auto findSecret(ubyte[] mask) {
for (auto i = 0;; i++) {
auto md5sum = md5Of(secret ~ to!string(i));
if (all!"(a[0] & a[1]) == a[0]"(zip(md5sum.dup, mask))) {
return i;
}
}
}
|
D
|
/Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Intermediates/Browser.build/Debug-iphonesimulator/Browser.build/Objects-normal/x86_64/AppDelegate.o : /Users/blaketsuzaki/Development/ClassicKit/Components/CKTextField.swift /Users/blaketsuzaki/Development/ClassicKit/Browser/Browser/AppDelegate.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKLabel.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKImageButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKTextButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKVerticalScrollBar.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKHorizontalScrollBar.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKNavigationBar.swift /Users/blaketsuzaki/Development/ClassicKit/Browser/Browser/ViewController.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKDialogViewController.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKDefaults.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKImageView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKFillableView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKContentWrapperView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKProgressView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKStatusView.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/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.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/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImage-umbrella.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYFrameImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYSpriteSheetImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImageCoder.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYAnimatedImageView.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Modules/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/AVFoundation.framework/Headers/AVFoundation.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/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
/Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Intermediates/Browser.build/Debug-iphonesimulator/Browser.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/blaketsuzaki/Development/ClassicKit/Components/CKTextField.swift /Users/blaketsuzaki/Development/ClassicKit/Browser/Browser/AppDelegate.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKLabel.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKImageButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKTextButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKVerticalScrollBar.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKHorizontalScrollBar.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKNavigationBar.swift /Users/blaketsuzaki/Development/ClassicKit/Browser/Browser/ViewController.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKDialogViewController.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKDefaults.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKImageView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKFillableView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKContentWrapperView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKProgressView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKStatusView.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/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.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/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImage-umbrella.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYFrameImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYSpriteSheetImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImageCoder.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYAnimatedImageView.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Modules/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/AVFoundation.framework/Headers/AVFoundation.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/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
/Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Intermediates/Browser.build/Debug-iphonesimulator/Browser.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/blaketsuzaki/Development/ClassicKit/Components/CKTextField.swift /Users/blaketsuzaki/Development/ClassicKit/Browser/Browser/AppDelegate.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKLabel.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKImageButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKTextButton.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKVerticalScrollBar.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKHorizontalScrollBar.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKNavigationBar.swift /Users/blaketsuzaki/Development/ClassicKit/Browser/Browser/ViewController.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKDialogViewController.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKDefaults.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKImageView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKFillableView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKContentWrapperView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKProgressView.swift /Users/blaketsuzaki/Development/ClassicKit/Components/CKStatusView.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/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.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/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImage-umbrella.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYFrameImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYSpriteSheetImage.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYImageCoder.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Headers/YYAnimatedImageView.h /Users/blaketsuzaki/Development/ClassicKit/Browser/Build/Products/Debug-iphonesimulator/YYImage/YYImage.framework/Modules/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/AVFoundation.framework/Headers/AVFoundation.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/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
|
D
|
/**
* Copyright: (c) 2005-2009 Eric Poggel
* Authors: Eric Poggel
* License: <a href="lgpl3.txt">LGPL v3</a>
*/
module yage.system.sound.soundsystem;
import derelict.openal.al;
import tango.math.Math;
import tango.util.Convert;
import tango.core.Thread;
import tango.core.Traits;
import tango.stdc.stringz;
import yage.core.array;
import yage.core.object2;
import yage.core.math.all;
import yage.core.misc;
import yage.core.repeater;
import yage.core.timer;
import yage.scene.camera;
import yage.scene.sound;
import yage.system.system;
import yage.system.log;
import yage.system.sound.openal;
import yage.resource.sound;
// Not defined in derelict yet
private {
const int ALC_MONO_SOURCES = 0x1010;
const int ALC_STEREO_SOURCES = 0x1011;
const int AL_SEC_OFFSET = 0x1024;
const int AL_SAMPLE_OFFSET = 0x1025;
}
/*
* Represents an OpenAL source (an instance of a sound playing).
* Typical hardware can only support a small number of these, so SoundNodes map and unmap to these sources as needed.
* This is used internally by the engine and should never need to be instantiated manually. */
private class SoundSource : IDisposable
{
package uint al_source;
protected SoundNode soundNode; // It would be good if this became unnecessary. It's currently required to set the playback timer.
protected Sound sound;
protected float pitch;
protected float radius; // The radius of the Sound that plays.
protected float volume;
protected bool looping = false;
protected Vec3f position;
protected Vec3f velocity;
protected ulong size; // number of buffers that we use at one time, either sounds' buffers per second,
// or less if the sound is less than one second long.
protected bool enqueue = true; // Keep enqueue'ing more buffers, false if no loop and at end of track.
protected ulong buffer_start; // the first buffer in the array of currently enqueue'd buffers
protected ulong buffer_end; // the last buffer in the array of currently enqueue'd buffers
protected ulong to_process; // the number of buffers to queue next time.
/*
* Create the OpenAL Source. */
this()
{
OpenAL.genSources(1, &al_source);
}
/*
* Stop playback, unqueue all buffers and then delete the source itself. */
~this()
{
dispose();
}
void dispose() // ditto
{
if (al_source)
{ unbind();
alDeleteSources(1, &al_source);
al_source = 0;
}
}
/*
* SoundNodes act as a virtual instance of a real SoundSource
* This function ensures the SoundSource matches all of the parameters of the SoundNode.
* If called multiple times from the same SoundNode, this will just update the parameters. */
void bind(SoundCommand command)
{
soundNode = command.soundNode;
looping = command.looping;
synchronized(OpenAL.getMutex())
{
if (sound !is command.sound)
{ sound = command.sound;
// Ensure that our number of buffers isn't more than what exists in the sound file
ulong len = sound.getBuffersLength();
ulong sec = sound.getBuffersPerSecond();
size = len < sec ? len : sec;
seek(command.position);
}
if (radius != command.radius)
{ radius = command.radius;
OpenAL.sourcef(al_source, AL_ROLLOFF_FACTOR, 1.0/radius);
}
if (volume != command.volume)
{ volume = command.volume;
OpenAL.sourcef(al_source, AL_GAIN, volume);
}
if (pitch != command.pitch)
{ pitch = command.pitch;
OpenAL.sourcef(al_source, AL_PITCH, pitch);
}
double marginOfError = 1.0/ /*sound.getBuffersPerSecond()*/ 0.05; // is this always .05?
double _tell = tell();
double seconds = command.position;
if ((seconds+marginOfError < _tell || _tell < seconds-marginOfError))
{ if (command.reseek)
seek(seconds);
else if (enqueue) // update soundNode's playback timer to the real playback location.
{ //Log.write("reseek!");
command.soundNode.seek(_tell); // Warning-- this should be behind a lock!
}
}
command.reseek = false;// is this necessary?
if (position != command.worldPosition)
{ position = command.worldPosition;
OpenAL.sourcefv(al_source, AL_POSITION, position.ptr);
}
if (velocity != command.worldVelocity)
{ velocity = command.worldVelocity;
OpenAL.sourcefv(al_source, AL_VELOCITY, velocity.ptr);
}
}
}
/*
* Unbind this sound source from a sound node, stopping playback and resetting key state variables. */
void unbind()
{
if (soundNode)
{ enqueue = false;
synchronized(OpenAL.getMutex())
{ //Stdout.format("unbinding source");
OpenAL.sourceStop(al_source);
//Stdout.format("2]");
unqueueBuffers();
}
buffer_start = buffer_end = 0;
sound = null; // so sound can be freed if no more references.
soundNode = null;
}
}
/*
* Seek to the position in the track. Seek has a precision of .05 seconds.
* @throws OpenALException if the value is outside the range of the Sound. */
void seek(double seconds)
{
int buffers_per_second = sound.getBuffersPerSecond();
int new_start = cast(int)floor(seconds*buffers_per_second);
float fraction = seconds*buffers_per_second - new_start;
if (new_start>sound.getBuffersLength())
throw new OpenALException("SoundSource.seek(%f) is invalid for '%s'", seconds, sound.getSource());
// Delete any leftover buffers
synchronized(OpenAL.getMutex())
{ OpenAL.sourceStop(al_source);
unqueueBuffers();
buffer_start = buffer_end = new_start;
enqueue = true;
updateBuffers();
OpenAL.sourcePlay(al_source);
OpenAL.sourcef(al_source, AL_SEC_OFFSET, fraction/buffers_per_second);
}
// Stdout.format("seeked to ", (new_start+fraction)/buffers_per_second);
}
/*
* Tell the position of the playback of the current sound file, in seconds. */
double tell()
{
int processed; // [below] synchronization shouldn't be needed for read-only functions... ?
OpenAL.getSourcei(al_source, AL_BUFFERS_PROCESSED, &processed);
float fraction=0;
OpenAL.getSourcef(al_source, AL_SEC_OFFSET, &fraction);
return ((buffer_start + processed) % sound.getBuffersLength()) /
cast(double)sound.getBuffersPerSecond();
}
/*
* Enqueue new buffers for this SoundNode to play
* Takes into account pausing, looping and all kinds of other things.
* This is normally called automatically from the SoundNode's scene's sound thread.
* This will fail silently if the SoundNode has no sound or no scene. */
void updateBuffers()
in {
assert(soundNode);
assert(sound);
}
body
{
synchronized(OpenAL.getMutex())
{ if (enqueue)
{
//Stdout.format("updating buffers for %s", sound.getSource());
// Count buffers processed since last time we queue'd more
int processed;
OpenAL.getSourcei(al_source, AL_BUFFERS_PROCESSED, &processed);
to_process = max(processed, size-(buffer_end-buffer_start));
// Update the buffers for this source if more than 1/4th have been used.
if (to_process > size/4)
{
// If looping and our buffer has reached the end of the track
ulong blength = sound.getBuffersLength();
if (!looping && buffer_end+to_process >= blength)
to_process = blength - buffer_end;
// Unqueue old buffers
unqueueBuffers();
// Enqueue as many buffers as what are available
sound.allocBuffers(buffer_end, to_process);
OpenAL.sourceQueueBuffers(al_source, to!(int)(to_process), sound.getBuffers(buffer_end, buffer_end+to_process).ptr);
buffer_start+= processed;
buffer_end += to_process;
}
}
// If not playing
// Is this block still necessary if everything behaves as it should?
int state;
OpenAL.getSourcei(al_source, AL_SOURCE_STATE, &state);
if (state==AL_STOPPED || state==AL_INITIAL)
{ // but it should be, resume playback
if (enqueue)
OpenAL.sourcePlay(al_source);
else // we've reached the end of the track
{
// stop
OpenAL.sourceStop(al_source);
unqueueBuffers();
buffer_start = buffer_end = 0;
if (looping)
{ //play
OpenAL.sourcePlay(al_source);
enqueue = true;
}
}
}
// This is required for tracks with their total number of buffers equal to size.
if (enqueue)
// If not looping and our buffer has reached the end of the track
if (!looping && buffer_end+1 >= sound.getBuffersLength())
enqueue = false;
}
}
/*
* Unqueue all buffers that have finished playing
* If the source is stopped, all buffers will be removed. */
protected void unqueueBuffers()
{
if (sound)
{ synchronized(OpenAL.getMutex())
{ int processed;
OpenAL.getSourcei(al_source, AL_BUFFERS_PROCESSED, &processed);
OpenAL.sourceUnqueueBuffers(al_source, processed, sound.getBuffers(buffer_start, buffer_start+processed).ptr);
sound.freeBuffers(buffer_start, processed);
} }
}
}
/**
* This is a representation of an OpenAL Context as a statif class, simce many OpenAL implementations support only one context.
* It is used internally by the engine and shouldn't need to be used manually.
* It provides the following features:
*
* Instantiates an OpenAL device and context upon init().$(BR)
* Stores a short array of SoundSource wrappers that can be wrapped around with an infinite number of virtual sources.$(BR)
* Controls a sound thread that handles buffering audio to all active SoundSources. */
class SoundContext
{
protected static const int MAX_SOURCES = 32; // arbitrary. TODO: Make this a variable
protected static const int UPDATE_FREQUENCY = 30; // arbitrary
protected static SoundSource[] sources;
protected static ALCdevice* device = null;
protected static ALCcontext* context = null;
/**
* Create a device, a context, and start a thread that automatically updates all sound buffers.
* This function is called automatically by the Singleton template.
* To get an instance, use SoundContext.getInstance(). */
public static void init()
{
// Get a device
device = OpenAL.openDevice(null); // 218 ms!
Log.info("Using OpenAL Device '%s'.", fromStringz(OpenAL.getString(device, ALC_DEVICE_SPECIFIER)));
// Get a context
context = OpenAL.createContext(device, null);
OpenAL.makeContextCurrent(context);
// Query how many sources are available.
// Note that we only query the number of mono sources.
int max_sources;
OpenAL.getIntegerv(device, ALC_MONO_SOURCES, 1, &max_sources);
if (max_sources > MAX_SOURCES)
max_sources = MAX_SOURCES;
if (max_sources<1)
throw new OpenALException("OpenAL reports %d sound sources available. "
" Please close any other applications which may be using sound resources.", max_sources);
// Create as many soures as we can, up to a limit
for (int i=0; i<max_sources; i++)
{ try {
auto source = new SoundSource(); // trigger any exceptions before array length increases.
sources ~= source; // It would still work the same, but it's easier to see visually this way.
} catch (OpenALException e)
{ break;
}
}
}
/**
* Delete the dedvice and context,
* delete all sources, and set the current context to null. */
static void deInit()
{
if (context)
{ synchronized(OpenAL.getMutex())
{ foreach (source; sources)
if (source) // in case of the unpredictible order of the gc.
source.dispose();
sources = null;
OpenAL.makeContextCurrent(null);
OpenAL.destroyContext(context);
OpenAL.closeDevice(device);
context = device = null;
}
}
}
/**
* Get the OpenAL Context. */
static ALCcontext* getContext()
{ return context;
}
/*
* Called by the sound thread to update all active source's sound buffers. */
/*protected*/ static void updateSounds(SoundList list)
{
union Orientation {
struct { Vec3f look, up; }
float[6] values;
}
Orientation orientation;
orientation.look = Vec3f(0, 0, -1).rotate(list.cameraRotation);
orientation.up = Vec3f(0, 1, 0).rotate(list.cameraRotation);
synchronized (OpenAL.getMutex())
{
// Set the listener position, velocity, and orientation
OpenAL.listenerfv(AL_POSITION, list.cameraPosition.ptr);
OpenAL.listenerfv(AL_ORIENTATION, orientation.values.ptr);
OpenAL.listenerfv(AL_VELOCITY, list.cameraVelocity.ptr);
// Unbind sources that no longer have a command.
foreach (i, source; sources)
{
bool unbind = true;
foreach (command; list.commands)
if (source.soundNode is command.soundNode) // already bound here, change nothing.
{ //Log.write("rebinding %s to source %d", command.sound.getSource(), i);
source.bind(command); // update the source with the new command variables
unbind = false;
break;
}
if (unbind)
source.unbind();
}
// Bind commands to empty sources.
foreach (command; list.commands)
{ bool unbound = true;
foreach (source; sources)
if (source.soundNode is command.soundNode)
{ unbound = false;
break;
}
// if this command is not bould to any source
if (unbound)
{ foreach (i, source; sources) // find a source to bind to.
if (!source.soundNode)
{ //Log.write("binding %s to source %d, intensity=%f", command.sound.getSource(), i, command. intensity);
source.bind(command);
break;
}
}
}
}
// update each source's sound buffers.
foreach (source; sources)
if (source.soundNode)
source.updateBuffers();
}
}
|
D
|
/Users/oslo/code/swift_vapor_server/.build/debug/Console.build/Command/Command+Print.swift.o : /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Argument.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Command+Print.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Command.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Group.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Option.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Runnable.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Value.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Ask.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Center.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Confirm.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Options.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Print.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Run.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/ConsoleError.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/FileHandle+Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/Pipe+Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/String+ANSI.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal+Command.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Utilities/String+Trim.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Loading/LoadingBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Progress/ProgressBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Clear/ConsoleClear.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Color/ConsoleColor.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Style/ConsoleStyle.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/oslo/code/swift_vapor_server/.build/debug/libc.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Polymorphic.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Core.swiftmodule
/Users/oslo/code/swift_vapor_server/.build/debug/Console.build/Command+Print~partial.swiftmodule : /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Argument.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Command+Print.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Command.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Group.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Option.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Runnable.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Value.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Ask.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Center.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Confirm.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Options.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Print.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Run.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/ConsoleError.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/FileHandle+Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/Pipe+Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/String+ANSI.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal+Command.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Utilities/String+Trim.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Loading/LoadingBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Progress/ProgressBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Clear/ConsoleClear.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Color/ConsoleColor.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Style/ConsoleStyle.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/oslo/code/swift_vapor_server/.build/debug/libc.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Polymorphic.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Core.swiftmodule
/Users/oslo/code/swift_vapor_server/.build/debug/Console.build/Command+Print~partial.swiftdoc : /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Argument.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Command+Print.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Command.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Group.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Option.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Runnable.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Command/Value.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Ask.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Center.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Confirm.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Options.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Print.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console+Run.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Console.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/ConsoleError.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/FileHandle+Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/Pipe+Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Stream/Stream.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/String+ANSI.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal+Command.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Utilities/String+Trim.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Loading/LoadingBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Bar/Progress/ProgressBar.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Clear/ConsoleClear.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Color/ConsoleColor.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/oslo/code/swift_vapor_server/Packages/Console-1.0.2/Sources/Console/Console/Style/ConsoleStyle.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/oslo/code/swift_vapor_server/.build/debug/libc.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Polymorphic.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/oslo/code/swift_vapor_server/.build/debug/Core.swiftmodule
|
D
|
/*******************************************************************************
* Copyright (c) 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwtx.jface.text.hyperlink.IHyperlinkDetectorExtension;
import dwtx.jface.text.hyperlink.IHyperlinkPresenterExtension; // packageimport
import dwtx.jface.text.hyperlink.MultipleHyperlinkPresenter; // packageimport
import dwtx.jface.text.hyperlink.HyperlinkManager; // packageimport
import dwtx.jface.text.hyperlink.URLHyperlink; // packageimport
import dwtx.jface.text.hyperlink.IHyperlinkDetectorExtension2; // packageimport
import dwtx.jface.text.hyperlink.IHyperlinkDetector; // packageimport
import dwtx.jface.text.hyperlink.IHyperlinkPresenter; // packageimport
import dwtx.jface.text.hyperlink.URLHyperlinkDetector; // packageimport
import dwtx.jface.text.hyperlink.DefaultHyperlinkPresenter; // packageimport
import dwtx.jface.text.hyperlink.AbstractHyperlinkDetector; // packageimport
import dwtx.jface.text.hyperlink.HyperlinkMessages; // packageimport
import dwtx.jface.text.hyperlink.IHyperlink; // packageimport
import dwt.dwthelper.utils;
/**
* Extends {@link IHyperlinkDetector} with ability
* to dispose a hyperlink detector.
* <p>
* Clients may implement this interface.
* </p>
*
* @since 3.3
*/
public interface IHyperlinkDetectorExtension {
/**
* Disposes this hyperlink detector.
*/
void dispose();
}
|
D
|
import derelict.sdl2.sdl;
import derelict.sdl2.image;
import std.algorithm;
import std.file;
import std.math;
import std.path;
import std.stdio;
import std.string;
import std.random;
import BackgroundEffects;
import GameObjects;
import InputHandler;
import TextureManager;
import Vector2D;
import Invaders;
immutable auto RGB_Yellow = SDL_Color(255, 255, 0, 0);
class Game
{
private:
static immutable int fps = 60;
static immutable float delay_time = 1000.0 / fps;
static immutable screen_width = 640;
static immutable screen_height = 480;
SDL_Window* _window;
SDL_Renderer* _renderer;
SDL_Texture* _pezi_tex;
SDL_Surface* _scr;
SDL_Texture* _scrTex;
Player _pezi;
ParallaxStarField _stars;
Plasma _plasma;
RawPlasma _rplasma;
Tunnel _tunnel;
string[max_invaders] _invadersMap;
static immutable int _invaderCount = 30;
Invader[_invaderCount] _invaders;
public:
void Init()
{
SDL_Init(SDL_INIT_EVERYTHING);
_window = SDL_CreateWindow("Squirrelatron", SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,640,480,SDL_WINDOW_SHOWN);
//SDL_SetWindowFullscreen(_window,SDL_WINDOW_FULLSCREEN);
_renderer = SDL_CreateRenderer(_window,-1,0);
InputHandler.InitializeJoysticks();
TextureManager.Load(buildPath(getcwd(), "..\\images\\ps.png"), "pezi", _renderer);
_scr = SDL_CreateRGBSurface(0, 640, 480, 32,
0x00FF0000,
0x0000FF00,
0x000000FF,
0xFF000000);
_scrTex = SDL_CreateTexture(_renderer,
SDL_PIXELFORMAT_ARGB8888,
SDL_TEXTUREACCESS_STREAMING,
640, 480);
SDL_Rect source = TextureManager.GetRect("pezi");
_pezi = new Player();
_pezi.Load(0,0,32,26,0.0,"pezi");
_stars = new ParallaxStarField(4,10,1,300,20,50);
_plasma = new Plasma();
_rplasma = new RawPlasma(&pset);
_tunnel = new Tunnel(&pset);
for(int i =0; i <_invaderCount; i++){
int invaderId = uniform(0,max_invaders);
string key = TextureManager.LoadInvader(invaderId,_renderer);
_invaders[i] = new Invader(uniform(1,5));
_invaders[i].Load(uniform(0,640),0,invader_full_width,invader_height,uniform(0.0,359.0),key);
_invaders[i].SetVelocity(new Vector2D(0.0,uniform(0.5,2.5)));
_invaders[i].SetScale(4.0);
}
gameRunning = true;
// std.stdio.writeln(invaders.length);
};
void pset(int x, int y, const SDL_Color color)
{
if(x < 0 || y < 0 || x >= screen_width || y >= screen_height) return;
uint colorSDL = SDL_MapRGB(_scr.format, color.r, color.g, color.b);
uint* bufp;
bufp = cast(uint*)_scr.pixels + y * _scr.pitch / 4 + x;
*bufp = colorSDL;
}
void Render(){
//for(int x=0; x<screen_width; x++) {
// pset(x,50,RGB_Yellow);b
//}
//_rplasma.Draw();
//_tunnel.Draw();
SDL_UpdateTexture(_scrTex, null, _scr.pixels, _scr.pitch);
SDL_RenderClear(_renderer);
SDL_RenderCopy(_renderer, _scrTex, null, null);
foreach(i;_invaders) i.Draw(_renderer);
_pezi.Draw(_renderer);
_stars.Draw(_renderer);
//
//_plasma.Draw(_renderer);
SDL_RenderPresent(_renderer);
}
//void Render() {
// //SDL_Rect source = TextureManager.GetRect("pezi");
// //SDL_RenderClear(_renderer);
// //_stars.Draw(_renderer);
// for(int x=0; x>screen_width; x++) {
// }
// //_pezi.Draw(_renderer);
// //foreach(i;_invaders) i.Draw(_renderer);
// //for(int row = 0; row <480/invader_height; row++ ){
// // for(int col = 0; col < 640/invader_full_width; col++ ){
// // int v = (row * (640/invader_full_width)) + col;
// // //writeln(row, " " , col, " " ,v);
// // int x = col * invader_full_width;
// // int y = row * invader_height;
// // TextureManager.Draw(invaders[v],x,y,invader_full_width,invader_height,0.0,_renderer,SDL_FLIP_NONE);
// // }
// //}
// //TextureManager.Draw(invaders[_currentInvader],10,10,invader_full_width,invader_height,0.0,_renderer,SDL_FLIP_NONE,5.0);
// //SDL_RenderPresent(_renderer);
//};
void Update() {
//if( Direction.TurretRight.testDirection){
// _currentInvader = MIN(_currentInvader+1,max_invaders);
//}else if( Direction.TurretLeft.testDirection){
// _currentInvader = MAX(_currentInvader-1,0);
//}
_rplasma.Update();
//_pezi.Update();
_stars.Update();
//_plasma.Update();
foreach(i;_invaders) {
i.Update();
if( i.Position.Y > 480) {
string key = LoadInvader(uniform(0,max_invaders),_renderer);
i.Load(uniform(0,640),0,invader_full_width,invader_height,uniform(0.0,359.0),key);
i.SetScale(uniform(1.0,8.0));
}
}
//auto frame = ((SDL_GetTicks() / 1000) % 6);
};
void HandleEvents() {
InputHandler.Update();
};
void Clean() {
InputHandler.Clean();
SDL_DestroyWindow(_window);
SDL_DestroyRenderer(_renderer);
SDL_Quit();
};
@property bool running() { return gameRunning; }
}
void main() {
DerelictSDL2.load();
DerelictSDL2Image.load();
auto game = new Game();
uint frameStart, frameTime;
game.Init();
while(game.running)
{
frameStart = SDL_GetTicks();
game.HandleEvents();
game.Update();
game.Render();
frameTime = SDL_GetTicks() - frameStart;
//writeln(SDL_GetTicks());
//writeln(frameStart);
if( frameTime < Game.delay_time ){
//writeln(Game.delay_time-frameTime);
SDL_Delay(cast(int)Game.delay_time-frameTime);
}
}
game.Clean();
}
|
D
|
/Users/lars-manuelschneider/Documents/Heleos_dev/rust_trial/branches/target/rls/debug/deps/branches-b875efd5877ff5ad.rmeta: src/main.rs
/Users/lars-manuelschneider/Documents/Heleos_dev/rust_trial/branches/target/rls/debug/deps/branches-b875efd5877ff5ad.d: src/main.rs
src/main.rs:
|
D
|
/*
Copyright (c) 1996 Blake McBride
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
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
HOLDER 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.
*/
defclass Pipe : Stream {
object iObj; /* pipe object */
char *iName;
char *iBuf;
int iBufsiz;
char *iWptr; /* write pointer (where next byte should go) */
char *iRptr; /* read pointer (where next byte will be) */
object iRblk; /* thread on read block */
object iWblk; /* thread on write block */
int iRblock;/* block reads when buffer empty */
int iWblock;/* block writes when buffer full */
struct _Pipe_iv_t *iNext;
class:
struct _Pipe_iv_t *cMpl; /* master pipe list */
};
#include <string.h>
cmeth gNewWithStrInt, <vNew> : Pipe_New (object self, char *name, int bufsiz)
{
object obj = gNew(super);
ivType *iv = ivPtr(obj);
iObj = obj;
if (name) {
iName = Tnalloc(char, strlen(name)+1);
strcpy(iName, name);
}
iBuf = Tnalloc(char, bufsiz);
iBufsiz = bufsiz;
iWptr = iRptr = iBuf;
iNext = cMpl;
cMpl = iv;
return obj;
}
cmeth gNew()
{
return Pipe_New(self, NULL, 128);
}
imeth int gWrite(object self, char *buf, unsigned sz)
{
int room, rroom, bytes, w=0;
if (iWblk)
return 0;
while (sz) {
/* how much room is left on the write end of the buffer? */
room = (int)(iBufsiz - (iWptr - iBuf));
/* if not enough make room from read end */
if (room < (int) sz) {
rroom = (int)(iRptr - iBuf);
if (rroom) {
bytes = (int)(iWptr - iRptr); /* bytes in buffer */
memmove(iBuf, iRptr, bytes);
iRptr = iBuf;
iWptr = iBuf + bytes;
room = (int)(iBufsiz - (iWptr - iBuf));
}
}
bytes = (int) sz > room ? room : (int) sz; /* bytes to but on buffer */
if (bytes) {
memcpy(iWptr, buf, bytes);
iWptr += bytes;
buf += bytes;
sz -= bytes;
w += bytes;
if (iRblk)
gRelease(iRblk, 0);
}
/* the following line is needed because the above release might have cause
more room - if the read thread has a higher priority */
room = (int)(iBufsiz - (iWptr - iRptr));
if (sz && !room && iWblock) { /* there is more - block */
iWblk = gFindStr(Thread, NULL);
gHold(iWblk); /* does a yield */
iWblk = NULL;
}
if (!iWblock)
break;
}
return(w);
}
imeth int gRead(object self, char *buf, unsigned sz)
{
int ba; /* bytes available */
int bg; /* bytes to get */
int tr=0; /* total bytes read */
if (iRblk)
return 0;
while (sz) {
ba = (int)(iWptr - iRptr);
bg = ba < (int) sz ? ba : (int) sz;
if (bg) {
memcpy(buf, iRptr, bg);
buf += bg;
iRptr += bg;
sz -= bg;
tr += bg;
if (iWblk)
gRelease(iWblk, 0);
}
/* the following line is needed because the above release may add bytes */
ba = (int)(iWptr - iRptr);
if (sz && !ba && iRblock) {
iRblk = gFindStr(Thread, NULL);
gHold(iRblk); /* does a yield */
iRblk = NULL;
}
if (!iRblock)
break;
}
return(tr);
}
imeth char *gGets(object self, char *buf, int sz)
{
int ba; /* bytes available */
int bg; /* bytes to get */
int tr=0; /* total bytes read */
if (!(iWptr - iRptr) && !iRblock || iRblk || sz <= 0)
return NULL;
if (sz-- == 1) {
*buf = '\0';
return buf;
}
while (sz) {
ba = (int)(iWptr - iRptr);
for (bg=0 ; bg < ba && bg < sz && iRptr[bg++] != '\n' ; );
if (iRptr[bg-1] == '\n')
sz = bg;
if (bg) {
memcpy(buf, iRptr, bg);
buf += bg;
iRptr += bg;
sz -= bg;
tr += bg;
if (iWblk)
gRelease(iWblk, 0);
}
/* the following line is needed because the above release may add bytes */
ba = (int)(iWptr - iRptr);
if (sz && !ba && iRblock) {
iRblk = gFindStr(Thread, NULL);
gHold(iRblk); /* does a yield */
iRblk = NULL;
}
if (!iRblock)
break;
}
buf[tr] = '\0';
return buf;
}
imeth object gDispose, gGCDispose, gDeepDispose (object self)
{
ivType *t, *pt;
if (iRblk || iWblk)
return NULL;
for (t=cMpl, pt=NULL ; t ; pt=t, t=t->iNext)
if (t == iv) {
if (pt)
pt->iNext = t->iNext;
else
cMpl = t->iNext;
break;
}
if (iName) {
free(iName);
iName = NULL;
}
if (iBuf) {
free(iBuf);
iBuf = NULL;
}
return gDispose(super);
}
cmeth object gFindStr, <vFind> (object self, char *name)
{
ivType *p;
USE(self);
if (!name)
return NULL;
for (p=cMpl ; p ; p=p->iNext)
if (p->iName && !strcmp(p->iName, name))
return p->iObj;
return NULL;
}
imeth long gLength(object self)
{
#if 0
if (iRblock && !(iWptr - iRptr)) {
iRblk = gFindStr(Thread, NULL);
gHold(iRblk); /* does a yield */
iRblk = NULL;
}
#endif
return (long)(iWptr - iRptr);
}
imeth int gRoom(object self)
{
#if 0
if (iWblock && !(iBufsiz - (iWptr - iRptr))) {
iWblk = gFindStr(Thread, NULL);
gHold(iWblk); /* does a yield */
iWblk = NULL;
}
#endif
return (int)(iBufsiz - (iWptr - iRptr));
}
imeth int gSize(object self)
{
return iBufsiz;
}
imeth char *gName(object self)
{
return iName;
}
imeth gMode(object self, int rblock, int wblock)
{
iRblock = rblock;
iWblock = wblock;
return self;
}
imeth long gAdvance(object self, long sz)
{
int ba; /* bytes available */
int bg; /* bytes to get */
long tr=0; /* total bytes read */
if (iRblk)
return 0;
while (sz) {
ba = (int)(iWptr - iRptr);
bg = (long) ba < sz ? ba : (int) sz;
if (bg) {
iRptr += bg;
sz -= bg;
tr += bg;
if (iWblk)
gRelease(iWblk, 0);
}
/* the following line is needed because the above release may add bytes */
ba = (int)(iWptr - iRptr);
if (sz && !ba && iRblock) {
iRblk = gFindStr(Thread, NULL);
gHold(iRblk); /* does a yield */
iRblk = NULL;
}
if (!iRblock)
break;
}
return(tr);
}
imeth long gPosition(object self)
{
USE(self);
return 0L;
}
imeth int gEndOfStream(object self)
{
return !(iWptr - iRptr);
}
|
D
|
module perfontain.managers.texture.types;
import
perfontain,
perfontain.opengl;
enum : ubyte
{
TEX_DXT_1,
TEX_DXT_3,
TEX_DXT_5,
TEX_RGBA,
TEX_SHADOW_MAP,
}
struct TextureData
{
Vector2s sz;
@(`length`, `PARENT.dataLen(sz)`) const(ubyte)[] data;
}
struct TextureInfo
{
const dataLen(Vector2s sz)
{
return texDataLen(sz, t);
}
ubyte t;
@(`ubyte`) TextureData[] levels;
}
package:
static immutable uint[][5] textureTypes =
[
[ GL_COMPRESSED_RGBA_S3TC_DXT1_EXT ],
[ GL_COMPRESSED_RGBA_S3TC_DXT3_EXT ],
[ GL_COMPRESSED_RGBA_S3TC_DXT5_EXT ],
[ GL_RGBA8, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV ],
[ GL_DEPTH_COMPONENT32F, GL_DEPTH_COMPONENT, GL_FLOAT ],
];
|
D
|
/**
* A library in the ELF format, used on Unix.
*
* 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/libelf.d, _libelf.d)
* Documentation: https://dlang.org/phobos/dmd_libelf.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/libelf.d
*/
module dmd.libelf;
import core.stdc.time;
import core.stdc.string;
import core.stdc.stdlib;
import core.stdc.stdio;
version (Posix)
{
import core.sys.posix.sys.stat;
import core.sys.posix.unistd;
}
version (Windows)
{
import core.sys.windows.stat;
}
import dmd.globals;
import dmd.lib;
import dmd.location;
import dmd.utils;
import dmd.root.array;
import dmd.root.file;
import dmd.root.filename;
import dmd.common.outbuffer;
import dmd.root.port;
import dmd.root.rmem;
import dmd.root.string;
import dmd.root.stringtable;
import dmd.scanelf;
// Entry point (only public symbol in this module).
public extern (C++) Library LibElf_factory()
{
return new LibElf();
}
private: // for the remainder of this module
enum LOG = false;
struct ElfObjSymbol
{
const(char)[] name;
ElfObjModule* om;
}
alias ElfObjModules = Array!(ElfObjModule*);
alias ElfObjSymbols = Array!(ElfObjSymbol*);
final class LibElf : Library
{
ElfObjModules objmodules; // ElfObjModule[]
ElfObjSymbols objsymbols; // ElfObjSymbol[]
StringTable!(ElfObjSymbol*) tab;
extern (D) this()
{
tab._init(14_000);
}
/***************************************
* Add object module or library to the library.
* Examine the buffer to see which it is.
* If the buffer is NULL, use module_name as the file name
* and load the file.
*/
override void addObject(const(char)[] module_name, const ubyte[] buffer)
{
static if (LOG)
{
printf("LibElf::addObject(%.*s)\n",
cast(int)module_name.length, module_name.ptr);
}
void corrupt(int reason)
{
error("corrupt ELF object module %.*s %d",
cast(int)module_name.length, module_name.ptr, reason);
}
int fromfile = 0;
auto buf = buffer.ptr;
auto buflen = buffer.length;
if (!buf)
{
assert(module_name.length);
// read file and take buffer ownership
auto data = readFile(Loc.initial, module_name).extractSlice();
buf = data.ptr;
buflen = data.length;
fromfile = 1;
}
if (buflen < 16)
{
static if (LOG)
{
printf("buf = %p, buflen = %d\n", buf, buflen);
}
return corrupt(__LINE__);
}
if (memcmp(buf, "!<arch>\n".ptr, 8) == 0)
{
/* Library file.
* Pull each object module out of the library and add it
* to the object module array.
*/
static if (LOG)
{
printf("archive, buf = %p, buflen = %d\n", buf, buflen);
}
uint offset = 8;
char* symtab = null;
uint symtab_size = 0;
char* filenametab = null;
uint filenametab_size = 0;
uint mstart = cast(uint)objmodules.length;
while (offset < buflen)
{
if (offset + ElfLibHeader.sizeof >= buflen)
return corrupt(__LINE__);
ElfLibHeader* header = cast(ElfLibHeader*)(cast(ubyte*)buf + offset);
offset += ElfLibHeader.sizeof;
char* endptr = null;
uint size = cast(uint)strtoul(header.file_size.ptr, &endptr, 10);
if (endptr >= header.file_size.ptr + 10 || *endptr != ' ')
return corrupt(__LINE__);
if (offset + size > buflen)
return corrupt(__LINE__);
if (header.object_name[0] == '/' && header.object_name[1] == ' ')
{
/* Instead of rescanning the object modules we pull from a
* library, just use the already created symbol table.
*/
if (symtab)
return corrupt(__LINE__);
symtab = cast(char*)buf + offset;
symtab_size = size;
if (size < 4)
return corrupt(__LINE__);
}
else if (header.object_name[0] == '/' && header.object_name[1] == '/')
{
/* This is the file name table, save it for later.
*/
if (filenametab)
return corrupt(__LINE__);
filenametab = cast(char*)buf + offset;
filenametab_size = size;
}
else
{
auto om = new ElfObjModule();
om.base = cast(ubyte*)buf + offset; /*- sizeof(ElfLibHeader)*/
om.length = size;
om.offset = 0;
if (header.object_name[0] == '/')
{
/* Pick long name out of file name table
*/
uint foff = cast(uint)strtoul(header.object_name.ptr + 1, &endptr, 10);
uint i;
for (i = 0; 1; i++)
{
if (foff + i >= filenametab_size)
return corrupt(__LINE__);
char c = filenametab[foff + i];
if (c == '/')
break;
}
auto n = cast(char*)Mem.check(malloc(i + 1));
memcpy(n, filenametab + foff, i);
n[i] = 0;
om.name = n[0 .. i];
}
else
{
/* Pick short name out of header
*/
auto n = cast(char*)Mem.check(malloc(ELF_OBJECT_NAME_SIZE));
for (int i = 0; 1; i++)
{
if (i == ELF_OBJECT_NAME_SIZE)
return corrupt(__LINE__);
char c = header.object_name[i];
if (c == '/')
{
n[i] = 0;
om.name = n[0 .. i];
break;
}
n[i] = c;
}
}
om.name_offset = -1;
om.file_time = strtoul(header.file_time.ptr, &endptr, 10);
om.user_id = cast(uint)strtoul(header.user_id.ptr, &endptr, 10);
om.group_id = cast(uint)strtoul(header.group_id.ptr, &endptr, 10);
om.file_mode = cast(uint)strtoul(header.file_mode.ptr, &endptr, 8);
om.scan = 0; // don't scan object module for symbols
objmodules.push(om);
}
offset += (size + 1) & ~1;
}
if (offset != buflen)
return corrupt(__LINE__);
/* Scan the library's symbol table, and insert it into our own.
* We use this instead of rescanning the object module, because
* the library's creator may have a different idea of what symbols
* go into the symbol table than we do.
* This is also probably faster.
*/
uint nsymbols = Port.readlongBE(symtab);
char* s = symtab + 4 + nsymbols * 4;
if (4 + nsymbols * (4 + 1) > symtab_size)
return corrupt(__LINE__);
for (uint i = 0; i < nsymbols; i++)
{
const(char)[] name = s.toDString();
s += name.length + 1;
if (s - symtab > symtab_size)
return corrupt(__LINE__);
uint moff = Port.readlongBE(symtab + 4 + i * 4);
//printf("symtab[%d] moff = %x %x, name = %s\n", i, moff, moff + ElfLibHeader.sizeof, name.ptr);
for (uint m = mstart; 1; m++)
{
if (m == objmodules.length)
return corrupt(__LINE__); // didn't find it
ElfObjModule* om = objmodules[m];
//printf("\t%x\n", cast(char *)om.base - cast(char *)buf);
if (moff + ElfLibHeader.sizeof == cast(char*)om.base - cast(char*)buf)
{
addSymbol(om, name, 1);
//if (mstart == m)
// mstart++;
break;
}
}
}
return;
}
/* It's an object module
*/
auto om = new ElfObjModule();
om.base = cast(ubyte*)buf;
om.length = cast(uint)buflen;
om.offset = 0;
// remove path, but not extension
om.name = FileName.name(module_name);
om.name_offset = -1;
om.scan = 1;
if (fromfile)
{
version (Posix)
stat_t statbuf;
version (Windows)
struct_stat statbuf;
int i = module_name.toCStringThen!(name => stat(name.ptr, &statbuf));
if (i == -1) // error, errno is set
return corrupt(__LINE__);
om.file_time = statbuf.st_ctime;
om.user_id = statbuf.st_uid;
om.group_id = statbuf.st_gid;
om.file_mode = statbuf.st_mode;
}
else
{
/* Mock things up for the object module file that never was
* actually written out.
*/
version (Posix)
{
__gshared uid_t uid;
__gshared gid_t gid;
__gshared int _init;
if (!_init)
{
_init = 1;
uid = getuid();
gid = getgid();
}
om.user_id = uid;
om.group_id = gid;
}
version (Windows)
{
om.user_id = 0; // meaningless on Windows
om.group_id = 0; // meaningless on Windows
}
time_t file_time = 0;
time(&file_time);
om.file_time = cast(long)file_time;
om.file_mode = (1 << 15) | (6 << 6) | (4 << 3) | (4 << 0); // 0100644
}
objmodules.push(om);
}
/*****************************************************************************/
void addSymbol(ElfObjModule* om, const(char)[] name, int pickAny = 0)
{
static if (LOG)
{
printf("LibElf::addSymbol(%s, %s, %d)\n", om.name.ptr, name.ptr, pickAny);
}
auto s = tab.insert(name.ptr, name.length, null);
if (!s)
{
// already in table
if (!pickAny)
{
s = tab.lookup(name.ptr, name.length);
assert(s);
ElfObjSymbol* os = s.value;
error("multiple definition of %s: %s and %s: %s", om.name.ptr, name.ptr, os.om.name.ptr, os.name.ptr);
}
}
else
{
auto os = new ElfObjSymbol();
os.name = xarraydup(name);
os.om = om;
s.value = os;
objsymbols.push(os);
}
}
private:
/************************************
* Scan single object module for dictionary symbols.
* Send those symbols to LibElf::addSymbol().
*/
void scanObjModule(ElfObjModule* om)
{
static if (LOG)
{
printf("LibElf::scanObjModule(%s)\n", om.name.ptr);
}
extern (D) void addSymbol(const(char)[] name, int pickAny)
{
this.addSymbol(om, name, pickAny);
}
scanElfObjModule(&addSymbol, om.base[0 .. om.length], om.name.ptr, loc);
}
/*****************************************************************************/
/*****************************************************************************/
/**********************************************
* Create and write library to libbuf.
* The library consists of:
* !<arch>\n
* header
* dictionary
* object modules...
*/
protected override void WriteLibToBuffer(OutBuffer* libbuf)
{
static if (LOG)
{
printf("LibElf::WriteLibToBuffer()\n");
}
/************* Scan Object Modules for Symbols ******************/
foreach (om; objmodules)
{
if (om.scan)
{
scanObjModule(om);
}
}
/************* Determine string section ******************/
/* The string section is where we store long file names.
*/
uint noffset = 0;
foreach (om; objmodules)
{
size_t len = om.name.length;
if (len >= ELF_OBJECT_NAME_SIZE)
{
om.name_offset = noffset;
noffset += len + 2;
}
else
om.name_offset = -1;
}
static if (LOG)
{
printf("\tnoffset = x%x\n", noffset);
}
/************* Determine module offsets ******************/
uint moffset = 8 + ElfLibHeader.sizeof + 4;
foreach (os; objsymbols)
{
moffset += 4 + os.name.length + 1;
}
uint hoffset = moffset;
static if (LOG)
{
printf("\tmoffset = x%x\n", moffset);
}
moffset += moffset & 1;
if (noffset)
moffset += ElfLibHeader.sizeof + noffset;
foreach (om; objmodules)
{
moffset += moffset & 1;
om.offset = moffset;
moffset += ElfLibHeader.sizeof + om.length;
}
libbuf.reserve(moffset);
/************* Write the library ******************/
libbuf.write("!<arch>\n");
ElfObjModule om;
om.name_offset = -1;
om.base = null;
om.length = cast(uint)(hoffset - (8 + ElfLibHeader.sizeof));
om.offset = 8;
om.name = "";
.time(&om.file_time);
om.user_id = 0;
om.group_id = 0;
om.file_mode = 0;
ElfLibHeader h;
ElfOmToHeader(&h, &om);
libbuf.write((&h)[0 .. 1]);
char[4] buf;
Port.writelongBE(cast(uint)objsymbols.length, buf.ptr);
libbuf.write(buf[0 .. 4]);
foreach (os; objsymbols)
{
Port.writelongBE(os.om.offset, buf.ptr);
libbuf.write(buf[0 .. 4]);
}
foreach (os; objsymbols)
{
libbuf.writestring(os.name);
libbuf.writeByte(0);
}
static if (LOG)
{
printf("\tlibbuf.moffset = x%x\n", libbuf.length);
}
/* Write out the string section
*/
if (noffset)
{
if (libbuf.length & 1)
libbuf.writeByte('\n');
// header
memset(&h, ' ', ElfLibHeader.sizeof);
h.object_name[0] = '/';
h.object_name[1] = '/';
size_t len = sprintf(h.file_size.ptr, "%u", noffset);
assert(len < 10);
h.file_size[len] = ' ';
h.trailer[0] = '`';
h.trailer[1] = '\n';
libbuf.write((&h)[0 .. 1]);
foreach (om2; objmodules)
{
if (om2.name_offset >= 0)
{
libbuf.writestring(om2.name);
libbuf.writeByte('/');
libbuf.writeByte('\n');
}
}
}
/* Write out each of the object modules
*/
foreach (om2; objmodules)
{
if (libbuf.length & 1)
libbuf.writeByte('\n'); // module alignment
assert(libbuf.length == om2.offset);
ElfOmToHeader(&h, om2);
libbuf.write((&h)[0 .. 1]); // module header
libbuf.write(om2.base[0 .. om2.length]); // module contents
}
static if (LOG)
{
printf("moffset = x%x, libbuf.length = x%x\n", moffset, libbuf.length);
}
assert(libbuf.length == moffset);
}
}
/*****************************************************************************/
/*****************************************************************************/
struct ElfObjModule
{
ubyte* base; // where are we holding it in memory
uint length; // in bytes
uint offset; // offset from start of library
const(char)[] name; // module name (file name) with terminating 0
int name_offset; // if not -1, offset into string table of name
time_t file_time; // file time
uint user_id;
uint group_id;
uint file_mode;
int scan; // 1 means scan for symbols
}
enum ELF_OBJECT_NAME_SIZE = 16;
struct ElfLibHeader
{
char[ELF_OBJECT_NAME_SIZE] object_name;
char[12] file_time;
char[6] user_id;
char[6] group_id;
char[8] file_mode; // in octal
char[10] file_size;
char[2] trailer;
}
extern (C++) void ElfOmToHeader(ElfLibHeader* h, ElfObjModule* om)
{
char* buffer = cast(char*)h;
// user_id and group_id are padded on 6 characters in Header struct.
// Squashing to 0 if more than 999999.
if (om.user_id > 999_999)
om.user_id = 0;
if (om.group_id > 999_999)
om.group_id = 0;
size_t len;
if (om.name_offset == -1)
{
// "name/ 1423563789 5000 5000 100640 3068 `\n"
// |^^^^^^^^^^^^^^^|^^^^^^^^^^^|^^^^^|^^^^^|^^^^^^^|^^^^^^^^^|^^
// name file_time u_id gr_id fmode fsize trailer
len = snprintf(buffer, ElfLibHeader.sizeof, "%-16s%-12llu%-6u%-6u%-8o%-10u`", om.name.ptr, cast(long)om.file_time, om.user_id, om.group_id, om.file_mode, om.length);
// adding '/' after the name field
const(size_t) name_length = om.name.length;
assert(name_length < ELF_OBJECT_NAME_SIZE);
buffer[name_length] = '/';
}
else
{
// "/162007 1423563789 5000 5000 100640 3068 `\n"
// |^^^^^^^^^^^^^^^|^^^^^^^^^^^|^^^^^|^^^^^|^^^^^^^|^^^^^^^^^|^^
// name_offset file_time u_id gr_id fmode fsize trailer
len = snprintf(buffer, ElfLibHeader.sizeof, "/%-15d%-12llu%-6u%-6u%-8o%-10u`", om.name_offset, cast(long)om.file_time, om.user_id, om.group_id, om.file_mode, om.length);
}
assert(ElfLibHeader.sizeof > 0 && len == ElfLibHeader.sizeof - 1);
// replace trailing \0 with \n
buffer[len] = '\n';
}
|
D
|
// Copyright Michael D. Parker 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module bindbc.lua.config;
enum LuaSupport {
noLibrary,
badLibrary,
lua51 = 51,
lua52 = 52,
lua53 = 53,
}
version(LUA_51) {
enum luaSupport = LuaSupport.lua51;
}
|
D
|
import std.stdio, std.digest.md, std.algorithm, std.conv;
void main()
{
string key = "ckczppom";
ulong counter;
for (counter = 0; counter < ulong.max; counter++)
{
string temp = key ~ text(counter);
if (hexDigest!MD5(temp).idup.startsWith("00000"))
{
break;
}
}
writeln("Five Zeros: ", counter);
for (counter = 0; counter < ulong.max; counter++)
{
string temp = key ~ text(counter);
if (hexDigest!MD5(temp).idup.startsWith("000000"))
{
break;
}
}
writeln("Six Zeros: ", counter);
}
|
D
|
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Row/RowContext.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/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/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.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/SQLite.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /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/Fluent.build/RowContext~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/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/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.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/SQLite.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /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/Fluent.build/RowContext~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/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/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.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/SQLite.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/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/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /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 ddiv.container.stack;
import ddiv.core.memory;
import ddiv.core.exceptions;
import ddiv.container.common;
import std.experimental.allocator.mallocator : Mallocator;
import std.traits : isArray;
/**
Simple NoGC stack that uses std.experimental.allocator
Only can contain scalar and structs
*/
struct SimpleStack(T, Allocator = Mallocator)
if (isAllocator!Allocator && !isArray!T && !is(T == class))
{
private T[] elements = void;
private size_t arrayLength = 0;
// Gets the struct constructor
mixin StructAllocator!Allocator;
~this() @nogc @trusted
{
this.free();
}
void free() @nogc @trusted
{
if (!(this.elements is null))
{
allocator.dispose(this.elements);
this.elements = null;
}
this.clear();
}
void reserve(size_t newCapacity) @nogc @trusted
in (newCapacity > 0, "Invalid capacity. Must greater that 0")
{
if (this.elements is null)
{
this.elements = allocator.make!(T[])(newCapacity);
}
else if (newCapacity > this.capacity)
{
allocator.expandArray!T(this.elements, newCapacity - this.capacity);
}
else
{
allocator.shrinkArray!T(this.elements, this.capacity - newCapacity);
}
}
void expand(size_t delta) @nogc @trusted
{
if (this.elements is null)
{
this.elements = allocator.make!(T[])(delta);
}
else
{
allocator.expandArray!T(this.elements, delta);
}
}
size_t capacity() const @nogc nothrow @safe
{
return this.elements.length;
}
size_t opDollar() const @nogc nothrow @safe
{
return this.arrayLength;
}
alias length = opDollar;
bool empty() const @nogc @safe
{
return this.elements is null || this.arrayLength == 0;
}
void insertBack(T value) @nogc @safe
{
if (this.elements is null)
{
this.reserve(DEFAULT_INITIAL_SIZE);
}
if (this.arrayLength >= this.capacity)
{
this.reserve(growCapacity(this.capacity));
}
this.elements[this.arrayLength++] = value;
}
alias push = insertBack;
alias put = insertBack;
static if (__traits(isScalar, T))
{
/// O(1)
T top() @nogc @safe
{
if (this.empty)
{
throw new RangeError("SimpleStack it's empty.");
}
return this.elements[this.arrayLength - 1];
}
}
else
{
/// O(1)
pragma(inline, true)
ref inout(T) top() return inout @nogc @safe
{
if (this.empty)
{
throw new RangeError("SimpleStack it's empty.");
}
return this.elements[this.arrayLength - 1];
}
}
alias back = top;
/// O(1)
T pop() @nogc @safe
{
if (this.empty)
{
throw new RangeError("SimpleStack it's empty.");
}
T value = this.top();
this.arrayLength--;
return value;
}
alias popBack = pop;
static if (__traits(isScalar, T))
{
/// O(N)
bool contains(T value) @nogc @safe
{
if (this.empty)
{
return false;
}
import std.algorithm.searching : canFind;
return canFind(this.elements[0 .. this.length], value);
}
}
void clear() @nogc @safe
{
this.arrayLength = 0;
}
inout(T) opIndex(size_t index) inout @nogc nothrow @safe
{
if (this.empty || index > this.length)
{
throw new RangeError("Indexing out of bounds of SimpleStack.");
}
return this.elements[index];
}
/// O(1)
void opOpAssign(string op)(T value) @nogc nothrow @safe if (op == "~")
{
this.insertBack(value);
}
import std.range.primitives : isInputRange;
/// O(N)
void opOpAssign(string op, R)(R range) @nogc nothrow @safe
if (op == "~" && isInputRange!R)
{
foreach (element; range)
{
this.insertBack(element);
}
}
/// Returns a forward range
auto range(this This)() return @nogc nothrow @safe
{
static struct Range
{
private This* self;
private size_t index;
Range save()
{
return this;
}
auto front()
{
return (*self)[index];
}
void popFront() @nogc
{
--index;
}
bool empty() const @nogc
{
return index <= 0;
}
auto length() const @nogc
{
return self.length;
}
}
import std.range.primitives : isForwardRange;
static assert(isForwardRange!Range);
return Range(() @trusted { return &this; }(), this.length - 1);
}
auto ptr(this This)() return
{
return &this.elements[0];
}
import std.format : FormatSpec;
void toString(scope void delegate(const(char)[]) sink, FormatSpec!char fmt) const
{
import std.range : put;
if (this.empty) {
put(sink, "[]");
return;
}
put(sink, "[");
import std.format : formatValue;
foreach (index, el; this.elements[0..this.length]) {
formatValue(sink, el, fmt);
if (index + 1 < this.length) {
put(sink, ", ");
}
}
put(sink, "]");
}
}
@("SimpleStack @nogc")
@safe @nogc unittest
{
import pijamas;
{
auto s = SimpleStack!int();
s.reserve(16);
s.capacity.should.be.equal(16);
s.length.should.be.equal(0);
s.empty.should.be.True();
s.contains(123).should.be.False();
s ~= 100;
s.top.should.be.equal(100);
s.length.should.be.equal(1);
s.empty.should.be.False();
s.contains(100).should.be.True();
s.contains(123).should.be.False();
s.pop.should.be.equal(100);
s.empty.should.be.True();
// Stress test
import std.range : iota, array;
s ~= iota(0, 10_240);
s.length.should.be.equal(10_240);
s.capacity.should.be.biggerOrEqualThan(10_240);
s.top.should.be.equal(10_240 - 1);
s.contains(10_200).should.be.True;
s.contains(0).should.be.True;
s.contains(10_239).should.be.True;
s.contains(10_240).should.be.False;
import std.algorithm : isSorted, reverse;
s.range.isSorted!("a > b").should.be.True;
//s.range.array.should.be.equal(iota(0, 10_240).array.reverse);
s.clear();
s.length.should.be.equal(0);
s.capacity.should.be.biggerOrEqualThan(10_240);
}
{
struct S
{
int x;
long y;
bool opEquals()(auto ref const S rhs) const @nogc @safe pure nothrow
{
return this.x == rhs.x && this.y == rhs.y;
}
int opCmp(ref const S rhs) const @nogc @safe pure nothrow
{
return this.x - rhs.x;
}
size_t toHash() const @safe pure nothrow
{
static import core.internal.hash;
return core.internal.hash.hashOf(x) + core.internal.hash.hashOf(y);
}
}
auto s = SimpleStack!S();
s.reserve(32);
s.capacity.should.be.equal(32);
s.length.should.be.equal(0);
s.empty.should.be.True;
should(() {
auto emptyStack = SimpleStack!S();
cast(void) emptyStack.top;
}).Throw!RangeError;
s ~= S(10, 20);
s.top.should.be.equal(S(10, 20));
s.length.should.be.equal(1);
s.empty.should.be.False;
s.pop;
s.empty.should.be.True;
// Stress test
import std.range : iota, array;
foreach (i; 0 .. 128)
{
s ~= S(i, -1);
}
s.length.should.be.equal(128);
s.capacity.should.be.biggerOrEqualThan(128);
s.top.should.be.equal(S(127, -1));
s.top.y = 123;
s.top.should.be.equal(S(127, 123));
import std.algorithm.searching : canFind;
s.range.canFind(S(120, -1)).should.be.True;
}
}
@("SimpleStack")
@safe unittest
{
import pijamas;
{
auto s = SimpleStack!int();
should(() {
s.top;
}).Throw!RangeError;
import std.range : iota, array;
import std.algorithm : isSorted, reverse;
s ~= iota(0, 10_240);
s.range.isSorted!("a > b").should.be.True;
s.range.array.should.be.equal(iota(0, 10_240).array.reverse);
}
}
|
D
|
# FIXED
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/source/F2806x_PieCtrl.c
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Device.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Adc.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_BootVars.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Cla.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Comp.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_CpuTimers.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_DevEmu.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Dma.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_ECan.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_ECap.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_EPwm.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_EQep.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Gpio.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_HRCap.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_I2c.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Mcbsp.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_NmiIntrupt.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_PieCtrl.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_PieVect.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Spi.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Sci.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_SysCtrl.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Usb.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_XIntrupt.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_Examples.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_GlobalPrototypes.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_EPwm_defines.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_I2c_defines.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_Dma_defines.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_Cla_defines.h
F2806x_PieCtrl.obj: C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_DefaultISR.h
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/source/F2806x_PieCtrl.c:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Device.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Adc.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_BootVars.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Cla.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Comp.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_CpuTimers.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_DevEmu.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Dma.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_ECan.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_ECap.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_EPwm.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_EQep.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Gpio.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_HRCap.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_I2c.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Mcbsp.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_NmiIntrupt.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_PieCtrl.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_PieVect.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Spi.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Sci.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_SysCtrl.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_Usb.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/headers/include/F2806x_XIntrupt.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_Examples.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_GlobalPrototypes.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_EPwm_defines.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_I2c_defines.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_Dma_defines.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_Cla_defines.h:
C:/ti/c2000/C2000Ware_1_00_04_00/device_support/f2806x/common/include/F2806x_DefaultISR.h:
|
D
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
module vtkXMLRectilinearGridWriter;
static import vtkd_im;
static import core.stdc.config;
static import std.conv;
static import std.string;
static import std.conv;
static import std.string;
static import vtkObjectBase;
static import vtkXMLStructuredDataWriter;
class vtkXMLRectilinearGridWriter : vtkXMLStructuredDataWriter.vtkXMLStructuredDataWriter {
private void* swigCPtr;
public this(void* cObject, bool ownCObject) {
super(vtkd_im.vtkXMLRectilinearGridWriter_Upcast(cObject), ownCObject);
swigCPtr = cObject;
}
public static void* swigGetCPtr(vtkXMLRectilinearGridWriter obj) {
return (obj is null) ? null : obj.swigCPtr;
}
mixin vtkd_im.SwigOperatorDefinitions;
public override void dispose() {
synchronized(this) {
if (swigCPtr !is null) {
if (swigCMemOwn) {
swigCMemOwn = false;
throw new object.Exception("C++ destructor does not have public access");
}
swigCPtr = null;
super.dispose();
}
}
}
public static vtkXMLRectilinearGridWriter New() {
void* cPtr = vtkd_im.vtkXMLRectilinearGridWriter_New();
vtkXMLRectilinearGridWriter ret = (cPtr is null) ? null : new vtkXMLRectilinearGridWriter(cPtr, false);
return ret;
}
public static int IsTypeOf(string type) {
auto ret = vtkd_im.vtkXMLRectilinearGridWriter_IsTypeOf((type ? std.string.toStringz(type) : null));
return ret;
}
public static vtkXMLRectilinearGridWriter SafeDownCast(vtkObjectBase.vtkObjectBase o) {
void* cPtr = vtkd_im.vtkXMLRectilinearGridWriter_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o));
vtkXMLRectilinearGridWriter ret = (cPtr is null) ? null : new vtkXMLRectilinearGridWriter(cPtr, false);
return ret;
}
public vtkXMLRectilinearGridWriter NewInstance() const {
void* cPtr = vtkd_im.vtkXMLRectilinearGridWriter_NewInstance(cast(void*)swigCPtr);
vtkXMLRectilinearGridWriter ret = (cPtr is null) ? null : new vtkXMLRectilinearGridWriter(cPtr, false);
return ret;
}
alias vtkXMLStructuredDataWriter.vtkXMLStructuredDataWriter.NewInstance NewInstance;
}
|
D
|
module godot.core.plane;
import godot.core.defs;
import godot.core.vector3;
import std.math;
enum ClockDirection
{
clockwise,
counterClockwise,
cw = clockwise,
ccw = counterClockwise
}
struct Plane
{
Vector3 normal = Vector3(0,0,0);
real_t d = 0;
Vector3 center() const
{
return normal*d;
}
Plane opUnary(string op : "-")() const
{
return Plane(-normal, -d);
}
Vector3 project(in Vector3 p_point) const
{
return p_point - normal * distance_to(p_point);
}
void normalize()
{
real_t l = normal.length();
if (l==0)
{
this=Plane(Vector3(0,0,0),0);
return;
}
normal/=l;
d/=l;
}
Plane normalized() const
{
Plane p = this;
p.normalize();
return p;
}
Vector3 get_any_point() const
{
return normal*d;
}
Vector3 get_any_perpendicular_normal() const
{
enum Vector3 p1 = Vector3(1,0,0);
enum Vector3 p2 = Vector3(0,1,0);
Vector3 p;
if (fabs(normal.dot(p1)) > 0.99) // if too similar to p1
p=p2; // use p2
else
p=p1; // use p1
p-=normal * normal.dot(p);
p.normalize();
return p;
}
/* intersections */
bool intersect_3(in Plane p_plane1, in Plane p_plane2, Vector3* r_result = null) const
{
const Plane p_plane0 = this;
Vector3 normal0=p_plane0.normal;
Vector3 normal1=p_plane1.normal;
Vector3 normal2=p_plane2.normal;
real_t denom=normal0.cross(normal1).dot(normal2);
if (fabs(denom)<=CMP_EPSILON)
return false;
if (r_result)
{
*r_result = ( (normal1.cross(normal2) * p_plane0.d) +
(normal2.cross(normal0) * p_plane1.d) +
(normal0.cross(normal1) * p_plane2.d) )/denom;
}
return true;
}
bool intersects_ray(in Vector3 p_from, in Vector3 p_dir, Vector3* p_intersection = null) const
{
Vector3 segment=p_dir;
real_t den=normal.dot( segment );
//printf("den is %i\n",den);
if (fabs(den)<=CMP_EPSILON)
{
return false;
}
real_t dist=(normal.dot( p_from ) - d) / den;
//printf("dist is %i\n",dist);
if (dist>CMP_EPSILON)
{ //this is a ray, before the emiting pos (p_from) doesnt exist
return false;
}
dist=-dist;
if(p_intersection) *p_intersection = p_from + segment * dist;
return true;
}
bool intersects_segment(in Vector3 p_begin, in Vector3 p_end, Vector3* p_intersection) const
{
Vector3 segment= p_begin - p_end;
real_t den=normal.dot( segment );
//printf("den is %i\n",den);
if (fabs(den)<=CMP_EPSILON) return false;
real_t dist=(normal.dot( p_begin ) - d) / den;
//printf("dist is %i\n",dist);
if (dist<-CMP_EPSILON || dist > (1.0 +CMP_EPSILON)) return false;
dist=-dist;
if(p_intersection) *p_intersection = p_begin + segment * dist;
return true;
}
/* misc */
bool is_almost_like(in Plane p_plane) const
{
return (normal.dot( p_plane.normal ) > _PLANE_EQ_DOT_EPSILON && fabs(d-p_plane.d) < _PLANE_EQ_D_EPSILON);
}
/+String opCast(T : String)() const
{
// return normal.operator String() + ", " + rtos(d);
return String(); // @Todo
}+/
bool is_point_over(in Vector3 p_point) const
{
return (normal.dot(p_point) > d);
}
real_t distance_to(in Vector3 p_point) const
{
return (normal.dot(p_point)-d);
}
bool has_point(in Vector3 p_point,real_t _epsilon = CMP_EPSILON) const
{
real_t dist=normal.dot(p_point) - d;
dist=fabs(dist);
return ( dist <= _epsilon);
}
this(in Vector3 p_normal, real_t p_d)
{
normal=p_normal;
d=p_d;
}
this(in Vector3 p_point, in Vector3 p_normal)
{
normal=p_normal;
d=p_normal.dot(p_point);
}
this(in Vector3 p_point1, in Vector3 p_point2, in Vector3 p_point3,ClockDirection p_dir = ClockDirection.ccw)
{
if (p_dir == ClockDirection.clockwise)
normal=(p_point1-p_point3).cross(p_point1-p_point2);
else
normal=(p_point1-p_point2).cross(p_point1-p_point3);
normal.normalize();
d = normal.dot(p_point1);
}
}
|
D
|
/***********************************************************************\
* w32api.d *
* *
* Windows API header module *
* *
* Translated from MinGW API for MS-Windows 4.0 *
* by Stewart Gordon *
* *
* Placed into public domain *
\***********************************************************************/
module win32.w32api;
enum __W32API_VERSION = 3.17;
enum __W32API_MAJOR_VERSION = 3;
enum __W32API_MINOR_VERSION = 17;
/* These version identifiers are used to specify the minimum version of Windows that an
* application will support.
*
* Previously the minimum Windows 9x and Windows NT versions could be specified. However, since
* Windows 9x is no longer supported, either by Microsoft or by DMD, this distinction has been
* removed in order to simplify the bindings.
*/
version (Windows7) {
enum uint _WIN32_WINNT = 0x601;
} else version (WindowsVista) {
enum uint _WIN32_WINNT = 0x600;
} else version (Windows2003) {
enum uint _WIN32_WINNT = 0x502;
} else version (WindowsXP) {
enum uint _WIN32_WINNT = 0x501;
} else version (Windows2000) {
enum uint _WIN32_WINNT = 0x500;
} else {
enum uint _WIN32_WINNT = 0x501;
}
version (IE8) {
enum uint _WIN32_IE = 0x800;
} version (IE7) {
enum uint _WIN32_IE = 0x700;
} else version (IE602) {
enum uint _WIN32_IE = 0x603;
} else version (IE601) {
enum uint _WIN32_IE = 0x601;
} else version (IE6) {
enum uint _WIN32_IE = 0x600;
} else version (IE56) {
enum uint _WIN32_IE = 0x560;
} else version (IE501) {
enum uint _WIN32_IE = 0x501;
} else version (IE5) {
enum uint _WIN32_IE = 0x500;
} else version (IE401) {
enum uint _WIN32_IE = 0x401;
} else version (IE4) {
enum uint _WIN32_IE = 0x400;
} else version (IE3) {
enum uint _WIN32_IE = 0x300;
} else static if (_WIN32_WINNT >= 0x410) {
enum uint _WIN32_IE = 0x400;
} else {
enum uint _WIN32_IE = 0;
}
debug (WindowsUnitTest) {
unittest {
printf("Windows NT version: %03x\n", _WIN32_WINNT);
printf("IE version: %03x\n", _WIN32_IE);
}
}
version (Unicode) {
enum bool _WIN32_UNICODE = true;
package template DECLARE_AW(string name) {
mixin("alias " ~ name ~ "W " ~ name ~ ";");
}
} else {
enum bool _WIN32_UNICODE = false;
package template DECLARE_AW(string name) {
mixin("alias " ~ name ~ "A " ~ name ~ ";");
}
}
|
D
|
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/FluentSQLite.build/FluentSQLiteSchema.swift.o : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteSchema.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+SchemaSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+JoinSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+MigrationSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+TransactionSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+QuerySupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteProvider.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteError.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteTypes.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteModels.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/Exports.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteQuery.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/FluentSQL.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/cpp_magic.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIODarwin/include/c_nio_darwin.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/c-atomics.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOLinux/include/c_nio_linux.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio-zlib-support.git--4783613459776704231/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/FluentSQLite.build/FluentSQLiteSchema~partial.swiftmodule : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteSchema.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+SchemaSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+JoinSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+MigrationSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+TransactionSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+QuerySupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteProvider.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteError.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteTypes.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteModels.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/Exports.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteQuery.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/FluentSQL.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/cpp_magic.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIODarwin/include/c_nio_darwin.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/c-atomics.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOLinux/include/c_nio_linux.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio-zlib-support.git--4783613459776704231/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/FluentSQLite.build/FluentSQLiteSchema~partial.swiftdoc : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteSchema.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+SchemaSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+JoinSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+MigrationSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+TransactionSupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteDatabase+QuerySupporting.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteProvider.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteError.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteTypes.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/SQLiteModels.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/Exports.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent-sqlite.git-2503729378264811657/Sources/FluentSQLite/FluentSQLiteQuery.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/SQL.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/FluentSQL.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.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/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/cpp_magic.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIODarwin/include/c_nio_darwin.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOAtomics/include/c-atomics.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio.git-8756902686293799568/Sources/CNIOLinux/include/c_nio_linux.h /Users/lb/Documents/Project/LearnVapor/.build/checkouts/swift-nio-zlib-support.git--4783613459776704231/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
module wx.TextDialog;
public import wx.common;
public import wx.Dialog;
//! \cond EXTERN
static extern (C) IntPtr wxTextEntryDialog_ctor(IntPtr parent, string message, string caption, string value, uint style, inout Point pos);
static extern (C) void wxTextEntryDialog_dtor(IntPtr self);
static extern (C) void wxTextEntryDialog_SetValue(IntPtr self, string val);
static extern (C) IntPtr wxTextEntryDialog_GetValue(IntPtr self);
static extern (C) int wxTextEntryDialog_ShowModal(IntPtr self);
//! \endcond
//-----------------------------------------------------------------------------
alias TextEntryDialog wxTextEntryDialog;
public class TextEntryDialog : Dialog
{
enum {
wxTextEntryDialogStyle = (wxOK | wxCANCEL | wxCENTRE),
}
public const string wxGetTextFromUserPromptStr = "Input Text";
public this(IntPtr wxobj);
public this(Window parent, string message=wxGetTextFromUserPromptStr, string caption="", string value="", int style=wxTextEntryDialogStyle, Point pos=wxDefaultPosition);
public string Value() ;
public void Value(string value);
public override int ShowModal();
}
//-----------------------------------------------------------------------------
//! \cond EXTERN
static extern (C) IntPtr wxGetPasswordFromUser_func(string message, string caption, string defaultValue, IntPtr parent);
static extern (C) IntPtr wxGetTextFromUser_func(string message, string caption, string defaultValue, IntPtr parent, int x, int y, bool centre);
//! \endcond
//-----------------------------------------------------------------------------
public string GetPasswordFromUser(string message, string caption=TextEntryDialog.wxGetTextFromUserPromptStr, string defaultValue="", Window parent=null);
public string GetTextFromUser(string message, string caption=TextEntryDialog.wxGetTextFromUserPromptStr, string defaultValue="", Window parent=null, int x=-1, int y=-1, bool centre=true);
|
D
|
/*******************************************************************************
copyright: Copyright (c) 2008 Kris Bell. все rights reserved
license: BSD стиль: $(LICENSE)
version: Apr 2008: Initial release
authors: Kris
Since: 0.99.7
Based upon Doug Lea's Java collection package
*******************************************************************************/
module util.container.Clink;
/*******************************************************************************
ЦСвязки из_ линки, всегда организуемые в циркулярные списки.
*******************************************************************************/
struct ЦСвязка (V)
{
alias ЦСвязка!(V) Тип;
alias Тип *Реф;
Реф предш, // указадель на предш
следщ; // указатель на следщ
V значение; // значение элемента
/***********************************************************************
Набор в_ точка в_ ourselves
***********************************************************************/
Реф установи (V v)
{
return установи (v, this, this);
}
/***********************************************************************
Набор в_ точка в_ n as следщ ячейка и p as the приор ячейка
param: n, the new следщ ячейка
param: p, the new приор ячейка
***********************************************************************/
Реф установи (V v, Реф p, Реф n)
{
значение = v;
предш = p;
следщ = n;
return this;
}
/**
* Return да if текущ ячейка is the only one on the список
**/
бул синглтон()
{
return следщ is this;
}
проц вяжиСледщ (Реф p)
{
if (p)
{
следщ.предш = p;
p.следщ = следщ;
p.предш = this;
следщ = p;
}
}
/**
* Make a ячейка holding v и link it immediately after текущ ячейка
**/
проц добавьСледщ (V v, Реф delegate() размести)
{
auto p = размести().установи (v, this, следщ);
следщ.предш = p;
следщ = p;
}
/**
* сделай a узел holding v, link it before the текущ ячейка, и return it
**/
Реф добавьПредш (V v, Реф delegate() размести)
{
auto p = предш;
auto c = размести().установи (v, p, this);
p.следщ = c;
предш = c;
return c;
}
/**
* link p before текущ ячейка
**/
проц вяжиПредш (Реф p)
{
if (p)
{
предш.следщ = p;
p.предш = предш;
p.следщ = this;
предш = p;
}
}
/**
* return the число of cells in the список
**/
цел размер()
{
цел c = 0;
auto p = this;
do {
++c;
p = p.следщ;
} while (p !is this);
return c;
}
/**
* return the первый ячейка holding элемент найдено in a circular traversal starting
* at текущ ячейка, or пусто if no such
**/
Реф найди (V элемент)
{
auto p = this;
do {
if (элемент == p.значение)
return p;
p = p.следщ;
} while (p !is this);
return пусто;
}
/**
* return the число of cells holding элемент найдено in a circular
* traversal
**/
цел счёт (V элемент)
{
цел c = 0;
auto p = this;
do {
if (элемент == p.значение)
++c;
p = p.следщ;
} while (p !is this);
return c;
}
/**
* return the н_ый ячейка traversed из_ here. It may wrap around.
**/
Реф н_ый (цел n)
{
auto p = this;
for (цел i = 0; i < n; ++i)
p = p.следщ;
return p;
}
/**
* Unlink the следщ ячейка.
* This имеется no effect on the список if isSingleton()
**/
проц отвяжиСледщ ()
{
auto nn = следщ.следщ;
nn.предш = this;
следщ = nn;
}
/**
* Unlink the previous ячейка.
* This имеется no effect on the список if isSingleton()
**/
проц отвяжиПредш ()
{
auto pp = предш.предш;
pp.следщ = this;
предш = pp;
}
/**
* Unlink сам из_ список it is in.
* Causes it в_ be a синглтон
**/
проц отвяжи ()
{
auto p = предш;
auto n = следщ;
p.следщ = n;
n.предш = p;
предш = this;
следщ = this;
}
/**
* Make a копируй of the список и return new голова.
**/
Реф копируйСписок (Реф delegate() размести)
{
auto hd = this;
auto новый_список = размести().установи (hd.значение, пусто, пусто);
auto текущ = новый_список;
for (auto p = следщ; p !is hd; p = p.следщ)
{
текущ.следщ = размести().установи (p.значение, текущ, пусто);
текущ = текущ.следщ;
}
новый_список.предш = текущ;
текущ.следщ = новый_список;
return новый_список;
}
}
|
D
|
const int SPL_Cost_PalLight = 10;
const int SPL_Cost_LIGHT = 10;
const int SPL_Duration_PalLIGHT = 5;
const int SPL_Duration_LIGHT = 5;
instance Spell_Light(C_Spell_Proto)
{
time_per_mana = 500;
spellType = SPELL_NEUTRAL;
targetCollectAlgo = TARGET_COLLECT_NONE;
targetCollectRange = 0;
targetCollectAzi = 0;
targetCollectElev = 0;
};
instance Spell_PalLight(C_Spell_Proto)
{
time_per_mana = 500;
spellType = SPELL_NEUTRAL;
targetCollectAlgo = TARGET_COLLECT_NONE;
targetCollectRange = 0;
targetCollectAzi = 0;
targetCollectElev = 0;
};
func int Spell_Logic_PalLight(var int manaInvested)
{
if(Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll))
{
return SPL_SENDCAST;
}
else if(self.attribute[ATR_MANA] >= SPL_Cost_PalLight)
{
return SPL_SENDCAST;
}
else
{
return SPL_SENDSTOP;
};
};
func void Spell_Cast_PalLight()
{
if(Npc_GetActiveSpellIsScroll(self))
{
self.attribute[ATR_MANA] -= SPL_Cost_Scroll;
}
else
{
self.attribute[ATR_MANA] -= SPL_Cost_PalLight;
};
self.aivar[AIV_SelectSpell] += 1;
};
func int Spell_Logic_Light(var int manaInvested)
{
if(Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll))
{
return SPL_SENDCAST;
}
else if(self.attribute[ATR_MANA] >= SPL_Cost_LIGHT)
{
return SPL_SENDCAST;
}
else
{
return SPL_SENDSTOP;
};
};
func void Spell_Cast_Light()
{
if(Npc_GetActiveSpellIsScroll(self))
{
self.attribute[ATR_MANA] -= SPL_Cost_Scroll;
}
else
{
self.attribute[ATR_MANA] -= SPL_Cost_LIGHT;
};
self.aivar[AIV_SelectSpell] += 1;
};
|
D
|
/Users/mu/Hello/.build/x86_64-apple-macosx/debug/FluentSQL.build/FluentSQLSchema.swift.o : /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/FluentSQLSchema.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SchemaBuilder+Field.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+SchemaSupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+JoinSupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+QuerySupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+Contains.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/Exports.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/QueryBuilder+GroupBy.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/FluentSQLQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/SQL.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mu/Hello/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/mu/Hello/.build/x86_64-apple-macosx/debug/FluentSQL.build/FluentSQLSchema~partial.swiftmodule : /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/FluentSQLSchema.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SchemaBuilder+Field.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+SchemaSupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+JoinSupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+QuerySupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+Contains.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/Exports.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/QueryBuilder+GroupBy.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/FluentSQLQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/SQL.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mu/Hello/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/mu/Hello/.build/x86_64-apple-macosx/debug/FluentSQL.build/FluentSQLSchema~partial.swiftdoc : /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/FluentSQLSchema.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SchemaBuilder+Field.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+SchemaSupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+JoinSupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+QuerySupporting.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/SQL+Contains.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/Exports.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/QueryBuilder+GroupBy.swift /Users/mu/Hello/.build/checkouts/fluent/Sources/FluentSQL/FluentSQLQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/SQL.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/mu/Hello/.build/x86_64-apple-macosx/debug/Fluent.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mu/Hello/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mu/Hello/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mu/Hello/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
// PERMUTE_ARGS: -di
// REQUIRED_ARGS: -H -Hdtest_results/compilable
// POST_SCRIPT: compilable/extra-files/header-postscript.sh
// REQUIRED_ARGS: -d
module foo.bar;
import core.vararg;
import std.stdio;
pragma(lib, "test");
pragma(msg, "Hello World");
typedef double mydbl = 10;
int main()
in
{
assert(1+(2+3) == -(1 - 2*3));
}
out (result)
{
assert(result == 0);
}
body
{
float f = float.infinity;
int i = cast(int) f;
writeln((i,1),2);
writeln(cast(int)float.max);
assert(i == cast(int)float.max);
assert(i == 0x80000000);
return 0;
}
template Foo(T, int V)
{
int bar(double d, int x)
{
if (d)
{ d++;
}
else
d--;
asm
{ naked ;
mov EAX, 3;
}
for (;;)
{
d = d + 1;
}
for (int i = 0; i < 10; i++)
{
d = i ? d + 1 : 5;
}
char[] s;
foreach (char c; s)
{
d *= 2;
if (d)
break;
else
continue;
}
switch (V)
{
case 1:
case 2: break;
case 3: goto case 1;
case 4: goto default;
default:
d /= 8;
break;
}
enum Label { A, B, C };
void fswitch(Label l)
{
final switch (l)
{
case A: break;
case B: break;
case C: break;
}
}
loop:
while (x)
{
x--;
if (x)
break loop;
else
continue loop;
}
do
{
x++;
} while (x < 10);
try
{
bar(1, 2);
}
catch (Object o)
{
x++;
}
finally
{
x--;
}
Object o;
synchronized (o)
{
x = ~x;
}
synchronized
{
x = x < 3;
}
with (o)
{
toString();
}
}
}
static this()
{
}
static ~this()
{
}
interface iFoo{}
class xFoo: iFoo{}
class Foo3
{
this(int a, ...){}
this(int* a){}
}
alias int myint;
static notquit = 1;
class Test
{
void a() {}
void b() {}
void c() {}
void d() {}
void e() {}
void f() {}
void g() {}
void h() {}
void i() {}
void j() {}
void k() {}
void l() {}
void m() {}
void n() {}
void o() {}
void p() {}
void q() {}
void r() {}
void s() {}
void t() {}
void u() {}
void v() {}
void w() {}
void x() {}
void y() {}
void z() {}
void aa() {}
void bb() {}
void cc() {}
void dd() {}
void ee() {} // Try adding or removing some functions here to see the effect.
template A(T) { }
alias A!(uint) getHUint;
alias A!(int) getHInt;
alias A!(float) getHFloat;
alias A!(ulong) getHUlong;
alias A!(long) getHLong;
alias A!(double) getHDouble;
alias A!(byte) getHByte;
alias A!(ubyte) getHUbyte;
alias A!(short) getHShort;
alias A!(ushort) getHUShort;
alias A!(real) getHReal;
}
template templ( T )
{
void templ( T val )
{
pragma( msg, "Invalid destination type." );
}
}
static char[] charArray = [ '\"', '\'' ];
class Point
{
auto x = 10;
uint y = 20;
}
template Foo2(bool bar)
{
void test()
{
static if(bar)
{
int i;
}
else
{
}
static if(!bar)
{
}
else
{
}
}
}
template Foo4()
{
void bar()
{
}
}
class Baz4
{
mixin Foo4 foo;
alias foo.bar baz;
}
int test(T)(T t)
{
if (auto o = cast(Object)t) return 1;
return 0;
}
enum x6 = 1;
bool foo6(int a, int b, int c, int d)
{
return (a < b) != (c < d);
}
auto foo7(int x)
{
return 5;
}
class D8{}
void func8()
{
scope a= new D8();
}
T func9(T)()
{
T i;
scope(exit) i= 1;
scope(success) i = 2;
scope(failure) i = 3;
return i;
}
template V10(T)
{
void func()
{
for(int i,j=4; i<3;i++)
{
}
}
}
int foo11(int function() fn)
{
return fn();
}
int bar11(T)()
{
return foo11(function int (){ return 0; });
}
struct S6360
{
@property long weeks1() const pure nothrow { return 0; }
@property const pure nothrow long weeks2() { return 0; }
}
struct S12
{
/// postfix storage class and constructor
this(int n) nothrow{}
/// prefix storage class (==StorageClassDeclaration) and constructor
nothrow this(string s){}
}
/// dummy
struct T12
{
/// postfix storage class and template constructor
this()(int args) immutable { }
/// prefix storage class (==StorageClassDeclaration) and template constructor
immutable this(A...)(A args){ }
}
// 6591
import std.stdio : writeln, F = File;
void foo6591()()
{
import std.stdio : writeln, F = File;
}
|
D
|
func void ZS_Sweep_FP()
{
Perception_Set_Normal();
B_ResetAll(self);
AI_SetWalkMode(self,NPC_WALK);
NS_GoToMyWP(self);
if(Npc_HasItems(self,ItMi_Brush) == 0)
{
CreateInvItem(self,ItMi_Brush);
};
self.aivar[AIV_TAPOSITION] = NOTINPOS;
};
func int ZS_Sweep_FP_Loop()
{
if(Npc_IsOnFP(self,"SWEEP"))
{
AI_AlignToFP(self);
if(self.aivar[AIV_TAPOSITION] == NOTINPOS_WALK)
{
self.aivar[AIV_TAPOSITION] = NOTINPOS;
};
}
else if(Wld_IsFPAvailable(self,"SWEEP"))
{
AI_GotoFP(self,"SWEEP");
AI_Standup(self);
AI_AlignToFP(self);
self.aivar[AIV_TAPOSITION] = NOTINPOS_WALK;
}
else
{
AI_AlignToWP(self);
if(self.aivar[AIV_TAPOSITION] == NOTINPOS_WALK)
{
self.aivar[AIV_TAPOSITION] = NOTINPOS;
};
};
if(self.aivar[AIV_TAPOSITION] == NOTINPOS)
{
AI_UseItemToState(self,ItMi_Brush,1);
self.aivar[AIV_TAPOSITION] = ISINPOS;
};
return LOOP_CONTINUE;
};
func void ZS_Sweep_FP_End()
{
AI_UseItemToState(self,ItMi_Brush,-1);
};
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM ROCKTYPE
213.300003 85.5 9.89999962 22.3999996 16 23 -9.60000038 119.400002 7788 5.4000001 10.3000002 extrusives, andesites, dacites
289.600006 75.1999969 1.79999995 73.1999969 11 19 -31.6000004 145.600006 9338 2.5 2.5 sediments, saprolite
294.399994 82.9000015 1.89999998 472.299988 8 23 -33.5999985 150.600006 1154 2.0999999 2.79999995 sediments
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/diag3673.d(9): Error: members expected
---
*/
class A {}
class B(T) if(false) : A if (true) { }
|
D
|
module gbmj.fan;
/// Calculate the point of a list of fans.
auto calculate(Fan[] fans)
{
int point = 8;
foreach (fan; fans)
point += pointOfFan[fan];
version (JMSA)
point = point.min(88);
return point;
}
/// Definition of fans.
enum Fan
{
bigFourWinds,
bigThreeDragons,
allGreen,
nineGates,
fourKongs,
sevenShiftedPairs,
thirteenOrphans,
allTerminals,
littleFourWinds,
littleThreeDragons,
allHonor,
fourConcealedPungs,
pureTerminalChows,
quadrupleChow,
fourPureShiftedPungs,
fourPureShiftedChows,
threeKongs,
allTerminalsAndHonors,
sevenPairs,
greaterHonorsAndKnittedTiles,
allEvenPungs,
fullFlush,
pureTripleChow,
pureShiftedPungs,
upperTiles,
middleTiles,
lowerTiles,
pureStraight,
threeSuitedTerminalChows,
pureShiftedChows,
allFives,
triplePung,
threeConcealedPungs,
lesserHonorsAndKnittedTiles,
knittedStraight,
upperFive,
lowerFive,
bigThreeWinds,
mixedStraight,
reversibleTiles,
mixedTripleChow,
mixedShiftedPungs,
chickenHand,
lastTileDraw,
lastTileClaim,
outWithReplacementTile,
robbingTheKong,
twoConcealedKongs,
allPungs,
halfFlush,
mixedShiftedChows,
allTypes,
meldedHand,
twoDragonsPungs,
outsideHand,
fullyConcealedHand,
twoMeldedKongs,
lastTile,
dragonPung,
prevalentWind,
seatWind,
concealedHand,
allChows,
tileHog,
doublePung,
twoConcealedPungs,
concealedKong,
allSimples,
pureDoubleChow,
mixedDoubleChow,
shortStraight,
twoTerminalChows,
pungOfTerminalsOrHonors,
meldedKong,
oneVoidedSuit,
noHonors,
edgeWait,
closedWait,
singleWaiting,
selfDrawn,
flowerTiles
}
version (PWS) version = DoubleKong456;
version (WMO) version = DoubleKong468;
version (JMSA) version = DoubleKong456;
/// Points of fans.
version (DoubleKong456) enum pointOfFan = ungroup(
88, 7, 64, 6, 48, 2, 32, 3, 24, 9, 16, 6, 12, 5,
8, 9, 6, 7, 4, 4, 2, 10, 1, 13
);
version (DoubleKong468) enum pointOfFan = ungroup(
88, 7, 64, 6, 48, 2, 32, 3, 24, 9, 16, 6, 12, 5,
8, 10, 6, 6, 4, 4, 2, 10, 1, 13
);
static assert (pointOfFan.length == 81);
/* The inverse of std.algorithm.group */
private uint[] ungroup(uint[] args...)
in
{
assert ((args.length & 1) == 0);
}
body
{
import std.range, std.array;
if (args.empty)
return [];
else
return args[0].repeat(args[1]).chain(args[2..$].ungroup).array;
}
|
D
|
module mapCodeGen;
import std.conv : to;
import std.traits : EnumMembers;
struct CodeGenerator
{
ubyte tabSpaceCount;
ushort spaces;
void tab()
{
spaces += tabSpaceCount;
}
void untab()
{
if(spaces == 0) {
throw new Exception("Too many untabs");
}
spaces -= tabSpaceCount;
}
import std.stdio : stdout;
import core.stdc.stdlib;
void writeln() const
{
stdout.writeln();
}
void writeln(string msg) const
{
if(msg.length == 0) {
stdout.writeln();
} else {
auto spacesString = (cast(char*)alloca(spaces))[0..spaces];
spacesString[] = ' ';
stdout.write(spacesString);
stdout.writeln(msg);
}
}
void writefln(A...)(string format, A a) const
{
auto spacesString = (cast(char*)alloca(spaces))[0..spaces];
spacesString[] = ' ';
stdout.write(spacesString);
stdout.writefln(format, a);
}
}
CodeGenerator codegen = CodeGenerator(3, 0);
Surface[] surfaces;
enum SurfaceType {
window, // The surface draws directly to the window
// Currently, their coordinates are based off the top left corner.
//
}
struct Surface
{
SurfaceType type;
//int[string] layerNameToIndexMap; Should be created dynamically
string[] layerNames;
RenderItem[] renderItems;
}
struct AlphaColor
{
uint argb;
@property ubyte alpha() {
return argb >> 24;
}
}
struct Box {
uint x;
uint y;
uint width;
uint height;
}
abstract class RenderItem
{
Box box;
this(Box box) {
this.box = box;
}
abstract void generateDataStructures();
abstract void generateRenderCode();
}
class ColorBox : RenderItem
{
AlphaColor color;
this(AlphaColor color, Box box) {
super(box);
this.color = color;
}
override void generateDataStructures()
{
}
override void generateRenderCode()
{
if(color.alpha != 0xFF) {
throw new Exception("Non alpha not supported");
}
//codegen.writefln("Rectangle(hdc, %s, %s, %s, %s);",
//box.x, box.y, box.x + box.width, box.y + box.height);
codegen.writeln("{");
codegen.tab();
codegen.writefln("RECT rect = {%s,%s,%s,%s};",
box.x, box.y, box.x + box.width, box.y + box.height);
codegen.writeln("FillRect(hdc, &rect, cast(HBRUSH)(COLOR_HIGHLIGHTTEXT));");
codegen.untab();
codegen.writeln("}");
}
}
enum Platform {
windowsGdi,
};
void generateCode(Surface[] surfaces)
{
// Prepare data structures for code generation
//
//
// Get all the colors
//
codegen.writeln("module gameMapExample;");
codegen.writeln();
codegen.writeln("import core.runtime;");
codegen.writeln("import core.sys.windows.windows;");
codegen.writeln();
codegen.writeln("import platform;");
codegen.writeln();
// Generate Data Structures
foreach(surfaceIndex, surface; surfaces) {
generateDataStructures(surface);
}
codegen.writeln("LRESULT Paint(HWND hwnd, WPARAM wParam, LPARAM lParam)");
codegen.writeln("{");
codegen.tab();
codegen.writeln("PAINTSTRUCT paintStruct;");
codegen.writeln("HDC hdc = BeginPaint(hwnd, &paintStruct);");
codegen.writeln("scope(exit)EndPaint(hwnd, &paintStruct);");
foreach(surfaceIndex, surface; surfaces) {
if(surface.type == SurfaceType.window) {
generateCodeWindowSurface(surface);
} else {
throw new Exception("Unknown surface type");
}
}
/*
codegen.writeln("WM_PAINT_Handler!");
PAINTSTRUCT paintStruct;
HDC hdc = BeginPaint(hwnd, &paintStruct);
scope(exit)EndPaint(hwnd, &paintStruct);
char metricString[32];
int y = 10;
foreach(metric; sysMetrics) {
TextOutA(hdc, 10 , y, metric.label.ptr, metric.label.length);
int metricValue = GetSystemMetrics(metric.index);
int metricValueStringLength = sformat(metricString, "%s", metricValue).length;
TextOutA(hdc, 10 + 220, y, metricString.ptr, metricValueStringLength);
TextOutA(hdc, 10 + 300, y, metric.desc.ptr, metric.desc.length);
y += textMetric.tmHeight + 10;
}
return 0;
*/
codegen.writeln("return 0;");
codegen.untab();
codegen.writeln("}");
}
void generateDataStructures(Surface surface)
{
foreach(itemIndex, item; surface.renderItems) {
item.generateDataStructures();
}
}
void generateCodeWindowSurface(Surface surface)
{
codegen.writefln("// Window surface!");
foreach(itemIndex, item; surface.renderItems) {
codegen.writefln("// Item %s", itemIndex);
codegen.writefln("if(%s < windowContentWidth || %s < windowContentHeight) {",
item.box.x, item.box.y);
codegen.tab();
item.generateRenderCode();
codegen.untab();
codegen.writefln("}");
}
}
|
D
|
/* 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.
*/
// Copyright linse 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)}
module flow.common.api.deleg.event.FlowableEventType;
/**
* Enumeration containing all possible types of {@link FlowableEvent}s.
*
* @author Frederik Heremans
*
*/
interface FlowableEventType {
// string name();
int opCmp(FlowableEventType o);
}
|
D
|
int main(){
Print("input your name:");
Print(ReadLine());
}
|
D
|
/Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Intermediates.noindex/Final_Project.build/Debug-iphonesimulator/Final_Project.build/Objects-normal/x86_64/ExercisesRepoCellTableViewCell.o : /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MapVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/WorkoutsVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/AddPostVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/UserModelSQL.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/FeedTable.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/LastUpdateTable.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/LocalFileStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/FirebaseFilesStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/ModelFilesStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/PostModelFireBase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ExerciseModelFirebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/UserModelFirebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Date+firebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Exercise.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/AppDelegate.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ModelSQLite.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ExerciseModelSQLite.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Model.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/AnnotationModel.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MuscleGroupCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/FeedTableViewCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExercisesRepoCellTableViewCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/User+Sql.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/post+sql.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Plan.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Annotation.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/MuscleGroup.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExercisesRepoTableViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/WorkoutsTableViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ProfileViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExerciseViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/LoginViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/RegisterViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/User.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Utilits.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Comment.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Post.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/CreateWorkout.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/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.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/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/Firebase/Core/Sources/Firebase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Final_Project-Bridging-Header.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/Firebase/Core/Sources/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/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/CoreData.framework/Headers/CoreData.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/CoreLocation.framework/Headers/CoreLocation.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/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Intermediates.noindex/Final_Project.build/Debug-iphonesimulator/Final_Project.build/Objects-normal/x86_64/ExercisesRepoCellTableViewCell~partial.swiftmodule : /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MapVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/WorkoutsVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/AddPostVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/UserModelSQL.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/FeedTable.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/LastUpdateTable.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/LocalFileStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/FirebaseFilesStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/ModelFilesStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/PostModelFireBase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ExerciseModelFirebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/UserModelFirebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Date+firebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Exercise.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/AppDelegate.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ModelSQLite.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ExerciseModelSQLite.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Model.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/AnnotationModel.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MuscleGroupCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/FeedTableViewCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExercisesRepoCellTableViewCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/User+Sql.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/post+sql.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Plan.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Annotation.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/MuscleGroup.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExercisesRepoTableViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/WorkoutsTableViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ProfileViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExerciseViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/LoginViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/RegisterViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/User.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Utilits.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Comment.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Post.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/CreateWorkout.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/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.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/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/Firebase/Core/Sources/Firebase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Final_Project-Bridging-Header.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/Firebase/Core/Sources/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/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/CoreData.framework/Headers/CoreData.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/CoreLocation.framework/Headers/CoreLocation.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/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Intermediates.noindex/Final_Project.build/Debug-iphonesimulator/Final_Project.build/Objects-normal/x86_64/ExercisesRepoCellTableViewCell~partial.swiftdoc : /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MapVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/WorkoutsVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/AddPostVC.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/UserModelSQL.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/FeedTable.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/LastUpdateTable.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/LocalFileStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/FirebaseFilesStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/FilesManagment/ModelFilesStore.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/PostModelFireBase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ExerciseModelFirebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/UserModelFirebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Date+firebase.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Exercise.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/AppDelegate.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ModelSQLite.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/ExerciseModelSQLite.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Model.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/AnnotationModel.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MuscleGroupCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/FeedTableViewCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExercisesRepoCellTableViewCell.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/User+Sql.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/post+sql.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Plan.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Annotation.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/MuscleGroup.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExercisesRepoTableViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/WorkoutsTableViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ProfileViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/ExerciseViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/LoginViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/RegisterViewController.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/User.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Utilits.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Comment.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Post.swift /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/CreateWorkout.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/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.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/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressHUD-umbrella.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/Firebase/Core/Sources/Firebase.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Model/Final_Project-Bridging-Header.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVRadialGradientLayer.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVIndefiniteAnimatedView.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Headers/SVProgressAnimatedView.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/Firebase/Core/Sources/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Products/Debug-iphonesimulator/SVProgressHUD/SVProgressHUD.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/ofirkariv/Desktop/School/160418/Final_Project/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/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/CoreData.framework/Headers/CoreData.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/CoreLocation.framework/Headers/CoreLocation.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/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Provider/Config+Provider.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.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/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /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/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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Config+Provider~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.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/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /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/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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Config+Provider~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.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/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.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 /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.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/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /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/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
|
/*******************************************************************************
@file FlushWriter.d
Copyright (c) 2004 Kris Bell
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for damages
of any kind arising from the use of this software.
Permission is hereby granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and/or
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 within documentation of
said product 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 distribution
of the source.
4. Derivative works are permitted, but they must carry this notice
in full and credit the original source.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@version Initial version; March 2004
@author Kris
*******************************************************************************/
module mango.io.FlushWriter;
public import mango.io.DisplayWriter;
/*******************************************************************************
Subclass to support automatic flushing. This can be used for
Stdout, Stderr, and other related conduits.
*******************************************************************************/
class FlushWriter : DisplayWriter
{
alias DisplayWriter.put put;
/***********************************************************************
Construct a FlushWriter upon the specified IBuffer
***********************************************************************/
this (IBuffer buffer)
{
super (buffer);
}
/***********************************************************************
Construct a FlushWriter upon the specified IConduit
***********************************************************************/
this (IConduit conduit)
{
this (new Buffer(conduit));
}
/**********************************************************************
Intercept the IWritable method to catch newlines, and
flush the buffer whenever one is emitted
***********************************************************************/
override IWriter put (IWritable x)
{
// have superclass handle the IWritable
super.put (x);
// flush output when we see a newline
if (cast(INewlineWriter) x)
flush ();
return this;
}
}
|
D
|
/**
* Break down a D type into basic (register) types for the x86_64 System V ABI.
*
* Copyright: Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
* Authors: Martin Kinkelin
* 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/argtypes_sysv_x64.d, _argtypes_sysv_x64.d)
* Documentation: https://dlang.org/phobos/dmd_argtypes_sysv_x64.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/argtypes_sysv_x64.d
*/
module dmd.argtypes_sysv_x64;
import dmd.declaration;
import dmd.globals;
import dmd.mtype;
import dmd.visitor;
/****************************************************
* This breaks a type down into 'simpler' types that can be passed to a function
* in registers, and returned in registers.
* This is the implementation for the x86_64 System V ABI (not used for Win64),
* based on https://www.uclibc.org/docs/psABI-x86_64.pdf.
* Params:
* t = type to break down
* Returns:
* tuple of types, each element can be passed in a register.
* A tuple of zero length means the type cannot be passed/returned in registers.
* null indicates a `void`.
*/
extern (C++) TypeTuple toArgTypes_sysv_x64(Type t)
{
if (t == Type.terror)
return new TypeTuple(t);
const size = cast(size_t) t.size();
if (size == 0)
return null;
if (size > 32)
return TypeTuple.empty;
const classification = classify(t, size);
const classes = classification.slice();
const N = classes.length;
const c0 = classes[0];
switch (c0)
{
case Class.memory:
return TypeTuple.empty;
case Class.x87:
return new TypeTuple(Type.tfloat80);
case Class.complexX87:
return new TypeTuple(Type.tfloat80, Type.tfloat80);
default:
break;
}
if (N > 2 || (N == 2 && classes[1] == Class.sseUp))
{
assert(c0 == Class.sse);
foreach (c; classes[1 .. $])
assert(c == Class.sseUp);
assert(size % 8 == 0);
return new TypeTuple(new TypeVector(Type.tfloat64.sarrayOf(N)));
}
assert(N >= 1 && N <= 2);
Type[2] argtypes;
foreach (i, c; classes)
{
// the last eightbyte may be filled partially only
auto sizeInEightbyte = (i < N - 1) ? 8 : size % 8;
if (sizeInEightbyte == 0)
sizeInEightbyte = 8;
if (c == Class.integer)
{
argtypes[i] =
sizeInEightbyte > 4 ? Type.tint64 :
sizeInEightbyte > 2 ? Type.tint32 :
sizeInEightbyte > 1 ? Type.tint16 :
Type.tint8;
}
else if (c == Class.sse)
{
argtypes[i] =
sizeInEightbyte > 4 ? Type.tfloat64 :
Type.tfloat32;
}
else
assert(0, "Unexpected class");
}
return N == 1
? new TypeTuple(argtypes[0])
: new TypeTuple(argtypes[0], argtypes[1]);
}
private:
// classification per eightbyte (64-bit chunk)
enum Class : ubyte
{
integer,
sse,
sseUp,
x87,
x87Up,
complexX87,
noClass,
memory
}
Class merge(Class a, Class b)
{
bool any(Class value) { return a == value || b == value; }
if (a == b)
return a;
if (a == Class.noClass)
return b;
if (b == Class.noClass)
return a;
if (any(Class.memory))
return Class.memory;
if (any(Class.integer))
return Class.integer;
if (any(Class.x87) || any(Class.x87Up) || any(Class.complexX87))
return Class.memory;
return Class.sse;
}
struct Classification
{
Class[4] classes;
int numEightbytes;
const(Class[]) slice() const return { return classes[0 .. numEightbytes]; }
}
Classification classify(Type t, size_t size)
{
scope v = new ToClassesVisitor(size);
t.accept(v);
return Classification(v.result, v.numEightbytes);
}
extern (C++) final class ToClassesVisitor : Visitor
{
const size_t size;
int numEightbytes;
Class[4] result = Class.noClass;
this(size_t size)
{
assert(size > 0);
this.size = size;
this.numEightbytes = cast(int) ((size + 7) / 8);
}
void memory()
{
result[0 .. numEightbytes] = Class.memory;
}
void one(Class a)
{
result[0] = a;
}
void two(Class a, Class b)
{
result[0] = a;
result[1] = b;
}
alias visit = Visitor.visit;
override void visit(Type)
{
assert(0, "Unexpected type");
}
override void visit(TypeEnum t)
{
t.toBasetype().accept(this);
}
override void visit(TypeBasic t)
{
switch (t.ty)
{
case Tvoid:
case Tbool:
case Tint8:
case Tuns8:
case Tint16:
case Tuns16:
case Tint32:
case Tuns32:
case Tint64:
case Tuns64:
case Tchar:
case Twchar:
case Tdchar:
return one(Class.integer);
case Tint128:
case Tuns128:
return two(Class.integer, Class.integer);
case Tfloat80:
case Timaginary80:
return two(Class.x87, Class.x87Up);
case Tfloat32:
case Tfloat64:
case Timaginary32:
case Timaginary64:
case Tcomplex32: // struct { float a, b; }
return one(Class.sse);
case Tcomplex64: // struct { double a, b; }
return two(Class.sse, Class.sse);
case Tcomplex80: // struct { real a, b; }
result[0 .. 4] = Class.complexX87;
return;
default:
assert(0, "Unexpected basic type");
}
}
override void visit(TypeVector t)
{
result[0] = Class.sse;
result[1 .. numEightbytes] = Class.sseUp;
}
override void visit(TypeAArray)
{
return one(Class.integer);
}
override void visit(TypePointer)
{
return one(Class.integer);
}
override void visit(TypeNull)
{
return one(Class.integer);
}
override void visit(TypeClass)
{
return one(Class.integer);
}
override void visit(TypeDArray)
{
if (!global.params.isLP64)
return one(Class.integer);
return two(Class.integer, Class.integer);
}
override void visit(TypeDelegate)
{
if (!global.params.isLP64)
return one(Class.integer);
return two(Class.integer, Class.integer);
}
override void visit(TypeSArray t)
{
// treat as struct with N fields
Type baseElemType = t.next.toBasetype();
if (baseElemType.ty == Tstruct && !(cast(TypeStruct) baseElemType).sym.isPOD())
return memory();
classifyStaticArrayElements(0, t);
finalizeAggregate();
}
override void visit(TypeStruct t)
{
if (!t.sym.isPOD())
return memory();
classifyStructFields(0, t);
finalizeAggregate();
}
void classifyStructFields(uint baseOffset, TypeStruct t)
{
extern(D) Type getNthField(size_t n, out uint offset, out uint typeAlignment)
{
auto field = t.sym.fields[n];
offset = field.offset;
typeAlignment = field.type.alignsize();
return field.type;
}
classifyFields(baseOffset, t.sym.fields.dim, &getNthField);
}
void classifyStaticArrayElements(uint baseOffset, TypeSArray t)
{
Type elemType = t.next;
const elemSize = elemType.size();
const elemTypeAlignment = elemType.alignsize();
extern(D) Type getNthElement(size_t n, out uint offset, out uint typeAlignment)
{
offset = cast(uint)(n * elemSize);
typeAlignment = elemTypeAlignment;
return elemType;
}
classifyFields(baseOffset, cast(size_t) t.dim.toInteger(), &getNthElement);
}
extern(D) void classifyFields(uint baseOffset, size_t nfields, Type delegate(size_t, out uint, out uint) getFieldInfo)
{
if (nfields == 0)
return memory();
// classify each field (recursively for aggregates) and merge all classes per eightbyte
foreach (n; 0 .. nfields)
{
uint foffset_relative;
uint ftypeAlignment;
Type ftype = getFieldInfo(n, foffset_relative, ftypeAlignment);
const fsize = cast(size_t) ftype.size();
const foffset = baseOffset + foffset_relative;
if (foffset & (ftypeAlignment - 1)) // not aligned
return memory();
if (ftype.ty == Tstruct)
classifyStructFields(foffset, cast(TypeStruct) ftype);
else if (ftype.ty == Tsarray)
classifyStaticArrayElements(foffset, cast(TypeSArray) ftype);
else
{
const fEightbyteStart = foffset / 8;
const fEightbyteEnd = (foffset + fsize + 7) / 8;
if (ftype.ty == Tcomplex32) // may lie in 2 eightbytes
{
assert(foffset % 4 == 0);
foreach (ref existingClass; result[fEightbyteStart .. fEightbyteEnd])
existingClass = merge(existingClass, Class.sse);
}
else
{
assert(foffset % 8 == 0 ||
fEightbyteEnd - fEightbyteStart <= 1 ||
!global.params.isLP64,
"Field not aligned at eightbyte boundary but contributing to multiple eightbytes?"
);
foreach (i, fclass; classify(ftype, fsize).slice())
{
Class* existingClass = &result[fEightbyteStart + i];
*existingClass = merge(*existingClass, fclass);
}
}
}
}
}
void finalizeAggregate()
{
foreach (i, ref c; result)
{
if (c == Class.memory ||
(c == Class.x87Up && !(i > 0 && result[i - 1] == Class.x87)))
return memory();
if (c == Class.sseUp && !(i > 0 &&
(result[i - 1] == Class.sse || result[i - 1] == Class.sseUp)))
c = Class.sse;
}
if (numEightbytes > 2)
{
if (result[0] != Class.sse)
return memory();
foreach (c; result[1 .. numEightbytes])
if (c != Class.sseUp)
return memory();
}
// Undocumented special case for aggregates with the 2nd eightbyte
// consisting of padding only (`struct S { align(16) int a; }`).
// clang only passes the first eightbyte in that case, so let's do the
// same.
if (numEightbytes == 2 && result[1] == Class.noClass)
numEightbytes = 1;
}
}
|
D
|
/** \file Semaphore.d
* \brief Counting semaphore
*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/licenses/publicdomain
* Ported to D by Ben Hinkle.
* Email comments and bug reports to ben.hinkle@gmail.com
*
* revision 2.0
*/
module mango.locks.Semaphore;
private {
import std.thread;
import mango.sys.Atomic;
import mango.locks.Utils;
import mango.locks.LockImpl;
import mango.locks.TimeUnit;
import mango.locks.Exceptions;
}
/** \class Semaphore
* \brief A counting semaphore.
*
* Conceptually, a semaphore maintains a set of permits. Each acquire
* blocks if necessary until a permit is available, and then takes it.
* Each release adds a permit, potentially releasing a blocking
* acquirer. However, no actual permit objects are used; the
* <tt>Semaphore</tt> just keeps a count of the number available and
* acts accordingly.
*
* <p>Semaphores are often used to restrict the number of threads than
* can access some (physical or logical) resource. For example, here
* is a class that uses a semaphore to control access to a pool of
* items:
* \code
* class Pool {
* private const MAX_AVAILABLE = 100;
* private Semaphore available;
*
* this() {
* available = new Semaphore(MAX_AVAILABLE, true);
* used = new bool[MAX_AVAILABLE];
* }
*
* Object getItem() {
* available.acquire();
* return getNextAvailableItem();
* }
*
* void putItem(Object x) {
* if (markAsUnused(x))
* available.release();
* }
*
* // Not a particularly efficient data structure; just for demo
*
* protected Object[] items; // whatever kinds of items being managed
* protected bool[] used;
*
* protected synchronized Object getNextAvailableItem() {
* for (int i = 0; i < MAX_AVAILABLE; ++i) {
* if (!used[i]) {
* used[i] = true;
* return items[i];
* }
* }
* return null; // not reached
* }
*
* protected synchronized bool markAsUnused(Object item) {
* for (int i = 0; i < MAX_AVAILABLE; ++i) {
* if (item == items[i]) {
* if (used[i]) {
* used[i] = false;
* return true;
* } else
* return false;
* }
* }
* return false;
* }
* }
* \endcode
*
* <p>Before obtaining an item each thread must acquire a permit from
* the semaphore, guaranteeing that an item is available for use. When
* the thread has finished with the item it is returned back to the
* pool and a permit is returned to the semaphore, allowing another
* thread to acquire that item. Note that no synchronization lock is
* held when acquire is called as that would prevent an item from
* being returned to the pool. The semaphore encapsulates the
* synchronization needed to restrict access to the pool, separately
* from any synchronization needed to maintain the consistency of the
* pool itself.
*
* <p>A semaphore initialized to one, and which is used such that it
* only has at most one permit available, can serve as a mutual
* exclusion lock. This is more commonly known as a <em>binary
* semaphore</em>, because it only has two states: one permit
* available, or zero permits available. When used in this way, the
* binary semaphore has the property (unlike many Lock
* implementations), that the "lock" can be released by a
* thread other than the owner (as semaphores have no notion of
* ownership). This can be useful in some specialized contexts, such
* as deadlock recovery.
*
* <p> The constructor for this class optionally accepts a
* <em>fairness</em> parameter. When set false, this class makes no
* guarantees about the order in which threads acquire permits. In
* particular, <em>barging</em> is permitted, that is, a thread
* invoking acquire can be allocated a permit ahead of a thread that
* has been waiting. When fairness is set true, the semaphore
* guarantees that threads invoking any of the acquire() methods are
* allocated permits in the order in which their invocation of those
* methods was processed (first-in-first-out; FIFO). Note that FIFO
* ordering necessarily applies to specific internal points of
* execution within these methods. So, it is possible for one thread
* to invoke <tt>acquire</tt> before another, but reach the ordering
* point after the other, and similarly upon return from the method.
*
* <p>Generally, semaphores used to control resource access should be
* initialized as fair, to ensure that no thread is starved out from
* accessing a resource. When using semaphores for other kinds of
* synchronization control, the throughput advantages of non-fair
* ordering often outweigh fairness considerations.
*
* <p>This class also provides convenience methods to acquire and
* release multiple permits at a time. Beware of the increased risk
* of indefinite postponement when these methods are used without
* fairness set true.
*/
class Semaphore {
/** All mechanics via AbstractLock subclass */
private Sync sync;
/**
* Synchronization implementation for semaphore. Uses AL state
* to represent permits. Subclassed into fair and nonfair
* versions.
*/
abstract class Sync : AbstractLock {
this(int permits) {
state = permits;
}
final int getPermits() {
return state;
}
final int nonfairTryAcquireShared(int acquires) {
for (;;) {
int available = state;
int remaining = available - acquires;
if (remaining < 0 ||
Atomic.compareAndSet32(&state_, available, remaining))
return remaining;
}
}
protected final bool tryReleaseShared(int releases) {
for (;;) {
int p = state;
if (Atomic.compareAndSet32(&state_, p, p + releases))
return true;
}
}
final void reducePermits(int reductions) {
for (;;) {
int current = state;
if (Atomic.compareAndSet32(&state_, current, current - reductions))
return;
}
}
final int drainPermits() {
for (;;) {
int current = state;
if (current == 0 || Atomic.compareAndSet32(&state_, current, 0))
return current;
}
}
}
/**
* NonFair version
*/
final class NonfairSync : Sync {
this(int permits) {
super(permits);
}
protected int tryAcquireShared(int acquires) {
return nonfairTryAcquireShared(acquires);
}
}
/**
* Fair version
*/
final class FairSync : Sync {
this(int permits) {
super(permits);
}
protected int tryAcquireShared(int acquires) {
Thread current = Thread.getThis();
for (;;) {
Thread first = getFirstQueuedThread();
if (first !is null && first !is current)
return -1;
int available = state;
int remaining = available - acquires;
if (remaining < 0 ||
Atomic.compareAndSet32(&state_, available, remaining))
return remaining;
}
}
}
/**
* Creates a <tt>Semaphore</tt> with the given number of permits and
* the given fairness setting.
*
* \param permits the initial number of permits available. This
* value may be negative, in which case releases must occur before
* any acquires will be granted.
*
* \param fair true if this semaphore will guarantee first-in
* first-out granting of permits under contention, else false.
*/
this(int permits, bool fair = false) {
if (fair)
sync = new FairSync(permits);
else
sync = new NonfairSync(permits);
}
/**
* Acquires the given number of permits from this semaphore,
* blocking until all are available.
*
* <p>Acquires the given number of permits, if they are available,
* and returns immediately, reducing the number of available permits
* by the given amount.
*
* <p>If insufficient permits are available then the current thread
* becomes disabled for thread scheduling purposes and lies dormant
* until some other thread invokes one of the release methods for
* this semaphore, the current thread is next to be assigned permits
* and the number of available permits satisfies this request.
*
* \param permits the number of permits to acquire (default 1)
*/
void acquire(int permits = 1) {
if (permits < 0)
throw new IllegalArgumentException();
sync.acquireShared(permits);
}
/**
* Acquires the given number of permits from this semaphore, only if
* all are available at the time of invocation.
*
* <p>Acquires the given number of permits, if they are available,
* and returns immediately, with the value <tt>true</tt>, reducing
* the number of available permits by the given amount.
*
* <p>If insufficient permits are available then this method will
* return immediately with the value <tt>false</tt> and the number
* of available permits is unchanged.
*
* <p>Even when this semaphore has been set to use a fair ordering
* policy, a call to <tt>tryAcquire</tt> <em>will</em> immediately
* acquire a permit if one is available, whether or not other
* threads are currently waiting. This "barging" behavior
* can be useful in certain circumstances, even though it breaks
* fairness. If you want to honor the fairness setting, then use
* tryAcquire(int, long, TimeUnit) which is almost equivalent.
*
* \param permits the number of permits to acquire
*
* \return <tt>true</tt> if the permits were acquired and <tt>false</tt>
* otherwise.
*/
bool tryAcquire(int permits = 1) {
if (permits < 0)
throw new IllegalArgumentException();
return sync.nonfairTryAcquireShared(permits) >= 0;
}
/**
* Acquires the given number of permits from this semaphore, if all
* become available within the given waiting time.
*
* <p>Acquires the given number of permits, if they are available
* and returns immediately, with the value <tt>true</tt>, reducing
* the number of available permits by the given amount.
*
* <p>If insufficient permits are available then
* the current thread becomes disabled for thread scheduling
* purposes and lies dormant until one of three things happens:
* - Some other thread invokes one of the release
* methods for this semaphore, the current thread is next to be assigned
* permits and the number of available permits satisfies this request; or
* <li>The specified waiting time elapses.
* </ul>
* <p>If the permits are acquired then the value <tt>true</tt> is returned.
*
* <p>If the specified waiting time elapses then the value <tt>false</tt>
* is returned.
* If the time is
* less than or equal to zero, the method will not wait at all.
* Any permits that were to be assigned to this thread, are instead
* assigned to the next waiting thread(s), as if
* they had been made available by a call to release.
*
* \param permits the number of permits to acquire
* \param timeout the maximum time to wait for the permits
* \param unit the time unit of the <tt>timeout</tt> argument.
* \return <tt>true</tt> if all permits were acquired and <tt>false</tt>
* if the waiting time elapsed before all permits were acquired.
*/
bool tryAcquire(long timeout, TimeUnit unit, int permits = 1) {
if (permits < 0)
throw new IllegalArgumentException();
return sync.tryAcquireSharedNanos(permits, toNanos(timeout,unit));
}
/**
* Releases the given number of permits, returning them to the semaphore.
*
* <p>Releases the given number of permits, increasing the number of
* available permits by that amount. If any threads are blocking
* trying to acquire permits, then the one that has been waiting the
* longest is selected and given the permits that were just
* released. If the number of available permits satisfies that
* thread's request then that thread is re-enabled for thread
* scheduling purposes; otherwise the thread continues to wait. If
* there are still permits available after the first thread's
* request has been satisfied, then those permits are assigned to
* the next waiting thread. If it is satisfied then it is re-enabled
* for thread scheduling purposes. This continues until there are
* insufficient permits to satisfy the next waiting thread, or there
* are no more waiting threads.
*
* <p>There is no requirement that a thread that releases a permit
* must have acquired that permit by calling acquire. Correct usage
* of a semaphore is established by programming convention in the
* application.
*
* \param permits the number of permits to release
*/
void release(int permits = 1) {
if (permits < 0)
throw new IllegalArgumentException();
sync.releaseShared(permits);
}
/**
* Returns the current number of permits available in this semaphore.
* <p>This method is typically used for debugging and testing purposes.
* \return the number of permits available in this semaphore.
*/
int availablePermits() {
return sync.getPermits();
}
/**
* Acquire and return all permits that are immediately available.
* \return the number of permits
*/
int drainPermits() {
return sync.drainPermits();
}
/**
* Shrinks the number of available permits by the indicated
* reduction. This method can be useful in subclasses that use
* semaphores to track resources that become unavailable. This
* method differs from <tt>acquire</tt> in that it does not block
* waiting for permits to become available.
* \param reduction the number of permits to remove
*/
protected void reducePermits(int reduction) {
if (reduction < 0)
throw new IllegalArgumentException();
sync.reducePermits(reduction);
}
/**
* Returns true if this semaphore has fairness set true.
* \return true if this semaphore has fairness set true.
*/
bool isFair() {
return (cast(FairSync)sync) !is null;
}
/**
* Queries whether any threads are waiting to acquire. Note that
* because cancellations may occur at any time, a <tt>true</tt>
* return does not guarantee that any other thread will ever
* acquire. This method is designed primarily for use in monitoring
* of the system state.
*
* \return true if there may be other threads waiting to acquire
* the lock.
*/
final bool hasQueuedThreads() {
return sync.hasQueuedThreads();
}
/**
* Returns an estimate of the number of threads waiting to
* acquire. The value is only an estimate because the number of
* threads may change dynamically while this method traverses
* internal data structures. This method is designed for use in
* monitoring of the system state, not for synchronization
* control.
* \return the estimated number of threads waiting for this lock
*/
final int getQueueLength() {
return sync.getQueueLength();
}
/**
* Returns a collection containing threads that may be waiting to
* acquire. Because the actual set of threads may change
* dynamically while constructing this result, the returned
* collection is only a best-effort estimate. The elements of the
* returned collection are in no particular order. This method is
* designed to facilitate construction of subclasses that provide
* more extensive monitoring facilities.
* \return the collection of threads
*/
protected Thread[] getQueuedThreads() {
return sync.getQueuedThreads();
}
/**
* Returns a string identifying this semaphore, as well as its state.
* The state, in brackets, includes the String
* "Permits =" followed by the number of permits.
* \return a string identifying this semaphore, as well as its
* state
*/
char[] toString() {
char[16] buf;
return super.toString() ~ "[Permits = " ~
itoa(buf, sync.getPermits()) ~ "]";
}
unittest {
Semaphore sem = new Semaphore(2);
int done = 0;
Thread[] t = new Thread[6];
ThreadReturn f() {
int n;
Thread tt = Thread.getThis();
for (n=0; n < t.length; n++) {
if (tt is t[n])
break;
}
sleepNanos(toNanos(10,TimeUnit.MilliSeconds));
version (LocksVerboseUnittest)
printf(" thread %d started\n",n);
sem.acquire();
sleepNanos(toNanos(10,TimeUnit.MilliSeconds));
version (LocksVerboseUnittest) {
printf(" thread %d aquired\n",n);
printf(" thread %d terminating\n",n);
}
return 0;
}
ThreadReturn f2() {
int n;
Thread tt = Thread.getThis();
for (n=0; n < t.length; n++) {
if (tt is t[n])
break;
}
version (LocksVerboseUnittest)
printf(" thread %d releasing\n",n);
sleepNanos(toNanos(10,TimeUnit.MilliSeconds));
sem.release();
version (LocksVerboseUnittest)
printf(" thread %d terminating\n",n);
sleepNanos(toNanos(10,TimeUnit.MilliSeconds));
return 0;
}
int n;
for (n=0; n<t.length/2; n++) {
t[n] = new Thread(&f);
}
for (; n<t.length; n++) {
t[n] = new Thread(&f2);
}
version (LocksVerboseUnittest)
printf("starting locks.semaphore unittest\n");
for (n=0; n<t.length/2; n++) {
t[n].start();
}
Thread.yield();
for (; n<t.length; n++) {
t[n].start();
Thread.yield();
}
foreach(int n, Thread thread; t)
{
version (LocksVerboseUnittest)
printf(" waiting on %d\n", n);
version (Ares)
thread.join();
else
thread.wait();
}
version (LocksVerboseUnittest)
printf("finished locks.semaphore unittest\n");
delete sem;
t[] = null;
}
}
|
D
|
FUNC VOID B_GiveTradeInv_Waffenmeister (var C_NPC slf)
{
CreateInvItems (slf, ItMi_Gold, 1000);
CreateInvItems (slf, ItMw_Drachenschneide, 1);
CreateInvItems (slf, ItMw_Barbarenstreitaxt, 1);
CreateInvItems (slf, ItMw_Krummschwert, 1);
CreateInvItems (slf, ItMw_Orkschlaechter, 1);
CreateInvItems (slf, ItMw_Kriegshammer2, 1);
CreateInvItems (slf, ItMW_Addon_Hacker_2h_01, 1);
CreateInvItems (slf, ItRw_Crossbow_H_02, 1);
CreateInvItems (slf, ItPo_Mana_01, 10);
CreateInvItems (slf, ItPo_Mana_02, 5);
CreateInvItems (slf, ItPo_Mana_03, 3);
CreateInvItems (slf, ItPo_Mana_Addon_04, 2);
CreateInvItems (slf, ItPo_Perm_Mana, 1);
CreateInvItems (slf, ItPo_Health_01, 10);
CreateInvItems (slf, ItPo_Health_02, 5);
CreateInvItems (slf, ItPo_Health_03, 3);
CreateInvItems (slf, ItPo_Health_Addon_04, 2);
CreateInvItems (slf, ItPo_Perm_Health, 1);
CreateInvItems (slf,ItAt_DemonHeart, 1);
};
|
D
|
// D import file generated from 'EdrLib.d'
module EdrLib;
pragma (lib, "gdi32.lib");
pragma (lib, "comdlg32.lib");
import core.sys.windows.windef;
import core.sys.windows.wingdi;
import std.utf : count, toUTFz;
auto toUTF16z(S)(S s)
{
return toUTFz!(const(wchar)*)(s);
}
export extern (Windows) BOOL EdrCenterText(HDC hdc, PRECT prc, string pString);
|
D
|
/Users/lzw/学习/Study_Code/Rust_Study/结构体/target/debug/build/ref-cast-492c54b381d28fcb/build_script_build-492c54b381d28fcb: /Users/lzw/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/build.rs
/Users/lzw/学习/Study_Code/Rust_Study/结构体/target/debug/build/ref-cast-492c54b381d28fcb/build_script_build-492c54b381d28fcb.d: /Users/lzw/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/build.rs
/Users/lzw/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/build.rs:
|
D
|
module hunt.framework.routing.RouteConfigManager;
import hunt.framework.routing.ActionRouteItem;
import hunt.framework.routing.RouteItem;
import hunt.framework.routing.ResourceRouteItem;
import hunt.framework.routing.RouteGroup;
import hunt.framework.config.ApplicationConfig;
import hunt.framework.Init;
import hunt.logging.ConsoleLogger;
import hunt.http.routing.RouterManager;
import std.algorithm;
import std.array;
import std.conv;
import std.file;
import std.path;
import std.range;
import std.regex;
import std.string;
/**
*
*/
class RouteConfigManager {
private ApplicationConfig _appConfig;
private RouteItem[][string] _allRouteItems;
private RouteGroup[] _allRouteGroups;
private string _basePath;
this(ApplicationConfig appConfig) {
_appConfig = appConfig;
_basePath = DEFAULT_CONFIG_PATH;
loadGroupRoutes();
loadDefaultRoutes();
}
string basePath() {
return _basePath;
}
RouteConfigManager basePath(string value) {
_basePath = value;
return this;
}
private void addGroupRoute(RouteGroup group, RouteItem[] routes) {
_allRouteItems[group.name] = routes;
_allRouteGroups ~= group;
RouteGroupType groupType = RouteGroupType.Host;
if (group.type == "path") {
groupType = RouteGroupType.Path;
}
}
RouteItem[][RouteGroup] allRoutes() {
RouteItem[][RouteGroup] r;
foreach (string key, RouteItem[] value; _allRouteItems) {
foreach (RouteGroup g; _allRouteGroups) {
if (g.name == key) {
r[g] ~= value;
break;
}
}
}
return r;
}
ActionRouteItem getRoute(string group, string mca) {
auto itemPtr = group in _allRouteItems;
if (itemPtr is null)
return null;
foreach (RouteItem item; *itemPtr) {
ActionRouteItem actionItem = cast(ActionRouteItem) item;
if (actionItem is null)
continue;
if (actionItem.mca == mca)
return actionItem;
}
return null;
}
ActionRouteItem getRoute(string groupName, string method, string path) {
version(HUNT_FM_DEBUG) tracef("matching: groupName=%s, method=%s, path=%s", groupName, method, path);
if(path.empty) {
warning("path is empty");
return null;
}
path = path.stripRight("/");
//
// auto itemPtr = group.name in _allRouteItems;
auto itemPtr = groupName in _allRouteItems;
if (itemPtr is null)
return null;
foreach (RouteItem item; *itemPtr) {
ActionRouteItem actionItem = cast(ActionRouteItem) item;
if (actionItem is null)
continue;
// TODO: Tasks pending completion -@zhangxueping at 2020-03-13T16:23:18+08:00
// handle /user/{id<[0-9]+>}
if(actionItem.path != path) continue;
// tracef("actionItem: %s", actionItem);
string[] methods = actionItem.methods;
if (!methods.empty && !methods.canFind(method))
continue;
return actionItem;
}
return null;
}
RouteGroup getRouteGroupe(string name) {
// warning(_allRouteGroups);
auto item = _allRouteGroups.find!(g => g.name == name).takeOne;
if (item.empty)
return null;
return item.front;
}
private void loadGroupRoutes() {
if (_appConfig.route.groups.empty)
return;
version (HUNT_DEBUG)
info(_appConfig.route.groups);
string[] groupConfig;
foreach (v; split(_appConfig.route.groups, ',')) {
groupConfig = split(v, ":");
if (groupConfig.length != 3 && groupConfig.length != 4) {
logWarningf("Group config format error ( %s ).", v);
} else {
string value = groupConfig[2];
if (groupConfig.length == 4) {
if (std.conv.to!int(groupConfig[3]) > 0) {
value ~= ":" ~ groupConfig[3];
}
}
RouteGroup groupInfo = new RouteGroup();
groupInfo.name = strip(groupConfig[0]);
groupInfo.type = strip(groupConfig[1]);
groupInfo.value = strip(value);
version (HUNT_FM_DEBUG)
infof("route group: %s", groupInfo);
string routeConfigFile = groupInfo.name ~ DEFAULT_ROUTE_CONFIG_EXT;
routeConfigFile = buildPath(_basePath, routeConfigFile);
if (!exists(routeConfigFile)) {
warningf("Config file does not exist: %s", routeConfigFile);
} else {
RouteItem[] routes = load(routeConfigFile);
if (routes.length > 0) {
addGroupRoute(groupInfo, routes);
} else {
version (HUNT_DEBUG)
warningf("No routes defined for group %s", groupInfo.name);
}
}
}
}
}
private void loadDefaultRoutes() {
// load default routes
string routeConfigFile = buildPath(_basePath, DEFAULT_ROUTE_CONFIG);
if (!exists(routeConfigFile)) {
warningf("The config file for route does not exist: %s", routeConfigFile);
} else {
RouteItem[] routes = load(routeConfigFile);
_allRouteItems[DEFAULT_ROUTE_GROUP] = routes;
RouteGroup defaultGroup = new RouteGroup();
defaultGroup.name = DEFAULT_ROUTE_GROUP;
defaultGroup.type = RouteGroup.DEFAULT;
_allRouteGroups ~= defaultGroup;
}
}
string createUrl(string mca, string[string] params = null, string group = null) {
if (group.empty)
group = DEFAULT_ROUTE_GROUP;
// find Route
// RouteConfigManager routeConfig = serviceContainer().resolve!(RouteConfigManager);
RouteGroup routeGroup = getRouteGroupe(group);
if (routeGroup is null)
return null;
RouteItem route = getRoute(group, mca);
if (route is null) {
return null;
}
string url;
if (route.isRegex) {
if (params is null) {
warningf("Need route params for (%s).", mca);
return null;
}
if (!route.paramKeys.empty) {
url = route.urlTemplate;
foreach (i, key; route.paramKeys) {
string value = params.get(key, null);
if (value is null) {
logWarningf("this route template need param (%s).", key);
return null;
}
params.remove(key);
url = url.replaceFirst("{" ~ key ~ "}", value);
}
}
} else {
url = route.pattern;
}
string groupValue = routeGroup.value;
if (routeGroup.type == RouteGroup.HOST) {
url = (_appConfig.https.enabled ? "https://" : "http://") ~ groupValue ~ url;
} else {
url = (!groupValue.empty
? (_appConfig.application.baseUrl ~ groupValue) : strip(
_appConfig.application.baseUrl, "", "/")) ~ url;
}
return url ~ (params.length > 0 ? ("?" ~ buildUriQueryString(params)) : "");
}
static string buildUriQueryString(string[string] params) {
if (params.length == 0) {
return "";
}
string r;
foreach (k, v; params) {
r ~= (r ? "&" : "") ~ k ~ "=" ~ v;
}
return r;
}
static RouteItem[] load(string filename) {
import std.stdio;
RouteItem[] items;
auto f = File(filename);
scope (exit) {
f.close();
}
foreach (line; f.byLineCopy) {
RouteItem item = parseOne(cast(string) line);
if (item is null)
continue;
if (item.path.length > 0) {
items ~= item;
}
}
return items;
}
static RouteItem parseOne(string line) {
line = strip(line);
// not availabale line return null
if (line.length == 0 || line[0] == '#') {
return null;
}
// match example:
// GET, POST /users module.controller.action | staticDir:wwwroot
auto matched = line.match(
regex(`([^/]+)\s+(/[\S]*?)\s+((staticDir[\:][\w|\/|\\]+)|([\w\.]+))`));
if (!matched) {
if (!line.empty()) {
warningf("Unmatched line: %s", line);
}
return null;
}
//
RouteItem item;
string part3 = matched.captures[3].to!string.strip;
//
if (part3.startsWith("staticDir:")) {
ResourceRouteItem routeItem = new ResourceRouteItem();
routeItem.resourcePath = part3.chompPrefix("staticDir:");
item = routeItem;
} else {
ActionRouteItem routeItem = new ActionRouteItem();
// mca
string mca = part3;
string[] mcaArray = split(mca, ".");
if (mcaArray.length > 3 || mcaArray.length < 2) {
logWarningf("this route config mca length is: %d (%s)", mcaArray.length, mca);
return null;
}
if (mcaArray.length == 2) {
routeItem.controller = mcaArray[0];
routeItem.action = mcaArray[1];
} else {
routeItem.moduleName = mcaArray[0];
routeItem.controller = mcaArray[1];
routeItem.action = mcaArray[2];
}
item = routeItem;
}
// methods
string methods = matched.captures[1].to!string.strip;
methods = methods.toUpper();
if (methods.length > 2) {
if (methods[0] == '[' && methods[$ - 1] == ']')
methods = methods[1 .. $ - 2];
}
if (methods == "*" || methods == "ALL") {
item.methods = null;
} else {
item.methods = split(methods, ",");
}
// path
string path = matched.captures[2].to!string.strip;
item.path = path;
item.pattern = mendPath(path);
// warningf("old: %s, new: %s", path, item.pattern);
// regex path
auto matches = path.matchAll(regex(`\{(\w+)(<([^>]+)>)?\}`));
if (matches) {
string[int] paramKeys;
int paramCount = 0;
string pattern = path;
string urlTemplate = path;
foreach (m; matches) {
paramKeys[paramCount] = m[1];
string reg = m[3].length ? m[3] : "\\w+";
pattern = pattern.replaceFirst(m[0], "(" ~ reg ~ ")");
urlTemplate = urlTemplate.replaceFirst(m[0], "{" ~ m[1] ~ "}");
paramCount++;
}
item.isRegex = true;
item.pattern = pattern;
item.paramKeys = paramKeys;
item.urlTemplate = urlTemplate;
}
return item;
}
static string mendPath(string path) {
if (path.empty || path == "/")
return "/";
if (path[0] != '/') {
path = "/" ~ path;
}
if (path[$ - 1] != '/')
path ~= "/";
return path;
}
}
/**
* Examples:
* # without component
* app.controller.attachment.attachmentcontroller.upload
*
* # with component
* app.component.attachment.controller.attachment.attachmentcontroller.upload
*/
string makeRouteHandlerKey(ActionRouteItem route, RouteGroup group = null) {
string moduleName = route.moduleName;
string controller = route.controller;
string groupName = "";
if (group !is null && group.name != RouteGroup.DEFAULT)
groupName = group.name ~ ".";
string key = format("app.%scontroller.%s%s.%scontroller.%s", moduleName.empty()
? "" : "component." ~ moduleName ~ ".", groupName, controller,
controller, route.action);
return key.toLower();
}
|
D
|
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Routing.build/Register/RouterOption.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/RouterNode.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/Route.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/ParameterValue.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/RouterOption.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/Parameter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/TrieRouter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/RoutingError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/Parameters.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/RoutableComponent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/PathComponent.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Routing.build/RouterOption~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/RouterNode.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/Route.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/ParameterValue.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/RouterOption.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/Parameter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/TrieRouter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/RoutingError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/Parameters.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/RoutableComponent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/PathComponent.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Routing.build/RouterOption~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/RouterNode.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/Route.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/ParameterValue.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/RouterOption.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/Parameter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/TrieRouter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/RoutingError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Parameter/Parameters.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Routing/RoutableComponent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Register/PathComponent.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/**
* D header file for OSX.
*
* Copyright: Copyright Sean Kelly 2008 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Sean Kelly
*/
/* Copyright Sean Kelly 2008 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sys.osx.mach.port;
version (OSX):
extern (C):
version( X86 )
version = i386;
version( X86_64 )
version = i386;
version( i386 )
{
alias uint natural_t;
alias natural_t mach_port_t;
}
|
D
|
<?xml version="1.0" encoding="UTF-8"?>
<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
<pageList>
<availablePage>
<emfPageIdentifier href="Generic.profile.notation#_ngBZsJoVEeKjqrzFgzAFxw"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="Generic.profile.notation#_ngBZsJoVEeKjqrzFgzAFxw"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/*
* vm.d
*
* This file implements the virtual memory interface needed by the
* architecture dependent bridge
*
*/
module architecture.vm;
// All of the paging calls
import kernel.arch.x86_64.core.paging;
// Normal kernel modules
import kernel.core.error;
public import user.environment;
class VirtualMemory {
static:
public:
// -- Initialization -- //
ErrorVal initialize() {
// Install Virtual Memory and Paging
return Paging.initialize();
}
ErrorVal install() {
return Paging.install();
}
// -- Segment Handling -- //
// Create a new segment that will fit the indicated size
// into the global address space.
ubyte[] createSegment(ubyte[] location, AccessMode flags) {
bool success;
uint pagelevel = sizeToPageLevel(location.length);
switch(pagelevel){
case 1:
// create the segment in the AddressSpace
success = Paging.createGib!(PageLevel!(1))(location.ptr, flags);
break;
case 2:
success = Paging.createGib!(PageLevel!(2))(location.ptr, flags);
break;
case 3:
success = Paging.createGib!(PageLevel!(3))(location.ptr, flags);
break;
case 4:
success = Paging.createGib!(PageLevel!(4))(location.ptr, flags);
break;
}
if(success){
return location;
}else{
return null;
}
}
bool mapSegment(AddressSpace dest, ubyte[] location, ubyte* destination, AccessMode flags) {
if(location is null){
return false;
}
ErrorVal result;
uint pagelevel = sizeToPageLevel(location.length);
switch(pagelevel){
//case 1:
//result = Paging.mapGib!(PageLevel!(1))(dest, location.ptr, destination, flags);
//break;
case 2:
result = Paging.mapGib!(PageLevel!(2))(dest, location.ptr, destination, flags);
break;
case 3:
result = Paging.mapGib!(PageLevel!(3))(dest, location.ptr, destination, flags);
break;
case 4:
result = Paging.mapGib!(PageLevel!(4))(dest, location.ptr, destination, flags);
break;
default:
return false;
}
if(result == ErrorVal.Success){
return true;
}else{
return false;
}
}
bool closeSegment(ubyte* location) {
return Paging.closeGib(location);
}
// -- Address Spaces -- //
// Create a virtual address space.
AddressSpace createAddressSpace() {
return Paging.createAddressSpace();
}
ErrorVal switchAddressSpace(AddressSpace as, out PhysicalAddress oldRoot){
return Paging.switchAddressSpace(as, oldRoot);
}
public import user.environment : findFreeSegment;
// The page size we are using
uint pagesize() {
return Paging.PAGESIZE;
}
synchronized ubyte* mapStack(PhysicalAddress physAddr) {
if(stackSegment is null){
stackSegment = findFreeSegment();
createSegment(stackSegment, AccessMode.Writable|AccessMode.AllocOnAccess);
}
stackSegment = stackSegment[Paging.PAGESIZE..$];
return Paging.mapRegion(stackSegment.ptr, physAddr, Paging.PAGESIZE).ptr;
}
// --- OLD --- //
synchronized ErrorVal mapRegion(ubyte* gib, PhysicalAddress physAddr, ulong regionLength) {
if(Paging.mapRegion(gib, physAddr, regionLength) !is null){
return ErrorVal.Fail;
}
return ErrorVal.Success;
}
private:
ubyte[] stackSegment;
}
|
D
|
/** Fundamental operations for arbitrary-precision arithmetic
*
* These functions are for internal use only.
*/
/* Copyright Don Clugston 2008 - 2010.
* 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)
*/
/* References:
"Modern Computer Arithmetic" (MCA) is the primary reference for all
algorithms used in this library.
- R.P. Brent and P. Zimmermann, "Modern Computer Arithmetic",
Version 0.5.9, (Oct 2010).
- C. Burkinel and J. Ziegler, "Fast Recursive Division", MPI-I-98-1-022,
Max-Planck Institute fuer Informatik, (Oct 1998).
- G. Hanrot, M. Quercia, and P. Zimmermann, "The Middle Product Algorithm, I.",
INRIA 4664, (Dec 2002).
- M. Bodrato and A. Zanoni, "What about Toom-Cook Matrices Optimality?",
http://bodrato.it/papers (2006).
- A. Fog, "Optimizing subroutines in assembly language",
www.agner.org/optimize (2008).
- A. Fog, "The microarchitecture of Intel and AMD CPU's",
www.agner.org/optimize (2008).
- A. Fog, "Instruction tables: Lists of instruction latencies, throughputs
and micro-operation breakdowns for Intel and AMD CPU's.", www.agner.org/optimize (2008).
Idioms:
Many functions in this module use
'func(Tulong)(Tulong x) if (is(Tulong == ulong))' rather than 'func(ulong x)'
in order to disable implicit conversion.
*/
module std.internal.math.biguintcore;
version(D_InlineAsm_X86)
{
import std.internal.math.biguintx86;
}
else
{
import std.internal.math.biguintnoasm;
}
alias multibyteAddSub!('+') multibyteAdd;
alias multibyteAddSub!('-') multibyteSub;
private import core.cpuid;
shared static this()
{
CACHELIMIT = core.cpuid.datacache[0].size*1024/2;
FASTDIVLIMIT = 100;
}
private:
// Limits for when to switch between algorithms.
immutable size_t CACHELIMIT; // Half the size of the data cache.
immutable size_t FASTDIVLIMIT; // crossover to recursive division
// These constants are used by shift operations
static if (BigDigit.sizeof == int.sizeof)
{
enum { LG2BIGDIGITBITS = 5, BIGDIGITSHIFTMASK = 31 };
alias ushort BIGHALFDIGIT;
}
else static if (BigDigit.sizeof == long.sizeof)
{
alias uint BIGHALFDIGIT;
enum { LG2BIGDIGITBITS = 6, BIGDIGITSHIFTMASK = 63 };
}
else static assert(0, "Unsupported BigDigit size");
private import std.traits:isIntegral;
enum BigDigitBits = BigDigit.sizeof*8;
template maxBigDigits(T) if (isIntegral!T)
{
enum maxBigDigits = (T.sizeof+BigDigit.sizeof-1)/BigDigit.sizeof;
}
enum BigDigit [] ZERO = [0];
enum BigDigit [] ONE = [1];
enum BigDigit [] TWO = [2];
enum BigDigit [] TEN = [10];
public:
/// BigUint performs memory management and wraps the low-level calls.
struct BigUint
{
private:
pure invariant()
{
assert( data.length == 1 || data[$-1] != 0 );
}
BigDigit [] data = ZERO;
this(BigDigit [] x) pure
{
data = x;
}
public:
// Length in uints
size_t uintLength() pure const
{
static if (BigDigit.sizeof == uint.sizeof)
{
return data.length;
}
else static if (BigDigit.sizeof == ulong.sizeof)
{
return data.length * 2 -
((data[$-1] & 0xFFFF_FFFF_0000_0000L) ? 1 : 0);
}
}
size_t ulongLength() pure const
{
static if (BigDigit.sizeof == uint.sizeof)
{
return (data.length + 1) >> 1;
}
else static if (BigDigit.sizeof == ulong.sizeof)
{
return data.length;
}
}
// The value at (cast(ulong[])data)[n]
ulong peekUlong(int n) pure const
{
static if (BigDigit.sizeof == int.sizeof)
{
if (data.length == n*2 + 1) return data[n*2];
return data[n*2] + ((cast(ulong)data[n*2 + 1]) << 32 );
}
else static if (BigDigit.sizeof == long.sizeof)
{
return data[n];
}
}
uint peekUint(int n) pure const
{
static if (BigDigit.sizeof == int.sizeof)
{
return data[n];
}
else
{
ulong x = data[n >> 1];
return (n & 1) ? cast(uint)(x >> 32) : cast(uint)x;
}
}
public:
///
void opAssign(Tulong)(Tulong u) pure if (is (Tulong == ulong))
{
if (u == 0) data = ZERO;
else if (u == 1) data = ONE;
else if (u == 2) data = TWO;
else if (u == 10) data = TEN;
else
{
static if (BigDigit.sizeof == int.sizeof)
{
uint ulo = cast(uint)(u & 0xFFFF_FFFF);
uint uhi = cast(uint)(u >> 32);
if (uhi == 0)
{
data = new BigDigit[1];
data[0] = ulo;
}
else
{
data = new BigDigit[2];
data[0] = ulo;
data[1] = uhi;
}
}
else static if (BigDigit.sizeof == long.sizeof)
{
data = new BigDigit[1];
data[0] = u;
}
}
}
void opAssign(Tdummy = void)(BigUint y) pure
{
this.data = y.data;
}
///
int opCmp(Tdummy = void)(const BigUint y) pure const
{
if (data.length != y.data.length)
return (data.length > y.data.length) ? 1 : -1;
size_t k = highestDifferentDigit(data, y.data);
if (data[k] == y.data[k])
return 0;
return data[k] > y.data[k] ? 1 : -1;
}
///
int opCmp(Tulong)(Tulong y) pure if(is (Tulong == ulong))
{
if (data.length > maxBigDigits!Tulong)
return 1;
foreach_reverse (i; 0 .. maxBigDigits!Tulong)
{
BigDigit tmp = cast(BigDigit)(y>>(i*BigDigitBits));
if (tmp == 0)
if (data.length >= i+1)
return 1;
else
continue;
else
if (i+1 > data.length)
return -1;
else if (tmp != data[i])
return data[i] > tmp ? 1 : -1;
}
return 0;
}
bool opEquals(Tdummy = void)(ref const BigUint y) pure const
{
return y.data[] == data[];
}
bool opEquals(Tdummy = void)(ulong y) pure const
{
if (data.length > 2)
return false;
uint ylo = cast(uint)(y & 0xFFFF_FFFF);
uint yhi = cast(uint)(y >> 32);
if (data.length==2 && data[1]!=yhi)
return false;
if (data.length==1 && yhi!=0)
return false;
return (data[0] == ylo);
}
bool isZero() pure const nothrow @safe
{
return data.length == 1 && data[0] == 0;
}
size_t numBytes() pure const
{
return data.length * BigDigit.sizeof;
}
// the extra bytes are added to the start of the string
char [] toDecimalString(int frontExtraBytes) const pure
{
auto predictlength = 20+20*(data.length/2); // just over 19
char [] buff = new char[frontExtraBytes + predictlength];
ptrdiff_t sofar = biguintToDecimal(buff, data.dup);
return buff[sofar-frontExtraBytes..$];
}
/** Convert to a hex string, printing a minimum number of digits 'minPadding',
* allocating an additional 'frontExtraBytes' at the start of the string.
* Padding is done with padChar, which may be '0' or ' '.
* 'separator' is a digit separation character. If non-zero, it is inserted
* between every 8 digits.
* Separator characters do not contribute to the minPadding.
*/
char [] toHexString(int frontExtraBytes, char separator = 0,
int minPadding=0, char padChar = '0') const pure
{
// Calculate number of extra padding bytes
size_t extraPad = (minPadding > data.length * 2 * BigDigit.sizeof)
? minPadding - data.length * 2 * BigDigit.sizeof : 0;
// Length not including separator bytes
size_t lenBytes = data.length * 2 * BigDigit.sizeof;
// Calculate number of separator bytes
size_t mainSeparatorBytes = separator ? (lenBytes / 8) - 1 : 0;
size_t totalSeparatorBytes = separator ? ((extraPad + lenBytes + 7) / 8) - 1: 0;
char [] buff = new char[lenBytes + extraPad + totalSeparatorBytes + frontExtraBytes];
biguintToHex(buff[$ - lenBytes - mainSeparatorBytes .. $], data, separator);
if (extraPad > 0)
{
if (separator)
{
size_t start = frontExtraBytes; // first index to pad
if (extraPad &7)
{
// Do 1 to 7 extra zeros.
buff[frontExtraBytes .. frontExtraBytes + (extraPad & 7)] = padChar;
buff[frontExtraBytes + (extraPad & 7)] = (padChar == ' ' ? ' ' : separator);
start += (extraPad & 7) + 1;
}
for (int i=0; i< (extraPad >> 3); ++i)
{
buff[start .. start + 8] = padChar;
buff[start + 8] = (padChar == ' ' ? ' ' : separator);
start += 9;
}
}
else
{
buff[frontExtraBytes .. frontExtraBytes + extraPad]=padChar;
}
}
int z = frontExtraBytes;
if (lenBytes > minPadding)
{
// Strip leading zeros.
ptrdiff_t maxStrip = lenBytes - minPadding;
while (z< buff.length-1 && (buff[z]=='0' || buff[z]==padChar) && maxStrip>0)
{
++z;
--maxStrip;
}
}
if (padChar!='0')
{
// Convert leading zeros into padChars.
for (size_t k= z; k< buff.length-1 && (buff[k]=='0' || buff[k]==padChar); ++k)
{
if (buff[k]=='0') buff[k]=padChar;
}
}
return buff[z-frontExtraBytes..$];
}
// return false if invalid character found
bool fromHexString(const(char)[] s) pure
{
//Strip leading zeros
int firstNonZero = 0;
while ((firstNonZero < s.length - 1) &&
(s[firstNonZero]=='0' || s[firstNonZero]=='_'))
{
++firstNonZero;
}
auto len = (s.length - firstNonZero + 15)/4;
data = new BigDigit[len+1];
uint part = 0;
uint sofar = 0;
uint partcount = 0;
assert(s.length>0);
for (ptrdiff_t i = s.length - 1; i>=firstNonZero; --i)
{
assert(i>=0);
char c = s[i];
if (s[i]=='_') continue;
uint x = (c>='0' && c<='9') ? c - '0'
: (c>='A' && c<='F') ? c - 'A' + 10
: (c>='a' && c<='f') ? c - 'a' + 10
: 100;
if (x==100) return false;
part >>= 4;
part |= (x<<(32-4));
++partcount;
if (partcount==8)
{
data[sofar] = part;
++sofar;
partcount = 0;
part = 0;
}
}
if (part)
{
for ( ; partcount != 8; ++partcount) part >>= 4;
data[sofar] = part;
++sofar;
}
if (sofar == 0) data = ZERO;
else data = data[0..sofar];
return true;
}
// return true if OK; false if erroneous characters found
bool fromDecimalString(const(char)[] s) pure
{
//Strip leading zeros
int firstNonZero = 0;
while ((firstNonZero < s.length) &&
(s[firstNonZero]=='0' || s[firstNonZero]=='_'))
{
++firstNonZero;
}
if (firstNonZero == s.length && s.length >= 1)
{
data = ZERO;
return true;
}
auto predictlength = (18*2 + 2*(s.length-firstNonZero)) / 19;
data = new BigDigit[predictlength];
uint hi = biguintFromDecimal(data, s[firstNonZero..$]);
data.length = hi;
return true;
}
////////////////////////
//
// All of these member functions create a new BigUint.
// return x >> y
BigUint opShr(Tulong)(Tulong y) pure if (is (Tulong == ulong))
{
assert(y>0);
uint bits = cast(uint)y & BIGDIGITSHIFTMASK;
if ((y>>LG2BIGDIGITBITS) >= data.length) return BigUint(ZERO);
uint words = cast(uint)(y >> LG2BIGDIGITBITS);
if (bits==0)
{
return BigUint(data[words..$]);
}
else
{
uint [] result = new BigDigit[data.length - words];
multibyteShr(result, data[words..$], bits);
if (result.length>1 && result[$-1]==0) return BigUint(result[0..$-1]);
else return BigUint(result);
}
}
// return x << y
BigUint opShl(Tulong)(Tulong y) pure if (is (Tulong == ulong))
{
assert(y>0);
if (isZero()) return this;
uint bits = cast(uint)y & BIGDIGITSHIFTMASK;
assert ((y>>LG2BIGDIGITBITS) < cast(ulong)(uint.max));
uint words = cast(uint)(y >> LG2BIGDIGITBITS);
BigDigit [] result = new BigDigit[data.length + words+1];
result[0..words] = 0;
if (bits==0)
{
result[words..words+data.length] = data[];
return BigUint(result[0..words+data.length]);
}
else
{
uint c = multibyteShl(result[words..words+data.length], data, bits);
if (c==0) return BigUint(result[0..words+data.length]);
result[$-1] = c;
return BigUint(result);
}
}
// If wantSub is false, return x + y, leaving sign unchanged
// If wantSub is true, return abs(x - y), negating sign if x < y
static BigUint addOrSubInt(Tulong)(const BigUint x, Tulong y,
bool wantSub, ref bool sign) pure if (is(Tulong == ulong))
{
BigUint r;
if (wantSub)
{ // perform a subtraction
if (x.data.length > 2)
{
r.data = subInt(x.data, y);
}
else
{ // could change sign!
ulong xx = x.data[0];
if (x.data.length > 1)
xx += (cast(ulong)x.data[1]) << 32;
ulong d;
if (xx <= y)
{
d = y - xx;
sign = !sign;
}
else
{
d = xx - y;
}
if (d == 0)
{
r = 0UL;
sign = false;
return r;
}
r.data = new BigDigit[ d > uint.max ? 2: 1];
r.data[0] = cast(uint)(d & 0xFFFF_FFFF);
if (d > uint.max)
r.data[1] = cast(uint)(d>>32);
}
}
else
{
r.data = addInt(x.data, y);
}
return r;
}
// If wantSub is false, return x + y, leaving sign unchanged.
// If wantSub is true, return abs(x - y), negating sign if x<y
static BigUint addOrSub(BigUint x, BigUint y, bool wantSub, bool *sign)
pure
{
BigUint r;
if (wantSub)
{ // perform a subtraction
bool negative;
r.data = sub(x.data, y.data, &negative);
*sign ^= negative;
if (r.isZero())
{
*sign = false;
}
}
else
{
r.data = add(x.data, y.data);
}
return r;
}
// return x*y.
// y must not be zero.
static BigUint mulInt(T = ulong)(BigUint x, T y) pure
{
if (y==0 || x == 0) return BigUint(ZERO);
uint hi = cast(uint)(y >>> 32);
uint lo = cast(uint)(y & 0xFFFF_FFFF);
uint [] result = new BigDigit[x.data.length+1+(hi!=0)];
result[x.data.length] = multibyteMul(result[0..x.data.length], x.data, lo, 0);
if (hi!=0)
{
result[x.data.length+1] = multibyteMulAdd!('+')(result[1..x.data.length+1],
x.data, hi, 0);
}
return BigUint(removeLeadingZeros(result));
}
/* return x * y.
*/
static BigUint mul(BigUint x, BigUint y) pure
{
if (y==0 || x == 0)
return BigUint(ZERO);
auto len = x.data.length + y.data.length;
BigDigit [] result = new BigDigit[len];
if (y.data.length > x.data.length)
{
mulInternal(result, y.data, x.data);
}
else
{
if (x.data[]==y.data[]) squareInternal(result, x.data);
else mulInternal(result, x.data, y.data);
}
// the highest element could be zero,
// in which case we need to reduce the length
return BigUint(removeLeadingZeros(result));
}
// return x / y
static BigUint divInt(T)(BigUint x, T y) pure if ( is(T == uint) )
{
if (y == 1)
return x;
uint [] result = new BigDigit[x.data.length];
if ((y&(-y))==y)
{
assert(y!=0, "BigUint division by zero");
// perfect power of 2
uint b = 0;
for (;y!=1; y>>=1)
{
++b;
}
multibyteShr(result, x.data, b);
}
else
{
result[] = x.data[];
uint rem = multibyteDivAssign(result, y, 0);
}
return BigUint(removeLeadingZeros(result));
}
// return x % y
static uint modInt(T)(BigUint x, T y) pure if ( is(T == uint) )
{
assert(y!=0);
if ((y&(-y)) == y)
{ // perfect power of 2
return x.data[0] & (y-1);
}
else
{
// horribly inefficient - malloc, copy, & store are unnecessary.
uint [] wasteful = new BigDigit[x.data.length];
wasteful[] = x.data[];
uint rem = multibyteDivAssign(wasteful, y, 0);
delete wasteful;
return rem;
}
}
// return x / y
static BigUint div(BigUint x, BigUint y) pure
{
if (y.data.length > x.data.length)
return BigUint(ZERO);
if (y.data.length == 1)
return divInt(x, y.data[0]);
BigDigit [] result = new BigDigit[x.data.length - y.data.length + 1];
divModInternal(result, null, x.data, y.data);
return BigUint(removeLeadingZeros(result));
}
// return x % y
static BigUint mod(BigUint x, BigUint y) pure
{
if (y.data.length > x.data.length) return x;
if (y.data.length == 1)
{
BigDigit [] result = new BigDigit[1];
result[0] = modInt(x, y.data[0]);
return BigUint(result);
}
BigDigit [] result = new BigDigit[x.data.length - y.data.length + 1];
BigDigit [] rem = new BigDigit[y.data.length];
divModInternal(result, rem, x.data, y.data);
return BigUint(removeLeadingZeros(rem));
}
/**
* Return a BigUint which is x raised to the power of y.
* Method: Powers of 2 are removed from x, then left-to-right binary
* exponentiation is used.
* Memory allocation is minimized: at most one temporary BigUint is used.
*/
static BigUint pow(BigUint x, ulong y) pure
{
// Deal with the degenerate cases first.
if (y==0) return BigUint(ONE);
if (y==1) return x;
if (x==0 || x==1) return x;
BigUint result;
// Simplify, step 1: Remove all powers of 2.
uint firstnonzero = firstNonZeroDigit(x.data);
// Now we know x = x[firstnonzero..$] * (2^^(firstnonzero*BigDigitBits))
// where BigDigitBits = BigDigit.sizeof * 8
// See if x[firstnonzero..$] can now fit into a single digit.
bool singledigit = ((x.data.length - firstnonzero) == 1);
// If true, then x0 is that digit
// and the result will be (x0 ^^ y) * (2^^(firstnonzero*y*BigDigitBits))
BigDigit x0 = x.data[firstnonzero];
assert(x0 !=0);
// Length of the non-zero portion
size_t nonzerolength = x.data.length - firstnonzero;
ulong y0;
uint evenbits = 0; // number of even bits in the bottom of x
while (!(x0 & 1))
{
x0 >>= 1;
++evenbits;
}
if ((x.data.length- firstnonzero == 2))
{
// Check for a single digit straddling a digit boundary
BigDigit x1 = x.data[firstnonzero+1];
if ((x1 >> evenbits) == 0)
{
x0 |= (x1 << (BigDigit.sizeof * 8 - evenbits));
singledigit = true;
}
}
// Now if (singledigit), x^^y = (x0 ^^ y) * 2^^(evenbits * y) * 2^^(firstnonzero*y*BigDigitBits))
uint evenshiftbits = 0; // Total powers of 2 to shift by, at the end
// Simplify, step 2: For singledigits, see if we can trivially reduce y
BigDigit finalMultiplier = 1UL;
if (singledigit)
{
// x fits into a single digit. Raise it to the highest power we can
// that still fits into a single digit, then reduce the exponent accordingly.
// We're quite likely to have a residual multiply at the end.
// For example, 10^^100 = (((5^^13)^^7) * 5^^9) * 2^^100.
// and 5^^13 still fits into a uint.
evenshiftbits = cast(uint)( (evenbits * y) & BIGDIGITSHIFTMASK);
if (x0 == 1)
{ // Perfect power of 2
result = 1UL;
return result << (evenbits + firstnonzero * 8 * BigDigit.sizeof) * y;
}
int p = highestPowerBelowUintMax(x0);
if (y <= p)
{ // Just do it with pow
result = cast(ulong)intpow(x0, y);
if (evenbits + firstnonzero == 0)
return result;
return result << (evenbits + firstnonzero * 8 * BigDigit.sizeof) * y;
}
y0 = y / p;
finalMultiplier = intpow(x0, y - y0*p);
x0 = intpow(x0, p);
// Result is x0
nonzerolength = 1;
}
// Now if (singledigit), x^^y = finalMultiplier * (x0 ^^ y0) * 2^^(evenbits * y) * 2^^(firstnonzero*y*BigDigitBits))
// Perform a crude check for overflow and allocate result buffer.
// The length required is y * lg2(x) bits.
// which will always fit into y*x.length digits. But this is
// a gross overestimate if x is small (length 1 or 2) and the highest
// digit is nearly empty.
// A better estimate is:
// y * lg2(x[$-1]/BigDigit.max) + y * (x.length - 1) digits,
// and the first term is always between
// y * (bsr(x.data[$-1]) + 1) / BIGDIGITBITS and
// y * (bsr(x.data[$-1]) + 2) / BIGDIGITBITS
// For single digit payloads, we already have
// x^^y = finalMultiplier * (x0 ^^ y0) * 2^^(evenbits * y) * 2^^(firstnonzero*y*BigDigitBits))
// and x0 is almost a full digit, so it's a tight estimate.
// Number of digits is therefore 1 + x0.length*y0 + (evenbits*y)/BIGDIGIT + firstnonzero*y
// Note that the divisions must be rounded up.
// Estimated length in BigDigits
ulong estimatelength = singledigit
? 1 + y0 + ((evenbits*y + BigDigit.sizeof * 8 - 1) / (BigDigit.sizeof *8)) + firstnonzero*y
: x.data.length * y;
// Imprecise check for overflow. Makes the extreme cases easier to debug
// (less extreme overflow will result in an out of memory error).
if (estimatelength > uint.max/(4*BigDigit.sizeof))
assert(0, "Overflow in BigInt.pow");
// The result buffer includes space for all the trailing zeros
BigDigit [] resultBuffer = new BigDigit[cast(size_t)estimatelength];
// Do all the powers of 2!
size_t result_start = cast(size_t)( firstnonzero * y
+ (singledigit ? ((evenbits * y) >> LG2BIGDIGITBITS) : 0));
resultBuffer[0..result_start] = 0;
BigDigit [] t1 = resultBuffer[result_start..$];
BigDigit [] r1;
if (singledigit)
{
r1 = t1[0..1];
r1[0] = x0;
y = y0;
}
else
{
// It's not worth right shifting by evenbits unless we also shrink the length after each
// multiply or squaring operation. That might still be worthwhile for large y.
r1 = t1[0..x.data.length - firstnonzero];
r1[0..$] = x.data[firstnonzero..$];
}
if (y>1)
{ // Set r1 = r1 ^^ y.
// The secondary buffer only needs space for the multiplication results
BigDigit [] secondaryBuffer = new BigDigit[resultBuffer.length - result_start];
BigDigit [] t2 = secondaryBuffer;
BigDigit [] r2;
int shifts = 63; // num bits in a long
while(!(y & 0x8000_0000_0000_0000L))
{
y <<= 1;
--shifts;
}
y <<=1;
while(y!=0)
{
// For each bit of y: Set r1 = r1 * r1
// If the bit is 1, set r1 = r1 * x
// Eg, if y is 0b101, result = ((x^^2)^^2)*x == x^^5.
// Optimization opportunity: if more than 2 bits in y are set,
// it's usually possible to reduce the number of multiplies
// by caching odd powers of x. eg for y = 54,
// (0b110110), set u = x^^3, and result is ((u^^8)*u)^^2
r2 = t2[0 .. r1.length*2];
squareInternal(r2, r1);
if (y & 0x8000_0000_0000_0000L)
{
r1 = t1[0 .. r2.length + nonzerolength];
if (singledigit)
{
r1[$-1] = multibyteMul(r1[0 .. $-1], r2, x0, 0);
}
else
{
mulInternal(r1, r2, x.data[firstnonzero..$]);
}
}
else
{
r1 = t1[0 .. r2.length];
r1[] = r2[];
}
y <<=1;
shifts--;
}
while (shifts>0)
{
r2 = t2[0 .. r1.length * 2];
squareInternal(r2, r1);
r1 = t1[0 .. r2.length];
r1[] = r2[];
--shifts;
}
}
if (finalMultiplier!=1)
{
BigDigit carry = multibyteMul(r1, r1, finalMultiplier, 0);
if (carry)
{
r1 = t1[0 .. r1.length + 1];
r1[$-1] = carry;
}
}
if (evenshiftbits)
{
BigDigit carry = multibyteShl(r1, r1, evenshiftbits);
if (carry!=0)
{
r1 = t1[0 .. r1.length + 1];
r1[$ - 1] = carry;
}
}
while(r1[$ - 1]==0)
{
r1=r1[0 .. $ - 1];
}
result.data = resultBuffer[0 .. result_start + r1.length];
return result;
}
// Implement toHash so that BigUint works properly as an AA key.
size_t toHash() const @trusted nothrow
{
return typeid(data).getHash(&data);
}
} // end BigUint
unittest
{
// ulong comparison test
BigUint a = [1];
assert(a == 1);
assert(a < 0x8000_0000_0000_0000UL); // bug 9548
}
// Remove leading zeros from x, to restore the BigUint invariant
BigDigit[] removeLeadingZeros(BigDigit [] x) pure
{
size_t k = x.length;
while(k>1 && x[k - 1]==0) --k;
return x[0 .. k];
}
unittest
{
BigUint r = BigUint([5]);
BigUint t = BigUint([7]);
BigUint s = BigUint.mod(r, t);
assert(s==5);
}
unittest
{
BigUint r;
r = 5UL;
assert(r.peekUlong(0) == 5UL);
assert(r.peekUint(0) == 5U);
r = 0x1234_5678_9ABC_DEF0UL;
assert(r.peekUlong(0) == 0x1234_5678_9ABC_DEF0UL);
assert(r.peekUint(0) == 0x9ABC_DEF0U);
}
// Pow tests
unittest
{
BigUint r, s;
r.fromHexString("80000000_00000001");
s = BigUint.pow(r, 5);
r.fromHexString("08000000_00000000_50000000_00000001_40000000_00000002_80000000"
~ "_00000002_80000000_00000001");
assert(s == r);
s = 10UL;
s = BigUint.pow(s, 39);
r.fromDecimalString("1000000000000000000000000000000000000000");
assert(s == r);
r.fromHexString("1_E1178E81_00000000");
s = BigUint.pow(r, 15); // Regression test: this used to overflow array bounds
r.fromDecimalString("000_000_00");
assert(r == 0);
r.fromDecimalString("0007");
assert(r == 7);
r.fromDecimalString("0");
assert(r == 0);
}
// Radix conversion tests
unittest
{
BigUint r;
r.fromHexString("1_E1178E81_00000000");
assert(r.toHexString(0, '_', 0) == "1_E1178E81_00000000");
assert(r.toHexString(0, '_', 20) == "0001_E1178E81_00000000");
assert(r.toHexString(0, '_', 16+8) == "00000001_E1178E81_00000000");
assert(r.toHexString(0, '_', 16+9) == "0_00000001_E1178E81_00000000");
assert(r.toHexString(0, '_', 16+8+8) == "00000000_00000001_E1178E81_00000000");
assert(r.toHexString(0, '_', 16+8+8+1) == "0_00000000_00000001_E1178E81_00000000");
assert(r.toHexString(0, '_', 16+8+8+1, ' ') == " 1_E1178E81_00000000");
assert(r.toHexString(0, 0, 16+8+8+1) == "00000000000000001E1178E8100000000");
r = 0UL;
assert(r.toHexString(0, '_', 0) == "0");
assert(r.toHexString(0, '_', 7) == "0000000");
assert(r.toHexString(0, '_', 7, ' ') == " 0");
assert(r.toHexString(0, '#', 9) == "0#00000000");
assert(r.toHexString(0, 0, 9) == "000000000");
}
private:
// works for any type
T intpow(T)(T x, ulong n) pure
{
T p;
switch (n)
{
case 0:
p = 1;
break;
case 1:
p = x;
break;
case 2:
p = x * x;
break;
default:
p = 1;
while (1){
if (n & 1)
p *= x;
n >>= 1;
if (!n)
break;
x *= x;
}
break;
}
return p;
}
// returns the maximum power of x that will fit in a uint.
int highestPowerBelowUintMax(uint x) pure
{
assert(x>1);
static immutable ubyte [22] maxpwr = [ 31, 20, 15, 13, 12, 11, 10, 10, 9, 9,
8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7];
if (x<24) return maxpwr[x-2];
if (x<41) return 6;
if (x<85) return 5;
if (x<256) return 4;
if (x<1626) return 3;
if (x<65536) return 2;
return 1;
}
// returns the maximum power of x that will fit in a ulong.
int highestPowerBelowUlongMax(uint x) pure
{
assert(x>1);
static immutable ubyte [39] maxpwr = [ 63, 40, 31, 27, 24, 22, 21, 20, 19, 18,
17, 17, 16, 16, 15, 15, 15, 15, 14, 14,
14, 14, 13, 13, 13, 13, 13, 13, 13, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12];
if (x<41) return maxpwr[x-2];
if (x<57) return 11;
if (x<85) return 10;
if (x<139) return 9;
if (x<256) return 8;
if (x<566) return 7;
if (x<1626) return 6;
if (x<7132) return 5;
if (x<65536) return 4;
if (x<2642246) return 3;
return 2;
}
version(unittest) {
int slowHighestPowerBelowUintMax(uint x) pure
{
int pwr = 1;
for (ulong q = x;x*q < cast(ulong)uint.max; ) {
q*=x; ++pwr;
}
return pwr;
}
unittest
{
assert(highestPowerBelowUintMax(10)==9);
for (int k=82; k<88; ++k) {assert(highestPowerBelowUintMax(k)== slowHighestPowerBelowUintMax(k)); }
}
}
/* General unsigned subtraction routine for bigints.
* Sets result = x - y. If the result is negative, negative will be true.
*/
BigDigit [] sub(BigDigit[] x, BigDigit[] y, bool *negative) pure
{
if (x.length == y.length)
{
// There's a possibility of cancellation, if x and y are almost equal.
ptrdiff_t last = highestDifferentDigit(x, y);
BigDigit [] result = new BigDigit[last+1];
if (x[last] < y[last])
{ // we know result is negative
multibyteSub(result[0..last+1], y[0..last+1], x[0..last+1], 0);
*negative = true;
}
else
{ // positive or zero result
multibyteSub(result[0..last+1], x[0..last+1], y[0..last+1], 0);
*negative = false;
}
while (result.length > 1 && result[$-1] == 0)
{
result = result[0..$-1];
}
// if (result.length >1 && result[$-1]==0) return result[0..$-1];
return result;
}
// Lengths are different
BigDigit [] large, small;
if (x.length < y.length)
{
*negative = true;
large = y; small = x;
}
else
{
*negative = false;
large = x; small = y;
}
// result.length will be equal to larger length, or could decrease by 1.
BigDigit [] result = new BigDigit[large.length];
BigDigit carry = multibyteSub(result[0..small.length], large[0..small.length], small, 0);
result[small.length..$] = large[small.length..$];
if (carry)
{
multibyteIncrementAssign!('-')(result[small.length..$], carry);
}
while (result.length > 1 && result[$-1] == 0)
{
result = result[0..$-1];
}
return result;
}
// return a + b
BigDigit [] add(BigDigit[] a, BigDigit [] b) pure
{
BigDigit [] x, y;
if (a.length < b.length)
{
x = b; y = a;
}
else
{
x = a; y = b;
}
// now we know x.length > y.length
// create result. add 1 in case it overflows
BigDigit [] result = new BigDigit[x.length + 1];
BigDigit carry = multibyteAdd(result[0..y.length], x[0..y.length], y, 0);
if (x.length != y.length)
{
result[y.length..$-1]= x[y.length..$];
carry = multibyteIncrementAssign!('+')(result[y.length..$-1], carry);
}
if (carry)
{
result[$-1] = carry;
return result;
}
else
return result[0..$-1];
}
/** return x + y
*/
BigDigit [] addInt(const BigDigit[] x, ulong y) pure
{
uint hi = cast(uint)(y >>> 32);
uint lo = cast(uint)(y& 0xFFFF_FFFF);
auto len = x.length;
if (x.length < 2 && hi!=0) ++len;
BigDigit [] result = new BigDigit[len+1];
result[0..x.length] = x[];
if (x.length < 2 && hi!=0) { result[1]=hi; hi=0; }
uint carry = multibyteIncrementAssign!('+')(result[0..$-1], lo);
if (hi!=0) carry += multibyteIncrementAssign!('+')(result[1..$-1], hi);
if (carry)
{
result[$-1] = carry;
return result;
}
else
return result[0..$-1];
}
/** Return x - y.
* x must be greater than y.
*/
BigDigit [] subInt(const BigDigit[] x, ulong y) pure
{
uint hi = cast(uint)(y >>> 32);
uint lo = cast(uint)(y & 0xFFFF_FFFF);
BigDigit [] result = new BigDigit[x.length];
result[] = x[];
multibyteIncrementAssign!('-')(result[], lo);
if (hi)
multibyteIncrementAssign!('-')(result[1..$], hi);
if (result[$-1] == 0)
return result[0..$-1];
else
return result;
}
/** General unsigned multiply routine for bigints.
* Sets result = x * y.
*
* The length of y must not be larger than the length of x.
* Different algorithms are used, depending on the lengths of x and y.
* TODO: "Modern Computer Arithmetic" suggests the OddEvenKaratsuba algorithm for the
* unbalanced case. (But I doubt it would be faster in practice).
*
*/
void mulInternal(BigDigit[] result, const(BigDigit)[] x, const(BigDigit)[] y)
pure
{
assert( result.length == x.length + y.length );
assert( y.length > 0 );
assert( x.length >= y.length);
if (y.length <= KARATSUBALIMIT)
{
// Small multiplier, we'll just use the asm classic multiply.
if (y.length == 1)
{ // Trivial case, no cache effects to worry about
result[x.length] = multibyteMul(result[0..x.length], x, y[0], 0);
return;
}
if (x.length + y.length < CACHELIMIT)
return mulSimple(result, x, y);
// If x is so big that it won't fit into the cache, we divide it into chunks
// Every chunk must be greater than y.length.
// We make the first chunk shorter, if necessary, to ensure this.
auto chunksize = CACHELIMIT / y.length;
auto residual = x.length % chunksize;
if (residual < y.length)
{
chunksize -= y.length;
}
// Use schoolbook multiply.
mulSimple(result[0 .. chunksize + y.length], x[0..chunksize], y);
auto done = chunksize;
while (done < x.length)
{
// result[done .. done+ylength] already has a value.
chunksize = (done + (CACHELIMIT / y.length) < x.length) ? (CACHELIMIT / y.length) : x.length - done;
BigDigit [KARATSUBALIMIT] partial;
partial[0..y.length] = result[done..done+y.length];
mulSimple(result[done..done+chunksize+y.length], x[done..done+chunksize], y);
addAssignSimple(result[done..done+chunksize + y.length], partial[0..y.length]);
done += chunksize;
}
return;
}
auto half = (x.length >> 1) + (x.length & 1);
if (2*y.length*y.length <= x.length*x.length)
{
// UNBALANCED MULTIPLY
// Use school multiply to cut into quasi-squares of Karatsuba-size
// or larger. The ratio of the two sides of the 'square' must be
// between 1.414:1 and 1:1. Use Karatsuba on each chunk.
//
// For maximum performance, we want the ratio to be as close to
// 1:1 as possible. To achieve this, we can either pad x or y.
// The best choice depends on the modulus x%y.
auto numchunks = x.length / y.length;
auto chunksize = y.length;
auto extra = x.length % y.length;
auto maxchunk = chunksize + extra;
bool paddingY; // true = we're padding Y, false = we're padding X.
if (extra * extra * 2 < y.length*y.length)
{
// The leftover bit is small enough that it should be incorporated
// in the existing chunks.
// Make all the chunks a tiny bit bigger
// (We're padding y with zeros)
chunksize += extra / cast(double)numchunks;
extra = x.length - chunksize*numchunks;
// there will probably be a few left over.
// Every chunk will either have size chunksize, or chunksize+1.
maxchunk = chunksize + 1;
paddingY = true;
assert(chunksize + extra + chunksize *(numchunks-1) == x.length );
}
else
{
// the extra bit is large enough that it's worth making a new chunk.
// (This means we're padding x with zeros, when doing the first one).
maxchunk = chunksize;
++numchunks;
paddingY = false;
assert(extra + chunksize *(numchunks-1) == x.length );
}
// We make the buffer a bit bigger so we have space for the partial sums.
BigDigit [] scratchbuff = new BigDigit[karatsubaRequiredBuffSize(maxchunk) + y.length];
BigDigit [] partial = scratchbuff[$ - y.length .. $];
size_t done; // how much of X have we done so far?
double residual = 0;
if (paddingY)
{
// If the first chunk is bigger, do it first. We're padding y.
mulKaratsuba(result[0 .. y.length + chunksize + (extra > 0 ? 1 : 0 )],
x[0 .. chunksize + (extra>0?1:0)], y, scratchbuff);
done = chunksize + (extra > 0 ? 1 : 0);
if (extra) --extra;
}
else
{ // We're padding X. Begin with the extra bit.
mulKaratsuba(result[0 .. y.length + extra], y, x[0..extra], scratchbuff);
done = extra;
extra = 0;
}
auto basechunksize = chunksize;
while (done < x.length)
{
chunksize = basechunksize + (extra > 0 ? 1 : 0);
if (extra) --extra;
partial[] = result[done .. done+y.length];
mulKaratsuba(result[done .. done + y.length + chunksize],
x[done .. done+chunksize], y, scratchbuff);
addAssignSimple(result[done .. done + y.length + chunksize], partial);
done += chunksize;
}
delete scratchbuff;
}
else
{
// Balanced. Use Karatsuba directly.
BigDigit [] scratchbuff = new BigDigit[karatsubaRequiredBuffSize(x.length)];
mulKaratsuba(result, x, y, scratchbuff);
delete scratchbuff;
}
}
/** General unsigned squaring routine for BigInts.
* Sets result = x*x.
* NOTE: If the highest half-digit of x is zero, the highest digit of result will
* also be zero.
*/
void squareInternal(BigDigit[] result, BigDigit[] x) pure
{
// Squaring is potentially half a multiply, plus add the squares of
// the diagonal elements.
assert(result.length == 2*x.length);
if (x.length <= KARATSUBASQUARELIMIT)
{
if (x.length==1) {
result[1] = multibyteMul(result[0..1], x, x[0], 0);
return;
}
return squareSimple(result, x);
}
// The nice thing about squaring is that it always stays balanced
BigDigit [] scratchbuff = new BigDigit[karatsubaRequiredBuffSize(x.length)];
squareKaratsuba(result, x, scratchbuff);
delete scratchbuff;
}
import core.bitop : bsr;
/// if remainder is null, only calculate quotient.
void divModInternal(BigDigit [] quotient, BigDigit[] remainder, BigDigit [] u,
BigDigit [] v) pure
{
assert(quotient.length == u.length - v.length + 1);
assert(remainder == null || remainder.length == v.length);
assert(v.length > 1);
assert(u.length >= v.length);
// Normalize by shifting v left just enough so that
// its high-order bit is on, and shift u left the
// same amount. The highest bit of u will never be set.
BigDigit [] vn = new BigDigit[v.length];
BigDigit [] un = new BigDigit[u.length + 1];
// How much to left shift v, so that its MSB is set.
uint s = BIGDIGITSHIFTMASK - bsr(v[$-1]);
if (s!=0)
{
multibyteShl(vn, v, s);
un[$-1] = multibyteShl(un[0..$-1], u, s);
}
else
{
vn[] = v[];
un[0..$-1] = u[];
un[$-1] = 0;
}
if (quotient.length<FASTDIVLIMIT)
{
schoolbookDivMod(quotient, un, vn);
}
else
{
blockDivMod(quotient, un, vn);
}
// Unnormalize remainder, if required.
if (remainder != null)
{
if (s == 0) remainder[] = un[0..vn.length];
else multibyteShr(remainder, un[0..vn.length+1], s);
}
delete un;
delete vn;
}
unittest
{
uint [] u = [0, 0xFFFF_FFFE, 0x8000_0000];
uint [] v = [0xFFFF_FFFF, 0x8000_0000];
uint [] q = new uint[u.length - v.length + 1];
uint [] r = new uint[2];
divModInternal(q, r, u, v);
assert(q[]==[0xFFFF_FFFFu, 0]);
assert(r[]==[0xFFFF_FFFFu, 0x7FFF_FFFF]);
u = [0, 0xFFFF_FFFE, 0x8000_0001];
v = [0xFFFF_FFFF, 0x8000_0000];
divModInternal(q, r, u, v);
}
private:
// Converts a big uint to a hexadecimal string.
//
// Optionally, a separator character (eg, an underscore) may be added between
// every 8 digits.
// buff.length must be data.length*8 if separator is zero,
// or data.length*9 if separator is non-zero. It will be completely filled.
char [] biguintToHex(char [] buff, const BigDigit [] data, char separator=0)
pure
{
int x=0;
for (ptrdiff_t i=data.length - 1; i>=0; --i)
{
toHexZeroPadded(buff[x..x+8], data[i]);
x+=8;
if (separator)
{
if (i>0) buff[x] = separator;
++x;
}
}
return buff;
}
/** Convert a big uint into a decimal string.
*
* Params:
* data The biguint to be converted. Will be destroyed.
* buff The destination buffer for the decimal string. Must be
* large enough to store the result, including leading zeros.
* Will be filled backwards, starting from buff[$-1].
*
* buff.length must be >= (data.length*32)/log2(10) = 9.63296 * data.length.
* Returns:
* the lowest index of buff which was used.
*/
size_t biguintToDecimal(char [] buff, BigDigit [] data) pure
{
ptrdiff_t sofar = buff.length;
// Might be better to divide by (10^38/2^32) since that gives 38 digits for
// the price of 3 divisions and a shr; this version only gives 27 digits
// for 3 divisions.
while(data.length>1)
{
uint rem = multibyteDivAssign(data, 10_0000_0000, 0);
itoaZeroPadded(buff[sofar-9 .. sofar], rem);
sofar -= 9;
if (data[$-1] == 0 && data.length > 1)
{
data.length = data.length - 1;
}
}
itoaZeroPadded(buff[sofar-10 .. sofar], data[0]);
sofar -= 10;
// and strip off the leading zeros
while(sofar!= buff.length-1 && buff[sofar] == '0')
sofar++;
return sofar;
}
/** Convert a decimal string into a big uint.
*
* Params:
* data The biguint to be receive the result. Must be large enough to
* store the result.
* s The decimal string. May contain _ or 0..9
*
* The required length for the destination buffer is slightly less than
* 1 + s.length/log2(10) = 1 + s.length/3.3219.
*
* Returns:
* the highest index of data which was used.
*/
int biguintFromDecimal(BigDigit [] data, const(char)[] s) pure
in
{
assert((data.length >= 2) || (data.length == 1 && s.length == 1));
}
body
{
// Convert to base 1e19 = 10_000_000_000_000_000_000.
// (this is the largest power of 10 that will fit into a long).
// The length will be less than 1 + s.length/log2(10) = 1 + s.length/3.3219.
// 485 bits will only just fit into 146 decimal digits.
// As we convert the string, we record the number of digits we've seen in base 19:
// hi is the number of digits/19, lo is the extra digits (0 to 18).
// TODO: This is inefficient for very large strings (it is O(n^^2)).
// We should take advantage of fast multiplication once the numbers exceed
// Karatsuba size.
uint lo = 0; // number of powers of digits, 0..18
uint x = 0;
ulong y = 0;
uint hi = 0; // number of base 1e19 digits
data[0] = 0; // initially number is 0.
if (data.length > 1)
data[1] = 0;
for (int i= (s[0]=='-' || s[0]=='+')? 1 : 0; i<s.length; ++i)
{
if (s[i] == '_')
continue;
x *= 10;
x += s[i] - '0';
++lo;
if (lo == 9)
{
y = x;
x = 0;
}
if (lo == 18)
{
y *= 10_0000_0000;
y += x;
x = 0;
}
if (lo == 19)
{
y *= 10;
y += x;
x = 0;
// Multiply existing number by 10^19, then add y1.
if (hi>0)
{
data[hi] = multibyteMul(data[0..hi], data[0..hi], 1220703125*2u, 0); // 5^13*2 = 0x9184_E72A
++hi;
data[hi] = multibyteMul(data[0..hi], data[0..hi], 15625*262144u, 0); // 5^6*2^18 = 0xF424_0000
++hi;
}
else
hi = 2;
uint c = multibyteIncrementAssign!('+')(data[0..hi], cast(uint)(y&0xFFFF_FFFF));
c += multibyteIncrementAssign!('+')(data[1..hi], cast(uint)(y>>32));
if (c!=0)
{
data[hi]=c;
++hi;
}
y = 0;
lo = 0;
}
}
// Now set y = all remaining digits.
if (lo>=18)
{
}
else if (lo>=9)
{
for (int k=9; k<lo; ++k) y*=10;
y+=x;
}
else
{
for (int k=0; k<lo; ++k) y*=10;
y+=x;
}
if (lo != 0)
{
if (hi == 0)
{
data[0] = cast(uint)y;
if (data.length == 1)
{
hi = 1;
}
else
{
data[1] = cast(uint)(y >>> 32);
hi=2;
}
}
else
{
while (lo>0)
{
uint c = multibyteMul(data[0..hi], data[0..hi], 10, 0);
if (c!=0)
{
data[hi]=c;
++hi;
}
--lo;
}
uint c = multibyteIncrementAssign!('+')(data[0..hi], cast(uint)(y&0xFFFF_FFFF));
if (y > 0xFFFF_FFFFL)
{
c += multibyteIncrementAssign!('+')(data[1..hi], cast(uint)(y>>32));
}
if (c!=0)
{
data[hi]=c;
++hi;
}
}
}
while (hi>1 && data[hi-1]==0)
--hi;
return hi;
}
private:
// ------------------------
// These in-place functions are only for internal use; they are incompatible
// with COW.
// Classic 'schoolbook' multiplication.
void mulSimple(BigDigit[] result, const(BigDigit) [] left,
const(BigDigit)[] right) pure
in
{
assert(result.length == left.length + right.length);
assert(right.length>1);
}
body
{
result[left.length] = multibyteMul(result[0..left.length], left, right[0], 0);
multibyteMultiplyAccumulate(result[1..$], left, right[1..$]);
}
// Classic 'schoolbook' squaring
void squareSimple(BigDigit[] result, const(BigDigit) [] x) pure
in
{
assert(result.length == 2*x.length);
assert(x.length>1);
}
body
{
multibyteSquare(result, x);
}
// add two uints of possibly different lengths. Result must be as long
// as the larger length.
// Returns carry (0 or 1).
uint addSimple(BigDigit [] result, BigDigit [] left, BigDigit [] right) pure
in
{
assert(result.length == left.length);
assert(left.length >= right.length);
assert(right.length>0);
}
body
{
uint carry = multibyteAdd(result[0..right.length],
left[0..right.length], right, 0);
if (right.length < left.length)
{
result[right.length..left.length] = left[right.length .. $];
carry = multibyteIncrementAssign!('+')(result[right.length..$], carry);
}
return carry;
}
// result = left - right
// returns carry (0 or 1)
BigDigit subSimple(BigDigit [] result,const(BigDigit) [] left,
const(BigDigit) [] right) pure
in
{
assert(result.length == left.length);
assert(left.length >= right.length);
assert(right.length>0);
}
body
{
BigDigit carry = multibyteSub(result[0..right.length],
left[0..right.length], right, 0);
if (right.length < left.length)
{
result[right.length..left.length] = left[right.length .. $];
carry = multibyteIncrementAssign!('-')(result[right.length..$], carry);
} //else if (result.length==left.length+1) { result[$-1] = carry; carry=0; }
return carry;
}
/* result = result - right
* Returns carry = 1 if result was less than right.
*/
BigDigit subAssignSimple(BigDigit [] result, const(BigDigit) [] right) pure
{
assert(result.length >= right.length);
uint c = multibyteSub(result[0..right.length], result[0..right.length], right, 0);
if (c && result.length > right.length)
c = multibyteIncrementAssign!('-')(result[right.length .. $], c);
return c;
}
/* result = result + right
*/
BigDigit addAssignSimple(BigDigit [] result, const(BigDigit) [] right) pure
{
assert(result.length >= right.length);
uint c = multibyteAdd(result[0..right.length], result[0..right.length], right, 0);
if (c && result.length > right.length)
c = multibyteIncrementAssign!('+')(result[right.length .. $], c);
return c;
}
/* performs result += wantSub? - right : right;
*/
BigDigit addOrSubAssignSimple(BigDigit [] result, const(BigDigit) [] right,
bool wantSub) pure
{
if (wantSub)
return subAssignSimple(result, right);
else
return addAssignSimple(result, right);
}
// return true if x<y, considering leading zeros
bool less(const(BigDigit)[] x, const(BigDigit)[] y) pure
{
assert(x.length >= y.length);
auto k = x.length-1;
while(x[k]==0 && k>=y.length)
--k;
if (k>=y.length)
return false;
while (k>0 && x[k]==y[k])
--k;
return x[k] < y[k];
}
// Set result = abs(x-y), return true if result is negative(x<y), false if x<=y.
bool inplaceSub(BigDigit[] result, const(BigDigit)[] x, const(BigDigit)[] y)
pure
{
assert(result.length == (x.length >= y.length) ? x.length : y.length);
size_t minlen;
bool negative;
if (x.length >= y.length)
{
minlen = y.length;
negative = less(x, y);
}
else
{
minlen = x.length;
negative = !less(y, x);
}
const (BigDigit)[] large, small;
if (negative)
{
large = y; small = x;
}
else
{
large = x; small = y;
}
BigDigit carry = multibyteSub(result[0..minlen], large[0..minlen], small[0..minlen], 0);
if (x.length != y.length)
{
result[minlen..large.length]= large[minlen..$];
result[large.length..$] = 0;
if (carry)
multibyteIncrementAssign!('-')(result[minlen..$], carry);
}
return negative;
}
/* Determine how much space is required for the temporaries
* when performing a Karatsuba multiplication.
*/
size_t karatsubaRequiredBuffSize(size_t xlen) pure
{
return xlen <= KARATSUBALIMIT ? 0 : 2*xlen; // - KARATSUBALIMIT+2;
}
/* Sets result = x*y, using Karatsuba multiplication.
* x must be longer or equal to y.
* Valid only for balanced multiplies, where x is not shorter than y.
* It is superior to schoolbook multiplication if and only if
* sqrt(2)*y.length > x.length > y.length.
* Karatsuba multiplication is O(n^1.59), whereas schoolbook is O(n^2)
* The maximum allowable length of x and y is uint.max; but better algorithms
* should be used far before that length is reached.
* Params:
* scratchbuff An array long enough to store all the temporaries. Will be destroyed.
*/
void mulKaratsuba(BigDigit [] result, const(BigDigit) [] x,
const(BigDigit)[] y, BigDigit [] scratchbuff) pure
{
assert(x.length >= y.length);
assert(result.length < uint.max, "Operands too large");
assert(result.length == x.length + y.length);
if (x.length <= KARATSUBALIMIT)
{
return mulSimple(result, x, y);
}
// Must be almost square (otherwise, a schoolbook iteration is better)
assert(2L * y.length * y.length > (x.length-1) * (x.length-1),
"Bigint Internal Error: Asymmetric Karatsuba");
// The subtractive version of Karatsuba multiply uses the following result:
// (Nx1 + x0)*(Ny1 + y0) = (N*N)*x1y1 + x0y0 + N * (x0y0 + x1y1 - mid)
// where mid = (x0-x1)*(y0-y1)
// requiring 3 multiplies of length N, instead of 4.
// The advantage of the subtractive over the additive version is that
// the mid multiply cannot exceed length N. But there are subtleties:
// (x0-x1),(y0-y1) may be negative or zero. To keep it simple, we
// retain all of the leading zeros in the subtractions
// half length, round up.
auto half = (x.length >> 1) + (x.length & 1);
const(BigDigit) [] x0 = x[0 .. half];
const(BigDigit) [] x1 = x[half .. $];
const(BigDigit) [] y0 = y[0 .. half];
const(BigDigit) [] y1 = y[half .. $];
BigDigit [] mid = scratchbuff[0 .. half*2];
BigDigit [] newscratchbuff = scratchbuff[half*2 .. $];
BigDigit [] resultLow = result[0 .. 2*half];
BigDigit [] resultHigh = result[2*half .. $];
// initially use result to store temporaries
BigDigit [] xdiff= result[0 .. half];
BigDigit [] ydiff = result[half .. half*2];
// First, we calculate mid, and sign of mid
bool midNegative = inplaceSub(xdiff, x0, x1)
^ inplaceSub(ydiff, y0, y1);
mulKaratsuba(mid, xdiff, ydiff, newscratchbuff);
// Low half of result gets x0 * y0. High half gets x1 * y1
mulKaratsuba(resultLow, x0, y0, newscratchbuff);
if (2L * y1.length * y1.length < x1.length * x1.length)
{
// an asymmetric situation has been created.
// Worst case is if x:y = 1.414 : 1, then x1:y1 = 2.41 : 1.
// Applying one schoolbook multiply gives us two pieces each 1.2:1
if (y1.length <= KARATSUBALIMIT)
mulSimple(resultHigh, x1, y1);
else
{
// divide x1 in two, then use schoolbook multiply on the two pieces.
auto quarter = (x1.length >> 1) + (x1.length & 1);
bool ysmaller = (quarter >= y1.length);
mulKaratsuba(resultHigh[0..quarter+y1.length], ysmaller ? x1[0..quarter] : y1,
ysmaller ? y1 : x1[0..quarter], newscratchbuff);
// Save the part which will be overwritten.
bool ysmaller2 = ((x1.length - quarter) >= y1.length);
newscratchbuff[0..y1.length] = resultHigh[quarter..quarter + y1.length];
mulKaratsuba(resultHigh[quarter..$], ysmaller2 ? x1[quarter..$] : y1,
ysmaller2 ? y1 : x1[quarter..$], newscratchbuff[y1.length..$]);
resultHigh[quarter..$].addAssignSimple(newscratchbuff[0..y1.length]);
}
}
else
mulKaratsuba(resultHigh, x1, y1, newscratchbuff);
/* We now have result = x0y0 + (N*N)*x1y1
Before adding or subtracting mid, we must calculate
result += N * (x0y0 + x1y1)
We can do this with three half-length additions. With a = x0y0, b = x1y1:
aHI aLO
+ aHI aLO
+ bHI bLO
+ bHI bLO
= R3 R2 R1 R0
R1 = aHI + bLO + aLO
R2 = aHI + bLO + aHI + carry_from_R1
R3 = bHi + carry_from_R2
It might actually be quicker to do it in two full-length additions:
newscratchbuff[2*half] = addSimple(newscratchbuff[0..2*half], result[0..2*half], result[2*half..$]);
addAssignSimple(result[half..$], newscratchbuff[0..2*half+1]);
*/
BigDigit[] R1 = result[half..half*2];
BigDigit[] R2 = result[half*2..half*3];
BigDigit[] R3 = result[half*3..$];
BigDigit c1 = multibyteAdd(R2, R2, R1, 0); // c1:R2 = R2 + R1
BigDigit c2 = multibyteAdd(R1, R2, result[0..half], 0); // c2:R1 = R2 + R1 + R0
BigDigit c3 = addAssignSimple(R2, R3); // R2 = R2 + R1 + R3
if (c1+c2)
multibyteIncrementAssign!('+')(result[half*2..$], c1+c2);
if (c1+c3)
multibyteIncrementAssign!('+')(R3, c1+c3);
// And finally we subtract mid
addOrSubAssignSimple(result[half..$], mid, !midNegative);
}
void squareKaratsuba(BigDigit [] result, BigDigit [] x,
BigDigit [] scratchbuff) pure
{
// See mulKaratsuba for implementation comments.
// Squaring is simpler, since it never gets asymmetric.
assert(result.length < uint.max, "Operands too large");
assert(result.length == 2*x.length);
if (x.length <= KARATSUBASQUARELIMIT)
{
return squareSimple(result, x);
}
// half length, round up.
auto half = (x.length >> 1) + (x.length & 1);
BigDigit [] x0 = x[0 .. half];
BigDigit [] x1 = x[half .. $];
BigDigit [] mid = scratchbuff[0 .. half*2];
BigDigit [] newscratchbuff = scratchbuff[half*2 .. $];
// initially use result to store temporaries
BigDigit [] xdiff= result[0 .. half];
BigDigit [] ydiff = result[half .. half*2];
// First, we calculate mid. We don't need its sign
inplaceSub(xdiff, x0, x1);
squareKaratsuba(mid, xdiff, newscratchbuff);
// Set result = x0x0 + (N*N)*x1x1
squareKaratsuba(result[0 .. 2*half], x0, newscratchbuff);
squareKaratsuba(result[2*half .. $], x1, newscratchbuff);
/* result += N * (x0x0 + x1x1)
Do this with three half-length additions. With a = x0x0, b = x1x1:
R1 = aHI + bLO + aLO
R2 = aHI + bLO + aHI + carry_from_R1
R3 = bHi + carry_from_R2
*/
BigDigit[] R1 = result[half..half*2];
BigDigit[] R2 = result[half*2..half*3];
BigDigit[] R3 = result[half*3..$];
BigDigit c1 = multibyteAdd(R2, R2, R1, 0); // c1:R2 = R2 + R1
BigDigit c2 = multibyteAdd(R1, R2, result[0..half], 0); // c2:R1 = R2 + R1 + R0
BigDigit c3 = addAssignSimple(R2, R3); // R2 = R2 + R1 + R3
if (c1+c2) multibyteIncrementAssign!('+')(result[half*2..$], c1+c2);
if (c1+c3) multibyteIncrementAssign!('+')(R3, c1+c3);
// And finally we subtract mid, which is always positive
subAssignSimple(result[half..$], mid);
}
/* Knuth's Algorithm D, as presented in
* H.S. Warren, "Hacker's Delight", Addison-Wesley Professional (2002).
* Also described in "Modern Computer Arithmetic" 0.2, Exercise 1.8.18.
* Given u and v, calculates quotient = u / v, u = u % v.
* v must be normalized (ie, the MSB of v must be 1).
* The most significant words of quotient and u may be zero.
* u[0..v.length] holds the remainder.
*/
void schoolbookDivMod(BigDigit [] quotient, BigDigit [] u, in BigDigit [] v)
pure
{
assert(quotient.length == u.length - v.length);
assert(v.length > 1);
assert(u.length >= v.length);
assert((v[$-1]&0x8000_0000)!=0);
assert(u[$-1] < v[$-1]);
// BUG: This code only works if BigDigit is uint.
uint vhi = v[$-1];
uint vlo = v[$-2];
for (ptrdiff_t j = u.length - v.length - 1; j >= 0; j--)
{
// Compute estimate of quotient[j],
// qhat = (three most significant words of u)/(two most sig words of v).
uint qhat;
if (u[j + v.length] == vhi)
{
// uu/vhi could exceed uint.max (it will be 0x8000_0000 or 0x8000_0001)
qhat = uint.max;
}
else
{
uint ulo = u[j + v.length - 2];
version(D_InlineAsm_X86)
{
// Note: On DMD, this is only ~10% faster than the non-asm code.
uint *p = &u[j + v.length - 1];
asm
{
mov EAX, p;
mov EDX, [EAX+4];
mov EAX, [EAX];
div dword ptr [vhi];
mov qhat, EAX;
mov ECX, EDX;
div3by2correction:
mul dword ptr [vlo]; // EDX:EAX = qhat * vlo
sub EAX, ulo;
sbb EDX, ECX;
jbe div3by2done;
mov EAX, qhat;
dec EAX;
mov qhat, EAX;
add ECX, dword ptr [vhi];
jnc div3by2correction;
div3by2done: ;
}
}
else
{ // version(InlineAsm)
ulong uu = (cast(ulong)(u[j + v.length]) << 32) | u[j + v.length - 1];
ulong bigqhat = uu / vhi;
ulong rhat = uu - bigqhat * vhi;
qhat = cast(uint)bigqhat;
again:
if (cast(ulong)qhat * vlo > ((rhat << 32) + ulo))
{
--qhat;
rhat += vhi;
if (!(rhat & 0xFFFF_FFFF_0000_0000L))
goto again;
}
} // version(InlineAsm)
}
// Multiply and subtract.
uint carry = multibyteMulAdd!('-')(u[j..j + v.length], v, qhat, 0);
if (u[j+v.length] < carry)
{
// If we subtracted too much, add back
--qhat;
carry -= multibyteAdd(u[j..j + v.length],u[j..j + v.length], v, 0);
}
quotient[j] = qhat;
u[j + v.length] = u[j + v.length] - carry;
}
}
private:
// TODO: Replace with a library call
void itoaZeroPadded(char[] output, uint value, int radix = 10) pure
{
ptrdiff_t x = output.length - 1;
for( ; x >= 0; --x)
{
output[x]= cast(char)(value % radix + '0');
value /= radix;
}
}
void toHexZeroPadded(char[] output, uint value) pure
{
ptrdiff_t x = output.length - 1;
static immutable string hexDigits = "0123456789ABCDEF";
for( ; x>=0; --x)
{
output[x] = hexDigits[value & 0xF];
value >>= 4;
}
}
private:
// Returns the highest value of i for which left[i]!=right[i],
// or 0 if left[] == right[]
size_t highestDifferentDigit(const BigDigit [] left, const BigDigit [] right) pure
{
assert(left.length == right.length);
for (ptrdiff_t i = left.length - 1; i>0; --i)
{
if (left[i] != right[i])
return i;
}
return 0;
}
// Returns the lowest value of i for which x[i]!=0.
int firstNonZeroDigit(BigDigit[] x) pure
{
int k = 0;
while (x[k]==0)
{
++k;
assert(k<x.length);
}
return k;
}
import core.stdc.stdio;
/*
Calculate quotient and remainder of u / v using fast recursive division.
v must be normalised, and must be at least half as long as u.
Given u and v, v normalised, calculates quotient = u/v, u = u%v.
scratch is temporary storage space, length must be >= quotient + 1.
Returns:
u[0..v.length] is the remainder. u[v.length..$] is corrupted.
Implements algorithm 1.8 from MCA.
This algorithm has an annoying special case. After the first recursion, the
highest bit of the quotient may be set. This means that in the second
recursive call, the 'in' contract would be violated. (This happens only
when the top quarter of u is equal to the top half of v. A base 10
equivalent example of this situation is 5517/56; the first step gives
55/5 = 11). To maintain the in contract, we pad a zero to the top of both
u and the quotient. 'mayOverflow' indicates that that the special case
has occurred.
(In MCA, a different strategy is used: the in contract is weakened, and
schoolbookDivMod is more general: it allows the high bit of u to be set).
See also:
- C. Burkinel and J. Ziegler, "Fast Recursive Division", MPI-I-98-1-022,
Max-Planck Institute fuer Informatik, (Oct 1998).
*/
void recursiveDivMod(BigDigit[] quotient, BigDigit[] u, const(BigDigit)[] v,
BigDigit[] scratch, bool mayOverflow = false) pure
in
{
// v must be normalized
assert(v.length > 1);
assert((v[$ - 1] & 0x8000_0000) != 0);
assert(!(u[$ - 1] & 0x8000_0000));
assert(quotient.length == u.length - v.length);
if (mayOverflow)
{
assert(u[$-1] == 0);
assert(u[$-2] & 0x8000_0000);
}
// Must be symmetric. Use block schoolbook division if not.
assert((mayOverflow ? u.length-1 : u.length) <= 2 * v.length);
assert((mayOverflow ? u.length-1 : u.length) >= v.length);
assert(scratch.length >= quotient.length + (mayOverflow ? 0 : 1));
}
body
{
if (quotient.length < FASTDIVLIMIT)
{
return schoolbookDivMod(quotient, u, v);
}
// Split quotient into two halves, but keep padding in the top half
auto k = (mayOverflow ? quotient.length - 1 : quotient.length) >> 1;
// RECURSION 1: Calculate the high half of the quotient
// Note that if u and quotient were padded, they remain padded during
// this call, so in contract is satisfied.
recursiveDivMod(quotient[k .. $], u[2 * k .. $], v[k .. $],
scratch, mayOverflow);
// quotient[k..$] is our guess at the high quotient.
// u[2*k.. 2.*k + v.length - k = k + v.length] is the high part of the
// first remainder. u[0..2*k] is the low part.
// Calculate the full first remainder to be
// remainder - highQuotient * lowDivisor
// reducing highQuotient until the remainder is positive.
// The low part of the remainder, u[0..k], cannot be altered by this.
adjustRemainder(quotient[k .. $], u[k .. k + v.length], v, k,
scratch[0 .. quotient.length], mayOverflow);
// RECURSION 2: Calculate the low half of the quotient
// The full first remainder is now in u[0..k + v.length].
if (u[k + v.length - 1] & 0x8000_0000)
{
// Special case. The high quotient is 0x1_00...000 or 0x1_00...001.
// This means we need an extra quotient word for the next recursion.
// We need to restore the invariant for the recursive calls.
// We do this by padding both u and quotient. Extending u is trivial,
// because the higher words will not be used again. But for the
// quotient, we're clobbering the low word of the high quotient,
// so we need save it, and add it back in after the recursive call.
auto clobberedQuotient = quotient[k];
u[k+v.length] = 0;
recursiveDivMod(quotient[0 .. k+1], u[k .. k + v.length+1],
v[k .. $], scratch, true);
adjustRemainder(quotient[0 .. k+1], u[0 .. v.length], v, k,
scratch[0 .. 2 * k+1], true);
// Now add the quotient word that got clobbered earlier.
multibyteIncrementAssign!('+')(quotient[k..$], clobberedQuotient);
}
else
{
// The special case has NOT happened.
recursiveDivMod(quotient[0 .. k], u[k .. k + v.length], v[k .. $],
scratch, false);
// high remainder is in u[k..k+(v.length-k)] == u[k .. v.length]
adjustRemainder(quotient[0 .. k], u[0 .. v.length], v, k,
scratch[0 .. 2 * k]);
}
}
// rem -= quot * v[0..k].
// If would make rem negative, decrease quot until rem is >=0.
// Needs (quot.length * k) scratch space to store the result of the multiply.
void adjustRemainder(BigDigit[] quot, BigDigit[] rem, const(BigDigit)[] v,
ptrdiff_t k,
BigDigit[] scratch, bool mayOverflow = false) pure
{
assert(rem.length == v.length);
mulInternal(scratch, quot, v[0 .. k]);
uint carry = 0;
if (mayOverflow)
carry = scratch[$-1] + subAssignSimple(rem, scratch[0..$-1]);
else
carry = subAssignSimple(rem, scratch);
while(carry)
{
multibyteIncrementAssign!('-')(quot, 1); // quot--
carry -= multibyteAdd(rem, rem, v, 0);
}
}
// Cope with unbalanced division by performing block schoolbook division.
void blockDivMod(BigDigit [] quotient, BigDigit [] u, in BigDigit [] v) pure
{
assert(quotient.length == u.length - v.length);
assert(v.length > 1);
assert(u.length >= v.length);
assert((v[$-1] & 0x8000_0000)!=0);
assert((u[$-1] & 0x8000_0000)==0);
BigDigit [] scratch = new BigDigit[v.length + 1];
// Perform block schoolbook division, with 'v.length' blocks.
auto m = u.length - v.length;
while (m > v.length)
{
bool mayOverflow = (u[m + v.length -1 ] & 0x8000_0000)!=0;
BigDigit saveq;
if (mayOverflow)
{
u[m + v.length] = 0;
saveq = quotient[m];
}
recursiveDivMod(quotient[m-v.length..m + (mayOverflow? 1: 0)],
u[m - v.length..m + v.length + (mayOverflow? 1: 0)], v, scratch, mayOverflow);
if (mayOverflow)
{
assert(quotient[m] == 0);
quotient[m] = saveq;
}
m -= v.length;
}
recursiveDivMod(quotient[0..m], u[0..m + v.length], v, scratch);
delete scratch;
}
version(unittest)
{
import std.c.stdio;
}
unittest
{
void printBiguint(uint [] data)
{
char [] buff = new char[data.length*9];
printf("%.*s\n", biguintToHex(buff, data, '_'));
}
void printDecimalBigUint(BigUint data)
{
printf("%.*s\n", data.toDecimalString(0));
}
uint [] a, b;
a = new uint[43];
b = new uint[179];
for (int i=0; i<a.length; ++i) a[i] = 0x1234_B6E9 + i;
for (int i=0; i<b.length; ++i) b[i] = 0x1BCD_8763 - i*546;
a[$-1] |= 0x8000_0000;
uint [] r = new uint[a.length];
uint [] q = new uint[b.length-a.length+1];
divModInternal(q, r, b, a);
q = q[0..$-1];
uint [] r1 = r.dup;
uint [] q1 = q.dup;
blockDivMod(q, b, a);
r = b[0..a.length];
assert(r[] == r1[]);
assert(q[] == q1[]);
}
|
D
|
/* crypto/objects/obj_mac.h */
/* THIS FILE IS GENERATED FROM objects.txt by objects.pl via the
* following command:
* perl objects.pl objects.txt obj_mac.num obj_mac.h
*/
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
module libressl.openssl.obj_mac;
enum SN_undef = "UNDEF";
enum LN_undef = "undefined";
enum NID_undef = 0;
enum OBJ_undef = 0L;
enum SN_itu_t = "ITU-T";
enum LN_itu_t = "itu-t";
enum NID_itu_t = 645;
enum OBJ_itu_t = 0L;
enum NID_ccitt = 404;
alias OBJ_ccitt = OBJ_itu_t;
enum SN_iso = "ISO";
enum LN_iso = "iso";
enum NID_iso = 181;
enum OBJ_iso = 1L;
enum SN_joint_iso_itu_t = "JOINT-ISO-ITU-T";
enum LN_joint_iso_itu_t = "joint-iso-itu-t";
enum NID_joint_iso_itu_t = 646;
enum OBJ_joint_iso_itu_t = 2L;
enum NID_joint_iso_ccitt = 393;
alias OBJ_joint_iso_ccitt = OBJ_joint_iso_itu_t;
enum SN_member_body = "member-body";
enum LN_member_body = "ISO Member Body";
enum NID_member_body = 182;
//#define OBJ_member_body OBJ_iso, 2L
enum SN_identified_organization = "identified-organization";
enum NID_identified_organization = 676;
//#define OBJ_identified_organization OBJ_iso, 3L
enum SN_hmac_md5 = "HMAC-MD5";
enum LN_hmac_md5 = "hmac-md5";
enum NID_hmac_md5 = 780;
//#define OBJ_hmac_md5 OBJ_identified_organization, 6L, 1L, 5L, 5L, 8L, 1L, 1L
enum SN_hmac_sha1 = "HMAC-SHA1";
enum LN_hmac_sha1 = "hmac-sha1";
enum NID_hmac_sha1 = 781;
//#define OBJ_hmac_sha1 OBJ_identified_organization, 6L, 1L, 5L, 5L, 8L, 1L, 2L
enum SN_certicom_arc = "certicom-arc";
enum NID_certicom_arc = 677;
//#define OBJ_certicom_arc OBJ_identified_organization, 132L
enum SN_international_organizations = "international-organizations";
enum LN_international_organizations = "International Organizations";
enum NID_international_organizations = 647;
//#define OBJ_international_organizations OBJ_joint_iso_itu_t, 23L
enum SN_wap = "wap";
enum NID_wap = 678;
//#define OBJ_wap OBJ_international_organizations, 43L
enum SN_wap_wsg = "wap-wsg";
enum NID_wap_wsg = 679;
//#define OBJ_wap_wsg OBJ_wap, 1L
enum SN_selected_attribute_types = "selected-attribute-types";
enum LN_selected_attribute_types = "Selected Attribute Types";
enum NID_selected_attribute_types = 394;
//#define OBJ_selected_attribute_types OBJ_joint_iso_itu_t, 5L, 1L, 5L
enum SN_clearance = "clearance";
enum NID_clearance = 395;
//#define OBJ_clearance OBJ_selected_attribute_types, 55L
enum SN_ISO_US = "ISO-US";
enum LN_ISO_US = "ISO US Member Body";
enum NID_ISO_US = 183;
//#define OBJ_ISO_US OBJ_member_body, 840L
enum SN_X9_57 = "X9-57";
enum LN_X9_57 = "X9.57";
enum NID_X9_57 = 184;
//#define OBJ_X9_57 OBJ_ISO_US, 10040L
enum SN_X9cm = "X9cm";
enum LN_X9cm = "X9.57 CM ?";
enum NID_X9cm = 185;
//#define OBJ_X9cm OBJ_X9_57, 4L
enum SN_dsa = "DSA";
enum LN_dsa = "dsaEncryption";
enum NID_dsa = 116;
//#define OBJ_dsa OBJ_X9cm, 1L
enum SN_dsaWithSHA1 = "DSA-SHA1";
enum LN_dsaWithSHA1 = "dsaWithSHA1";
enum NID_dsaWithSHA1 = 113;
//#define OBJ_dsaWithSHA1 OBJ_X9cm, 3L
enum SN_ansi_X9_62 = "ansi-X9-62";
enum LN_ansi_X9_62 = "ANSI X9.62";
enum NID_ansi_X9_62 = 405;
//#define OBJ_ansi_X9_62 OBJ_ISO_US, 10045L
//#define OBJ_X9_62_id_fieldType OBJ_ansi_X9_62, 1L
enum SN_X9_62_prime_field = "prime-field";
enum NID_X9_62_prime_field = 406;
//#define OBJ_X9_62_prime_field OBJ_X9_62_id_fieldType, 1L
enum SN_X9_62_characteristic_two_field = "characteristic-two-field";
enum NID_X9_62_characteristic_two_field = 407;
//#define OBJ_X9_62_characteristic_two_field OBJ_X9_62_id_fieldType, 2L
enum SN_X9_62_id_characteristic_two_basis = "id-characteristic-two-basis";
enum NID_X9_62_id_characteristic_two_basis = 680;
//#define OBJ_X9_62_id_characteristic_two_basis OBJ_X9_62_characteristic_two_field, 3L
enum SN_X9_62_onBasis = "onBasis";
enum NID_X9_62_onBasis = 681;
//#define OBJ_X9_62_onBasis OBJ_X9_62_id_characteristic_two_basis, 1L
enum SN_X9_62_tpBasis = "tpBasis";
enum NID_X9_62_tpBasis = 682;
//#define OBJ_X9_62_tpBasis OBJ_X9_62_id_characteristic_two_basis, 2L
enum SN_X9_62_ppBasis = "ppBasis";
enum NID_X9_62_ppBasis = 683;
//#define OBJ_X9_62_ppBasis OBJ_X9_62_id_characteristic_two_basis, 3L
//#define OBJ_X9_62_id_publicKeyType OBJ_ansi_X9_62, 2L
enum SN_X9_62_id_ecPublicKey = "id-ecPublicKey";
enum NID_X9_62_id_ecPublicKey = 408;
//#define OBJ_X9_62_id_ecPublicKey OBJ_X9_62_id_publicKeyType, 1L
//#define OBJ_X9_62_ellipticCurve OBJ_ansi_X9_62, 3L
//#define OBJ_X9_62_c_TwoCurve OBJ_X9_62_ellipticCurve, 0L
enum SN_X9_62_c2pnb163v1 = "c2pnb163v1";
enum NID_X9_62_c2pnb163v1 = 684;
//#define OBJ_X9_62_c2pnb163v1 OBJ_X9_62_c_TwoCurve, 1L
enum SN_X9_62_c2pnb163v2 = "c2pnb163v2";
enum NID_X9_62_c2pnb163v2 = 685;
//#define OBJ_X9_62_c2pnb163v2 OBJ_X9_62_c_TwoCurve, 2L
enum SN_X9_62_c2pnb163v3 = "c2pnb163v3";
enum NID_X9_62_c2pnb163v3 = 686;
//#define OBJ_X9_62_c2pnb163v3 OBJ_X9_62_c_TwoCurve, 3L
enum SN_X9_62_c2pnb176v1 = "c2pnb176v1";
enum NID_X9_62_c2pnb176v1 = 687;
//#define OBJ_X9_62_c2pnb176v1 OBJ_X9_62_c_TwoCurve, 4L
enum SN_X9_62_c2tnb191v1 = "c2tnb191v1";
enum NID_X9_62_c2tnb191v1 = 688;
//#define OBJ_X9_62_c2tnb191v1 OBJ_X9_62_c_TwoCurve, 5L
enum SN_X9_62_c2tnb191v2 = "c2tnb191v2";
enum NID_X9_62_c2tnb191v2 = 689;
//#define OBJ_X9_62_c2tnb191v2 OBJ_X9_62_c_TwoCurve, 6L
enum SN_X9_62_c2tnb191v3 = "c2tnb191v3";
enum NID_X9_62_c2tnb191v3 = 690;
//#define OBJ_X9_62_c2tnb191v3 OBJ_X9_62_c_TwoCurve, 7L
enum SN_X9_62_c2onb191v4 = "c2onb191v4";
enum NID_X9_62_c2onb191v4 = 691;
//#define OBJ_X9_62_c2onb191v4 OBJ_X9_62_c_TwoCurve, 8L
enum SN_X9_62_c2onb191v5 = "c2onb191v5";
enum NID_X9_62_c2onb191v5 = 692;
//#define OBJ_X9_62_c2onb191v5 OBJ_X9_62_c_TwoCurve, 9L
enum SN_X9_62_c2pnb208w1 = "c2pnb208w1";
enum NID_X9_62_c2pnb208w1 = 693;
//#define OBJ_X9_62_c2pnb208w1 OBJ_X9_62_c_TwoCurve, 10L
enum SN_X9_62_c2tnb239v1 = "c2tnb239v1";
enum NID_X9_62_c2tnb239v1 = 694;
//#define OBJ_X9_62_c2tnb239v1 OBJ_X9_62_c_TwoCurve, 11L
enum SN_X9_62_c2tnb239v2 = "c2tnb239v2";
enum NID_X9_62_c2tnb239v2 = 695;
//#define OBJ_X9_62_c2tnb239v2 OBJ_X9_62_c_TwoCurve, 12L
enum SN_X9_62_c2tnb239v3 = "c2tnb239v3";
enum NID_X9_62_c2tnb239v3 = 696;
//#define OBJ_X9_62_c2tnb239v3 OBJ_X9_62_c_TwoCurve, 13L
enum SN_X9_62_c2onb239v4 = "c2onb239v4";
enum NID_X9_62_c2onb239v4 = 697;
//#define OBJ_X9_62_c2onb239v4 OBJ_X9_62_c_TwoCurve, 14L
enum SN_X9_62_c2onb239v5 = "c2onb239v5";
enum NID_X9_62_c2onb239v5 = 698;
//#define OBJ_X9_62_c2onb239v5 OBJ_X9_62_c_TwoCurve, 15L
enum SN_X9_62_c2pnb272w1 = "c2pnb272w1";
enum NID_X9_62_c2pnb272w1 = 699;
//#define OBJ_X9_62_c2pnb272w1 OBJ_X9_62_c_TwoCurve, 16L
enum SN_X9_62_c2pnb304w1 = "c2pnb304w1";
enum NID_X9_62_c2pnb304w1 = 700;
//#define OBJ_X9_62_c2pnb304w1 OBJ_X9_62_c_TwoCurve, 17L
enum SN_X9_62_c2tnb359v1 = "c2tnb359v1";
enum NID_X9_62_c2tnb359v1 = 701;
//#define OBJ_X9_62_c2tnb359v1 OBJ_X9_62_c_TwoCurve, 18L
enum SN_X9_62_c2pnb368w1 = "c2pnb368w1";
enum NID_X9_62_c2pnb368w1 = 702;
//#define OBJ_X9_62_c2pnb368w1 OBJ_X9_62_c_TwoCurve, 19L
enum SN_X9_62_c2tnb431r1 = "c2tnb431r1";
enum NID_X9_62_c2tnb431r1 = 703;
//#define OBJ_X9_62_c2tnb431r1 OBJ_X9_62_c_TwoCurve, 20L
//#define OBJ_X9_62_primeCurve OBJ_X9_62_ellipticCurve, 1L
enum SN_X9_62_prime192v1 = "prime192v1";
enum NID_X9_62_prime192v1 = 409;
//#define OBJ_X9_62_prime192v1 OBJ_X9_62_primeCurve, 1L
enum SN_X9_62_prime192v2 = "prime192v2";
enum NID_X9_62_prime192v2 = 410;
//#define OBJ_X9_62_prime192v2 OBJ_X9_62_primeCurve, 2L
enum SN_X9_62_prime192v3 = "prime192v3";
enum NID_X9_62_prime192v3 = 411;
//#define OBJ_X9_62_prime192v3 OBJ_X9_62_primeCurve, 3L
enum SN_X9_62_prime239v1 = "prime239v1";
enum NID_X9_62_prime239v1 = 412;
//#define OBJ_X9_62_prime239v1 OBJ_X9_62_primeCurve, 4L
enum SN_X9_62_prime239v2 = "prime239v2";
enum NID_X9_62_prime239v2 = 413;
//#define OBJ_X9_62_prime239v2 OBJ_X9_62_primeCurve, 5L
enum SN_X9_62_prime239v3 = "prime239v3";
enum NID_X9_62_prime239v3 = 414;
//#define OBJ_X9_62_prime239v3 OBJ_X9_62_primeCurve, 6L
enum SN_X9_62_prime256v1 = "prime256v1";
enum NID_X9_62_prime256v1 = 415;
//#define OBJ_X9_62_prime256v1 OBJ_X9_62_primeCurve, 7L
//#define OBJ_X9_62_id_ecSigType OBJ_ansi_X9_62, 4L
enum SN_ecdsa_with_SHA1 = "ecdsa-with-SHA1";
enum NID_ecdsa_with_SHA1 = 416;
//#define OBJ_ecdsa_with_SHA1 OBJ_X9_62_id_ecSigType, 1L
enum SN_ecdsa_with_Recommended = "ecdsa-with-Recommended";
enum NID_ecdsa_with_Recommended = 791;
//#define OBJ_ecdsa_with_Recommended OBJ_X9_62_id_ecSigType, 2L
enum SN_ecdsa_with_Specified = "ecdsa-with-Specified";
enum NID_ecdsa_with_Specified = 792;
//#define OBJ_ecdsa_with_Specified OBJ_X9_62_id_ecSigType, 3L
enum SN_ecdsa_with_SHA224 = "ecdsa-with-SHA224";
enum NID_ecdsa_with_SHA224 = 793;
//#define OBJ_ecdsa_with_SHA224 OBJ_ecdsa_with_Specified, 1L
enum SN_ecdsa_with_SHA256 = "ecdsa-with-SHA256";
enum NID_ecdsa_with_SHA256 = 794;
//#define OBJ_ecdsa_with_SHA256 OBJ_ecdsa_with_Specified, 2L
enum SN_ecdsa_with_SHA384 = "ecdsa-with-SHA384";
enum NID_ecdsa_with_SHA384 = 795;
//#define OBJ_ecdsa_with_SHA384 OBJ_ecdsa_with_Specified, 3L
enum SN_ecdsa_with_SHA512 = "ecdsa-with-SHA512";
enum NID_ecdsa_with_SHA512 = 796;
//#define OBJ_ecdsa_with_SHA512 OBJ_ecdsa_with_Specified, 4L
//#define OBJ_secg_ellipticCurve OBJ_certicom_arc, 0L
enum SN_secp112r1 = "secp112r1";
enum NID_secp112r1 = 704;
//#define OBJ_secp112r1 OBJ_secg_ellipticCurve, 6L
enum SN_secp112r2 = "secp112r2";
enum NID_secp112r2 = 705;
//#define OBJ_secp112r2 OBJ_secg_ellipticCurve, 7L
enum SN_secp128r1 = "secp128r1";
enum NID_secp128r1 = 706;
//#define OBJ_secp128r1 OBJ_secg_ellipticCurve, 28L
enum SN_secp128r2 = "secp128r2";
enum NID_secp128r2 = 707;
//#define OBJ_secp128r2 OBJ_secg_ellipticCurve, 29L
enum SN_secp160k1 = "secp160k1";
enum NID_secp160k1 = 708;
//#define OBJ_secp160k1 OBJ_secg_ellipticCurve, 9L
enum SN_secp160r1 = "secp160r1";
enum NID_secp160r1 = 709;
//#define OBJ_secp160r1 OBJ_secg_ellipticCurve, 8L
enum SN_secp160r2 = "secp160r2";
enum NID_secp160r2 = 710;
//#define OBJ_secp160r2 OBJ_secg_ellipticCurve, 30L
enum SN_secp192k1 = "secp192k1";
enum NID_secp192k1 = 711;
//#define OBJ_secp192k1 OBJ_secg_ellipticCurve, 31L
enum SN_secp224k1 = "secp224k1";
enum NID_secp224k1 = 712;
//#define OBJ_secp224k1 OBJ_secg_ellipticCurve, 32L
enum SN_secp224r1 = "secp224r1";
enum NID_secp224r1 = 713;
//#define OBJ_secp224r1 OBJ_secg_ellipticCurve, 33L
enum SN_secp256k1 = "secp256k1";
enum NID_secp256k1 = 714;
//#define OBJ_secp256k1 OBJ_secg_ellipticCurve, 10L
enum SN_secp384r1 = "secp384r1";
enum NID_secp384r1 = 715;
//#define OBJ_secp384r1 OBJ_secg_ellipticCurve, 34L
enum SN_secp521r1 = "secp521r1";
enum NID_secp521r1 = 716;
//#define OBJ_secp521r1 OBJ_secg_ellipticCurve, 35L
enum SN_sect113r1 = "sect113r1";
enum NID_sect113r1 = 717;
//#define OBJ_sect113r1 OBJ_secg_ellipticCurve, 4L
enum SN_sect113r2 = "sect113r2";
enum NID_sect113r2 = 718;
//#define OBJ_sect113r2 OBJ_secg_ellipticCurve, 5L
enum SN_sect131r1 = "sect131r1";
enum NID_sect131r1 = 719;
//#define OBJ_sect131r1 OBJ_secg_ellipticCurve, 22L
enum SN_sect131r2 = "sect131r2";
enum NID_sect131r2 = 720;
//#define OBJ_sect131r2 OBJ_secg_ellipticCurve, 23L
enum SN_sect163k1 = "sect163k1";
enum NID_sect163k1 = 721;
//#define OBJ_sect163k1 OBJ_secg_ellipticCurve, 1L
enum SN_sect163r1 = "sect163r1";
enum NID_sect163r1 = 722;
//#define OBJ_sect163r1 OBJ_secg_ellipticCurve, 2L
enum SN_sect163r2 = "sect163r2";
enum NID_sect163r2 = 723;
//#define OBJ_sect163r2 OBJ_secg_ellipticCurve, 15L
enum SN_sect193r1 = "sect193r1";
enum NID_sect193r1 = 724;
//#define OBJ_sect193r1 OBJ_secg_ellipticCurve, 24L
enum SN_sect193r2 = "sect193r2";
enum NID_sect193r2 = 725;
//#define OBJ_sect193r2 OBJ_secg_ellipticCurve, 25L
enum SN_sect233k1 = "sect233k1";
enum NID_sect233k1 = 726;
//#define OBJ_sect233k1 OBJ_secg_ellipticCurve, 26L
enum SN_sect233r1 = "sect233r1";
enum NID_sect233r1 = 727;
//#define OBJ_sect233r1 OBJ_secg_ellipticCurve, 27L
enum SN_sect239k1 = "sect239k1";
enum NID_sect239k1 = 728;
//#define OBJ_sect239k1 OBJ_secg_ellipticCurve, 3L
enum SN_sect283k1 = "sect283k1";
enum NID_sect283k1 = 729;
//#define OBJ_sect283k1 OBJ_secg_ellipticCurve, 16L
enum SN_sect283r1 = "sect283r1";
enum NID_sect283r1 = 730;
//#define OBJ_sect283r1 OBJ_secg_ellipticCurve, 17L
enum SN_sect409k1 = "sect409k1";
enum NID_sect409k1 = 731;
//#define OBJ_sect409k1 OBJ_secg_ellipticCurve, 36L
enum SN_sect409r1 = "sect409r1";
enum NID_sect409r1 = 732;
//#define OBJ_sect409r1 OBJ_secg_ellipticCurve, 37L
enum SN_sect571k1 = "sect571k1";
enum NID_sect571k1 = 733;
//#define OBJ_sect571k1 OBJ_secg_ellipticCurve, 38L
enum SN_sect571r1 = "sect571r1";
enum NID_sect571r1 = 734;
//#define OBJ_sect571r1 OBJ_secg_ellipticCurve, 39L
//#define OBJ_wap_wsg_idm_ecid OBJ_wap_wsg, 4L
enum SN_wap_wsg_idm_ecid_wtls1 = "wap-wsg-idm-ecid-wtls1";
enum NID_wap_wsg_idm_ecid_wtls1 = 735;
//#define OBJ_wap_wsg_idm_ecid_wtls1 OBJ_wap_wsg_idm_ecid, 1L
enum SN_wap_wsg_idm_ecid_wtls3 = "wap-wsg-idm-ecid-wtls3";
enum NID_wap_wsg_idm_ecid_wtls3 = 736;
//#define OBJ_wap_wsg_idm_ecid_wtls3 OBJ_wap_wsg_idm_ecid, 3L
enum SN_wap_wsg_idm_ecid_wtls4 = "wap-wsg-idm-ecid-wtls4";
enum NID_wap_wsg_idm_ecid_wtls4 = 737;
//#define OBJ_wap_wsg_idm_ecid_wtls4 OBJ_wap_wsg_idm_ecid, 4L
enum SN_wap_wsg_idm_ecid_wtls5 = "wap-wsg-idm-ecid-wtls5";
enum NID_wap_wsg_idm_ecid_wtls5 = 738;
//#define OBJ_wap_wsg_idm_ecid_wtls5 OBJ_wap_wsg_idm_ecid, 5L
enum SN_wap_wsg_idm_ecid_wtls6 = "wap-wsg-idm-ecid-wtls6";
enum NID_wap_wsg_idm_ecid_wtls6 = 739;
//#define OBJ_wap_wsg_idm_ecid_wtls6 OBJ_wap_wsg_idm_ecid, 6L
enum SN_wap_wsg_idm_ecid_wtls7 = "wap-wsg-idm-ecid-wtls7";
enum NID_wap_wsg_idm_ecid_wtls7 = 740;
//#define OBJ_wap_wsg_idm_ecid_wtls7 OBJ_wap_wsg_idm_ecid, 7L
enum SN_wap_wsg_idm_ecid_wtls8 = "wap-wsg-idm-ecid-wtls8";
enum NID_wap_wsg_idm_ecid_wtls8 = 741;
//#define OBJ_wap_wsg_idm_ecid_wtls8 OBJ_wap_wsg_idm_ecid, 8L
enum SN_wap_wsg_idm_ecid_wtls9 = "wap-wsg-idm-ecid-wtls9";
enum NID_wap_wsg_idm_ecid_wtls9 = 742;
//#define OBJ_wap_wsg_idm_ecid_wtls9 OBJ_wap_wsg_idm_ecid, 9L
enum SN_wap_wsg_idm_ecid_wtls10 = "wap-wsg-idm-ecid-wtls10";
enum NID_wap_wsg_idm_ecid_wtls10 = 743;
//#define OBJ_wap_wsg_idm_ecid_wtls10 OBJ_wap_wsg_idm_ecid, 10L
enum SN_wap_wsg_idm_ecid_wtls11 = "wap-wsg-idm-ecid-wtls11";
enum NID_wap_wsg_idm_ecid_wtls11 = 744;
//#define OBJ_wap_wsg_idm_ecid_wtls11 OBJ_wap_wsg_idm_ecid, 11L
enum SN_wap_wsg_idm_ecid_wtls12 = "wap-wsg-idm-ecid-wtls12";
enum NID_wap_wsg_idm_ecid_wtls12 = 745;
//#define OBJ_wap_wsg_idm_ecid_wtls12 OBJ_wap_wsg_idm_ecid, 12L
enum SN_cast5_cbc = "CAST5-CBC";
enum LN_cast5_cbc = "cast5-cbc";
enum NID_cast5_cbc = 108;
//#define OBJ_cast5_cbc OBJ_ISO_US, 113533L, 7L, 66L, 10L
enum SN_cast5_ecb = "CAST5-ECB";
enum LN_cast5_ecb = "cast5-ecb";
enum NID_cast5_ecb = 109;
enum SN_cast5_cfb64 = "CAST5-CFB";
enum LN_cast5_cfb64 = "cast5-cfb";
enum NID_cast5_cfb64 = 110;
enum SN_cast5_ofb64 = "CAST5-OFB";
enum LN_cast5_ofb64 = "cast5-ofb";
enum NID_cast5_ofb64 = 111;
enum LN_pbeWithMD5AndCast5_CBC = "pbeWithMD5AndCast5CBC";
enum NID_pbeWithMD5AndCast5_CBC = 112;
//#define OBJ_pbeWithMD5AndCast5_CBC OBJ_ISO_US, 113533L, 7L, 66L, 12L
enum SN_id_PasswordBasedMAC = "id-PasswordBasedMAC";
enum LN_id_PasswordBasedMAC = "password based MAC";
enum NID_id_PasswordBasedMAC = 782;
//#define OBJ_id_PasswordBasedMAC OBJ_ISO_US, 113533L, 7L, 66L, 13L
enum SN_id_DHBasedMac = "id-DHBasedMac";
enum LN_id_DHBasedMac = "Diffie-Hellman based MAC";
enum NID_id_DHBasedMac = 783;
//#define OBJ_id_DHBasedMac OBJ_ISO_US, 113533L, 7L, 66L, 30L
enum SN_rsadsi = "rsadsi";
enum LN_rsadsi = "RSA Data Security, Inc.";
enum NID_rsadsi = 1;
//#define OBJ_rsadsi OBJ_ISO_US, 113549L
enum SN_pkcs = "pkcs";
enum LN_pkcs = "RSA Data Security, Inc. PKCS";
enum NID_pkcs = 2;
//#define OBJ_pkcs OBJ_rsadsi, 1L
enum SN_pkcs1 = "pkcs1";
enum NID_pkcs1 = 186;
//#define OBJ_pkcs1 .OBJ_pkcs, 1L
enum LN_rsaEncryption = "rsaEncryption";
enum NID_rsaEncryption = 6;
//#define OBJ_rsaEncryption OBJ_pkcs1, 1L
enum SN_md2WithRSAEncryption = "RSA-MD2";
enum LN_md2WithRSAEncryption = "md2WithRSAEncryption";
enum NID_md2WithRSAEncryption = 7;
//#define OBJ_md2WithRSAEncryption OBJ_pkcs1, 2L
enum SN_md4WithRSAEncryption = "RSA-MD4";
enum LN_md4WithRSAEncryption = "md4WithRSAEncryption";
enum NID_md4WithRSAEncryption = 396;
//#define OBJ_md4WithRSAEncryption OBJ_pkcs1, 3L
enum SN_md5WithRSAEncryption = "RSA-MD5";
enum LN_md5WithRSAEncryption = "md5WithRSAEncryption";
enum NID_md5WithRSAEncryption = 8;
//#define OBJ_md5WithRSAEncryption OBJ_pkcs1, 4L
enum SN_sha1WithRSAEncryption = "RSA-SHA1";
enum LN_sha1WithRSAEncryption = "sha1WithRSAEncryption";
enum NID_sha1WithRSAEncryption = 65;
//#define OBJ_sha1WithRSAEncryption OBJ_pkcs1, 5L
enum SN_rsaesOaep = "RSAES-OAEP";
enum LN_rsaesOaep = "rsaesOaep";
enum NID_rsaesOaep = 919;
//#define OBJ_rsaesOaep OBJ_pkcs1, 7L
enum SN_mgf1 = "MGF1";
enum LN_mgf1 = "mgf1";
enum NID_mgf1 = 911;
//#define OBJ_mgf1 OBJ_pkcs1, 8L
enum SN_pSpecified = "PSPECIFIED";
enum LN_pSpecified = "pSpecified";
enum NID_pSpecified = 992;
//enum OBJ_pSpecified OBJ_pkcs1, 9L;
enum SN_rsassaPss = "RSASSA-PSS";
enum LN_rsassaPss = "rsassaPss";
enum NID_rsassaPss = 912;
//#define OBJ_rsassaPss OBJ_pkcs1, 10L
enum SN_sha256WithRSAEncryption = "RSA-SHA256";
enum LN_sha256WithRSAEncryption = "sha256WithRSAEncryption";
enum NID_sha256WithRSAEncryption = 668;
//#define OBJ_sha256WithRSAEncryption OBJ_pkcs1, 11L
enum SN_sha384WithRSAEncryption = "RSA-SHA384";
enum LN_sha384WithRSAEncryption = "sha384WithRSAEncryption";
enum NID_sha384WithRSAEncryption = 669;
//#define OBJ_sha384WithRSAEncryption OBJ_pkcs1, 12L
enum SN_sha512WithRSAEncryption = "RSA-SHA512";
enum LN_sha512WithRSAEncryption = "sha512WithRSAEncryption";
enum NID_sha512WithRSAEncryption = 670;
//#define OBJ_sha512WithRSAEncryption OBJ_pkcs1, 13L
enum SN_sha224WithRSAEncryption = "RSA-SHA224";
enum LN_sha224WithRSAEncryption = "sha224WithRSAEncryption";
enum NID_sha224WithRSAEncryption = 671;
//#define OBJ_sha224WithRSAEncryption OBJ_pkcs1, 14L
enum SN_pkcs3 = "pkcs3";
enum NID_pkcs3 = 27;
//#define OBJ_pkcs3 .OBJ_pkcs, 3L
enum LN_dhKeyAgreement = "dhKeyAgreement";
enum NID_dhKeyAgreement = 28;
//#define OBJ_dhKeyAgreement .OBJ_pkcs3, 1L
enum SN_pkcs5 = "pkcs5";
enum NID_pkcs5 = 187;
//#define OBJ_pkcs5 .OBJ_pkcs, 5L
enum SN_pbeWithMD2AndDES_CBC = "PBE-MD2-DES";
enum LN_pbeWithMD2AndDES_CBC = "pbeWithMD2AndDES-CBC";
enum NID_pbeWithMD2AndDES_CBC = 9;
//#define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs5, 1L
enum SN_pbeWithMD5AndDES_CBC = "PBE-MD5-DES";
enum LN_pbeWithMD5AndDES_CBC = "pbeWithMD5AndDES-CBC";
enum NID_pbeWithMD5AndDES_CBC = 10;
//#define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs5, 3L
enum SN_pbeWithMD2AndRC2_CBC = "PBE-MD2-RC2-64";
enum LN_pbeWithMD2AndRC2_CBC = "pbeWithMD2AndRC2-CBC";
enum NID_pbeWithMD2AndRC2_CBC = 168;
//#define OBJ_pbeWithMD2AndRC2_CBC OBJ_pkcs5, 4L
enum SN_pbeWithMD5AndRC2_CBC = "PBE-MD5-RC2-64";
enum LN_pbeWithMD5AndRC2_CBC = "pbeWithMD5AndRC2-CBC";
enum NID_pbeWithMD5AndRC2_CBC = 169;
//#define OBJ_pbeWithMD5AndRC2_CBC OBJ_pkcs5, 6L
enum SN_pbeWithSHA1AndDES_CBC = "PBE-SHA1-DES";
enum LN_pbeWithSHA1AndDES_CBC = "pbeWithSHA1AndDES-CBC";
enum NID_pbeWithSHA1AndDES_CBC = 170;
//#define OBJ_pbeWithSHA1AndDES_CBC OBJ_pkcs5, 10L
enum SN_pbeWithSHA1AndRC2_CBC = "PBE-SHA1-RC2-64";
enum LN_pbeWithSHA1AndRC2_CBC = "pbeWithSHA1AndRC2-CBC";
enum NID_pbeWithSHA1AndRC2_CBC = 68;
//#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs5, 11L
enum LN_id_pbkdf2 = "PBKDF2";
enum NID_id_pbkdf2 = 69;
//#define OBJ_id_pbkdf2 OBJ_pkcs5, 12L
enum LN_pbes2 = "PBES2";
enum NID_pbes2 = 161;
//#define OBJ_pbes2 OBJ_pkcs5, 13L
enum LN_pbmac1 = "PBMAC1";
enum NID_pbmac1 = 162;
//#define OBJ_pbmac1 OBJ_pkcs5, 14L
enum SN_pkcs7 = "pkcs7";
enum NID_pkcs7 = 20;
//#define OBJ_pkcs7 .OBJ_pkcs, 7L
enum LN_pkcs7_data = "pkcs7-data";
enum NID_pkcs7_data = 21;
//#define OBJ_pkcs7_data .OBJ_pkcs7, 1L
enum LN_pkcs7_signed = "pkcs7-signedData";
enum NID_pkcs7_signed = 22;
//#define OBJ_pkcs7_signed .OBJ_pkcs7, 2L
enum LN_pkcs7_enveloped = "pkcs7-envelopedData";
enum NID_pkcs7_enveloped = 23;
//#define OBJ_pkcs7_enveloped .OBJ_pkcs7, 3L
enum LN_pkcs7_signedAndEnveloped = "pkcs7-signedAndEnvelopedData";
enum NID_pkcs7_signedAndEnveloped = 24;
//#define OBJ_pkcs7_signedAndEnveloped .OBJ_pkcs7, 4L
enum LN_pkcs7_digest = "pkcs7-digestData";
enum NID_pkcs7_digest = 25;
//#define OBJ_pkcs7_digest .OBJ_pkcs7, 5L
enum LN_pkcs7_encrypted = "pkcs7-encryptedData";
enum NID_pkcs7_encrypted = 26;
//#define OBJ_pkcs7_encrypted .OBJ_pkcs7, 6L
enum SN_pkcs9 = "pkcs9";
enum NID_pkcs9 = 47;
//#define OBJ_pkcs9 .OBJ_pkcs, 9L
enum LN_pkcs9_emailAddress = "emailAddress";
enum NID_pkcs9_emailAddress = 48;
//#define OBJ_pkcs9_emailAddress .OBJ_pkcs9, 1L
enum LN_pkcs9_unstructuredName = "unstructuredName";
enum NID_pkcs9_unstructuredName = 49;
//#define OBJ_pkcs9_unstructuredName .OBJ_pkcs9, 2L
enum LN_pkcs9_contentType = "contentType";
enum NID_pkcs9_contentType = 50;
//#define OBJ_pkcs9_contentType .OBJ_pkcs9, 3L
enum LN_pkcs9_messageDigest = "messageDigest";
enum NID_pkcs9_messageDigest = 51;
//#define OBJ_pkcs9_messageDigest .OBJ_pkcs9, 4L
enum LN_pkcs9_signingTime = "signingTime";
enum NID_pkcs9_signingTime = 52;
//#define OBJ_pkcs9_signingTime .OBJ_pkcs9, 5L
enum LN_pkcs9_countersignature = "countersignature";
enum NID_pkcs9_countersignature = 53;
//#define OBJ_pkcs9_countersignature .OBJ_pkcs9, 6L
enum LN_pkcs9_challengePassword = "challengePassword";
enum NID_pkcs9_challengePassword = 54;
//#define OBJ_pkcs9_challengePassword .OBJ_pkcs9, 7L
enum LN_pkcs9_unstructuredAddress = "unstructuredAddress";
enum NID_pkcs9_unstructuredAddress = 55;
//#define OBJ_pkcs9_unstructuredAddress .OBJ_pkcs9, 8L
enum LN_pkcs9_extCertAttributes = "extendedCertificateAttributes";
enum NID_pkcs9_extCertAttributes = 56;
//#define OBJ_pkcs9_extCertAttributes .OBJ_pkcs9, 9L
enum SN_ext_req = "extReq";
enum LN_ext_req = "Extension Request";
enum NID_ext_req = 172;
//#define OBJ_ext_req .OBJ_pkcs9, 14L
enum SN_SMIMECapabilities = "SMIME-CAPS";
enum LN_SMIMECapabilities = "S/MIME Capabilities";
enum NID_SMIMECapabilities = 167;
//#define OBJ_SMIMECapabilities .OBJ_pkcs9, 15L
enum SN_SMIME = "SMIME";
enum LN_SMIME = "S/MIME";
enum NID_SMIME = 188;
//#define OBJ_SMIME .OBJ_pkcs9, 16L
enum SN_id_smime_mod = "id-smime-mod";
enum NID_id_smime_mod = 189;
//#define OBJ_id_smime_mod OBJ_SMIME, 0L
enum SN_id_smime_ct = "id-smime-ct";
enum NID_id_smime_ct = 190;
//#define OBJ_id_smime_ct OBJ_SMIME, 1L
enum SN_id_smime_aa = "id-smime-aa";
enum NID_id_smime_aa = 191;
//#define OBJ_id_smime_aa OBJ_SMIME, 2L
enum SN_id_smime_alg = "id-smime-alg";
enum NID_id_smime_alg = 192;
//#define OBJ_id_smime_alg OBJ_SMIME, 3L
enum SN_id_smime_cd = "id-smime-cd";
enum NID_id_smime_cd = 193;
//#define OBJ_id_smime_cd OBJ_SMIME, 4L
enum SN_id_smime_spq = "id-smime-spq";
enum NID_id_smime_spq = 194;
//#define OBJ_id_smime_spq OBJ_SMIME, 5L
enum SN_id_smime_cti = "id-smime-cti";
enum NID_id_smime_cti = 195;
//#define OBJ_id_smime_cti OBJ_SMIME, 6L
enum SN_id_smime_mod_cms = "id-smime-mod-cms";
enum NID_id_smime_mod_cms = 196;
//#define OBJ_id_smime_mod_cms OBJ_id_smime_mod, 1L
enum SN_id_smime_mod_ess = "id-smime-mod-ess";
enum NID_id_smime_mod_ess = 197;
//#define OBJ_id_smime_mod_ess OBJ_id_smime_mod, 2L
enum SN_id_smime_mod_oid = "id-smime-mod-oid";
enum NID_id_smime_mod_oid = 198;
//#define OBJ_id_smime_mod_oid OBJ_id_smime_mod, 3L
enum SN_id_smime_mod_msg_v3 = "id-smime-mod-msg-v3";
enum NID_id_smime_mod_msg_v3 = 199;
//#define OBJ_id_smime_mod_msg_v3 OBJ_id_smime_mod, 4L
enum SN_id_smime_mod_ets_eSignature_88 = "id-smime-mod-ets-eSignature-88";
enum NID_id_smime_mod_ets_eSignature_88 = 200;
//#define OBJ_id_smime_mod_ets_eSignature_88 OBJ_id_smime_mod, 5L
enum SN_id_smime_mod_ets_eSignature_97 = "id-smime-mod-ets-eSignature-97";
enum NID_id_smime_mod_ets_eSignature_97 = 201;
//#define OBJ_id_smime_mod_ets_eSignature_97 OBJ_id_smime_mod, 6L
enum SN_id_smime_mod_ets_eSigPolicy_88 = "id-smime-mod-ets-eSigPolicy-88";
enum NID_id_smime_mod_ets_eSigPolicy_88 = 202;
//#define OBJ_id_smime_mod_ets_eSigPolicy_88 OBJ_id_smime_mod, 7L
enum SN_id_smime_mod_ets_eSigPolicy_97 = "id-smime-mod-ets-eSigPolicy-97";
enum NID_id_smime_mod_ets_eSigPolicy_97 = 203;
//#define OBJ_id_smime_mod_ets_eSigPolicy_97 OBJ_id_smime_mod, 8L
enum SN_id_smime_ct_receipt = "id-smime-ct-receipt";
enum NID_id_smime_ct_receipt = 204;
//#define OBJ_id_smime_ct_receipt OBJ_id_smime_ct, 1L
enum SN_id_smime_ct_authData = "id-smime-ct-authData";
enum NID_id_smime_ct_authData = 205;
//#define OBJ_id_smime_ct_authData OBJ_id_smime_ct, 2L
enum SN_id_smime_ct_publishCert = "id-smime-ct-publishCert";
enum NID_id_smime_ct_publishCert = 206;
//#define OBJ_id_smime_ct_publishCert OBJ_id_smime_ct, 3L
enum SN_id_smime_ct_TSTInfo = "id-smime-ct-TSTInfo";
enum NID_id_smime_ct_TSTInfo = 207;
//#define OBJ_id_smime_ct_TSTInfo OBJ_id_smime_ct, 4L
enum SN_id_smime_ct_TDTInfo = "id-smime-ct-TDTInfo";
enum NID_id_smime_ct_TDTInfo = 208;
//#define OBJ_id_smime_ct_TDTInfo OBJ_id_smime_ct, 5L
enum SN_id_smime_ct_contentInfo = "id-smime-ct-contentInfo";
enum NID_id_smime_ct_contentInfo = 209;
//#define OBJ_id_smime_ct_contentInfo OBJ_id_smime_ct, 6L
enum SN_id_smime_ct_DVCSRequestData = "id-smime-ct-DVCSRequestData";
enum NID_id_smime_ct_DVCSRequestData = 210;
//#define OBJ_id_smime_ct_DVCSRequestData OBJ_id_smime_ct, 7L
enum SN_id_smime_ct_DVCSResponseData = "id-smime-ct-DVCSResponseData";
enum NID_id_smime_ct_DVCSResponseData = 211;
//#define OBJ_id_smime_ct_DVCSResponseData OBJ_id_smime_ct, 8L
enum SN_id_smime_ct_compressedData = "id-smime-ct-compressedData";
enum NID_id_smime_ct_compressedData = 786;
//#define OBJ_id_smime_ct_compressedData OBJ_id_smime_ct, 9L
enum SN_id_ct_routeOriginAuthz = "id-ct-routeOriginAuthz";
enum NID_id_ct_routeOriginAuthz = 1001;
//#define OBJ_id_ct_routeOriginAuthz OBJ_id_smime_ct, 24L
enum SN_id_ct_rpkiManifest = "id-ct-rpkiManifest";
enum NID_id_ct_rpkiManifest = 1002;
//#define OBJ_id_ct_rpkiManifest OBJ_id_smime_ct, 26L
enum SN_id_ct_asciiTextWithCRLF = "id-ct-asciiTextWithCRLF";
enum NID_id_ct_asciiTextWithCRLF = 787;
//#define OBJ_id_ct_asciiTextWithCRLF OBJ_id_smime_ct, 27L
enum SN_id_ct_rpkiGhostbusters = "id-ct-rpkiGhostbusters";
enum NID_id_ct_rpkiGhostbusters = 1003;
//#define OBJ_id_ct_rpkiGhostbusters OBJ_id_smime_ct, 35L
enum SN_id_ct_resourceTaggedAttest = "id-ct-resourceTaggedAttest";
enum NID_id_ct_resourceTaggedAttest = 1004;
//#define OBJ_id_ct_resourceTaggedAttest OBJ_id_smime_ct, 36L
enum SN_id_ct_geofeedCSVwithCRLF = "id-ct-geofeedCSVwithCRLF";
enum NID_id_ct_geofeedCSVwithCRLF = 1013;
//#define OBJ_id_ct_geofeedCSVwithCRLF OBJ_id_smime_ct, 47L
enum SN_id_ct_signedChecklist = "id-ct-signedChecklist";
enum NID_id_ct_signedChecklist = 1014;
//#define OBJ_id_ct_signedChecklist OBJ_id_smime_ct, 48L
enum SN_id_ct_ASPA = "id-ct-ASPA";
enum NID_id_ct_ASPA = 1017;
//#define OBJ_id_ct_ASPA OBJ_id_smime_ct, 49L
enum SN_id_ct_signedTAL = "id-ct-signedTAL";
enum NID_id_ct_signedTAL = 1024;
//#define OBJ_id_ct_signedTAL OBJ_id_smime_ct, 50L
enum SN_id_smime_aa_receiptRequest = "id-smime-aa-receiptRequest";
enum NID_id_smime_aa_receiptRequest = 212;
//#define OBJ_id_smime_aa_receiptRequest OBJ_id_smime_aa, 1L
enum SN_id_smime_aa_securityLabel = "id-smime-aa-securityLabel";
enum NID_id_smime_aa_securityLabel = 213;
//#define OBJ_id_smime_aa_securityLabel OBJ_id_smime_aa, 2L
enum SN_id_smime_aa_mlExpandHistory = "id-smime-aa-mlExpandHistory";
enum NID_id_smime_aa_mlExpandHistory = 214;
//#define OBJ_id_smime_aa_mlExpandHistory OBJ_id_smime_aa, 3L
enum SN_id_smime_aa_contentHint = "id-smime-aa-contentHint";
enum NID_id_smime_aa_contentHint = 215;
//#define OBJ_id_smime_aa_contentHint OBJ_id_smime_aa, 4L
enum SN_id_smime_aa_msgSigDigest = "id-smime-aa-msgSigDigest";
enum NID_id_smime_aa_msgSigDigest = 216;
//#define OBJ_id_smime_aa_msgSigDigest OBJ_id_smime_aa, 5L
enum SN_id_smime_aa_encapContentType = "id-smime-aa-encapContentType";
enum NID_id_smime_aa_encapContentType = 217;
//#define OBJ_id_smime_aa_encapContentType OBJ_id_smime_aa, 6L
enum SN_id_smime_aa_contentIdentifier = "id-smime-aa-contentIdentifier";
enum NID_id_smime_aa_contentIdentifier = 218;
//#define OBJ_id_smime_aa_contentIdentifier OBJ_id_smime_aa, 7L
enum SN_id_smime_aa_macValue = "id-smime-aa-macValue";
enum NID_id_smime_aa_macValue = 219;
//#define OBJ_id_smime_aa_macValue OBJ_id_smime_aa, 8L
enum SN_id_smime_aa_equivalentLabels = "id-smime-aa-equivalentLabels";
enum NID_id_smime_aa_equivalentLabels = 220;
//#define OBJ_id_smime_aa_equivalentLabels OBJ_id_smime_aa, 9L
enum SN_id_smime_aa_contentReference = "id-smime-aa-contentReference";
enum NID_id_smime_aa_contentReference = 221;
//#define OBJ_id_smime_aa_contentReference OBJ_id_smime_aa, 10L
enum SN_id_smime_aa_encrypKeyPref = "id-smime-aa-encrypKeyPref";
enum NID_id_smime_aa_encrypKeyPref = 222;
//#define OBJ_id_smime_aa_encrypKeyPref OBJ_id_smime_aa, 11L
enum SN_id_smime_aa_signingCertificate = "id-smime-aa-signingCertificate";
enum NID_id_smime_aa_signingCertificate = 223;
//#define OBJ_id_smime_aa_signingCertificate OBJ_id_smime_aa, 12L
enum SN_id_smime_aa_smimeEncryptCerts = "id-smime-aa-smimeEncryptCerts";
enum NID_id_smime_aa_smimeEncryptCerts = 224;
//#define OBJ_id_smime_aa_smimeEncryptCerts OBJ_id_smime_aa, 13L
enum SN_id_smime_aa_timeStampToken = "id-smime-aa-timeStampToken";
enum NID_id_smime_aa_timeStampToken = 225;
//#define OBJ_id_smime_aa_timeStampToken OBJ_id_smime_aa, 14L
enum SN_id_smime_aa_ets_sigPolicyId = "id-smime-aa-ets-sigPolicyId";
enum NID_id_smime_aa_ets_sigPolicyId = 226;
//#define OBJ_id_smime_aa_ets_sigPolicyId OBJ_id_smime_aa, 15L
enum SN_id_smime_aa_ets_commitmentType = "id-smime-aa-ets-commitmentType";
enum NID_id_smime_aa_ets_commitmentType = 227;
//#define OBJ_id_smime_aa_ets_commitmentType OBJ_id_smime_aa, 16L
enum SN_id_smime_aa_ets_signerLocation = "id-smime-aa-ets-signerLocation";
enum NID_id_smime_aa_ets_signerLocation = 228;
//#define OBJ_id_smime_aa_ets_signerLocation OBJ_id_smime_aa, 17L
enum SN_id_smime_aa_ets_signerAttr = "id-smime-aa-ets-signerAttr";
enum NID_id_smime_aa_ets_signerAttr = 229;
//#define OBJ_id_smime_aa_ets_signerAttr OBJ_id_smime_aa, 18L
enum SN_id_smime_aa_ets_otherSigCert = "id-smime-aa-ets-otherSigCert";
enum NID_id_smime_aa_ets_otherSigCert = 230;
//#define OBJ_id_smime_aa_ets_otherSigCert OBJ_id_smime_aa, 19L
enum SN_id_smime_aa_ets_contentTimestamp = "id-smime-aa-ets-contentTimestamp";
enum NID_id_smime_aa_ets_contentTimestamp = 231;
//#define OBJ_id_smime_aa_ets_contentTimestamp OBJ_id_smime_aa, 20L
enum SN_id_smime_aa_ets_CertificateRefs = "id-smime-aa-ets-CertificateRefs";
enum NID_id_smime_aa_ets_CertificateRefs = 232;
//#define OBJ_id_smime_aa_ets_CertificateRefs OBJ_id_smime_aa, 21L
enum SN_id_smime_aa_ets_RevocationRefs = "id-smime-aa-ets-RevocationRefs";
enum NID_id_smime_aa_ets_RevocationRefs = 233;
//#define OBJ_id_smime_aa_ets_RevocationRefs OBJ_id_smime_aa, 22L
enum SN_id_smime_aa_ets_certValues = "id-smime-aa-ets-certValues";
enum NID_id_smime_aa_ets_certValues = 234;
//#define OBJ_id_smime_aa_ets_certValues OBJ_id_smime_aa, 23L
enum SN_id_smime_aa_ets_revocationValues = "id-smime-aa-ets-revocationValues";
enum NID_id_smime_aa_ets_revocationValues = 235;
//#define OBJ_id_smime_aa_ets_revocationValues OBJ_id_smime_aa, 24L
enum SN_id_smime_aa_ets_escTimeStamp = "id-smime-aa-ets-escTimeStamp";
enum NID_id_smime_aa_ets_escTimeStamp = 236;
//#define OBJ_id_smime_aa_ets_escTimeStamp OBJ_id_smime_aa, 25L
enum SN_id_smime_aa_ets_certCRLTimestamp = "id-smime-aa-ets-certCRLTimestamp";
enum NID_id_smime_aa_ets_certCRLTimestamp = 237;
//#define OBJ_id_smime_aa_ets_certCRLTimestamp OBJ_id_smime_aa, 26L
enum SN_id_smime_aa_ets_archiveTimeStamp = "id-smime-aa-ets-archiveTimeStamp";
enum NID_id_smime_aa_ets_archiveTimeStamp = 238;
//#define OBJ_id_smime_aa_ets_archiveTimeStamp OBJ_id_smime_aa, 27L
enum SN_id_smime_aa_signatureType = "id-smime-aa-signatureType";
enum NID_id_smime_aa_signatureType = 239;
//#define OBJ_id_smime_aa_signatureType OBJ_id_smime_aa, 28L
enum SN_id_smime_aa_dvcs_dvc = "id-smime-aa-dvcs-dvc";
enum NID_id_smime_aa_dvcs_dvc = 240;
//#define OBJ_id_smime_aa_dvcs_dvc OBJ_id_smime_aa, 29L
enum SN_id_smime_aa_signingCertificateV2 = "id-smime-aa-signingCertificateV2";
enum NID_id_smime_aa_signingCertificateV2 = 1023;
//#define OBJ_id_smime_aa_signingCertificateV2 OBJ_id_smime_aa, 47L
enum SN_id_smime_alg_ESDHwith3DES = "id-smime-alg-ESDHwith3DES";
enum NID_id_smime_alg_ESDHwith3DES = 241;
//#define OBJ_id_smime_alg_ESDHwith3DES OBJ_id_smime_alg, 1L
enum SN_id_smime_alg_ESDHwithRC2 = "id-smime-alg-ESDHwithRC2";
enum NID_id_smime_alg_ESDHwithRC2 = 242;
//#define OBJ_id_smime_alg_ESDHwithRC2 OBJ_id_smime_alg, 2L
enum SN_id_smime_alg_3DESwrap = "id-smime-alg-3DESwrap";
enum NID_id_smime_alg_3DESwrap = 243;
//#define OBJ_id_smime_alg_3DESwrap OBJ_id_smime_alg, 3L
enum SN_id_smime_alg_RC2wrap = "id-smime-alg-RC2wrap";
enum NID_id_smime_alg_RC2wrap = 244;
//#define OBJ_id_smime_alg_RC2wrap OBJ_id_smime_alg, 4L
enum SN_id_smime_alg_ESDH = "id-smime-alg-ESDH";
enum NID_id_smime_alg_ESDH = 245;
//#define OBJ_id_smime_alg_ESDH OBJ_id_smime_alg, 5L
enum SN_id_smime_alg_CMS3DESwrap = "id-smime-alg-CMS3DESwrap";
enum NID_id_smime_alg_CMS3DESwrap = 246;
//#define OBJ_id_smime_alg_CMS3DESwrap OBJ_id_smime_alg, 6L
enum SN_id_smime_alg_CMSRC2wrap = "id-smime-alg-CMSRC2wrap";
enum NID_id_smime_alg_CMSRC2wrap = 247;
//#define OBJ_id_smime_alg_CMSRC2wrap OBJ_id_smime_alg, 7L
enum SN_id_alg_PWRI_KEK = "id-alg-PWRI-KEK";
enum NID_id_alg_PWRI_KEK = 893;
//#define OBJ_id_alg_PWRI_KEK OBJ_id_smime_alg, 9L
enum SN_id_smime_cd_ldap = "id-smime-cd-ldap";
enum NID_id_smime_cd_ldap = 248;
//#define OBJ_id_smime_cd_ldap OBJ_id_smime_cd, 1L
enum SN_id_smime_spq_ets_sqt_uri = "id-smime-spq-ets-sqt-uri";
enum NID_id_smime_spq_ets_sqt_uri = 249;
//#define OBJ_id_smime_spq_ets_sqt_uri OBJ_id_smime_spq, 1L
enum SN_id_smime_spq_ets_sqt_unotice = "id-smime-spq-ets-sqt-unotice";
enum NID_id_smime_spq_ets_sqt_unotice = 250;
//#define OBJ_id_smime_spq_ets_sqt_unotice OBJ_id_smime_spq, 2L
enum SN_id_smime_cti_ets_proofOfOrigin = "id-smime-cti-ets-proofOfOrigin";
enum NID_id_smime_cti_ets_proofOfOrigin = 251;
//#define OBJ_id_smime_cti_ets_proofOfOrigin OBJ_id_smime_cti, 1L
enum SN_id_smime_cti_ets_proofOfReceipt = "id-smime-cti-ets-proofOfReceipt";
enum NID_id_smime_cti_ets_proofOfReceipt = 252;
//#define OBJ_id_smime_cti_ets_proofOfReceipt OBJ_id_smime_cti, 2L
enum SN_id_smime_cti_ets_proofOfDelivery = "id-smime-cti-ets-proofOfDelivery";
enum NID_id_smime_cti_ets_proofOfDelivery = 253;
//#define OBJ_id_smime_cti_ets_proofOfDelivery OBJ_id_smime_cti, 3L
enum SN_id_smime_cti_ets_proofOfSender = "id-smime-cti-ets-proofOfSender";
enum NID_id_smime_cti_ets_proofOfSender = 254;
//#define OBJ_id_smime_cti_ets_proofOfSender OBJ_id_smime_cti, 4L
enum SN_id_smime_cti_ets_proofOfApproval = "id-smime-cti-ets-proofOfApproval";
enum NID_id_smime_cti_ets_proofOfApproval = 255;
//#define OBJ_id_smime_cti_ets_proofOfApproval OBJ_id_smime_cti, 5L
enum SN_id_smime_cti_ets_proofOfCreation = "id-smime-cti-ets-proofOfCreation";
enum NID_id_smime_cti_ets_proofOfCreation = 256;
//#define OBJ_id_smime_cti_ets_proofOfCreation OBJ_id_smime_cti, 6L
enum LN_friendlyName = "friendlyName";
enum NID_friendlyName = 156;
//#define OBJ_friendlyName .OBJ_pkcs9, 20L
enum LN_localKeyID = "localKeyID";
enum NID_localKeyID = 157;
//#define OBJ_localKeyID .OBJ_pkcs9, 21L
enum SN_ms_csp_name = "CSPName";
enum LN_ms_csp_name = "Microsoft CSP Name";
enum NID_ms_csp_name = 417;
//#define OBJ_ms_csp_name 1L, 3L, 6L, 1L, 4L, 1L, 311L, 17L, 1L
enum SN_LocalKeySet = "LocalKeySet";
enum LN_LocalKeySet = "Microsoft Local Key set";
enum NID_LocalKeySet = 856;
//#define OBJ_LocalKeySet 1L, 3L, 6L, 1L, 4L, 1L, 311L, 17L, 2L
//#define OBJ_certTypes .OBJ_pkcs9, 22L
enum LN_x509Certificate = "x509Certificate";
enum NID_x509Certificate = 158;
//#define OBJ_x509Certificate .OBJ_certTypes, 1L
enum LN_sdsiCertificate = "sdsiCertificate";
enum NID_sdsiCertificate = 159;
//#define OBJ_sdsiCertificate .OBJ_certTypes, 2L
//#define OBJ_crlTypes .OBJ_pkcs9, 23L
enum LN_x509Crl = "x509Crl";
enum NID_x509Crl = 160;
//#define OBJ_x509Crl .OBJ_crlTypes, 1L
//#define OBJ_pkcs12 .OBJ_pkcs, 12L
//#define OBJ_pkcs12_pbeids .OBJ_pkcs12, 1L
enum SN_pbe_WithSHA1And128BitRC4 = "PBE-SHA1-RC4-128";
enum LN_pbe_WithSHA1And128BitRC4 = "pbeWithSHA1And128BitRC4";
enum NID_pbe_WithSHA1And128BitRC4 = 144;
//#define OBJ_pbe_WithSHA1And128BitRC4 .OBJ_pkcs12_pbeids, 1L
enum SN_pbe_WithSHA1And40BitRC4 = "PBE-SHA1-RC4-40";
enum LN_pbe_WithSHA1And40BitRC4 = "pbeWithSHA1And40BitRC4";
enum NID_pbe_WithSHA1And40BitRC4 = 145;
//#define OBJ_pbe_WithSHA1And40BitRC4 .OBJ_pkcs12_pbeids, 2L
enum SN_pbe_WithSHA1And3_Key_TripleDES_CBC = "PBE-SHA1-3DES";
enum LN_pbe_WithSHA1And3_Key_TripleDES_CBC = "pbeWithSHA1And3-KeyTripleDES-CBC";
enum NID_pbe_WithSHA1And3_Key_TripleDES_CBC = 146;
//#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC .OBJ_pkcs12_pbeids, 3L
enum SN_pbe_WithSHA1And2_Key_TripleDES_CBC = "PBE-SHA1-2DES";
enum LN_pbe_WithSHA1And2_Key_TripleDES_CBC = "pbeWithSHA1And2-KeyTripleDES-CBC";
enum NID_pbe_WithSHA1And2_Key_TripleDES_CBC = 147;
//#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC .OBJ_pkcs12_pbeids, 4L
enum SN_pbe_WithSHA1And128BitRC2_CBC = "PBE-SHA1-RC2-128";
enum LN_pbe_WithSHA1And128BitRC2_CBC = "pbeWithSHA1And128BitRC2-CBC";
enum NID_pbe_WithSHA1And128BitRC2_CBC = 148;
//#define OBJ_pbe_WithSHA1And128BitRC2_CBC .OBJ_pkcs12_pbeids, 5L
enum SN_pbe_WithSHA1And40BitRC2_CBC = "PBE-SHA1-RC2-40";
enum LN_pbe_WithSHA1And40BitRC2_CBC = "pbeWithSHA1And40BitRC2-CBC";
enum NID_pbe_WithSHA1And40BitRC2_CBC = 149;
//#define OBJ_pbe_WithSHA1And40BitRC2_CBC .OBJ_pkcs12_pbeids, 6L
//#define OBJ_pkcs12_Version1 .OBJ_pkcs12, 10L
//#define OBJ_pkcs12_BagIds .OBJ_pkcs12_Version1, 1L
enum LN_keyBag = "keyBag";
enum NID_keyBag = 150;
//#define OBJ_keyBag .OBJ_pkcs12_BagIds, 1L
enum LN_pkcs8ShroudedKeyBag = "pkcs8ShroudedKeyBag";
enum NID_pkcs8ShroudedKeyBag = 151;
//#define OBJ_pkcs8ShroudedKeyBag .OBJ_pkcs12_BagIds, 2L
enum LN_certBag = "certBag";
enum NID_certBag = 152;
//#define OBJ_certBag .OBJ_pkcs12_BagIds, 3L
enum LN_crlBag = "crlBag";
enum NID_crlBag = 153;
//#define OBJ_crlBag .OBJ_pkcs12_BagIds, 4L
enum LN_secretBag = "secretBag";
enum NID_secretBag = 154;
//#define OBJ_secretBag .OBJ_pkcs12_BagIds, 5L
enum LN_safeContentsBag = "safeContentsBag";
enum NID_safeContentsBag = 155;
//#define OBJ_safeContentsBag .OBJ_pkcs12_BagIds, 6L
enum SN_md2 = "MD2";
enum LN_md2 = "md2";
enum NID_md2 = 3;
//#define OBJ_md2 .OBJ_rsadsi, 2L, 2L
enum SN_md4 = "MD4";
enum LN_md4 = "md4";
enum NID_md4 = 257;
//#define OBJ_md4 .OBJ_rsadsi, 2L, 4L
enum SN_md5 = "MD5";
enum LN_md5 = "md5";
enum NID_md5 = 4;
//#define OBJ_md5 .OBJ_rsadsi, 2L, 5L
enum SN_md5_sha1 = "MD5-SHA1";
enum LN_md5_sha1 = "md5-sha1";
enum NID_md5_sha1 = 114;
enum LN_hmacWithMD5 = "hmacWithMD5";
enum NID_hmacWithMD5 = 797;
//#define OBJ_hmacWithMD5 .OBJ_rsadsi, 2L, 6L
enum LN_hmacWithSHA1 = "hmacWithSHA1";
enum NID_hmacWithSHA1 = 163;
//#define OBJ_hmacWithSHA1 .OBJ_rsadsi, 2L, 7L
enum LN_hmacWithSHA224 = "hmacWithSHA224";
enum NID_hmacWithSHA224 = 798;
//#define OBJ_hmacWithSHA224 .OBJ_rsadsi, 2L, 8L
enum LN_hmacWithSHA256 = "hmacWithSHA256";
enum NID_hmacWithSHA256 = 799;
//#define OBJ_hmacWithSHA256 .OBJ_rsadsi, 2L, 9L
enum LN_hmacWithSHA384 = "hmacWithSHA384";
enum NID_hmacWithSHA384 = 800;
//#define OBJ_hmacWithSHA384 .OBJ_rsadsi, 2L, 10L
enum LN_hmacWithSHA512 = "hmacWithSHA512";
enum NID_hmacWithSHA512 = 801;
//#define OBJ_hmacWithSHA512 .OBJ_rsadsi, 2L, 11L
enum SN_rc2_cbc = "RC2-CBC";
enum LN_rc2_cbc = "rc2-cbc";
enum NID_rc2_cbc = 37;
//#define OBJ_rc2_cbc .OBJ_rsadsi, 3L, 2L
enum SN_rc2_ecb = "RC2-ECB";
enum LN_rc2_ecb = "rc2-ecb";
enum NID_rc2_ecb = 38;
enum SN_rc2_cfb64 = "RC2-CFB";
enum LN_rc2_cfb64 = "rc2-cfb";
enum NID_rc2_cfb64 = 39;
enum SN_rc2_ofb64 = "RC2-OFB";
enum LN_rc2_ofb64 = "rc2-ofb";
enum NID_rc2_ofb64 = 40;
enum SN_rc2_40_cbc = "RC2-40-CBC";
enum LN_rc2_40_cbc = "rc2-40-cbc";
enum NID_rc2_40_cbc = 98;
enum SN_rc2_64_cbc = "RC2-64-CBC";
enum LN_rc2_64_cbc = "rc2-64-cbc";
enum NID_rc2_64_cbc = 166;
enum SN_rc4 = "RC4";
enum LN_rc4 = "rc4";
enum NID_rc4 = 5;
//#define OBJ_rc4 .OBJ_rsadsi, 3L, 4L
enum SN_rc4_40 = "RC4-40";
enum LN_rc4_40 = "rc4-40";
enum NID_rc4_40 = 97;
enum SN_des_ede3_cbc = "DES-EDE3-CBC";
enum LN_des_ede3_cbc = "des-ede3-cbc";
enum NID_des_ede3_cbc = 44;
//#define OBJ_des_ede3_cbc .OBJ_rsadsi, 3L, 7L
enum SN_rc5_cbc = "RC5-CBC";
enum LN_rc5_cbc = "rc5-cbc";
enum NID_rc5_cbc = 120;
//#define OBJ_rc5_cbc .OBJ_rsadsi, 3L, 8L
enum SN_rc5_ecb = "RC5-ECB";
enum LN_rc5_ecb = "rc5-ecb";
enum NID_rc5_ecb = 121;
enum SN_rc5_cfb64 = "RC5-CFB";
enum LN_rc5_cfb64 = "rc5-cfb";
enum NID_rc5_cfb64 = 122;
enum SN_rc5_ofb64 = "RC5-OFB";
enum LN_rc5_ofb64 = "rc5-ofb";
enum NID_rc5_ofb64 = 123;
enum SN_ms_ext_req = "msExtReq";
enum LN_ms_ext_req = "Microsoft Extension Request";
enum NID_ms_ext_req = 171;
//#define OBJ_ms_ext_req 1L, 3L, 6L, 1L, 4L, 1L, 311L, 2L, 1L, 14L
enum SN_ms_code_ind = "msCodeInd";
enum LN_ms_code_ind = "Microsoft Individual Code Signing";
enum NID_ms_code_ind = 134;
//#define OBJ_ms_code_ind 1L, 3L, 6L, 1L, 4L, 1L, 311L, 2L, 1L, 21L
enum SN_ms_code_com = "msCodeCom";
enum LN_ms_code_com = "Microsoft Commercial Code Signing";
enum NID_ms_code_com = 135;
//#define OBJ_ms_code_com 1L, 3L, 6L, 1L, 4L, 1L, 311L, 2L, 1L, 22L
enum SN_ms_ctl_sign = "msCTLSign";
enum LN_ms_ctl_sign = "Microsoft Trust List Signing";
enum NID_ms_ctl_sign = 136;
//#define OBJ_ms_ctl_sign 1L, 3L, 6L, 1L, 4L, 1L, 311L, 10L, 3L, 1L
enum SN_ms_sgc = "msSGC";
enum LN_ms_sgc = "Microsoft Server Gated Crypto";
enum NID_ms_sgc = 137;
//#define OBJ_ms_sgc 1L, 3L, 6L, 1L, 4L, 1L, 311L, 10L, 3L, 3L
enum SN_ms_efs = "msEFS";
enum LN_ms_efs = "Microsoft Encrypted File System";
enum NID_ms_efs = 138;
//#define OBJ_ms_efs 1L, 3L, 6L, 1L, 4L, 1L, 311L, 10L, 3L, 4L
enum SN_ms_smartcard_login = "msSmartcardLogin";
enum LN_ms_smartcard_login = "Microsoft Smartcardlogin";
enum NID_ms_smartcard_login = 648;
//#define OBJ_ms_smartcard_login 1L, 3L, 6L, 1L, 4L, 1L, 311L, 20L, 2L, 2L
enum SN_ms_upn = "msUPN";
enum LN_ms_upn = "Microsoft Universal Principal Name";
enum NID_ms_upn = 649;
//#define OBJ_ms_upn 1L, 3L, 6L, 1L, 4L, 1L, 311L, 20L, 2L, 3L
enum SN_idea_cbc = "IDEA-CBC";
enum LN_idea_cbc = "idea-cbc";
enum NID_idea_cbc = 34;
//#define OBJ_idea_cbc 1L, 3L, 6L, 1L, 4L, 1L, 188L, 7L, 1L, 1L, 2L
enum SN_idea_ecb = "IDEA-ECB";
enum LN_idea_ecb = "idea-ecb";
enum NID_idea_ecb = 36;
enum SN_idea_cfb64 = "IDEA-CFB";
enum LN_idea_cfb64 = "idea-cfb";
enum NID_idea_cfb64 = 35;
enum SN_idea_ofb64 = "IDEA-OFB";
enum LN_idea_ofb64 = "idea-ofb";
enum NID_idea_ofb64 = 46;
enum SN_bf_cbc = "BF-CBC";
enum LN_bf_cbc = "bf-cbc";
enum NID_bf_cbc = 91;
//#define OBJ_bf_cbc 1L, 3L, 6L, 1L, 4L, 1L, 3029L, 1L, 2L
enum SN_bf_ecb = "BF-ECB";
enum LN_bf_ecb = "bf-ecb";
enum NID_bf_ecb = 92;
enum SN_bf_cfb64 = "BF-CFB";
enum LN_bf_cfb64 = "bf-cfb";
enum NID_bf_cfb64 = 93;
enum SN_bf_ofb64 = "BF-OFB";
enum LN_bf_ofb64 = "bf-ofb";
enum NID_bf_ofb64 = 94;
enum SN_id_pkix = "PKIX";
enum NID_id_pkix = 127;
//#define OBJ_id_pkix 1L, 3L, 6L, 1L, 5L, 5L, 7L
enum SN_id_pkix_mod = "id-pkix-mod";
enum NID_id_pkix_mod = 258;
//#define OBJ_id_pkix_mod .OBJ_id_pkix, 0L
enum SN_id_pe = "id-pe";
enum NID_id_pe = 175;
//#define OBJ_id_pe .OBJ_id_pkix, 1L
enum SN_id_qt = "id-qt";
enum NID_id_qt = 259;
//#define OBJ_id_qt .OBJ_id_pkix, 2L
enum SN_id_kp = "id-kp";
enum NID_id_kp = 128;
//#define OBJ_id_kp .OBJ_id_pkix, 3L
enum SN_id_it = "id-it";
enum NID_id_it = 260;
//#define OBJ_id_it .OBJ_id_pkix, 4L
enum SN_id_pkip = "id-pkip";
enum NID_id_pkip = 261;
//#define OBJ_id_pkip .OBJ_id_pkix, 5L
enum SN_id_alg = "id-alg";
enum NID_id_alg = 262;
//#define OBJ_id_alg .OBJ_id_pkix, 6L
enum SN_id_cmc = "id-cmc";
enum NID_id_cmc = 263;
//#define OBJ_id_cmc .OBJ_id_pkix, 7L
enum SN_id_on = "id-on";
enum NID_id_on = 264;
//#define OBJ_id_on .OBJ_id_pkix, 8L
enum SN_id_pda = "id-pda";
enum NID_id_pda = 265;
//#define OBJ_id_pda .OBJ_id_pkix, 9L
enum SN_id_aca = "id-aca";
enum NID_id_aca = 266;
//#define OBJ_id_aca .OBJ_id_pkix, 10L
enum SN_id_qcs = "id-qcs";
enum NID_id_qcs = 267;
//#define OBJ_id_qcs .OBJ_id_pkix, 11L
enum SN_id_cct = "id-cct";
enum NID_id_cct = 268;
//#define OBJ_id_cct .OBJ_id_pkix, 12L
enum SN_id_cp = "id-cp";
enum NID_id_cp = 1005;
//#define OBJ_id_cp OBJ_id_pkix, 14L
enum SN_id_ppl = "id-ppl";
enum NID_id_ppl = 662;
//#define OBJ_id_ppl .OBJ_id_pkix, 21L
enum SN_id_ad = "id-ad";
enum NID_id_ad = 176;
//#define OBJ_id_ad .OBJ_id_pkix, 48L
enum SN_id_pkix1_explicit_88 = "id-pkix1-explicit-88";
enum NID_id_pkix1_explicit_88 = 269;
//#define OBJ_id_pkix1_explicit_88 OBJ_id_pkix_mod, 1L
enum SN_id_pkix1_implicit_88 = "id-pkix1-implicit-88";
enum NID_id_pkix1_implicit_88 = 270;
//#define OBJ_id_pkix1_implicit_88 OBJ_id_pkix_mod, 2L
enum SN_id_pkix1_explicit_93 = "id-pkix1-explicit-93";
enum NID_id_pkix1_explicit_93 = 271;
//#define OBJ_id_pkix1_explicit_93 OBJ_id_pkix_mod, 3L
enum SN_id_pkix1_implicit_93 = "id-pkix1-implicit-93";
enum NID_id_pkix1_implicit_93 = 272;
//#define OBJ_id_pkix1_implicit_93 OBJ_id_pkix_mod, 4L
enum SN_id_mod_crmf = "id-mod-crmf";
enum NID_id_mod_crmf = 273;
//#define OBJ_id_mod_crmf OBJ_id_pkix_mod, 5L
enum SN_id_mod_cmc = "id-mod-cmc";
enum NID_id_mod_cmc = 274;
//#define OBJ_id_mod_cmc OBJ_id_pkix_mod, 6L
enum SN_id_mod_kea_profile_88 = "id-mod-kea-profile-88";
enum NID_id_mod_kea_profile_88 = 275;
//#define OBJ_id_mod_kea_profile_88 OBJ_id_pkix_mod, 7L
enum SN_id_mod_kea_profile_93 = "id-mod-kea-profile-93";
enum NID_id_mod_kea_profile_93 = 276;
//#define OBJ_id_mod_kea_profile_93 OBJ_id_pkix_mod, 8L
enum SN_id_mod_cmp = "id-mod-cmp";
enum NID_id_mod_cmp = 277;
//#define OBJ_id_mod_cmp OBJ_id_pkix_mod, 9L
enum SN_id_mod_qualified_cert_88 = "id-mod-qualified-cert-88";
enum NID_id_mod_qualified_cert_88 = 278;
//#define OBJ_id_mod_qualified_cert_88 OBJ_id_pkix_mod, 10L
enum SN_id_mod_qualified_cert_93 = "id-mod-qualified-cert-93";
enum NID_id_mod_qualified_cert_93 = 279;
//#define OBJ_id_mod_qualified_cert_93 OBJ_id_pkix_mod, 11L
enum SN_id_mod_attribute_cert = "id-mod-attribute-cert";
enum NID_id_mod_attribute_cert = 280;
//#define OBJ_id_mod_attribute_cert OBJ_id_pkix_mod, 12L
enum SN_id_mod_timestamp_protocol = "id-mod-timestamp-protocol";
enum NID_id_mod_timestamp_protocol = 281;
//#define OBJ_id_mod_timestamp_protocol OBJ_id_pkix_mod, 13L
enum SN_id_mod_ocsp = "id-mod-ocsp";
enum NID_id_mod_ocsp = 282;
//#define OBJ_id_mod_ocsp OBJ_id_pkix_mod, 14L
enum SN_id_mod_dvcs = "id-mod-dvcs";
enum NID_id_mod_dvcs = 283;
//#define OBJ_id_mod_dvcs OBJ_id_pkix_mod, 15L
enum SN_id_mod_cmp2000 = "id-mod-cmp2000";
enum NID_id_mod_cmp2000 = 284;
//#define OBJ_id_mod_cmp2000 OBJ_id_pkix_mod, 16L
enum SN_info_access = "authorityInfoAccess";
enum LN_info_access = "Authority Information Access";
enum NID_info_access = 177;
//#define OBJ_info_access .OBJ_id_pe, 1L
enum SN_biometricInfo = "biometricInfo";
enum LN_biometricInfo = "Biometric Info";
enum NID_biometricInfo = 285;
//#define OBJ_biometricInfo .OBJ_id_pe, 2L
enum SN_qcStatements = "qcStatements";
enum NID_qcStatements = 286;
//#define OBJ_qcStatements .OBJ_id_pe, 3L
enum SN_ac_auditEntity = "ac-auditEntity";
enum NID_ac_auditEntity = 287;
//#define OBJ_ac_auditEntity .OBJ_id_pe, 4L
enum SN_ac_targeting = "ac-targeting";
enum NID_ac_targeting = 288;
//#define OBJ_ac_targeting .OBJ_id_pe, 5L
enum SN_aaControls = "aaControls";
enum NID_aaControls = 289;
//#define OBJ_aaControls .OBJ_id_pe, 6L
enum SN_sbgp_ipAddrBlock = "sbgp-ipAddrBlock";
enum NID_sbgp_ipAddrBlock = 290;
//#define OBJ_sbgp_ipAddrBlock .OBJ_id_pe, 7L
enum SN_sbgp_autonomousSysNum = "sbgp-autonomousSysNum";
enum NID_sbgp_autonomousSysNum = 291;
//#define OBJ_sbgp_autonomousSysNum .OBJ_id_pe, 8L
enum SN_sbgp_routerIdentifier = "sbgp-routerIdentifier";
enum NID_sbgp_routerIdentifier = 292;
//#define OBJ_sbgp_routerIdentifier .OBJ_id_pe, 9L
enum SN_ac_proxying = "ac-proxying";
enum NID_ac_proxying = 397;
//#define OBJ_ac_proxying .OBJ_id_pe, 10L
enum SN_sinfo_access = "subjectInfoAccess";
enum LN_sinfo_access = "Subject Information Access";
enum NID_sinfo_access = 398;
//#define OBJ_sinfo_access .OBJ_id_pe, 11L
enum SN_proxyCertInfo = "proxyCertInfo";
enum LN_proxyCertInfo = "Proxy Certificate Information";
enum NID_proxyCertInfo = 663;
//#define OBJ_proxyCertInfo .OBJ_id_pe, 14L
enum SN_tlsfeature = "tlsfeature";
enum LN_tlsfeature = "TLS Feature";
enum NID_tlsfeature = 1016;
//#define OBJ_tlsfeature OBJ_id_pe, 24L
enum SN_sbgp_ipAddrBlockv2 = "sbgp-ipAddrBlockv2";
enum NID_sbgp_ipAddrBlockv2 = 1006;
//#define OBJ_sbgp_ipAddrBlockv2 OBJ_id_pe, 28L
enum SN_sbgp_autonomousSysNumv2 = "sbgp-autonomousSysNumv2";
enum NID_sbgp_autonomousSysNumv2 = 1007;
//#define OBJ_sbgp_autonomousSysNumv2 OBJ_id_pe, 29L
enum SN_id_qt_cps = "id-qt-cps";
enum LN_id_qt_cps = "Policy Qualifier CPS";
enum NID_id_qt_cps = 164;
//#define OBJ_id_qt_cps OBJ_id_qt, 1L
enum SN_id_qt_unotice = "id-qt-unotice";
enum LN_id_qt_unotice = "Policy Qualifier User Notice";
enum NID_id_qt_unotice = 165;
//#define OBJ_id_qt_unotice OBJ_id_qt, 2L
enum SN_textNotice = "textNotice";
enum NID_textNotice = 293;
//#define OBJ_textNotice OBJ_id_qt, 3L
enum SN_server_auth = "serverAuth";
enum LN_server_auth = "TLS Web Server Authentication";
enum NID_server_auth = 129;
//#define OBJ_server_auth .OBJ_id_kp, 1L
enum SN_client_auth = "clientAuth";
enum LN_client_auth = "TLS Web Client Authentication";
enum NID_client_auth = 130;
//#define OBJ_client_auth .OBJ_id_kp, 2L
enum SN_code_sign = "codeSigning";
enum LN_code_sign = "Code Signing";
enum NID_code_sign = 131;
//#define OBJ_code_sign .OBJ_id_kp, 3L
enum SN_email_protect = "emailProtection";
enum LN_email_protect = "E-mail Protection";
enum NID_email_protect = 132;
//#define OBJ_email_protect .OBJ_id_kp, 4L
enum SN_ipsecEndSystem = "ipsecEndSystem";
enum LN_ipsecEndSystem = "IPSec End System";
enum NID_ipsecEndSystem = 294;
//#define OBJ_ipsecEndSystem .OBJ_id_kp, 5L
enum SN_ipsecTunnel = "ipsecTunnel";
enum LN_ipsecTunnel = "IPSec Tunnel";
enum NID_ipsecTunnel = 295;
//#define OBJ_ipsecTunnel .OBJ_id_kp, 6L
enum SN_ipsecUser = "ipsecUser";
enum LN_ipsecUser = "IPSec User";
enum NID_ipsecUser = 296;
//#define OBJ_ipsecUser .OBJ_id_kp, 7L
enum SN_time_stamp = "timeStamping";
enum LN_time_stamp = "Time Stamping";
enum NID_time_stamp = 133;
//#define OBJ_time_stamp .OBJ_id_kp, 8L
enum SN_OCSP_sign = "OCSPSigning";
enum LN_OCSP_sign = "OCSP Signing";
enum NID_OCSP_sign = 180;
//#define OBJ_OCSP_sign .OBJ_id_kp, 9L
enum SN_dvcs = "DVCS";
enum LN_dvcs = "dvcs";
enum NID_dvcs = 297;
//#define OBJ_dvcs .OBJ_id_kp, 10L
enum SN_id_kp_bgpsec_router = "id-kp-bgpsec-router";
enum LN_id_kp_bgpsec_router = "BGPsec Router";
enum NID_id_kp_bgpsec_router = 1015;
//#define OBJ_id_kp_bgpsec_router OBJ_id_kp, 30L
enum SN_id_it_caProtEncCert = "id-it-caProtEncCert";
enum NID_id_it_caProtEncCert = 298;
//#define OBJ_id_it_caProtEncCert OBJ_id_it, 1L
enum SN_id_it_signKeyPairTypes = "id-it-signKeyPairTypes";
enum NID_id_it_signKeyPairTypes = 299;
//#define OBJ_id_it_signKeyPairTypes OBJ_id_it, 2L
enum SN_id_it_encKeyPairTypes = "id-it-encKeyPairTypes";
enum NID_id_it_encKeyPairTypes = 300;
//#define OBJ_id_it_encKeyPairTypes OBJ_id_it, 3L
enum SN_id_it_preferredSymmAlg = "id-it-preferredSymmAlg";
enum NID_id_it_preferredSymmAlg = 301;
//#define OBJ_id_it_preferredSymmAlg OBJ_id_it, 4L
enum SN_id_it_caKeyUpdateInfo = "id-it-caKeyUpdateInfo";
enum NID_id_it_caKeyUpdateInfo = 302;
//#define OBJ_id_it_caKeyUpdateInfo OBJ_id_it, 5L
enum SN_id_it_currentCRL = "id-it-currentCRL";
enum NID_id_it_currentCRL = 303;
//#define OBJ_id_it_currentCRL OBJ_id_it, 6L
enum SN_id_it_unsupportedOIDs = "id-it-unsupportedOIDs";
enum NID_id_it_unsupportedOIDs = 304;
//#define OBJ_id_it_unsupportedOIDs OBJ_id_it, 7L
enum SN_id_it_subscriptionRequest = "id-it-subscriptionRequest";
enum NID_id_it_subscriptionRequest = 305;
//#define OBJ_id_it_subscriptionRequest OBJ_id_it, 8L
enum SN_id_it_subscriptionResponse = "id-it-subscriptionResponse";
enum NID_id_it_subscriptionResponse = 306;
//#define OBJ_id_it_subscriptionResponse OBJ_id_it, 9L
enum SN_id_it_keyPairParamReq = "id-it-keyPairParamReq";
enum NID_id_it_keyPairParamReq = 307;
//#define OBJ_id_it_keyPairParamReq OBJ_id_it, 10L
enum SN_id_it_keyPairParamRep = "id-it-keyPairParamRep";
enum NID_id_it_keyPairParamRep = 308;
//#define OBJ_id_it_keyPairParamRep OBJ_id_it, 11L
enum SN_id_it_revPassphrase = "id-it-revPassphrase";
enum NID_id_it_revPassphrase = 309;
//#define OBJ_id_it_revPassphrase OBJ_id_it, 12L
enum SN_id_it_implicitConfirm = "id-it-implicitConfirm";
enum NID_id_it_implicitConfirm = 310;
//#define OBJ_id_it_implicitConfirm OBJ_id_it, 13L
enum SN_id_it_confirmWaitTime = "id-it-confirmWaitTime";
enum NID_id_it_confirmWaitTime = 311;
//#define OBJ_id_it_confirmWaitTime OBJ_id_it, 14L
enum SN_id_it_origPKIMessage = "id-it-origPKIMessage";
enum NID_id_it_origPKIMessage = 312;
//#define OBJ_id_it_origPKIMessage OBJ_id_it, 15L
enum SN_id_it_suppLangTags = "id-it-suppLangTags";
enum NID_id_it_suppLangTags = 784;
//#define OBJ_id_it_suppLangTags OBJ_id_it, 16L
enum SN_id_regCtrl = "id-regCtrl";
enum NID_id_regCtrl = 313;
//#define OBJ_id_regCtrl OBJ_id_pkip, 1L
enum SN_id_regInfo = "id-regInfo";
enum NID_id_regInfo = 314;
//#define OBJ_id_regInfo OBJ_id_pkip, 2L
enum SN_id_regCtrl_regToken = "id-regCtrl-regToken";
enum NID_id_regCtrl_regToken = 315;
//#define OBJ_id_regCtrl_regToken OBJ_id_regCtrl, 1L
enum SN_id_regCtrl_authenticator = "id-regCtrl-authenticator";
enum NID_id_regCtrl_authenticator = 316;
//#define OBJ_id_regCtrl_authenticator OBJ_id_regCtrl, 2L
enum SN_id_regCtrl_pkiPublicationInfo = "id-regCtrl-pkiPublicationInfo";
enum NID_id_regCtrl_pkiPublicationInfo = 317;
//#define OBJ_id_regCtrl_pkiPublicationInfo OBJ_id_regCtrl, 3L
enum SN_id_regCtrl_pkiArchiveOptions = "id-regCtrl-pkiArchiveOptions";
enum NID_id_regCtrl_pkiArchiveOptions = 318;
//#define OBJ_id_regCtrl_pkiArchiveOptions OBJ_id_regCtrl, 4L
enum SN_id_regCtrl_oldCertID = "id-regCtrl-oldCertID";
enum NID_id_regCtrl_oldCertID = 319;
//#define OBJ_id_regCtrl_oldCertID OBJ_id_regCtrl, 5L
enum SN_id_regCtrl_protocolEncrKey = "id-regCtrl-protocolEncrKey";
enum NID_id_regCtrl_protocolEncrKey = 320;
//#define OBJ_id_regCtrl_protocolEncrKey OBJ_id_regCtrl, 6L
enum SN_id_regInfo_utf8Pairs = "id-regInfo-utf8Pairs";
enum NID_id_regInfo_utf8Pairs = 321;
//#define OBJ_id_regInfo_utf8Pairs OBJ_id_regInfo, 1L
enum SN_id_regInfo_certReq = "id-regInfo-certReq";
enum NID_id_regInfo_certReq = 322;
//#define OBJ_id_regInfo_certReq OBJ_id_regInfo, 2L
enum SN_id_alg_des40 = "id-alg-des40";
enum NID_id_alg_des40 = 323;
//#define OBJ_id_alg_des40 OBJ_id_alg, 1L
enum SN_id_alg_noSignature = "id-alg-noSignature";
enum NID_id_alg_noSignature = 324;
//#define OBJ_id_alg_noSignature OBJ_id_alg, 2L
enum SN_id_alg_dh_sig_hmac_sha1 = "id-alg-dh-sig-hmac-sha1";
enum NID_id_alg_dh_sig_hmac_sha1 = 325;
//#define OBJ_id_alg_dh_sig_hmac_sha1 OBJ_id_alg, 3L
enum SN_id_alg_dh_pop = "id-alg-dh-pop";
enum NID_id_alg_dh_pop = 326;
//#define OBJ_id_alg_dh_pop OBJ_id_alg, 4L
enum SN_id_cmc_statusInfo = "id-cmc-statusInfo";
enum NID_id_cmc_statusInfo = 327;
//#define OBJ_id_cmc_statusInfo OBJ_id_cmc, 1L
enum SN_id_cmc_identification = "id-cmc-identification";
enum NID_id_cmc_identification = 328;
//#define OBJ_id_cmc_identification OBJ_id_cmc, 2L
enum SN_id_cmc_identityProof = "id-cmc-identityProof";
enum NID_id_cmc_identityProof = 329;
//#define OBJ_id_cmc_identityProof OBJ_id_cmc, 3L
enum SN_id_cmc_dataReturn = "id-cmc-dataReturn";
enum NID_id_cmc_dataReturn = 330;
//#define OBJ_id_cmc_dataReturn OBJ_id_cmc, 4L
enum SN_id_cmc_transactionId = "id-cmc-transactionId";
enum NID_id_cmc_transactionId = 331;
//#define OBJ_id_cmc_transactionId OBJ_id_cmc, 5L
enum SN_id_cmc_senderNonce = "id-cmc-senderNonce";
enum NID_id_cmc_senderNonce = 332;
//#define OBJ_id_cmc_senderNonce OBJ_id_cmc, 6L
enum SN_id_cmc_recipientNonce = "id-cmc-recipientNonce";
enum NID_id_cmc_recipientNonce = 333;
//#define OBJ_id_cmc_recipientNonce OBJ_id_cmc, 7L
enum SN_id_cmc_addExtensions = "id-cmc-addExtensions";
enum NID_id_cmc_addExtensions = 334;
//#define OBJ_id_cmc_addExtensions OBJ_id_cmc, 8L
enum SN_id_cmc_encryptedPOP = "id-cmc-encryptedPOP";
enum NID_id_cmc_encryptedPOP = 335;
//#define OBJ_id_cmc_encryptedPOP OBJ_id_cmc, 9L
enum SN_id_cmc_decryptedPOP = "id-cmc-decryptedPOP";
enum NID_id_cmc_decryptedPOP = 336;
//#define OBJ_id_cmc_decryptedPOP OBJ_id_cmc, 10L
enum SN_id_cmc_lraPOPWitness = "id-cmc-lraPOPWitness";
enum NID_id_cmc_lraPOPWitness = 337;
//#define OBJ_id_cmc_lraPOPWitness OBJ_id_cmc, 11L
enum SN_id_cmc_getCert = "id-cmc-getCert";
enum NID_id_cmc_getCert = 338;
//#define OBJ_id_cmc_getCert OBJ_id_cmc, 15L
enum SN_id_cmc_getCRL = "id-cmc-getCRL";
enum NID_id_cmc_getCRL = 339;
//#define OBJ_id_cmc_getCRL OBJ_id_cmc, 16L
enum SN_id_cmc_revokeRequest = "id-cmc-revokeRequest";
enum NID_id_cmc_revokeRequest = 340;
//#define OBJ_id_cmc_revokeRequest OBJ_id_cmc, 17L
enum SN_id_cmc_regInfo = "id-cmc-regInfo";
enum NID_id_cmc_regInfo = 341;
//#define OBJ_id_cmc_regInfo OBJ_id_cmc, 18L
enum SN_id_cmc_responseInfo = "id-cmc-responseInfo";
enum NID_id_cmc_responseInfo = 342;
//#define OBJ_id_cmc_responseInfo OBJ_id_cmc, 19L
enum SN_id_cmc_queryPending = "id-cmc-queryPending";
enum NID_id_cmc_queryPending = 343;
//#define OBJ_id_cmc_queryPending OBJ_id_cmc, 21L
enum SN_id_cmc_popLinkRandom = "id-cmc-popLinkRandom";
enum NID_id_cmc_popLinkRandom = 344;
//#define OBJ_id_cmc_popLinkRandom OBJ_id_cmc, 22L
enum SN_id_cmc_popLinkWitness = "id-cmc-popLinkWitness";
enum NID_id_cmc_popLinkWitness = 345;
//#define OBJ_id_cmc_popLinkWitness OBJ_id_cmc, 23L
enum SN_id_cmc_confirmCertAcceptance = "id-cmc-confirmCertAcceptance";
enum NID_id_cmc_confirmCertAcceptance = 346;
//#define OBJ_id_cmc_confirmCertAcceptance OBJ_id_cmc, 24L
enum SN_id_on_personalData = "id-on-personalData";
enum NID_id_on_personalData = 347;
//#define OBJ_id_on_personalData OBJ_id_on, 1L
enum SN_id_on_permanentIdentifier = "id-on-permanentIdentifier";
enum LN_id_on_permanentIdentifier = "Permanent Identifier";
enum NID_id_on_permanentIdentifier = 858;
//#define OBJ_id_on_permanentIdentifier OBJ_id_on, 3L
enum SN_id_pda_dateOfBirth = "id-pda-dateOfBirth";
enum NID_id_pda_dateOfBirth = 348;
//#define OBJ_id_pda_dateOfBirth OBJ_id_pda, 1L
enum SN_id_pda_placeOfBirth = "id-pda-placeOfBirth";
enum NID_id_pda_placeOfBirth = 349;
//#define OBJ_id_pda_placeOfBirth OBJ_id_pda, 2L
enum SN_id_pda_gender = "id-pda-gender";
enum NID_id_pda_gender = 351;
//#define OBJ_id_pda_gender OBJ_id_pda, 3L
enum SN_id_pda_countryOfCitizenship = "id-pda-countryOfCitizenship";
enum NID_id_pda_countryOfCitizenship = 352;
//#define OBJ_id_pda_countryOfCitizenship OBJ_id_pda, 4L
enum SN_id_pda_countryOfResidence = "id-pda-countryOfResidence";
enum NID_id_pda_countryOfResidence = 353;
//#define OBJ_id_pda_countryOfResidence OBJ_id_pda, 5L
enum SN_id_aca_authenticationInfo = "id-aca-authenticationInfo";
enum NID_id_aca_authenticationInfo = 354;
//#define OBJ_id_aca_authenticationInfo OBJ_id_aca, 1L
enum SN_id_aca_accessIdentity = "id-aca-accessIdentity";
enum NID_id_aca_accessIdentity = 355;
//#define OBJ_id_aca_accessIdentity OBJ_id_aca, 2L
enum SN_id_aca_chargingIdentity = "id-aca-chargingIdentity";
enum NID_id_aca_chargingIdentity = 356;
//#define OBJ_id_aca_chargingIdentity OBJ_id_aca, 3L
enum SN_id_aca_group = "id-aca-group";
enum NID_id_aca_group = 357;
//#define OBJ_id_aca_group OBJ_id_aca, 4L
enum SN_id_aca_role = "id-aca-role";
enum NID_id_aca_role = 358;
//#define OBJ_id_aca_role OBJ_id_aca, 5L
enum SN_id_aca_encAttrs = "id-aca-encAttrs";
enum NID_id_aca_encAttrs = 399;
//#define OBJ_id_aca_encAttrs OBJ_id_aca, 6L
enum SN_id_qcs_pkixQCSyntax_v1 = "id-qcs-pkixQCSyntax-v1";
enum NID_id_qcs_pkixQCSyntax_v1 = 359;
//#define OBJ_id_qcs_pkixQCSyntax_v1 OBJ_id_qcs, 1L
enum SN_id_cct_crs = "id-cct-crs";
enum NID_id_cct_crs = 360;
//#define OBJ_id_cct_crs OBJ_id_cct, 1L
enum SN_id_cct_PKIData = "id-cct-PKIData";
enum NID_id_cct_PKIData = 361;
//#define OBJ_id_cct_PKIData OBJ_id_cct, 2L
enum SN_id_cct_PKIResponse = "id-cct-PKIResponse";
enum NID_id_cct_PKIResponse = 362;
//#define OBJ_id_cct_PKIResponse OBJ_id_cct, 3L
enum SN_ipAddr_asNumber = "ipAddr-asNumber";
enum NID_ipAddr_asNumber = 1008;
//#define OBJ_ipAddr_asNumber OBJ_id_cp, 2L
enum SN_ipAddr_asNumberv2 = "ipAddr-asNumberv2";
enum NID_ipAddr_asNumberv2 = 1009;
//#define OBJ_ipAddr_asNumberv2 OBJ_id_cp, 3L
enum SN_id_ppl_anyLanguage = "id-ppl-anyLanguage";
enum LN_id_ppl_anyLanguage = "Any language";
enum NID_id_ppl_anyLanguage = 664;
//#define OBJ_id_ppl_anyLanguage OBJ_id_ppl, 0L
enum SN_id_ppl_inheritAll = "id-ppl-inheritAll";
enum LN_id_ppl_inheritAll = "Inherit all";
enum NID_id_ppl_inheritAll = 665;
//#define OBJ_id_ppl_inheritAll OBJ_id_ppl, 1L
enum SN_Independent = "id-ppl-independent";
enum LN_Independent = "Independent";
enum NID_Independent = 667;
//#define OBJ_Independent OBJ_id_ppl, 2L
enum SN_ad_OCSP = "OCSP";
enum LN_ad_OCSP = "OCSP";
enum NID_ad_OCSP = 178;
//#define OBJ_ad_OCSP .OBJ_id_ad, 1L
enum SN_ad_ca_issuers = "caIssuers";
enum LN_ad_ca_issuers = "CA Issuers";
enum NID_ad_ca_issuers = 179;
//#define OBJ_ad_ca_issuers .OBJ_id_ad, 2L
enum SN_ad_timeStamping = "ad_timestamping";
enum LN_ad_timeStamping = "AD Time Stamping";
enum NID_ad_timeStamping = 363;
//#define OBJ_ad_timeStamping .OBJ_id_ad, 3L
enum SN_ad_dvcs = "AD_DVCS";
enum LN_ad_dvcs = "ad dvcs";
enum NID_ad_dvcs = 364;
//#define OBJ_ad_dvcs .OBJ_id_ad, 4L
enum SN_caRepository = "caRepository";
enum LN_caRepository = "CA Repository";
enum NID_caRepository = 785;
//#define OBJ_caRepository .OBJ_id_ad, 5L
enum SN_rpkiManifest = "rpkiManifest";
enum LN_rpkiManifest = "RPKI Manifest";
enum NID_rpkiManifest = 1010;
//#define OBJ_rpkiManifest OBJ_id_ad, 10L
enum SN_signedObject = "signedObject";
enum LN_signedObject = "Signed Object";
enum NID_signedObject = 1011;
//#define OBJ_signedObject OBJ_id_ad, 11L
enum SN_rpkiNotify = "rpkiNotify";
enum LN_rpkiNotify = "RPKI Notify";
enum NID_rpkiNotify = 1012;
//#define OBJ_rpkiNotify OBJ_id_ad, 13L
//#define OBJ_id_pkix_OCSP .OBJ_ad_OCSP
enum SN_id_pkix_OCSP_basic = "basicOCSPResponse";
enum LN_id_pkix_OCSP_basic = "Basic OCSP Response";
enum NID_id_pkix_OCSP_basic = 365;
//#define OBJ_id_pkix_OCSP_basic OBJ_id_pkix_OCSP, 1L
enum SN_id_pkix_OCSP_Nonce = "Nonce";
enum LN_id_pkix_OCSP_Nonce = "OCSP Nonce";
enum NID_id_pkix_OCSP_Nonce = 366;
//#define OBJ_id_pkix_OCSP_Nonce OBJ_id_pkix_OCSP, 2L
enum SN_id_pkix_OCSP_CrlID = "CrlID";
enum LN_id_pkix_OCSP_CrlID = "OCSP CRL ID";
enum NID_id_pkix_OCSP_CrlID = 367;
//#define OBJ_id_pkix_OCSP_CrlID OBJ_id_pkix_OCSP, 3L
enum SN_id_pkix_OCSP_acceptableResponses = "acceptableResponses";
enum LN_id_pkix_OCSP_acceptableResponses = "Acceptable OCSP Responses";
enum NID_id_pkix_OCSP_acceptableResponses = 368;
//#define OBJ_id_pkix_OCSP_acceptableResponses OBJ_id_pkix_OCSP, 4L
enum SN_id_pkix_OCSP_noCheck = "noCheck";
enum LN_id_pkix_OCSP_noCheck = "OCSP No Check";
enum NID_id_pkix_OCSP_noCheck = 369;
//#define OBJ_id_pkix_OCSP_noCheck OBJ_id_pkix_OCSP, 5L
enum SN_id_pkix_OCSP_archiveCutoff = "archiveCutoff";
enum LN_id_pkix_OCSP_archiveCutoff = "OCSP Archive Cutoff";
enum NID_id_pkix_OCSP_archiveCutoff = 370;
//#define OBJ_id_pkix_OCSP_archiveCutoff OBJ_id_pkix_OCSP, 6L
enum SN_id_pkix_OCSP_serviceLocator = "serviceLocator";
enum LN_id_pkix_OCSP_serviceLocator = "OCSP Service Locator";
enum NID_id_pkix_OCSP_serviceLocator = 371;
//#define OBJ_id_pkix_OCSP_serviceLocator OBJ_id_pkix_OCSP, 7L
enum SN_id_pkix_OCSP_extendedStatus = "extendedStatus";
enum LN_id_pkix_OCSP_extendedStatus = "Extended OCSP Status";
enum NID_id_pkix_OCSP_extendedStatus = 372;
//#define OBJ_id_pkix_OCSP_extendedStatus OBJ_id_pkix_OCSP, 8L
enum SN_id_pkix_OCSP_valid = "valid";
enum NID_id_pkix_OCSP_valid = 373;
//#define OBJ_id_pkix_OCSP_valid OBJ_id_pkix_OCSP, 9L
enum SN_id_pkix_OCSP_path = "path";
enum NID_id_pkix_OCSP_path = 374;
//#define OBJ_id_pkix_OCSP_path OBJ_id_pkix_OCSP, 10L
enum SN_id_pkix_OCSP_trustRoot = "trustRoot";
enum LN_id_pkix_OCSP_trustRoot = "Trust Root";
enum NID_id_pkix_OCSP_trustRoot = 375;
//#define OBJ_id_pkix_OCSP_trustRoot OBJ_id_pkix_OCSP, 11L
enum SN_algorithm = "algorithm";
enum LN_algorithm = "algorithm";
enum NID_algorithm = 376;
//#define OBJ_algorithm 1L, 3L, 14L, 3L, 2L
enum SN_md5WithRSA = "RSA-NP-MD5";
enum LN_md5WithRSA = "md5WithRSA";
enum NID_md5WithRSA = 104;
//#define OBJ_md5WithRSA .OBJ_algorithm, 3L
enum SN_des_ecb = "DES-ECB";
enum LN_des_ecb = "des-ecb";
enum NID_des_ecb = 29;
//#define OBJ_des_ecb .OBJ_algorithm, 6L
enum SN_des_cbc = "DES-CBC";
enum LN_des_cbc = "des-cbc";
enum NID_des_cbc = 31;
//#define OBJ_des_cbc .OBJ_algorithm, 7L
enum SN_des_ofb64 = "DES-OFB";
enum LN_des_ofb64 = "des-ofb";
enum NID_des_ofb64 = 45;
//#define OBJ_des_ofb64 .OBJ_algorithm, 8L
enum SN_des_cfb64 = "DES-CFB";
enum LN_des_cfb64 = "des-cfb";
enum NID_des_cfb64 = 30;
//#define OBJ_des_cfb64 .OBJ_algorithm, 9L
enum SN_rsaSignature = "rsaSignature";
enum NID_rsaSignature = 377;
//#define OBJ_rsaSignature .OBJ_algorithm, 11L
enum SN_dsa_2 = "DSA-old";
enum LN_dsa_2 = "dsaEncryption-old";
enum NID_dsa_2 = 67;
//#define OBJ_dsa_2 .OBJ_algorithm, 12L
enum SN_dsaWithSHA = "DSA-SHA";
enum LN_dsaWithSHA = "dsaWithSHA";
enum NID_dsaWithSHA = 66;
//#define OBJ_dsaWithSHA .OBJ_algorithm, 13L
enum SN_shaWithRSAEncryption = "RSA-SHA";
enum LN_shaWithRSAEncryption = "shaWithRSAEncryption";
enum NID_shaWithRSAEncryption = 42;
//#define OBJ_shaWithRSAEncryption .OBJ_algorithm, 15L
enum SN_des_ede_ecb = "DES-EDE";
enum LN_des_ede_ecb = "des-ede";
enum NID_des_ede_ecb = 32;
//#define OBJ_des_ede_ecb .OBJ_algorithm, 17L
enum SN_des_ede3_ecb = "DES-EDE3";
enum LN_des_ede3_ecb = "des-ede3";
enum NID_des_ede3_ecb = 33;
enum SN_des_ede_cbc = "DES-EDE-CBC";
enum LN_des_ede_cbc = "des-ede-cbc";
enum NID_des_ede_cbc = 43;
enum SN_des_ede_cfb64 = "DES-EDE-CFB";
enum LN_des_ede_cfb64 = "des-ede-cfb";
enum NID_des_ede_cfb64 = 60;
enum SN_des_ede3_cfb64 = "DES-EDE3-CFB";
enum LN_des_ede3_cfb64 = "des-ede3-cfb";
enum NID_des_ede3_cfb64 = 61;
enum SN_des_ede_ofb64 = "DES-EDE-OFB";
enum LN_des_ede_ofb64 = "des-ede-ofb";
enum NID_des_ede_ofb64 = 62;
enum SN_des_ede3_ofb64 = "DES-EDE3-OFB";
enum LN_des_ede3_ofb64 = "des-ede3-ofb";
enum NID_des_ede3_ofb64 = 63;
enum SN_desx_cbc = "DESX-CBC";
enum LN_desx_cbc = "desx-cbc";
enum NID_desx_cbc = 80;
enum SN_sha = "SHA";
enum LN_sha = "sha";
enum NID_sha = 41;
//#define OBJ_sha .OBJ_algorithm, 18L
enum SN_sha1 = "SHA1";
enum LN_sha1 = "sha1";
enum NID_sha1 = 64;
//#define OBJ_sha1 .OBJ_algorithm, 26L
enum SN_dsaWithSHA1_2 = "DSA-SHA1-old";
enum LN_dsaWithSHA1_2 = "dsaWithSHA1-old";
enum NID_dsaWithSHA1_2 = 70;
//#define OBJ_dsaWithSHA1_2 .OBJ_algorithm, 27L
enum SN_sha1WithRSA = "RSA-SHA1-2";
enum LN_sha1WithRSA = "sha1WithRSA";
enum NID_sha1WithRSA = 115;
//#define OBJ_sha1WithRSA .OBJ_algorithm, 29L
enum SN_ripemd160 = "RIPEMD160";
enum LN_ripemd160 = "ripemd160";
enum NID_ripemd160 = 117;
//#define OBJ_ripemd160 1L, 3L, 36L, 3L, 2L, 1L
enum SN_ripemd160WithRSA = "RSA-RIPEMD160";
enum LN_ripemd160WithRSA = "ripemd160WithRSA";
enum NID_ripemd160WithRSA = 119;
//#define OBJ_ripemd160WithRSA 1L, 3L, 36L, 3L, 3L, 1L, 2L
enum SN_sxnet = "SXNetID";
enum LN_sxnet = "Strong Extranet ID";
enum NID_sxnet = 143;
//#define OBJ_sxnet 1L, 3L, 101L, 1L, 4L, 1L
enum SN_X500 = "X500";
enum LN_X500 = "directory services (X.500)";
enum NID_X500 = 11;
//#define OBJ_X500 2L, 5L
enum SN_X509 = "X509";
enum NID_X509 = 12;
//#define OBJ_X509 .OBJ_X500, 4L
enum SN_commonName = "CN";
enum LN_commonName = "commonName";
enum NID_commonName = 13;
//#define OBJ_commonName .OBJ_X509, 3L
enum SN_surname = "SN";
enum LN_surname = "surname";
enum NID_surname = 100;
//#define OBJ_surname .OBJ_X509, 4L
enum LN_serialNumber = "serialNumber";
enum NID_serialNumber = 105;
//#define OBJ_serialNumber .OBJ_X509, 5L
enum SN_countryName = "C";
enum LN_countryName = "countryName";
enum NID_countryName = 14;
//#define OBJ_countryName .OBJ_X509, 6L
enum SN_localityName = "L";
enum LN_localityName = "localityName";
enum NID_localityName = 15;
//#define OBJ_localityName .OBJ_X509, 7L
enum SN_stateOrProvinceName = "ST";
enum LN_stateOrProvinceName = "stateOrProvinceName";
enum NID_stateOrProvinceName = 16;
//#define OBJ_stateOrProvinceName .OBJ_X509, 8L
enum SN_streetAddress = "street";
enum LN_streetAddress = "streetAddress";
enum NID_streetAddress = 660;
//#define OBJ_streetAddress .OBJ_X509, 9L
enum SN_organizationName = "O";
enum LN_organizationName = "organizationName";
enum NID_organizationName = 17;
//#define OBJ_organizationName .OBJ_X509, 10L
enum SN_organizationalUnitName = "OU";
enum LN_organizationalUnitName = "organizationalUnitName";
enum NID_organizationalUnitName = 18;
//#define OBJ_organizationalUnitName .OBJ_X509, 11L
enum SN_title = "title";
enum LN_title = "title";
enum NID_title = 106;
//#define OBJ_title .OBJ_X509, 12L
enum LN_description = "description";
enum NID_description = 107;
//#define OBJ_description .OBJ_X509, 13L
enum LN_searchGuide = "searchGuide";
enum NID_searchGuide = 859;
//#define OBJ_searchGuide .OBJ_X509, 14L
enum LN_businessCategory = "businessCategory";
enum NID_businessCategory = 860;
//#define OBJ_businessCategory .OBJ_X509, 15L
enum LN_postalAddress = "postalAddress";
enum NID_postalAddress = 861;
//#define OBJ_postalAddress .OBJ_X509, 16L
enum LN_postalCode = "postalCode";
enum NID_postalCode = 661;
//#define OBJ_postalCode .OBJ_X509, 17L
enum LN_postOfficeBox = "postOfficeBox";
enum NID_postOfficeBox = 862;
//#define OBJ_postOfficeBox .OBJ_X509, 18L
enum LN_physicalDeliveryOfficeName = "physicalDeliveryOfficeName";
enum NID_physicalDeliveryOfficeName = 863;
//#define OBJ_physicalDeliveryOfficeName .OBJ_X509, 19L
enum LN_telephoneNumber = "telephoneNumber";
enum NID_telephoneNumber = 864;
//#define OBJ_telephoneNumber .OBJ_X509, 20L
enum LN_telexNumber = "telexNumber";
enum NID_telexNumber = 865;
//#define OBJ_telexNumber .OBJ_X509, 21L
enum LN_teletexTerminalIdentifier = "teletexTerminalIdentifier";
enum NID_teletexTerminalIdentifier = 866;
//#define OBJ_teletexTerminalIdentifier .OBJ_X509, 22L
enum LN_facsimileTelephoneNumber = "facsimileTelephoneNumber";
enum NID_facsimileTelephoneNumber = 867;
//#define OBJ_facsimileTelephoneNumber .OBJ_X509, 23L
enum LN_x121Address = "x121Address";
enum NID_x121Address = 868;
//#define OBJ_x121Address .OBJ_X509, 24L
enum LN_internationaliSDNNumber = "internationaliSDNNumber";
enum NID_internationaliSDNNumber = 869;
//#define OBJ_internationaliSDNNumber .OBJ_X509, 25L
enum LN_registeredAddress = "registeredAddress";
enum NID_registeredAddress = 870;
//#define OBJ_registeredAddress .OBJ_X509, 26L
enum LN_destinationIndicator = "destinationIndicator";
enum NID_destinationIndicator = 871;
//#define OBJ_destinationIndicator .OBJ_X509, 27L
enum LN_preferredDeliveryMethod = "preferredDeliveryMethod";
enum NID_preferredDeliveryMethod = 872;
//#define OBJ_preferredDeliveryMethod .OBJ_X509, 28L
enum LN_presentationAddress = "presentationAddress";
enum NID_presentationAddress = 873;
//#define OBJ_presentationAddress .OBJ_X509, 29L
enum LN_supportedApplicationContext = "supportedApplicationContext";
enum NID_supportedApplicationContext = 874;
//#define OBJ_supportedApplicationContext .OBJ_X509, 30L
enum SN_member = "member";
enum NID_member = 875;
//#define OBJ_member .OBJ_X509, 31L
enum SN_owner = "owner";
enum NID_owner = 876;
//#define OBJ_owner .OBJ_X509, 32L
enum LN_roleOccupant = "roleOccupant";
enum NID_roleOccupant = 877;
//#define OBJ_roleOccupant .OBJ_X509, 33L
enum SN_seeAlso = "seeAlso";
enum NID_seeAlso = 878;
//#define OBJ_seeAlso .OBJ_X509, 34L
enum LN_userPassword = "userPassword";
enum NID_userPassword = 879;
//#define OBJ_userPassword .OBJ_X509, 35L
enum LN_userCertificate = "userCertificate";
enum NID_userCertificate = 880;
//#define OBJ_userCertificate .OBJ_X509, 36L
enum LN_cACertificate = "cACertificate";
enum NID_cACertificate = 881;
//#define OBJ_cACertificate .OBJ_X509, 37L
enum LN_authorityRevocationList = "authorityRevocationList";
enum NID_authorityRevocationList = 882;
//#define OBJ_authorityRevocationList .OBJ_X509, 38L
enum LN_certificateRevocationList = "certificateRevocationList";
enum NID_certificateRevocationList = 883;
//#define OBJ_certificateRevocationList .OBJ_X509, 39L
enum LN_crossCertificatePair = "crossCertificatePair";
enum NID_crossCertificatePair = 884;
//#define OBJ_crossCertificatePair .OBJ_X509, 40L
enum SN_name = "name";
enum LN_name = "name";
enum NID_name = 173;
//#define OBJ_name .OBJ_X509, 41L
enum SN_givenName = "GN";
enum LN_givenName = "givenName";
enum NID_givenName = 99;
//#define OBJ_givenName .OBJ_X509, 42L
enum SN_initials = "initials";
enum LN_initials = "initials";
enum NID_initials = 101;
//#define OBJ_initials .OBJ_X509, 43L
enum LN_generationQualifier = "generationQualifier";
enum NID_generationQualifier = 509;
//#define OBJ_generationQualifier .OBJ_X509, 44L
enum LN_x500UniqueIdentifier = "x500UniqueIdentifier";
enum NID_x500UniqueIdentifier = 503;
//#define OBJ_x500UniqueIdentifier .OBJ_X509, 45L
enum SN_dnQualifier = "dnQualifier";
enum LN_dnQualifier = "dnQualifier";
enum NID_dnQualifier = 174;
//#define OBJ_dnQualifier .OBJ_X509, 46L
enum LN_enhancedSearchGuide = "enhancedSearchGuide";
enum NID_enhancedSearchGuide = 885;
//#define OBJ_enhancedSearchGuide .OBJ_X509, 47L
enum LN_protocolInformation = "protocolInformation";
enum NID_protocolInformation = 886;
//#define OBJ_protocolInformation .OBJ_X509, 48L
enum LN_distinguishedName = "distinguishedName";
enum NID_distinguishedName = 887;
//#define OBJ_distinguishedName .OBJ_X509, 49L
enum LN_uniqueMember = "uniqueMember";
enum NID_uniqueMember = 888;
//#define OBJ_uniqueMember .OBJ_X509, 50L
enum LN_houseIdentifier = "houseIdentifier";
enum NID_houseIdentifier = 889;
//#define OBJ_houseIdentifier .OBJ_X509, 51L
enum LN_supportedAlgorithms = "supportedAlgorithms";
enum NID_supportedAlgorithms = 890;
//#define OBJ_supportedAlgorithms .OBJ_X509, 52L
enum LN_deltaRevocationList = "deltaRevocationList";
enum NID_deltaRevocationList = 891;
//#define OBJ_deltaRevocationList .OBJ_X509, 53L
enum SN_dmdName = "dmdName";
enum NID_dmdName = 892;
//#define OBJ_dmdName .OBJ_X509, 54L
enum LN_pseudonym = "pseudonym";
enum NID_pseudonym = 510;
//#define OBJ_pseudonym .OBJ_X509, 65L
enum SN_role = "role";
enum LN_role = "role";
enum NID_role = 400;
//#define OBJ_role .OBJ_X509, 72L
enum SN_X500algorithms = "X500algorithms";
enum LN_X500algorithms = "directory services - algorithms";
enum NID_X500algorithms = 378;
//#define OBJ_X500algorithms .OBJ_X500, 8L
enum SN_rsa = "RSA";
enum LN_rsa = "rsa";
enum NID_rsa = 19;
//#define OBJ_rsa OBJ_X500algorithms, 1L, 1L
enum SN_mdc2WithRSA = "RSA-MDC2";
enum LN_mdc2WithRSA = "mdc2WithRSA";
enum NID_mdc2WithRSA = 96;
//#define OBJ_mdc2WithRSA OBJ_X500algorithms, 3L, 100L
enum SN_mdc2 = "MDC2";
enum LN_mdc2 = "mdc2";
enum NID_mdc2 = 95;
//#define OBJ_mdc2 OBJ_X500algorithms, 3L, 101L
enum SN_id_ce = "id-ce";
enum NID_id_ce = 81;
//#define OBJ_id_ce .OBJ_X500, 29L
enum SN_subject_directory_attributes = "subjectDirectoryAttributes";
enum LN_subject_directory_attributes = "X509v3 Subject Directory Attributes";
enum NID_subject_directory_attributes = 769;
//#define OBJ_subject_directory_attributes .OBJ_id_ce, 9L
enum SN_subject_key_identifier = "subjectKeyIdentifier";
enum LN_subject_key_identifier = "X509v3 Subject Key Identifier";
enum NID_subject_key_identifier = 82;
//#define OBJ_subject_key_identifier .OBJ_id_ce, 14L
enum SN_key_usage = "keyUsage";
enum LN_key_usage = "X509v3 Key Usage";
enum NID_key_usage = 83;
//#define OBJ_key_usage .OBJ_id_ce, 15L
enum SN_private_key_usage_period = "privateKeyUsagePeriod";
enum LN_private_key_usage_period = "X509v3 Private Key Usage Period";
enum NID_private_key_usage_period = 84;
//#define OBJ_private_key_usage_period .OBJ_id_ce, 16L
enum SN_subject_alt_name = "subjectAltName";
enum LN_subject_alt_name = "X509v3 Subject Alternative Name";
enum NID_subject_alt_name = 85;
//#define OBJ_subject_alt_name .OBJ_id_ce, 17L
enum SN_issuer_alt_name = "issuerAltName";
enum LN_issuer_alt_name = "X509v3 Issuer Alternative Name";
enum NID_issuer_alt_name = 86;
//#define OBJ_issuer_alt_name .OBJ_id_ce, 18L
enum SN_basic_constraints = "basicConstraints";
enum LN_basic_constraints = "X509v3 Basic Constraints";
enum NID_basic_constraints = 87;
//#define OBJ_basic_constraints .OBJ_id_ce, 19L
enum SN_crl_number = "crlNumber";
enum LN_crl_number = "X509v3 CRL Number";
enum NID_crl_number = 88;
//#define OBJ_crl_number .OBJ_id_ce, 20L
enum SN_crl_reason = "CRLReason";
enum LN_crl_reason = "X509v3 CRL Reason Code";
enum NID_crl_reason = 141;
//#define OBJ_crl_reason .OBJ_id_ce, 21L
enum SN_invalidity_date = "invalidityDate";
enum LN_invalidity_date = "Invalidity Date";
enum NID_invalidity_date = 142;
//#define OBJ_invalidity_date .OBJ_id_ce, 24L
enum SN_delta_crl = "deltaCRL";
enum LN_delta_crl = "X509v3 Delta CRL Indicator";
enum NID_delta_crl = 140;
//#define OBJ_delta_crl .OBJ_id_ce, 27L
enum SN_issuing_distribution_point = "issuingDistributionPoint";
enum LN_issuing_distribution_point = "X509v3 Issuing Distribution Point";
enum NID_issuing_distribution_point = 770;
//#define OBJ_issuing_distribution_point .OBJ_id_ce, 28L
enum SN_certificate_issuer = "certificateIssuer";
enum LN_certificate_issuer = "X509v3 Certificate Issuer";
enum NID_certificate_issuer = 771;
//#define OBJ_certificate_issuer .OBJ_id_ce, 29L
enum SN_name_constraints = "nameConstraints";
enum LN_name_constraints = "X509v3 Name Constraints";
enum NID_name_constraints = 666;
//#define OBJ_name_constraints .OBJ_id_ce, 30L
enum SN_crl_distribution_points = "crlDistributionPoints";
enum LN_crl_distribution_points = "X509v3 CRL Distribution Points";
enum NID_crl_distribution_points = 103;
//#define OBJ_crl_distribution_points .OBJ_id_ce, 31L
enum SN_certificate_policies = "certificatePolicies";
enum LN_certificate_policies = "X509v3 Certificate Policies";
enum NID_certificate_policies = 89;
//#define OBJ_certificate_policies .OBJ_id_ce, 32L
enum SN_any_policy = "anyPolicy";
enum LN_any_policy = "X509v3 Any Policy";
enum NID_any_policy = 746;
//#define OBJ_any_policy .OBJ_certificate_policies, 0L
enum SN_policy_mappings = "policyMappings";
enum LN_policy_mappings = "X509v3 Policy Mappings";
enum NID_policy_mappings = 747;
//#define OBJ_policy_mappings .OBJ_id_ce, 33L
enum SN_authority_key_identifier = "authorityKeyIdentifier";
enum LN_authority_key_identifier = "X509v3 Authority Key Identifier";
enum NID_authority_key_identifier = 90;
//#define OBJ_authority_key_identifier .OBJ_id_ce, 35L
enum SN_policy_constraints = "policyConstraints";
enum LN_policy_constraints = "X509v3 Policy Constraints";
enum NID_policy_constraints = 401;
//#define OBJ_policy_constraints .OBJ_id_ce, 36L
enum SN_ext_key_usage = "extendedKeyUsage";
enum LN_ext_key_usage = "X509v3 Extended Key Usage";
enum NID_ext_key_usage = 126;
//#define OBJ_ext_key_usage .OBJ_id_ce, 37L
enum SN_freshest_crl = "freshestCRL";
enum LN_freshest_crl = "X509v3 Freshest CRL";
enum NID_freshest_crl = 857;
//#define OBJ_freshest_crl .OBJ_id_ce, 46L
enum SN_inhibit_any_policy = "inhibitAnyPolicy";
enum LN_inhibit_any_policy = "X509v3 Inhibit Any Policy";
enum NID_inhibit_any_policy = 748;
//#define OBJ_inhibit_any_policy .OBJ_id_ce, 54L
enum SN_target_information = "targetInformation";
enum LN_target_information = "X509v3 AC Targeting";
enum NID_target_information = 402;
//#define OBJ_target_information .OBJ_id_ce, 55L
enum SN_no_rev_avail = "noRevAvail";
enum LN_no_rev_avail = "X509v3 No Revocation Available";
enum NID_no_rev_avail = 403;
//#define OBJ_no_rev_avail .OBJ_id_ce, 56L
enum SN_anyExtendedKeyUsage = "anyExtendedKeyUsage";
enum LN_anyExtendedKeyUsage = "Any Extended Key Usage";
enum NID_anyExtendedKeyUsage = 910;
//#define OBJ_anyExtendedKeyUsage .OBJ_ext_key_usage, 0L
enum SN_netscape = "Netscape";
enum LN_netscape = "Netscape Communications Corp.";
enum NID_netscape = 57;
//#define OBJ_netscape 2L, 16L, 840L, 1L, 113730L
enum SN_netscape_cert_extension = "nsCertExt";
enum LN_netscape_cert_extension = "Netscape Certificate Extension";
enum NID_netscape_cert_extension = 58;
//#define OBJ_netscape_cert_extension .OBJ_netscape, 1L
enum SN_netscape_data_type = "nsDataType";
enum LN_netscape_data_type = "Netscape Data Type";
enum NID_netscape_data_type = 59;
//#define OBJ_netscape_data_type .OBJ_netscape, 2L
enum SN_netscape_cert_type = "nsCertType";
enum LN_netscape_cert_type = "Netscape Cert Type";
enum NID_netscape_cert_type = 71;
//#define OBJ_netscape_cert_type .OBJ_netscape_cert_extension, 1L
enum SN_netscape_base_url = "nsBaseUrl";
enum LN_netscape_base_url = "Netscape Base Url";
enum NID_netscape_base_url = 72;
//#define OBJ_netscape_base_url .OBJ_netscape_cert_extension, 2L
enum SN_netscape_revocation_url = "nsRevocationUrl";
enum LN_netscape_revocation_url = "Netscape Revocation Url";
enum NID_netscape_revocation_url = 73;
//#define OBJ_netscape_revocation_url .OBJ_netscape_cert_extension, 3L
enum SN_netscape_ca_revocation_url = "nsCaRevocationUrl";
enum LN_netscape_ca_revocation_url = "Netscape CA Revocation Url";
enum NID_netscape_ca_revocation_url = 74;
//#define OBJ_netscape_ca_revocation_url .OBJ_netscape_cert_extension, 4L
enum SN_netscape_renewal_url = "nsRenewalUrl";
enum LN_netscape_renewal_url = "Netscape Renewal Url";
enum NID_netscape_renewal_url = 75;
//#define OBJ_netscape_renewal_url .OBJ_netscape_cert_extension, 7L
enum SN_netscape_ca_policy_url = "nsCaPolicyUrl";
enum LN_netscape_ca_policy_url = "Netscape CA Policy Url";
enum NID_netscape_ca_policy_url = 76;
//#define OBJ_netscape_ca_policy_url .OBJ_netscape_cert_extension, 8L
enum SN_netscape_ssl_server_name = "nsSslServerName";
enum LN_netscape_ssl_server_name = "Netscape SSL Server Name";
enum NID_netscape_ssl_server_name = 77;
//#define OBJ_netscape_ssl_server_name .OBJ_netscape_cert_extension, 12L
enum SN_netscape_comment = "nsComment";
enum LN_netscape_comment = "Netscape Comment";
enum NID_netscape_comment = 78;
//#define OBJ_netscape_comment .OBJ_netscape_cert_extension, 13L
enum SN_netscape_cert_sequence = "nsCertSequence";
enum LN_netscape_cert_sequence = "Netscape Certificate Sequence";
enum NID_netscape_cert_sequence = 79;
//#define OBJ_netscape_cert_sequence .OBJ_netscape_data_type, 5L
enum SN_ns_sgc = "nsSGC";
enum LN_ns_sgc = "Netscape Server Gated Crypto";
enum NID_ns_sgc = 139;
//#define OBJ_ns_sgc .OBJ_netscape, 4L, 1L
enum SN_org = "ORG";
enum LN_org = "org";
enum NID_org = 379;
//#define OBJ_org OBJ_iso, 3L
enum SN_dod = "DOD";
enum LN_dod = "dod";
enum NID_dod = 380;
//#define OBJ_dod OBJ_org, 6L
enum SN_iana = "IANA";
enum LN_iana = "iana";
enum NID_iana = 381;
//#define OBJ_iana OBJ_dod, 1L
//#define OBJ_internet OBJ_iana
enum SN_Directory = "directory";
enum LN_Directory = "Directory";
enum NID_Directory = 382;
//#define OBJ_Directory OBJ_internet, 1L
enum SN_Management = "mgmt";
enum LN_Management = "Management";
enum NID_Management = 383;
//#define OBJ_Management OBJ_internet, 2L
enum SN_Experimental = "experimental";
enum LN_Experimental = "Experimental";
enum NID_Experimental = 384;
//#define OBJ_Experimental OBJ_internet, 3L
enum SN_Private = "private";
enum LN_Private = "Private";
enum NID_Private = 385;
//#define OBJ_Private OBJ_internet, 4L
enum SN_Security = "security";
enum LN_Security = "Security";
enum NID_Security = 386;
//#define OBJ_Security OBJ_internet, 5L
enum SN_SNMPv2 = "snmpv2";
enum LN_SNMPv2 = "SNMPv2";
enum NID_SNMPv2 = 387;
//#define OBJ_SNMPv2 OBJ_internet, 6L
enum LN_Mail = "Mail";
enum NID_Mail = 388;
//#define OBJ_Mail OBJ_internet, 7L
enum SN_Enterprises = "enterprises";
enum LN_Enterprises = "Enterprises";
enum NID_Enterprises = 389;
//#define OBJ_Enterprises OBJ_Private, 1L
enum SN_dcObject = "dcobject";
enum LN_dcObject = "dcObject";
enum NID_dcObject = 390;
//#define OBJ_dcObject OBJ_Enterprises, 1466L, 344L
//#define OBJ_extendedValidation OBJ_Enterprises, 311L, 60L
enum LN_jurisdictionLocalityName = "jurisdictionLocalityName";
enum NID_jurisdictionLocalityName = 956;
//#define OBJ_jurisdictionLocalityName OBJ_extendedValidation, 2L, 1L, 1L
enum LN_jurisdictionStateOrProvinceName = "jurisdictionStateOrProvinceName";
enum NID_jurisdictionStateOrProvinceName = 957;
//#define OBJ_jurisdictionStateOrProvinceName OBJ_extendedValidation, 2L, 1L, 2L
enum LN_jurisdictionCountryName = "jurisdictionCountryName";
enum NID_jurisdictionCountryName = 958;
//#define OBJ_jurisdictionCountryName OBJ_extendedValidation, 2L, 1L, 3L
enum SN_mime_mhs = "mime-mhs";
enum LN_mime_mhs = "MIME MHS";
enum NID_mime_mhs = 504;
//#define OBJ_mime_mhs OBJ_Mail, 1L
enum SN_mime_mhs_headings = "mime-mhs-headings";
enum LN_mime_mhs_headings = "mime-mhs-headings";
enum NID_mime_mhs_headings = 505;
//#define OBJ_mime_mhs_headings OBJ_mime_mhs, 1L
enum SN_mime_mhs_bodies = "mime-mhs-bodies";
enum LN_mime_mhs_bodies = "mime-mhs-bodies";
enum NID_mime_mhs_bodies = 506;
//#define OBJ_mime_mhs_bodies OBJ_mime_mhs, 2L
enum SN_id_hex_partial_message = "id-hex-partial-message";
enum LN_id_hex_partial_message = "id-hex-partial-message";
enum NID_id_hex_partial_message = 507;
//#define OBJ_id_hex_partial_message OBJ_mime_mhs_headings, 1L
enum SN_id_hex_multipart_message = "id-hex-multipart-message";
enum LN_id_hex_multipart_message = "id-hex-multipart-message";
enum NID_id_hex_multipart_message = 508;
//#define OBJ_id_hex_multipart_message OBJ_mime_mhs_headings, 2L
enum SN_rle_compression = "RLE";
enum LN_rle_compression = "run length compression";
enum NID_rle_compression = 124;
//#define OBJ_rle_compression 1L, 1L, 1L, 1L, 666L, 1L
enum SN_zlib_compression = "ZLIB";
enum LN_zlib_compression = "zlib compression";
enum NID_zlib_compression = 125;
//#define OBJ_zlib_compression OBJ_id_smime_alg, 8L
//#define OBJ_csor 2L, 16L, 840L, 1L, 101L, 3L
//#define OBJ_nistAlgorithms OBJ_csor, 4L
//#define OBJ_aes OBJ_nistAlgorithms, 1L
enum SN_aes_128_ecb = "AES-128-ECB";
enum LN_aes_128_ecb = "aes-128-ecb";
enum NID_aes_128_ecb = 418;
//#define OBJ_aes_128_ecb OBJ_aes, 1L
enum SN_aes_128_cbc = "AES-128-CBC";
enum LN_aes_128_cbc = "aes-128-cbc";
enum NID_aes_128_cbc = 419;
//#define OBJ_aes_128_cbc OBJ_aes, 2L
enum SN_aes_128_ofb128 = "AES-128-OFB";
enum LN_aes_128_ofb128 = "aes-128-ofb";
enum NID_aes_128_ofb128 = 420;
//#define OBJ_aes_128_ofb128 OBJ_aes, 3L
enum SN_aes_128_cfb128 = "AES-128-CFB";
enum LN_aes_128_cfb128 = "aes-128-cfb";
enum NID_aes_128_cfb128 = 421;
//#define OBJ_aes_128_cfb128 OBJ_aes, 4L
enum SN_id_aes128_wrap = "id-aes128-wrap";
enum NID_id_aes128_wrap = 788;
//#define OBJ_id_aes128_wrap OBJ_aes, 5L
enum SN_aes_128_gcm = "id-aes128-GCM";
enum LN_aes_128_gcm = "aes-128-gcm";
enum NID_aes_128_gcm = 895;
//#define OBJ_aes_128_gcm OBJ_aes, 6L
enum SN_aes_128_ccm = "id-aes128-CCM";
enum LN_aes_128_ccm = "aes-128-ccm";
enum NID_aes_128_ccm = 896;
//#define OBJ_aes_128_ccm OBJ_aes, 7L
enum SN_id_aes128_wrap_pad = "id-aes128-wrap-pad";
enum NID_id_aes128_wrap_pad = 897;
//#define OBJ_id_aes128_wrap_pad OBJ_aes, 8L
enum SN_aes_192_ecb = "AES-192-ECB";
enum LN_aes_192_ecb = "aes-192-ecb";
enum NID_aes_192_ecb = 422;
//#define OBJ_aes_192_ecb OBJ_aes, 21L
enum SN_aes_192_cbc = "AES-192-CBC";
enum LN_aes_192_cbc = "aes-192-cbc";
enum NID_aes_192_cbc = 423;
//#define OBJ_aes_192_cbc OBJ_aes, 22L
enum SN_aes_192_ofb128 = "AES-192-OFB";
enum LN_aes_192_ofb128 = "aes-192-ofb";
enum NID_aes_192_ofb128 = 424;
//#define OBJ_aes_192_ofb128 OBJ_aes, 23L
enum SN_aes_192_cfb128 = "AES-192-CFB";
enum LN_aes_192_cfb128 = "aes-192-cfb";
enum NID_aes_192_cfb128 = 425;
//#define OBJ_aes_192_cfb128 OBJ_aes, 24L
enum SN_id_aes192_wrap = "id-aes192-wrap";
enum NID_id_aes192_wrap = 789;
//#define OBJ_id_aes192_wrap OBJ_aes, 25L
enum SN_aes_192_gcm = "id-aes192-GCM";
enum LN_aes_192_gcm = "aes-192-gcm";
enum NID_aes_192_gcm = 898;
//#define OBJ_aes_192_gcm OBJ_aes, 26L
enum SN_aes_192_ccm = "id-aes192-CCM";
enum LN_aes_192_ccm = "aes-192-ccm";
enum NID_aes_192_ccm = 899;
//#define OBJ_aes_192_ccm OBJ_aes, 27L
enum SN_id_aes192_wrap_pad = "id-aes192-wrap-pad";
enum NID_id_aes192_wrap_pad = 900;
//#define OBJ_id_aes192_wrap_pad OBJ_aes, 28L
enum SN_aes_256_ecb = "AES-256-ECB";
enum LN_aes_256_ecb = "aes-256-ecb";
enum NID_aes_256_ecb = 426;
//#define OBJ_aes_256_ecb OBJ_aes, 41L
enum SN_aes_256_cbc = "AES-256-CBC";
enum LN_aes_256_cbc = "aes-256-cbc";
enum NID_aes_256_cbc = 427;
//#define OBJ_aes_256_cbc OBJ_aes, 42L
enum SN_aes_256_ofb128 = "AES-256-OFB";
enum LN_aes_256_ofb128 = "aes-256-ofb";
enum NID_aes_256_ofb128 = 428;
//#define OBJ_aes_256_ofb128 OBJ_aes, 43L
enum SN_aes_256_cfb128 = "AES-256-CFB";
enum LN_aes_256_cfb128 = "aes-256-cfb";
enum NID_aes_256_cfb128 = 429;
//#define OBJ_aes_256_cfb128 OBJ_aes, 44L
enum SN_id_aes256_wrap = "id-aes256-wrap";
enum NID_id_aes256_wrap = 790;
//#define OBJ_id_aes256_wrap OBJ_aes, 45L
enum SN_aes_256_gcm = "id-aes256-GCM";
enum LN_aes_256_gcm = "aes-256-gcm";
enum NID_aes_256_gcm = 901;
//#define OBJ_aes_256_gcm OBJ_aes, 46L
enum SN_aes_256_ccm = "id-aes256-CCM";
enum LN_aes_256_ccm = "aes-256-ccm";
enum NID_aes_256_ccm = 902;
//#define OBJ_aes_256_ccm OBJ_aes, 47L
enum SN_id_aes256_wrap_pad = "id-aes256-wrap-pad";
enum NID_id_aes256_wrap_pad = 903;
//#define OBJ_id_aes256_wrap_pad OBJ_aes, 48L
enum SN_aes_128_cfb1 = "AES-128-CFB1";
enum LN_aes_128_cfb1 = "aes-128-cfb1";
enum NID_aes_128_cfb1 = 650;
enum SN_aes_192_cfb1 = "AES-192-CFB1";
enum LN_aes_192_cfb1 = "aes-192-cfb1";
enum NID_aes_192_cfb1 = 651;
enum SN_aes_256_cfb1 = "AES-256-CFB1";
enum LN_aes_256_cfb1 = "aes-256-cfb1";
enum NID_aes_256_cfb1 = 652;
enum SN_aes_128_cfb8 = "AES-128-CFB8";
enum LN_aes_128_cfb8 = "aes-128-cfb8";
enum NID_aes_128_cfb8 = 653;
enum SN_aes_192_cfb8 = "AES-192-CFB8";
enum LN_aes_192_cfb8 = "aes-192-cfb8";
enum NID_aes_192_cfb8 = 654;
enum SN_aes_256_cfb8 = "AES-256-CFB8";
enum LN_aes_256_cfb8 = "aes-256-cfb8";
enum NID_aes_256_cfb8 = 655;
enum SN_aes_128_ctr = "AES-128-CTR";
enum LN_aes_128_ctr = "aes-128-ctr";
enum NID_aes_128_ctr = 904;
enum SN_aes_192_ctr = "AES-192-CTR";
enum LN_aes_192_ctr = "aes-192-ctr";
enum NID_aes_192_ctr = 905;
enum SN_aes_256_ctr = "AES-256-CTR";
enum LN_aes_256_ctr = "aes-256-ctr";
enum NID_aes_256_ctr = 906;
enum SN_aes_128_xts = "AES-128-XTS";
enum LN_aes_128_xts = "aes-128-xts";
enum NID_aes_128_xts = 913;
enum SN_aes_256_xts = "AES-256-XTS";
enum LN_aes_256_xts = "aes-256-xts";
enum NID_aes_256_xts = 914;
enum SN_des_cfb1 = "DES-CFB1";
enum LN_des_cfb1 = "des-cfb1";
enum NID_des_cfb1 = 656;
enum SN_des_cfb8 = "DES-CFB8";
enum LN_des_cfb8 = "des-cfb8";
enum NID_des_cfb8 = 657;
enum SN_des_ede3_cfb1 = "DES-EDE3-CFB1";
enum LN_des_ede3_cfb1 = "des-ede3-cfb1";
enum NID_des_ede3_cfb1 = 658;
enum SN_des_ede3_cfb8 = "DES-EDE3-CFB8";
enum LN_des_ede3_cfb8 = "des-ede3-cfb8";
enum NID_des_ede3_cfb8 = 659;
//#define OBJ_nist_hashalgs OBJ_nistAlgorithms, 2L
enum SN_sha256 = "SHA256";
enum LN_sha256 = "sha256";
enum NID_sha256 = 672;
//#define OBJ_sha256 OBJ_nist_hashalgs, 1L
enum SN_sha384 = "SHA384";
enum LN_sha384 = "sha384";
enum NID_sha384 = 673;
//#define OBJ_sha384 OBJ_nist_hashalgs, 2L
enum SN_sha512 = "SHA512";
enum LN_sha512 = "sha512";
enum NID_sha512 = 674;
//#define OBJ_sha512 OBJ_nist_hashalgs, 3L
enum SN_sha224 = "SHA224";
enum LN_sha224 = "sha224";
enum NID_sha224 = 675;
//#define OBJ_sha224 OBJ_nist_hashalgs, 4L
//#define OBJ_dsa_with_sha2 OBJ_nistAlgorithms, 3L
enum SN_dsa_with_SHA224 = "dsa_with_SHA224";
enum NID_dsa_with_SHA224 = 802;
//#define OBJ_dsa_with_SHA224 OBJ_dsa_with_sha2, 1L
enum SN_dsa_with_SHA256 = "dsa_with_SHA256";
enum NID_dsa_with_SHA256 = 803;
//#define OBJ_dsa_with_SHA256 OBJ_dsa_with_sha2, 2L
enum SN_hold_instruction_code = "holdInstructionCode";
enum LN_hold_instruction_code = "Hold Instruction Code";
enum NID_hold_instruction_code = 430;
//#define OBJ_hold_instruction_code .OBJ_id_ce, 23L
//#define OBJ_holdInstruction OBJ_X9_57, 2L
enum SN_hold_instruction_none = "holdInstructionNone";
enum LN_hold_instruction_none = "Hold Instruction None";
enum NID_hold_instruction_none = 431;
//#define OBJ_hold_instruction_none OBJ_holdInstruction, 1L
enum SN_hold_instruction_call_issuer = "holdInstructionCallIssuer";
enum LN_hold_instruction_call_issuer = "Hold Instruction Call Issuer";
enum NID_hold_instruction_call_issuer = 432;
//#define OBJ_hold_instruction_call_issuer OBJ_holdInstruction, 2L
enum SN_hold_instruction_reject = "holdInstructionReject";
enum LN_hold_instruction_reject = "Hold Instruction Reject";
enum NID_hold_instruction_reject = 433;
//#define OBJ_hold_instruction_reject OBJ_holdInstruction, 3L
enum SN_data = "data";
enum NID_data = 434;
//#define OBJ_data OBJ_itu_t, 9L
enum SN_pss = "pss";
enum NID_pss = 435;
//#define OBJ_pss OBJ_data, 2342L
enum SN_ucl = "ucl";
enum NID_ucl = 436;
//#define OBJ_ucl OBJ_pss, 19200300L
enum SN_pilot = "pilot";
enum NID_pilot = 437;
//#define OBJ_pilot OBJ_ucl, 100L
enum LN_pilotAttributeType = "pilotAttributeType";
enum NID_pilotAttributeType = 438;
//#define OBJ_pilotAttributeType OBJ_pilot, 1L
enum LN_pilotAttributeSyntax = "pilotAttributeSyntax";
enum NID_pilotAttributeSyntax = 439;
//#define OBJ_pilotAttributeSyntax OBJ_pilot, 3L
enum LN_pilotObjectClass = "pilotObjectClass";
enum NID_pilotObjectClass = 440;
//#define OBJ_pilotObjectClass OBJ_pilot, 4L
enum LN_pilotGroups = "pilotGroups";
enum NID_pilotGroups = 441;
//#define OBJ_pilotGroups OBJ_pilot, 10L
enum LN_iA5StringSyntax = "iA5StringSyntax";
enum NID_iA5StringSyntax = 442;
//#define OBJ_iA5StringSyntax OBJ_pilotAttributeSyntax, 4L
enum LN_caseIgnoreIA5StringSyntax = "caseIgnoreIA5StringSyntax";
enum NID_caseIgnoreIA5StringSyntax = 443;
//#define OBJ_caseIgnoreIA5StringSyntax OBJ_pilotAttributeSyntax, 5L
enum LN_pilotObject = "pilotObject";
enum NID_pilotObject = 444;
//#define OBJ_pilotObject OBJ_pilotObjectClass, 3L
enum LN_pilotPerson = "pilotPerson";
enum NID_pilotPerson = 445;
//#define OBJ_pilotPerson OBJ_pilotObjectClass, 4L
enum SN_account = "account";
enum NID_account = 446;
//#define OBJ_account OBJ_pilotObjectClass, 5L
enum SN_document = "document";
enum NID_document = 447;
//#define OBJ_document OBJ_pilotObjectClass, 6L
enum SN_room = "room";
enum NID_room = 448;
//#define OBJ_room OBJ_pilotObjectClass, 7L
enum LN_documentSeries = "documentSeries";
enum NID_documentSeries = 449;
//#define OBJ_documentSeries OBJ_pilotObjectClass, 9L
enum SN_Domain = "domain";
enum LN_Domain = "Domain";
enum NID_Domain = 392;
//#define OBJ_Domain OBJ_pilotObjectClass, 13L
enum LN_rFC822localPart = "rFC822localPart";
enum NID_rFC822localPart = 450;
//#define OBJ_rFC822localPart OBJ_pilotObjectClass, 14L
enum LN_dNSDomain = "dNSDomain";
enum NID_dNSDomain = 451;
//#define OBJ_dNSDomain OBJ_pilotObjectClass, 15L
enum LN_domainRelatedObject = "domainRelatedObject";
enum NID_domainRelatedObject = 452;
//#define OBJ_domainRelatedObject OBJ_pilotObjectClass, 17L
enum LN_friendlyCountry = "friendlyCountry";
enum NID_friendlyCountry = 453;
//#define OBJ_friendlyCountry OBJ_pilotObjectClass, 18L
enum LN_simpleSecurityObject = "simpleSecurityObject";
enum NID_simpleSecurityObject = 454;
//#define OBJ_simpleSecurityObject OBJ_pilotObjectClass, 19L
enum LN_pilotOrganization = "pilotOrganization";
enum NID_pilotOrganization = 455;
//#define OBJ_pilotOrganization OBJ_pilotObjectClass, 20L
enum LN_pilotDSA = "pilotDSA";
enum NID_pilotDSA = 456;
//#define OBJ_pilotDSA OBJ_pilotObjectClass, 21L
enum LN_qualityLabelledData = "qualityLabelledData";
enum NID_qualityLabelledData = 457;
//#define OBJ_qualityLabelledData OBJ_pilotObjectClass, 22L
enum SN_userId = "UID";
enum LN_userId = "userId";
enum NID_userId = 458;
//#define OBJ_userId OBJ_pilotAttributeType, 1L
enum LN_textEncodedORAddress = "textEncodedORAddress";
enum NID_textEncodedORAddress = 459;
//#define OBJ_textEncodedORAddress OBJ_pilotAttributeType, 2L
enum SN_rfc822Mailbox = "mail";
enum LN_rfc822Mailbox = "rfc822Mailbox";
enum NID_rfc822Mailbox = 460;
//#define OBJ_rfc822Mailbox OBJ_pilotAttributeType, 3L
enum SN_info = "info";
enum NID_info = 461;
//#define OBJ_info OBJ_pilotAttributeType, 4L
enum LN_favouriteDrink = "favouriteDrink";
enum NID_favouriteDrink = 462;
//#define OBJ_favouriteDrink OBJ_pilotAttributeType, 5L
enum LN_roomNumber = "roomNumber";
enum NID_roomNumber = 463;
//#define OBJ_roomNumber OBJ_pilotAttributeType, 6L
enum SN_photo = "photo";
enum NID_photo = 464;
//#define OBJ_photo OBJ_pilotAttributeType, 7L
enum LN_userClass = "userClass";
enum NID_userClass = 465;
//#define OBJ_userClass OBJ_pilotAttributeType, 8L
enum SN_host = "host";
enum NID_host = 466;
//#define OBJ_host OBJ_pilotAttributeType, 9L
enum SN_manager = "manager";
enum NID_manager = 467;
//#define OBJ_manager OBJ_pilotAttributeType, 10L
enum LN_documentIdentifier = "documentIdentifier";
enum NID_documentIdentifier = 468;
//#define OBJ_documentIdentifier OBJ_pilotAttributeType, 11L
enum LN_documentTitle = "documentTitle";
enum NID_documentTitle = 469;
//#define OBJ_documentTitle OBJ_pilotAttributeType, 12L
enum LN_documentVersion = "documentVersion";
enum NID_documentVersion = 470;
//#define OBJ_documentVersion OBJ_pilotAttributeType, 13L
enum LN_documentAuthor = "documentAuthor";
enum NID_documentAuthor = 471;
//#define OBJ_documentAuthor OBJ_pilotAttributeType, 14L
enum LN_documentLocation = "documentLocation";
enum NID_documentLocation = 472;
//#define OBJ_documentLocation OBJ_pilotAttributeType, 15L
enum LN_homeTelephoneNumber = "homeTelephoneNumber";
enum NID_homeTelephoneNumber = 473;
//#define OBJ_homeTelephoneNumber OBJ_pilotAttributeType, 20L
enum SN_secretary = "secretary";
enum NID_secretary = 474;
//#define OBJ_secretary OBJ_pilotAttributeType, 21L
enum LN_otherMailbox = "otherMailbox";
enum NID_otherMailbox = 475;
//#define OBJ_otherMailbox OBJ_pilotAttributeType, 22L
enum LN_lastModifiedTime = "lastModifiedTime";
enum NID_lastModifiedTime = 476;
//#define OBJ_lastModifiedTime OBJ_pilotAttributeType, 23L
enum LN_lastModifiedBy = "lastModifiedBy";
enum NID_lastModifiedBy = 477;
//#define OBJ_lastModifiedBy OBJ_pilotAttributeType, 24L
enum SN_domainComponent = "DC";
enum LN_domainComponent = "domainComponent";
enum NID_domainComponent = 391;
//#define OBJ_domainComponent OBJ_pilotAttributeType, 25L
enum LN_aRecord = "aRecord";
enum NID_aRecord = 478;
//#define OBJ_aRecord OBJ_pilotAttributeType, 26L
enum LN_pilotAttributeType27 = "pilotAttributeType27";
enum NID_pilotAttributeType27 = 479;
//#define OBJ_pilotAttributeType27 OBJ_pilotAttributeType, 27L
enum LN_mXRecord = "mXRecord";
enum NID_mXRecord = 480;
//#define OBJ_mXRecord OBJ_pilotAttributeType, 28L
enum LN_nSRecord = "nSRecord";
enum NID_nSRecord = 481;
//#define OBJ_nSRecord OBJ_pilotAttributeType, 29L
enum LN_sOARecord = "sOARecord";
enum NID_sOARecord = 482;
//#define OBJ_sOARecord OBJ_pilotAttributeType, 30L
enum LN_cNAMERecord = "cNAMERecord";
enum NID_cNAMERecord = 483;
//#define OBJ_cNAMERecord OBJ_pilotAttributeType, 31L
enum LN_associatedDomain = "associatedDomain";
enum NID_associatedDomain = 484;
//#define OBJ_associatedDomain OBJ_pilotAttributeType, 37L
enum LN_associatedName = "associatedName";
enum NID_associatedName = 485;
//#define OBJ_associatedName OBJ_pilotAttributeType, 38L
enum LN_homePostalAddress = "homePostalAddress";
enum NID_homePostalAddress = 486;
//#define OBJ_homePostalAddress OBJ_pilotAttributeType, 39L
enum LN_personalTitle = "personalTitle";
enum NID_personalTitle = 487;
//#define OBJ_personalTitle OBJ_pilotAttributeType, 40L
enum LN_mobileTelephoneNumber = "mobileTelephoneNumber";
enum NID_mobileTelephoneNumber = 488;
//#define OBJ_mobileTelephoneNumber OBJ_pilotAttributeType, 41L
enum LN_pagerTelephoneNumber = "pagerTelephoneNumber";
enum NID_pagerTelephoneNumber = 489;
//#define OBJ_pagerTelephoneNumber OBJ_pilotAttributeType, 42L
enum LN_friendlyCountryName = "friendlyCountryName";
enum NID_friendlyCountryName = 490;
//#define OBJ_friendlyCountryName OBJ_pilotAttributeType, 43L
enum LN_organizationalStatus = "organizationalStatus";
enum NID_organizationalStatus = 491;
//#define OBJ_organizationalStatus OBJ_pilotAttributeType, 45L
enum LN_janetMailbox = "janetMailbox";
enum NID_janetMailbox = 492;
//#define OBJ_janetMailbox OBJ_pilotAttributeType, 46L
enum LN_mailPreferenceOption = "mailPreferenceOption";
enum NID_mailPreferenceOption = 493;
//#define OBJ_mailPreferenceOption OBJ_pilotAttributeType, 47L
enum LN_buildingName = "buildingName";
enum NID_buildingName = 494;
//#define OBJ_buildingName OBJ_pilotAttributeType, 48L
enum LN_dSAQuality = "dSAQuality";
enum NID_dSAQuality = 495;
//#define OBJ_dSAQuality OBJ_pilotAttributeType, 49L
enum LN_singleLevelQuality = "singleLevelQuality";
enum NID_singleLevelQuality = 496;
//#define OBJ_singleLevelQuality OBJ_pilotAttributeType, 50L
enum LN_subtreeMinimumQuality = "subtreeMinimumQuality";
enum NID_subtreeMinimumQuality = 497;
//#define OBJ_subtreeMinimumQuality OBJ_pilotAttributeType, 51L
enum LN_subtreeMaximumQuality = "subtreeMaximumQuality";
enum NID_subtreeMaximumQuality = 498;
//#define OBJ_subtreeMaximumQuality OBJ_pilotAttributeType, 52L
enum LN_personalSignature = "personalSignature";
enum NID_personalSignature = 499;
//#define OBJ_personalSignature OBJ_pilotAttributeType, 53L
enum LN_dITRedirect = "dITRedirect";
enum NID_dITRedirect = 500;
//#define OBJ_dITRedirect OBJ_pilotAttributeType, 54L
enum SN_audio = "audio";
enum NID_audio = 501;
//#define OBJ_audio OBJ_pilotAttributeType, 55L
enum LN_documentPublisher = "documentPublisher";
enum NID_documentPublisher = 502;
//#define OBJ_documentPublisher OBJ_pilotAttributeType, 56L
enum SN_id_set = "id-set";
enum LN_id_set = "Secure Electronic Transactions";
enum NID_id_set = 512;
//#define OBJ_id_set OBJ_international_organizations, 42L
enum SN_set_ctype = "set-ctype";
enum LN_set_ctype = "content types";
enum NID_set_ctype = 513;
//#define OBJ_set_ctype OBJ_id_set, 0L
enum SN_set_msgExt = "set-msgExt";
enum LN_set_msgExt = "message extensions";
enum NID_set_msgExt = 514;
//#define OBJ_set_msgExt OBJ_id_set, 1L
enum SN_set_attr = "set-attr";
enum NID_set_attr = 515;
//#define OBJ_set_attr OBJ_id_set, 3L
enum SN_set_policy = "set-policy";
enum NID_set_policy = 516;
//#define OBJ_set_policy OBJ_id_set, 5L
enum SN_set_certExt = "set-certExt";
enum LN_set_certExt = "certificate extensions";
enum NID_set_certExt = 517;
//#define OBJ_set_certExt OBJ_id_set, 7L
enum SN_set_brand = "set-brand";
enum NID_set_brand = 518;
//#define OBJ_set_brand OBJ_id_set, 8L
enum SN_setct_PANData = "setct-PANData";
enum NID_setct_PANData = 519;
//#define OBJ_setct_PANData OBJ_set_ctype, 0L
enum SN_setct_PANToken = "setct-PANToken";
enum NID_setct_PANToken = 520;
//#define OBJ_setct_PANToken OBJ_set_ctype, 1L
enum SN_setct_PANOnly = "setct-PANOnly";
enum NID_setct_PANOnly = 521;
//#define OBJ_setct_PANOnly OBJ_set_ctype, 2L
enum SN_setct_OIData = "setct-OIData";
enum NID_setct_OIData = 522;
//#define OBJ_setct_OIData OBJ_set_ctype, 3L
enum SN_setct_PI = "setct-PI";
enum NID_setct_PI = 523;
//#define OBJ_setct_PI OBJ_set_ctype, 4L
enum SN_setct_PIData = "setct-PIData";
enum NID_setct_PIData = 524;
//#define OBJ_setct_PIData OBJ_set_ctype, 5L
enum SN_setct_PIDataUnsigned = "setct-PIDataUnsigned";
enum NID_setct_PIDataUnsigned = 525;
//#define OBJ_setct_PIDataUnsigned OBJ_set_ctype, 6L
enum SN_setct_HODInput = "setct-HODInput";
enum NID_setct_HODInput = 526;
//#define OBJ_setct_HODInput OBJ_set_ctype, 7L
enum SN_setct_AuthResBaggage = "setct-AuthResBaggage";
enum NID_setct_AuthResBaggage = 527;
//#define OBJ_setct_AuthResBaggage OBJ_set_ctype, 8L
enum SN_setct_AuthRevReqBaggage = "setct-AuthRevReqBaggage";
enum NID_setct_AuthRevReqBaggage = 528;
//#define OBJ_setct_AuthRevReqBaggage OBJ_set_ctype, 9L
enum SN_setct_AuthRevResBaggage = "setct-AuthRevResBaggage";
enum NID_setct_AuthRevResBaggage = 529;
//#define OBJ_setct_AuthRevResBaggage OBJ_set_ctype, 10L
enum SN_setct_CapTokenSeq = "setct-CapTokenSeq";
enum NID_setct_CapTokenSeq = 530;
//#define OBJ_setct_CapTokenSeq OBJ_set_ctype, 11L
enum SN_setct_PInitResData = "setct-PInitResData";
enum NID_setct_PInitResData = 531;
//#define OBJ_setct_PInitResData OBJ_set_ctype, 12L
enum SN_setct_PI_TBS = "setct-PI-TBS";
enum NID_setct_PI_TBS = 532;
//#define OBJ_setct_PI_TBS OBJ_set_ctype, 13L
enum SN_setct_PResData = "setct-PResData";
enum NID_setct_PResData = 533;
//#define OBJ_setct_PResData OBJ_set_ctype, 14L
enum SN_setct_AuthReqTBS = "setct-AuthReqTBS";
enum NID_setct_AuthReqTBS = 534;
//#define OBJ_setct_AuthReqTBS OBJ_set_ctype, 16L
enum SN_setct_AuthResTBS = "setct-AuthResTBS";
enum NID_setct_AuthResTBS = 535;
//#define OBJ_setct_AuthResTBS OBJ_set_ctype, 17L
enum SN_setct_AuthResTBSX = "setct-AuthResTBSX";
enum NID_setct_AuthResTBSX = 536;
//#define OBJ_setct_AuthResTBSX OBJ_set_ctype, 18L
enum SN_setct_AuthTokenTBS = "setct-AuthTokenTBS";
enum NID_setct_AuthTokenTBS = 537;
//#define OBJ_setct_AuthTokenTBS OBJ_set_ctype, 19L
enum SN_setct_CapTokenData = "setct-CapTokenData";
enum NID_setct_CapTokenData = 538;
//#define OBJ_setct_CapTokenData OBJ_set_ctype, 20L
enum SN_setct_CapTokenTBS = "setct-CapTokenTBS";
enum NID_setct_CapTokenTBS = 539;
//#define OBJ_setct_CapTokenTBS OBJ_set_ctype, 21L
enum SN_setct_AcqCardCodeMsg = "setct-AcqCardCodeMsg";
enum NID_setct_AcqCardCodeMsg = 540;
//#define OBJ_setct_AcqCardCodeMsg OBJ_set_ctype, 22L
enum SN_setct_AuthRevReqTBS = "setct-AuthRevReqTBS";
enum NID_setct_AuthRevReqTBS = 541;
//#define OBJ_setct_AuthRevReqTBS OBJ_set_ctype, 23L
enum SN_setct_AuthRevResData = "setct-AuthRevResData";
enum NID_setct_AuthRevResData = 542;
//#define OBJ_setct_AuthRevResData OBJ_set_ctype, 24L
enum SN_setct_AuthRevResTBS = "setct-AuthRevResTBS";
enum NID_setct_AuthRevResTBS = 543;
//#define OBJ_setct_AuthRevResTBS OBJ_set_ctype, 25L
enum SN_setct_CapReqTBS = "setct-CapReqTBS";
enum NID_setct_CapReqTBS = 544;
//#define OBJ_setct_CapReqTBS OBJ_set_ctype, 26L
enum SN_setct_CapReqTBSX = "setct-CapReqTBSX";
enum NID_setct_CapReqTBSX = 545;
//#define OBJ_setct_CapReqTBSX OBJ_set_ctype, 27L
enum SN_setct_CapResData = "setct-CapResData";
enum NID_setct_CapResData = 546;
//#define OBJ_setct_CapResData OBJ_set_ctype, 28L
enum SN_setct_CapRevReqTBS = "setct-CapRevReqTBS";
enum NID_setct_CapRevReqTBS = 547;
//#define OBJ_setct_CapRevReqTBS OBJ_set_ctype, 29L
enum SN_setct_CapRevReqTBSX = "setct-CapRevReqTBSX";
enum NID_setct_CapRevReqTBSX = 548;
//#define OBJ_setct_CapRevReqTBSX OBJ_set_ctype, 30L
enum SN_setct_CapRevResData = "setct-CapRevResData";
enum NID_setct_CapRevResData = 549;
//#define OBJ_setct_CapRevResData OBJ_set_ctype, 31L
enum SN_setct_CredReqTBS = "setct-CredReqTBS";
enum NID_setct_CredReqTBS = 550;
//#define OBJ_setct_CredReqTBS OBJ_set_ctype, 32L
enum SN_setct_CredReqTBSX = "setct-CredReqTBSX";
enum NID_setct_CredReqTBSX = 551;
//#define OBJ_setct_CredReqTBSX OBJ_set_ctype, 33L
enum SN_setct_CredResData = "setct-CredResData";
enum NID_setct_CredResData = 552;
//#define OBJ_setct_CredResData OBJ_set_ctype, 34L
enum SN_setct_CredRevReqTBS = "setct-CredRevReqTBS";
enum NID_setct_CredRevReqTBS = 553;
//#define OBJ_setct_CredRevReqTBS OBJ_set_ctype, 35L
enum SN_setct_CredRevReqTBSX = "setct-CredRevReqTBSX";
enum NID_setct_CredRevReqTBSX = 554;
//#define OBJ_setct_CredRevReqTBSX OBJ_set_ctype, 36L
enum SN_setct_CredRevResData = "setct-CredRevResData";
enum NID_setct_CredRevResData = 555;
//#define OBJ_setct_CredRevResData OBJ_set_ctype, 37L
enum SN_setct_PCertReqData = "setct-PCertReqData";
enum NID_setct_PCertReqData = 556;
//#define OBJ_setct_PCertReqData OBJ_set_ctype, 38L
enum SN_setct_PCertResTBS = "setct-PCertResTBS";
enum NID_setct_PCertResTBS = 557;
//#define OBJ_setct_PCertResTBS OBJ_set_ctype, 39L
enum SN_setct_BatchAdminReqData = "setct-BatchAdminReqData";
enum NID_setct_BatchAdminReqData = 558;
//#define OBJ_setct_BatchAdminReqData OBJ_set_ctype, 40L
enum SN_setct_BatchAdminResData = "setct-BatchAdminResData";
enum NID_setct_BatchAdminResData = 559;
//#define OBJ_setct_BatchAdminResData OBJ_set_ctype, 41L
enum SN_setct_CardCInitResTBS = "setct-CardCInitResTBS";
enum NID_setct_CardCInitResTBS = 560;
//#define OBJ_setct_CardCInitResTBS OBJ_set_ctype, 42L
enum SN_setct_MeAqCInitResTBS = "setct-MeAqCInitResTBS";
enum NID_setct_MeAqCInitResTBS = 561;
//#define OBJ_setct_MeAqCInitResTBS OBJ_set_ctype, 43L
enum SN_setct_RegFormResTBS = "setct-RegFormResTBS";
enum NID_setct_RegFormResTBS = 562;
//#define OBJ_setct_RegFormResTBS OBJ_set_ctype, 44L
enum SN_setct_CertReqData = "setct-CertReqData";
enum NID_setct_CertReqData = 563;
//#define OBJ_setct_CertReqData OBJ_set_ctype, 45L
enum SN_setct_CertReqTBS = "setct-CertReqTBS";
enum NID_setct_CertReqTBS = 564;
//#define OBJ_setct_CertReqTBS OBJ_set_ctype, 46L
enum SN_setct_CertResData = "setct-CertResData";
enum NID_setct_CertResData = 565;
//#define OBJ_setct_CertResData OBJ_set_ctype, 47L
enum SN_setct_CertInqReqTBS = "setct-CertInqReqTBS";
enum NID_setct_CertInqReqTBS = 566;
//#define OBJ_setct_CertInqReqTBS OBJ_set_ctype, 48L
enum SN_setct_ErrorTBS = "setct-ErrorTBS";
enum NID_setct_ErrorTBS = 567;
//#define OBJ_setct_ErrorTBS OBJ_set_ctype, 49L
enum SN_setct_PIDualSignedTBE = "setct-PIDualSignedTBE";
enum NID_setct_PIDualSignedTBE = 568;
//#define OBJ_setct_PIDualSignedTBE OBJ_set_ctype, 50L
enum SN_setct_PIUnsignedTBE = "setct-PIUnsignedTBE";
enum NID_setct_PIUnsignedTBE = 569;
//#define OBJ_setct_PIUnsignedTBE OBJ_set_ctype, 51L
enum SN_setct_AuthReqTBE = "setct-AuthReqTBE";
enum NID_setct_AuthReqTBE = 570;
//#define OBJ_setct_AuthReqTBE OBJ_set_ctype, 52L
enum SN_setct_AuthResTBE = "setct-AuthResTBE";
enum NID_setct_AuthResTBE = 571;
//#define OBJ_setct_AuthResTBE OBJ_set_ctype, 53L
enum SN_setct_AuthResTBEX = "setct-AuthResTBEX";
enum NID_setct_AuthResTBEX = 572;
//#define OBJ_setct_AuthResTBEX OBJ_set_ctype, 54L
enum SN_setct_AuthTokenTBE = "setct-AuthTokenTBE";
enum NID_setct_AuthTokenTBE = 573;
//#define OBJ_setct_AuthTokenTBE OBJ_set_ctype, 55L
enum SN_setct_CapTokenTBE = "setct-CapTokenTBE";
enum NID_setct_CapTokenTBE = 574;
//#define OBJ_setct_CapTokenTBE OBJ_set_ctype, 56L
enum SN_setct_CapTokenTBEX = "setct-CapTokenTBEX";
enum NID_setct_CapTokenTBEX = 575;
//#define OBJ_setct_CapTokenTBEX OBJ_set_ctype, 57L
enum SN_setct_AcqCardCodeMsgTBE = "setct-AcqCardCodeMsgTBE";
enum NID_setct_AcqCardCodeMsgTBE = 576;
//#define OBJ_setct_AcqCardCodeMsgTBE OBJ_set_ctype, 58L
enum SN_setct_AuthRevReqTBE = "setct-AuthRevReqTBE";
enum NID_setct_AuthRevReqTBE = 577;
//#define OBJ_setct_AuthRevReqTBE OBJ_set_ctype, 59L
enum SN_setct_AuthRevResTBE = "setct-AuthRevResTBE";
enum NID_setct_AuthRevResTBE = 578;
//#define OBJ_setct_AuthRevResTBE OBJ_set_ctype, 60L
enum SN_setct_AuthRevResTBEB = "setct-AuthRevResTBEB";
enum NID_setct_AuthRevResTBEB = 579;
//#define OBJ_setct_AuthRevResTBEB OBJ_set_ctype, 61L
enum SN_setct_CapReqTBE = "setct-CapReqTBE";
enum NID_setct_CapReqTBE = 580;
//#define OBJ_setct_CapReqTBE OBJ_set_ctype, 62L
enum SN_setct_CapReqTBEX = "setct-CapReqTBEX";
enum NID_setct_CapReqTBEX = 581;
//#define OBJ_setct_CapReqTBEX OBJ_set_ctype, 63L
enum SN_setct_CapResTBE = "setct-CapResTBE";
enum NID_setct_CapResTBE = 582;
//#define OBJ_setct_CapResTBE OBJ_set_ctype, 64L
enum SN_setct_CapRevReqTBE = "setct-CapRevReqTBE";
enum NID_setct_CapRevReqTBE = 583;
//#define OBJ_setct_CapRevReqTBE OBJ_set_ctype, 65L
enum SN_setct_CapRevReqTBEX = "setct-CapRevReqTBEX";
enum NID_setct_CapRevReqTBEX = 584;
//#define OBJ_setct_CapRevReqTBEX OBJ_set_ctype, 66L
enum SN_setct_CapRevResTBE = "setct-CapRevResTBE";
enum NID_setct_CapRevResTBE = 585;
//#define OBJ_setct_CapRevResTBE OBJ_set_ctype, 67L
enum SN_setct_CredReqTBE = "setct-CredReqTBE";
enum NID_setct_CredReqTBE = 586;
//#define OBJ_setct_CredReqTBE OBJ_set_ctype, 68L
enum SN_setct_CredReqTBEX = "setct-CredReqTBEX";
enum NID_setct_CredReqTBEX = 587;
//#define OBJ_setct_CredReqTBEX OBJ_set_ctype, 69L
enum SN_setct_CredResTBE = "setct-CredResTBE";
enum NID_setct_CredResTBE = 588;
//#define OBJ_setct_CredResTBE OBJ_set_ctype, 70L
enum SN_setct_CredRevReqTBE = "setct-CredRevReqTBE";
enum NID_setct_CredRevReqTBE = 589;
//#define OBJ_setct_CredRevReqTBE OBJ_set_ctype, 71L
enum SN_setct_CredRevReqTBEX = "setct-CredRevReqTBEX";
enum NID_setct_CredRevReqTBEX = 590;
//#define OBJ_setct_CredRevReqTBEX OBJ_set_ctype, 72L
enum SN_setct_CredRevResTBE = "setct-CredRevResTBE";
enum NID_setct_CredRevResTBE = 591;
//#define OBJ_setct_CredRevResTBE OBJ_set_ctype, 73L
enum SN_setct_BatchAdminReqTBE = "setct-BatchAdminReqTBE";
enum NID_setct_BatchAdminReqTBE = 592;
//#define OBJ_setct_BatchAdminReqTBE OBJ_set_ctype, 74L
enum SN_setct_BatchAdminResTBE = "setct-BatchAdminResTBE";
enum NID_setct_BatchAdminResTBE = 593;
//#define OBJ_setct_BatchAdminResTBE OBJ_set_ctype, 75L
enum SN_setct_RegFormReqTBE = "setct-RegFormReqTBE";
enum NID_setct_RegFormReqTBE = 594;
//#define OBJ_setct_RegFormReqTBE OBJ_set_ctype, 76L
enum SN_setct_CertReqTBE = "setct-CertReqTBE";
enum NID_setct_CertReqTBE = 595;
//#define OBJ_setct_CertReqTBE OBJ_set_ctype, 77L
enum SN_setct_CertReqTBEX = "setct-CertReqTBEX";
enum NID_setct_CertReqTBEX = 596;
//#define OBJ_setct_CertReqTBEX OBJ_set_ctype, 78L
enum SN_setct_CertResTBE = "setct-CertResTBE";
enum NID_setct_CertResTBE = 597;
//#define OBJ_setct_CertResTBE OBJ_set_ctype, 79L
enum SN_setct_CRLNotificationTBS = "setct-CRLNotificationTBS";
enum NID_setct_CRLNotificationTBS = 598;
//#define OBJ_setct_CRLNotificationTBS OBJ_set_ctype, 80L
enum SN_setct_CRLNotificationResTBS = "setct-CRLNotificationResTBS";
enum NID_setct_CRLNotificationResTBS = 599;
//#define OBJ_setct_CRLNotificationResTBS OBJ_set_ctype, 81L
enum SN_setct_BCIDistributionTBS = "setct-BCIDistributionTBS";
enum NID_setct_BCIDistributionTBS = 600;
//#define OBJ_setct_BCIDistributionTBS OBJ_set_ctype, 82L
enum SN_setext_genCrypt = "setext-genCrypt";
enum LN_setext_genCrypt = "generic cryptogram";
enum NID_setext_genCrypt = 601;
//#define OBJ_setext_genCrypt OBJ_set_msgExt, 1L
enum SN_setext_miAuth = "setext-miAuth";
enum LN_setext_miAuth = "merchant initiated auth";
enum NID_setext_miAuth = 602;
//#define OBJ_setext_miAuth OBJ_set_msgExt, 3L
enum SN_setext_pinSecure = "setext-pinSecure";
enum NID_setext_pinSecure = 603;
//#define OBJ_setext_pinSecure OBJ_set_msgExt, 4L
enum SN_setext_pinAny = "setext-pinAny";
enum NID_setext_pinAny = 604;
//#define OBJ_setext_pinAny OBJ_set_msgExt, 5L
enum SN_setext_track2 = "setext-track2";
enum NID_setext_track2 = 605;
//#define OBJ_setext_track2 OBJ_set_msgExt, 7L
enum SN_setext_cv = "setext-cv";
enum LN_setext_cv = "additional verification";
enum NID_setext_cv = 606;
//#define OBJ_setext_cv OBJ_set_msgExt, 8L
enum SN_set_policy_root = "set-policy-root";
enum NID_set_policy_root = 607;
//#define OBJ_set_policy_root OBJ_set_policy, 0L
enum SN_setCext_hashedRoot = "setCext-hashedRoot";
enum NID_setCext_hashedRoot = 608;
//#define OBJ_setCext_hashedRoot OBJ_set_certExt, 0L
enum SN_setCext_certType = "setCext-certType";
enum NID_setCext_certType = 609;
//#define OBJ_setCext_certType OBJ_set_certExt, 1L
enum SN_setCext_merchData = "setCext-merchData";
enum NID_setCext_merchData = 610;
//#define OBJ_setCext_merchData OBJ_set_certExt, 2L
enum SN_setCext_cCertRequired = "setCext-cCertRequired";
enum NID_setCext_cCertRequired = 611;
//#define OBJ_setCext_cCertRequired OBJ_set_certExt, 3L
enum SN_setCext_tunneling = "setCext-tunneling";
enum NID_setCext_tunneling = 612;
//#define OBJ_setCext_tunneling OBJ_set_certExt, 4L
enum SN_setCext_setExt = "setCext-setExt";
enum NID_setCext_setExt = 613;
//#define OBJ_setCext_setExt OBJ_set_certExt, 5L
enum SN_setCext_setQualf = "setCext-setQualf";
enum NID_setCext_setQualf = 614;
//#define OBJ_setCext_setQualf OBJ_set_certExt, 6L
enum SN_setCext_PGWYcapabilities = "setCext-PGWYcapabilities";
enum NID_setCext_PGWYcapabilities = 615;
//#define OBJ_setCext_PGWYcapabilities OBJ_set_certExt, 7L
enum SN_setCext_TokenIdentifier = "setCext-TokenIdentifier";
enum NID_setCext_TokenIdentifier = 616;
//#define OBJ_setCext_TokenIdentifier OBJ_set_certExt, 8L
enum SN_setCext_Track2Data = "setCext-Track2Data";
enum NID_setCext_Track2Data = 617;
//#define OBJ_setCext_Track2Data OBJ_set_certExt, 9L
enum SN_setCext_TokenType = "setCext-TokenType";
enum NID_setCext_TokenType = 618;
//#define OBJ_setCext_TokenType OBJ_set_certExt, 10L
enum SN_setCext_IssuerCapabilities = "setCext-IssuerCapabilities";
enum NID_setCext_IssuerCapabilities = 619;
//#define OBJ_setCext_IssuerCapabilities OBJ_set_certExt, 11L
enum SN_setAttr_Cert = "setAttr-Cert";
enum NID_setAttr_Cert = 620;
//#define OBJ_setAttr_Cert OBJ_set_attr, 0L
enum SN_setAttr_PGWYcap = "setAttr-PGWYcap";
enum LN_setAttr_PGWYcap = "payment gateway capabilities";
enum NID_setAttr_PGWYcap = 621;
//#define OBJ_setAttr_PGWYcap OBJ_set_attr, 1L
enum SN_setAttr_TokenType = "setAttr-TokenType";
enum NID_setAttr_TokenType = 622;
//#define OBJ_setAttr_TokenType OBJ_set_attr, 2L
enum SN_setAttr_IssCap = "setAttr-IssCap";
enum LN_setAttr_IssCap = "issuer capabilities";
enum NID_setAttr_IssCap = 623;
//#define OBJ_setAttr_IssCap OBJ_set_attr, 3L
enum SN_set_rootKeyThumb = "set-rootKeyThumb";
enum NID_set_rootKeyThumb = 624;
//#define OBJ_set_rootKeyThumb OBJ_setAttr_Cert, 0L
enum SN_set_addPolicy = "set-addPolicy";
enum NID_set_addPolicy = 625;
//#define OBJ_set_addPolicy OBJ_setAttr_Cert, 1L
enum SN_setAttr_Token_EMV = "setAttr-Token-EMV";
enum NID_setAttr_Token_EMV = 626;
//#define OBJ_setAttr_Token_EMV OBJ_setAttr_TokenType, 1L
enum SN_setAttr_Token_B0Prime = "setAttr-Token-B0Prime";
enum NID_setAttr_Token_B0Prime = 627;
//#define OBJ_setAttr_Token_B0Prime OBJ_setAttr_TokenType, 2L
enum SN_setAttr_IssCap_CVM = "setAttr-IssCap-CVM";
enum NID_setAttr_IssCap_CVM = 628;
//#define OBJ_setAttr_IssCap_CVM OBJ_setAttr_IssCap, 3L
enum SN_setAttr_IssCap_T2 = "setAttr-IssCap-T2";
enum NID_setAttr_IssCap_T2 = 629;
//#define OBJ_setAttr_IssCap_T2 OBJ_setAttr_IssCap, 4L
enum SN_setAttr_IssCap_Sig = "setAttr-IssCap-Sig";
enum NID_setAttr_IssCap_Sig = 630;
//#define OBJ_setAttr_IssCap_Sig OBJ_setAttr_IssCap, 5L
enum SN_setAttr_GenCryptgrm = "setAttr-GenCryptgrm";
enum LN_setAttr_GenCryptgrm = "generate cryptogram";
enum NID_setAttr_GenCryptgrm = 631;
//#define OBJ_setAttr_GenCryptgrm OBJ_setAttr_IssCap_CVM, 1L
enum SN_setAttr_T2Enc = "setAttr-T2Enc";
enum LN_setAttr_T2Enc = "encrypted track 2";
enum NID_setAttr_T2Enc = 632;
//#define OBJ_setAttr_T2Enc OBJ_setAttr_IssCap_T2, 1L
enum SN_setAttr_T2cleartxt = "setAttr-T2cleartxt";
enum LN_setAttr_T2cleartxt = "cleartext track 2";
enum NID_setAttr_T2cleartxt = 633;
//#define OBJ_setAttr_T2cleartxt OBJ_setAttr_IssCap_T2, 2L
enum SN_setAttr_TokICCsig = "setAttr-TokICCsig";
enum LN_setAttr_TokICCsig = "ICC or token signature";
enum NID_setAttr_TokICCsig = 634;
//#define OBJ_setAttr_TokICCsig OBJ_setAttr_IssCap_Sig, 1L
enum SN_setAttr_SecDevSig = "setAttr-SecDevSig";
enum LN_setAttr_SecDevSig = "secure device signature";
enum NID_setAttr_SecDevSig = 635;
//#define OBJ_setAttr_SecDevSig OBJ_setAttr_IssCap_Sig, 2L
enum SN_set_brand_IATA_ATA = "set-brand-IATA-ATA";
enum NID_set_brand_IATA_ATA = 636;
//#define OBJ_set_brand_IATA_ATA OBJ_set_brand, 1L
enum SN_set_brand_Diners = "set-brand-Diners";
enum NID_set_brand_Diners = 637;
//#define OBJ_set_brand_Diners OBJ_set_brand, 30L
enum SN_set_brand_AmericanExpress = "set-brand-AmericanExpress";
enum NID_set_brand_AmericanExpress = 638;
//#define OBJ_set_brand_AmericanExpress OBJ_set_brand, 34L
enum SN_set_brand_JCB = "set-brand-JCB";
enum NID_set_brand_JCB = 639;
//#define OBJ_set_brand_JCB OBJ_set_brand, 35L
enum SN_set_brand_Visa = "set-brand-Visa";
enum NID_set_brand_Visa = 640;
//#define OBJ_set_brand_Visa OBJ_set_brand, 4L
enum SN_set_brand_MasterCard = "set-brand-MasterCard";
enum NID_set_brand_MasterCard = 641;
//#define OBJ_set_brand_MasterCard OBJ_set_brand, 5L
enum SN_set_brand_Novus = "set-brand-Novus";
enum NID_set_brand_Novus = 642;
//#define OBJ_set_brand_Novus OBJ_set_brand, 6011L
enum SN_des_cdmf = "DES-CDMF";
enum LN_des_cdmf = "des-cdmf";
enum NID_des_cdmf = 643;
//#define OBJ_des_cdmf .OBJ_rsadsi, 3L, 10L
enum SN_rsaOAEPEncryptionSET = "rsaOAEPEncryptionSET";
enum NID_rsaOAEPEncryptionSET = 644;
//#define OBJ_rsaOAEPEncryptionSET .OBJ_rsadsi, 1L, 1L, 6L
enum SN_ipsec3 = "Oakley-EC2N-3";
enum LN_ipsec3 = "ipsec3";
enum NID_ipsec3 = 749;
enum SN_ipsec4 = "Oakley-EC2N-4";
enum LN_ipsec4 = "ipsec4";
enum NID_ipsec4 = 750;
enum SN_whirlpool = "whirlpool";
enum NID_whirlpool = 804;
//#define OBJ_whirlpool OBJ_iso, 0L, 10118L, 3L, 0L, 55L
enum SN_cryptopro = "cryptopro";
enum NID_cryptopro = 805;
//#define OBJ_cryptopro OBJ_member_body, 643L, 2L, 2L
enum SN_cryptocom = "cryptocom";
enum NID_cryptocom = 806;
//#define OBJ_cryptocom OBJ_member_body, 643L, 2L, 9L
enum SN_id_GostR3411_94_with_GostR3410_2001 = "id-GostR3411-94-with-GostR3410-2001";
enum LN_id_GostR3411_94_with_GostR3410_2001 = "GOST R 34.11-94 with GOST R 34.10-2001";
enum NID_id_GostR3411_94_with_GostR3410_2001 = 807;
//#define OBJ_id_GostR3411_94_with_GostR3410_2001 OBJ_cryptopro, 3L
enum SN_id_GostR3411_94_with_GostR3410_94 = "id-GostR3411-94-with-GostR3410-94";
enum LN_id_GostR3411_94_with_GostR3410_94 = "GOST R 34.11-94 with GOST R 34.10-94";
enum NID_id_GostR3411_94_with_GostR3410_94 = 808;
//#define OBJ_id_GostR3411_94_with_GostR3410_94 OBJ_cryptopro, 4L
enum SN_id_GostR3411_94 = "md_gost94";
enum LN_id_GostR3411_94 = "GOST R 34.11-94";
enum NID_id_GostR3411_94 = 809;
//#define OBJ_id_GostR3411_94 OBJ_cryptopro, 9L
enum SN_id_HMACGostR3411_94 = "id-HMACGostR3411-94";
enum LN_id_HMACGostR3411_94 = "HMAC GOST 34.11-94";
enum NID_id_HMACGostR3411_94 = 810;
//#define OBJ_id_HMACGostR3411_94 OBJ_cryptopro, 10L
enum SN_id_GostR3410_2001 = "gost2001";
enum LN_id_GostR3410_2001 = "GOST R 34.10-2001";
enum NID_id_GostR3410_2001 = 811;
//#define OBJ_id_GostR3410_2001 OBJ_cryptopro, 19L
enum SN_id_GostR3410_94 = "gost94";
enum LN_id_GostR3410_94 = "GOST R 34.10-94";
enum NID_id_GostR3410_94 = 812;
//#define OBJ_id_GostR3410_94 OBJ_cryptopro, 20L
enum SN_id_Gost28147_89 = "gost89";
enum LN_id_Gost28147_89 = "GOST 28147-89";
enum NID_id_Gost28147_89 = 813;
//#define OBJ_id_Gost28147_89 OBJ_cryptopro, 21L
enum SN_gost89_cnt = "gost89-cnt";
enum NID_gost89_cnt = 814;
enum SN_id_Gost28147_89_MAC = "gost-mac";
enum LN_id_Gost28147_89_MAC = "GOST 28147-89 MAC";
enum NID_id_Gost28147_89_MAC = 815;
//#define OBJ_id_Gost28147_89_MAC OBJ_cryptopro, 22L
enum SN_id_GostR3411_94_prf = "prf-gostr3411-94";
enum LN_id_GostR3411_94_prf = "GOST R 34.11-94 PRF";
enum NID_id_GostR3411_94_prf = 816;
//#define OBJ_id_GostR3411_94_prf OBJ_cryptopro, 23L
enum SN_id_GostR3410_2001DH = "id-GostR3410-2001DH";
enum LN_id_GostR3410_2001DH = "GOST R 34.10-2001 DH";
enum NID_id_GostR3410_2001DH = 817;
//#define OBJ_id_GostR3410_2001DH OBJ_cryptopro, 98L
enum SN_id_GostR3410_94DH = "id-GostR3410-94DH";
enum LN_id_GostR3410_94DH = "GOST R 34.10-94 DH";
enum NID_id_GostR3410_94DH = 818;
//#define OBJ_id_GostR3410_94DH OBJ_cryptopro, 99L
enum SN_id_Gost28147_89_CryptoPro_KeyMeshing = "id-Gost28147-89-CryptoPro-KeyMeshing";
enum NID_id_Gost28147_89_CryptoPro_KeyMeshing = 819;
//#define OBJ_id_Gost28147_89_CryptoPro_KeyMeshing OBJ_cryptopro, 14L, 1L
enum SN_id_Gost28147_89_None_KeyMeshing = "id-Gost28147-89-None-KeyMeshing";
enum NID_id_Gost28147_89_None_KeyMeshing = 820;
//#define OBJ_id_Gost28147_89_None_KeyMeshing OBJ_cryptopro, 14L, 0L
enum SN_id_GostR3411_94_TestParamSet = "id-GostR3411-94-TestParamSet";
enum NID_id_GostR3411_94_TestParamSet = 821;
//#define OBJ_id_GostR3411_94_TestParamSet OBJ_cryptopro, 30L, 0L
enum SN_id_GostR3411_94_CryptoProParamSet = "id-GostR3411-94-CryptoProParamSet";
enum NID_id_GostR3411_94_CryptoProParamSet = 822;
//#define OBJ_id_GostR3411_94_CryptoProParamSet OBJ_cryptopro, 30L, 1L
enum SN_id_Gost28147_89_TestParamSet = "id-Gost28147-89-TestParamSet";
enum NID_id_Gost28147_89_TestParamSet = 823;
//#define OBJ_id_Gost28147_89_TestParamSet OBJ_cryptopro, 31L, 0L
enum SN_id_Gost28147_89_CryptoPro_A_ParamSet = "id-Gost28147-89-CryptoPro-A-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_A_ParamSet = 824;
//#define OBJ_id_Gost28147_89_CryptoPro_A_ParamSet OBJ_cryptopro, 31L, 1L
enum SN_id_Gost28147_89_CryptoPro_B_ParamSet = "id-Gost28147-89-CryptoPro-B-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_B_ParamSet = 825;
//#define OBJ_id_Gost28147_89_CryptoPro_B_ParamSet OBJ_cryptopro, 31L, 2L
enum SN_id_Gost28147_89_CryptoPro_C_ParamSet = "id-Gost28147-89-CryptoPro-C-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_C_ParamSet = 826;
//#define OBJ_id_Gost28147_89_CryptoPro_C_ParamSet OBJ_cryptopro, 31L, 3L
enum SN_id_Gost28147_89_CryptoPro_D_ParamSet = "id-Gost28147-89-CryptoPro-D-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_D_ParamSet = 827;
//#define OBJ_id_Gost28147_89_CryptoPro_D_ParamSet OBJ_cryptopro, 31L, 4L
enum SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet = "id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet = 828;
//#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet OBJ_cryptopro, 31L, 5L
enum SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet = "id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet = 829;
//#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet OBJ_cryptopro, 31L, 6L
enum SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet = "id-Gost28147-89-CryptoPro-RIC-1-ParamSet";
enum NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet = 830;
//#define OBJ_id_Gost28147_89_CryptoPro_RIC_1_ParamSet OBJ_cryptopro, 31L, 7L
enum SN_id_GostR3410_94_TestParamSet = "id-GostR3410-94-TestParamSet";
enum NID_id_GostR3410_94_TestParamSet = 831;
//#define OBJ_id_GostR3410_94_TestParamSet OBJ_cryptopro, 32L, 0L
enum SN_id_GostR3410_94_CryptoPro_A_ParamSet = "id-GostR3410-94-CryptoPro-A-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_A_ParamSet = 832;
//#define OBJ_id_GostR3410_94_CryptoPro_A_ParamSet OBJ_cryptopro, 32L, 2L
enum SN_id_GostR3410_94_CryptoPro_B_ParamSet = "id-GostR3410-94-CryptoPro-B-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_B_ParamSet = 833;
//#define OBJ_id_GostR3410_94_CryptoPro_B_ParamSet OBJ_cryptopro, 32L, 3L
enum SN_id_GostR3410_94_CryptoPro_C_ParamSet = "id-GostR3410-94-CryptoPro-C-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_C_ParamSet = 834;
//#define OBJ_id_GostR3410_94_CryptoPro_C_ParamSet OBJ_cryptopro, 32L, 4L
enum SN_id_GostR3410_94_CryptoPro_D_ParamSet = "id-GostR3410-94-CryptoPro-D-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_D_ParamSet = 835;
//#define OBJ_id_GostR3410_94_CryptoPro_D_ParamSet OBJ_cryptopro, 32L, 5L
enum SN_id_GostR3410_94_CryptoPro_XchA_ParamSet = "id-GostR3410-94-CryptoPro-XchA-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_XchA_ParamSet = 836;
//#define OBJ_id_GostR3410_94_CryptoPro_XchA_ParamSet OBJ_cryptopro, 33L, 1L
enum SN_id_GostR3410_94_CryptoPro_XchB_ParamSet = "id-GostR3410-94-CryptoPro-XchB-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_XchB_ParamSet = 837;
//#define OBJ_id_GostR3410_94_CryptoPro_XchB_ParamSet OBJ_cryptopro, 33L, 2L
enum SN_id_GostR3410_94_CryptoPro_XchC_ParamSet = "id-GostR3410-94-CryptoPro-XchC-ParamSet";
enum NID_id_GostR3410_94_CryptoPro_XchC_ParamSet = 838;
//#define OBJ_id_GostR3410_94_CryptoPro_XchC_ParamSet OBJ_cryptopro, 33L, 3L
enum SN_id_GostR3410_2001_TestParamSet = "id-GostR3410-2001-TestParamSet";
enum NID_id_GostR3410_2001_TestParamSet = 839;
//#define OBJ_id_GostR3410_2001_TestParamSet OBJ_cryptopro, 35L, 0L
enum SN_id_GostR3410_2001_CryptoPro_A_ParamSet = "id-GostR3410-2001-CryptoPro-A-ParamSet";
enum NID_id_GostR3410_2001_CryptoPro_A_ParamSet = 840;
//#define OBJ_id_GostR3410_2001_CryptoPro_A_ParamSet OBJ_cryptopro, 35L, 1L
enum SN_id_GostR3410_2001_CryptoPro_B_ParamSet = "id-GostR3410-2001-CryptoPro-B-ParamSet";
enum NID_id_GostR3410_2001_CryptoPro_B_ParamSet = 841;
//#define OBJ_id_GostR3410_2001_CryptoPro_B_ParamSet OBJ_cryptopro, 35L, 2L
enum SN_id_GostR3410_2001_CryptoPro_C_ParamSet = "id-GostR3410-2001-CryptoPro-C-ParamSet";
enum NID_id_GostR3410_2001_CryptoPro_C_ParamSet = 842;
//#define OBJ_id_GostR3410_2001_CryptoPro_C_ParamSet OBJ_cryptopro, 35L, 3L
enum SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet = "id-GostR3410-2001-CryptoPro-XchA-ParamSet";
enum NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet = 843;
//#define OBJ_id_GostR3410_2001_CryptoPro_XchA_ParamSet OBJ_cryptopro, 36L, 0L
enum SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet = "id-GostR3410-2001-CryptoPro-XchB-ParamSet";
enum NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet = 844;
//#define OBJ_id_GostR3410_2001_CryptoPro_XchB_ParamSet OBJ_cryptopro, 36L, 1L
enum SN_id_GostR3410_94_a = "id-GostR3410-94-a";
enum NID_id_GostR3410_94_a = 845;
//#define OBJ_id_GostR3410_94_a OBJ_id_GostR3410_94, 1L
enum SN_id_GostR3410_94_aBis = "id-GostR3410-94-aBis";
enum NID_id_GostR3410_94_aBis = 846;
//#define OBJ_id_GostR3410_94_aBis OBJ_id_GostR3410_94, 2L
enum SN_id_GostR3410_94_b = "id-GostR3410-94-b";
enum NID_id_GostR3410_94_b = 847;
//#define OBJ_id_GostR3410_94_b OBJ_id_GostR3410_94, 3L
enum SN_id_GostR3410_94_bBis = "id-GostR3410-94-bBis";
enum NID_id_GostR3410_94_bBis = 848;
//#define OBJ_id_GostR3410_94_bBis OBJ_id_GostR3410_94, 4L
enum SN_id_Gost28147_89_cc = "id-Gost28147-89-cc";
enum LN_id_Gost28147_89_cc = "GOST 28147-89 Cryptocom ParamSet";
enum NID_id_Gost28147_89_cc = 849;
//#define OBJ_id_Gost28147_89_cc OBJ_cryptocom, 1L, 6L, 1L
enum SN_id_GostR3410_94_cc = "gost94cc";
enum LN_id_GostR3410_94_cc = "GOST 34.10-94 Cryptocom";
enum NID_id_GostR3410_94_cc = 850;
//#define OBJ_id_GostR3410_94_cc OBJ_cryptocom, 1L, 5L, 3L
enum SN_id_GostR3410_2001_cc = "gost2001cc";
enum LN_id_GostR3410_2001_cc = "GOST 34.10-2001 Cryptocom";
enum NID_id_GostR3410_2001_cc = 851;
//#define OBJ_id_GostR3410_2001_cc OBJ_cryptocom, 1L, 5L, 4L
enum SN_id_GostR3411_94_with_GostR3410_94_cc = "id-GostR3411-94-with-GostR3410-94-cc";
enum LN_id_GostR3411_94_with_GostR3410_94_cc = "GOST R 34.11-94 with GOST R 34.10-94 Cryptocom";
enum NID_id_GostR3411_94_with_GostR3410_94_cc = 852;
//#define OBJ_id_GostR3411_94_with_GostR3410_94_cc OBJ_cryptocom, 1L, 3L, 3L
enum SN_id_GostR3411_94_with_GostR3410_2001_cc = "id-GostR3411-94-with-GostR3410-2001-cc";
enum LN_id_GostR3411_94_with_GostR3410_2001_cc = "GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom";
enum NID_id_GostR3411_94_with_GostR3410_2001_cc = 853;
//#define OBJ_id_GostR3411_94_with_GostR3410_2001_cc OBJ_cryptocom, 1L, 3L, 4L
enum SN_id_GostR3410_2001_ParamSet_cc = "id-GostR3410-2001-ParamSet-cc";
enum LN_id_GostR3410_2001_ParamSet_cc = "GOST R 3410-2001 Parameter Set Cryptocom";
enum NID_id_GostR3410_2001_ParamSet_cc = 854;
//#define OBJ_id_GostR3410_2001_ParamSet_cc OBJ_cryptocom, 1L, 8L, 1L
enum SN_sm3 = "SM3";
enum LN_sm3 = "sm3";
enum NID_sm3 = 968;
//#define OBJ_sm3 1L, 2L, 156L, 10197L, 1L, 401L
enum SN_sm3WithRSAEncryption = "RSA-SM3";
enum LN_sm3WithRSAEncryption = "sm3WithRSAEncryption";
enum NID_sm3WithRSAEncryption = 969;
//#define OBJ_sm3WithRSAEncryption 1L, 2L, 156L, 10197L, 1L, 504L
enum SN_camellia_128_cbc = "CAMELLIA-128-CBC";
enum LN_camellia_128_cbc = "camellia-128-cbc";
enum NID_camellia_128_cbc = 751;
//#define OBJ_camellia_128_cbc 1L, 2L, 392L, 200011L, 61L, 1L, 1L, 1L, 2L
enum SN_camellia_192_cbc = "CAMELLIA-192-CBC";
enum LN_camellia_192_cbc = "camellia-192-cbc";
enum NID_camellia_192_cbc = 752;
//#define OBJ_camellia_192_cbc 1L, 2L, 392L, 200011L, 61L, 1L, 1L, 1L, 3L
enum SN_camellia_256_cbc = "CAMELLIA-256-CBC";
enum LN_camellia_256_cbc = "camellia-256-cbc";
enum NID_camellia_256_cbc = 753;
//#define OBJ_camellia_256_cbc 1L, 2L, 392L, 200011L, 61L, 1L, 1L, 1L, 4L
enum SN_id_camellia128_wrap = "id-camellia128-wrap";
enum NID_id_camellia128_wrap = 907;
//#define OBJ_id_camellia128_wrap 1L, 2L, 392L, 200011L, 61L, 1L, 1L, 3L, 2L
enum SN_id_camellia192_wrap = "id-camellia192-wrap";
enum NID_id_camellia192_wrap = 908;
//#define OBJ_id_camellia192_wrap 1L, 2L, 392L, 200011L, 61L, 1L, 1L, 3L, 3L
enum SN_id_camellia256_wrap = "id-camellia256-wrap";
enum NID_id_camellia256_wrap = 909;
//#define OBJ_id_camellia256_wrap 1L, 2L, 392L, 200011L, 61L, 1L, 1L, 3L, 4L
//#define OBJ_ntt_ds 0L, 3L, 4401L, 5L
//#define OBJ_camellia OBJ_ntt_ds, 3L, 1L, 9L
enum SN_camellia_128_ecb = "CAMELLIA-128-ECB";
enum LN_camellia_128_ecb = "camellia-128-ecb";
enum NID_camellia_128_ecb = 754;
//#define OBJ_camellia_128_ecb OBJ_camellia, 1L
enum SN_camellia_128_ofb128 = "CAMELLIA-128-OFB";
enum LN_camellia_128_ofb128 = "camellia-128-ofb";
enum NID_camellia_128_ofb128 = 766;
//#define OBJ_camellia_128_ofb128 OBJ_camellia, 3L
enum SN_camellia_128_cfb128 = "CAMELLIA-128-CFB";
enum LN_camellia_128_cfb128 = "camellia-128-cfb";
enum NID_camellia_128_cfb128 = 757;
//#define OBJ_camellia_128_cfb128 OBJ_camellia, 4L
enum SN_camellia_192_ecb = "CAMELLIA-192-ECB";
enum LN_camellia_192_ecb = "camellia-192-ecb";
enum NID_camellia_192_ecb = 755;
//#define OBJ_camellia_192_ecb OBJ_camellia, 21L
enum SN_camellia_192_ofb128 = "CAMELLIA-192-OFB";
enum LN_camellia_192_ofb128 = "camellia-192-ofb";
enum NID_camellia_192_ofb128 = 767;
//#define OBJ_camellia_192_ofb128 OBJ_camellia, 23L
enum SN_camellia_192_cfb128 = "CAMELLIA-192-CFB";
enum LN_camellia_192_cfb128 = "camellia-192-cfb";
enum NID_camellia_192_cfb128 = 758;
//#define OBJ_camellia_192_cfb128 OBJ_camellia, 24L
enum SN_camellia_256_ecb = "CAMELLIA-256-ECB";
enum LN_camellia_256_ecb = "camellia-256-ecb";
enum NID_camellia_256_ecb = 756;
//#define OBJ_camellia_256_ecb OBJ_camellia, 41L
enum SN_camellia_256_ofb128 = "CAMELLIA-256-OFB";
enum LN_camellia_256_ofb128 = "camellia-256-ofb";
enum NID_camellia_256_ofb128 = 768;
//#define OBJ_camellia_256_ofb128 OBJ_camellia, 43L
enum SN_camellia_256_cfb128 = "CAMELLIA-256-CFB";
enum LN_camellia_256_cfb128 = "camellia-256-cfb";
enum NID_camellia_256_cfb128 = 759;
//#define OBJ_camellia_256_cfb128 OBJ_camellia, 44L
enum SN_camellia_128_cfb1 = "CAMELLIA-128-CFB1";
enum LN_camellia_128_cfb1 = "camellia-128-cfb1";
enum NID_camellia_128_cfb1 = 760;
enum SN_camellia_192_cfb1 = "CAMELLIA-192-CFB1";
enum LN_camellia_192_cfb1 = "camellia-192-cfb1";
enum NID_camellia_192_cfb1 = 761;
enum SN_camellia_256_cfb1 = "CAMELLIA-256-CFB1";
enum LN_camellia_256_cfb1 = "camellia-256-cfb1";
enum NID_camellia_256_cfb1 = 762;
enum SN_camellia_128_cfb8 = "CAMELLIA-128-CFB8";
enum LN_camellia_128_cfb8 = "camellia-128-cfb8";
enum NID_camellia_128_cfb8 = 763;
enum SN_camellia_192_cfb8 = "CAMELLIA-192-CFB8";
enum LN_camellia_192_cfb8 = "camellia-192-cfb8";
enum NID_camellia_192_cfb8 = 764;
enum SN_camellia_256_cfb8 = "CAMELLIA-256-CFB8";
enum LN_camellia_256_cfb8 = "camellia-256-cfb8";
enum NID_camellia_256_cfb8 = 765;
enum SN_kisa = "KISA";
enum LN_kisa = "kisa";
enum NID_kisa = 773;
//#define OBJ_kisa OBJ_member_body, 410L, 200004L
enum SN_seed_ecb = "SEED-ECB";
enum LN_seed_ecb = "seed-ecb";
enum NID_seed_ecb = 776;
//#define OBJ_seed_ecb OBJ_kisa, 1L, 3L
enum SN_seed_cbc = "SEED-CBC";
enum LN_seed_cbc = "seed-cbc";
enum NID_seed_cbc = 777;
//#define OBJ_seed_cbc OBJ_kisa, 1L, 4L
enum SN_seed_cfb128 = "SEED-CFB";
enum LN_seed_cfb128 = "seed-cfb";
enum NID_seed_cfb128 = 779;
//#define OBJ_seed_cfb128 OBJ_kisa, 1L, 5L
enum SN_seed_ofb128 = "SEED-OFB";
enum LN_seed_ofb128 = "seed-ofb";
enum NID_seed_ofb128 = 778;
//#define OBJ_seed_ofb128 OBJ_kisa, 1L, 6L
enum SN_ISO_CN = "ISO-CN";
enum LN_ISO_CN = "ISO CN Member Body";
enum NID_ISO_CN = 970;
//#define OBJ_ISO_CN OBJ_member_body, 156L
enum SN_oscca = "oscca";
enum NID_oscca = 971;
//#define OBJ_oscca OBJ_ISO_CN, 10197L
enum SN_sm_scheme = "sm-scheme";
enum NID_sm_scheme = 972;
//#define OBJ_sm_scheme OBJ_oscca, 1L
enum SN_sm4_ecb = "SM4-ECB";
enum LN_sm4_ecb = "sm4-ecb";
enum NID_sm4_ecb = 973;
//#define OBJ_sm4_ecb OBJ_sm_scheme, 104L, 1L
enum SN_sm4_cbc = "SM4-CBC";
enum LN_sm4_cbc = "sm4-cbc";
enum NID_sm4_cbc = 974;
//#define OBJ_sm4_cbc OBJ_sm_scheme, 104L, 2L
enum SN_sm4_ofb128 = "SM4-OFB";
enum LN_sm4_ofb128 = "sm4-ofb";
enum NID_sm4_ofb128 = 975;
//#define OBJ_sm4_ofb128 OBJ_sm_scheme, 104L, 3L
enum SN_sm4_cfb128 = "SM4-CFB";
enum LN_sm4_cfb128 = "sm4-cfb";
enum NID_sm4_cfb128 = 976;
//#define OBJ_sm4_cfb128 OBJ_sm_scheme, 104L, 4L
enum SN_sm4_cfb1 = "SM4-CFB1";
enum LN_sm4_cfb1 = "sm4-cfb1";
enum NID_sm4_cfb1 = 977;
//#define OBJ_sm4_cfb1 OBJ_sm_scheme, 104L, 5L
enum SN_sm4_cfb8 = "SM4-CFB8";
enum LN_sm4_cfb8 = "sm4-cfb8";
enum NID_sm4_cfb8 = 978;
//#define OBJ_sm4_cfb8 OBJ_sm_scheme, 104L, 6L
enum SN_sm4_ctr = "SM4-CTR";
enum LN_sm4_ctr = "sm4-ctr";
enum NID_sm4_ctr = 979;
//#define OBJ_sm4_ctr OBJ_sm_scheme, 104L, 7L
enum SN_hmac = "HMAC";
enum LN_hmac = "hmac";
enum NID_hmac = 855;
enum SN_cmac = "CMAC";
enum LN_cmac = "cmac";
enum NID_cmac = 894;
enum SN_rc4_hmac_md5 = "RC4-HMAC-MD5";
enum LN_rc4_hmac_md5 = "rc4-hmac-md5";
enum NID_rc4_hmac_md5 = 915;
enum SN_aes_128_cbc_hmac_sha1 = "AES-128-CBC-HMAC-SHA1";
enum LN_aes_128_cbc_hmac_sha1 = "aes-128-cbc-hmac-sha1";
enum NID_aes_128_cbc_hmac_sha1 = 916;
enum SN_aes_192_cbc_hmac_sha1 = "AES-192-CBC-HMAC-SHA1";
enum LN_aes_192_cbc_hmac_sha1 = "aes-192-cbc-hmac-sha1";
enum NID_aes_192_cbc_hmac_sha1 = 917;
enum SN_aes_256_cbc_hmac_sha1 = "AES-256-CBC-HMAC-SHA1";
enum LN_aes_256_cbc_hmac_sha1 = "aes-256-cbc-hmac-sha1";
enum NID_aes_256_cbc_hmac_sha1 = 918;
//#define OBJ_x9_63_scheme 1L, 3L, 133L, 16L, 840L, 63L, 0L
//#define OBJ_secg_scheme OBJ_certicom_arc, 1L
enum SN_dhSinglePass_stdDH_sha1kdf_scheme = "dhSinglePass-stdDH-sha1kdf-scheme";
enum NID_dhSinglePass_stdDH_sha1kdf_scheme = 980;
//#define OBJ_dhSinglePass_stdDH_sha1kdf_scheme OBJ_x9_63_scheme, 2L
enum SN_dhSinglePass_stdDH_sha224kdf_scheme = "dhSinglePass-stdDH-sha224kdf-scheme";
enum NID_dhSinglePass_stdDH_sha224kdf_scheme = 981;
//#define OBJ_dhSinglePass_stdDH_sha224kdf_scheme OBJ_secg_scheme, 11L, 0L
enum SN_dhSinglePass_stdDH_sha256kdf_scheme = "dhSinglePass-stdDH-sha256kdf-scheme";
enum NID_dhSinglePass_stdDH_sha256kdf_scheme = 982;
//#define OBJ_dhSinglePass_stdDH_sha256kdf_scheme OBJ_secg_scheme, 11L, 1L
enum SN_dhSinglePass_stdDH_sha384kdf_scheme = "dhSinglePass-stdDH-sha384kdf-scheme";
enum NID_dhSinglePass_stdDH_sha384kdf_scheme = 983;
//#define OBJ_dhSinglePass_stdDH_sha384kdf_scheme OBJ_secg_scheme, 11L, 2L
enum SN_dhSinglePass_stdDH_sha512kdf_scheme = "dhSinglePass-stdDH-sha512kdf-scheme";
enum NID_dhSinglePass_stdDH_sha512kdf_scheme = 984;
//#define OBJ_dhSinglePass_stdDH_sha512kdf_scheme OBJ_secg_scheme, 11L, 3L
enum SN_dhSinglePass_cofactorDH_sha1kdf_scheme = "dhSinglePass-cofactorDH-sha1kdf-scheme";
enum NID_dhSinglePass_cofactorDH_sha1kdf_scheme = 985;
//#define OBJ_dhSinglePass_cofactorDH_sha1kdf_scheme OBJ_x9_63_scheme, 3L
enum SN_dhSinglePass_cofactorDH_sha224kdf_scheme = "dhSinglePass-cofactorDH-sha224kdf-scheme";
enum NID_dhSinglePass_cofactorDH_sha224kdf_scheme = 986;
//#define OBJ_dhSinglePass_cofactorDH_sha224kdf_scheme OBJ_secg_scheme, 14L, 0L
enum SN_dhSinglePass_cofactorDH_sha256kdf_scheme = "dhSinglePass-cofactorDH-sha256kdf-scheme";
enum NID_dhSinglePass_cofactorDH_sha256kdf_scheme = 987;
//#define OBJ_dhSinglePass_cofactorDH_sha256kdf_scheme OBJ_secg_scheme, 14L, 1L
enum SN_dhSinglePass_cofactorDH_sha384kdf_scheme = "dhSinglePass-cofactorDH-sha384kdf-scheme";
enum NID_dhSinglePass_cofactorDH_sha384kdf_scheme = 988;
//#define OBJ_dhSinglePass_cofactorDH_sha384kdf_scheme OBJ_secg_scheme, 14L, 2L
enum SN_dhSinglePass_cofactorDH_sha512kdf_scheme = "dhSinglePass-cofactorDH-sha512kdf-scheme";
enum NID_dhSinglePass_cofactorDH_sha512kdf_scheme = 989;
//#define OBJ_dhSinglePass_cofactorDH_sha512kdf_scheme OBJ_secg_scheme, 14L, 3L
enum SN_dh_std_kdf = "dh-std-kdf";
enum NID_dh_std_kdf = 990;
enum SN_dh_cofactor_kdf = "dh-cofactor-kdf";
enum NID_dh_cofactor_kdf = 991;
enum SN_ct_precert_scts = "ct_precert_scts";
enum LN_ct_precert_scts = "CT Precertificate SCTs";
enum NID_ct_precert_scts = 1018;
//#define OBJ_ct_precert_scts 1L, 3L, 6L, 1L, 4L, 1L, 11129L, 2L, 4L, 2L
enum SN_ct_precert_poison = "ct_precert_poison";
enum LN_ct_precert_poison = "CT Precertificate Poison";
enum NID_ct_precert_poison = 1019;
//#define OBJ_ct_precert_poison 1L, 3L, 6L, 1L, 4L, 1L, 11129L, 2L, 4L, 3L
enum SN_ct_precert_signer = "ct_precert_signer";
enum LN_ct_precert_signer = "CT Precertificate Signer";
enum NID_ct_precert_signer = 1020;
//#define OBJ_ct_precert_signer 1L, 3L, 6L, 1L, 4L, 1L, 11129L, 2L, 4L, 4L
enum SN_ct_cert_scts = "ct_cert_scts";
enum LN_ct_cert_scts = "CT Certificate SCTs";
enum NID_ct_cert_scts = 1021;
//#define OBJ_ct_cert_scts 1L, 3L, 6L, 1L, 4L, 1L, 11129L, 2L, 4L, 5L
enum SN_hkdf = "HKDF";
enum LN_hkdf = "hkdf";
enum NID_hkdf = 1022;
enum SN_teletrust = "teletrust";
enum NID_teletrust = 920;
//#define OBJ_teletrust OBJ_identified_organization, 36L
enum SN_brainpool = "brainpool";
enum NID_brainpool = 921;
//#define OBJ_brainpool OBJ_teletrust, 3L, 3L, 2L, 8L, 1L
enum SN_brainpoolP160r1 = "brainpoolP160r1";
enum NID_brainpoolP160r1 = 922;
//#define OBJ_brainpoolP160r1 OBJ_brainpool, 1L, 1L
enum SN_brainpoolP160t1 = "brainpoolP160t1";
enum NID_brainpoolP160t1 = 923;
//#define OBJ_brainpoolP160t1 OBJ_brainpool, 1L, 2L
enum SN_brainpoolP192r1 = "brainpoolP192r1";
enum NID_brainpoolP192r1 = 924;
//#define OBJ_brainpoolP192r1 OBJ_brainpool, 1L, 3L
enum SN_brainpoolP192t1 = "brainpoolP192t1";
enum NID_brainpoolP192t1 = 925;
//#define OBJ_brainpoolP192t1 OBJ_brainpool, 1L, 4L
enum SN_brainpoolP224r1 = "brainpoolP224r1";
enum NID_brainpoolP224r1 = 926;
//#define OBJ_brainpoolP224r1 OBJ_brainpool, 1L, 5L
enum SN_brainpoolP224t1 = "brainpoolP224t1";
enum NID_brainpoolP224t1 = 927;
//#define OBJ_brainpoolP224t1 OBJ_brainpool, 1L, 6L
enum SN_brainpoolP256r1 = "brainpoolP256r1";
enum NID_brainpoolP256r1 = 928;
//#define OBJ_brainpoolP256r1 OBJ_brainpool, 1L, 7L
enum SN_brainpoolP256t1 = "brainpoolP256t1";
enum NID_brainpoolP256t1 = 929;
//#define OBJ_brainpoolP256t1 OBJ_brainpool, 1L, 8L
enum SN_brainpoolP320r1 = "brainpoolP320r1";
enum NID_brainpoolP320r1 = 930;
//#define OBJ_brainpoolP320r1 OBJ_brainpool, 1L, 9L
enum SN_brainpoolP320t1 = "brainpoolP320t1";
enum NID_brainpoolP320t1 = 931;
//#define OBJ_brainpoolP320t1 OBJ_brainpool, 1L, 10L
enum SN_brainpoolP384r1 = "brainpoolP384r1";
enum NID_brainpoolP384r1 = 932;
//#define OBJ_brainpoolP384r1 OBJ_brainpool, 1L, 11L
enum SN_brainpoolP384t1 = "brainpoolP384t1";
enum NID_brainpoolP384t1 = 933;
//#define OBJ_brainpoolP384t1 OBJ_brainpool, 1L, 12L
enum SN_brainpoolP512r1 = "brainpoolP512r1";
enum NID_brainpoolP512r1 = 934;
//#define OBJ_brainpoolP512r1 OBJ_brainpool, 1L, 13L
enum SN_brainpoolP512t1 = "brainpoolP512t1";
enum NID_brainpoolP512t1 = 935;
//#define OBJ_brainpoolP512t1 OBJ_brainpool, 1L, 14L
enum SN_FRP256v1 = "FRP256v1";
enum NID_FRP256v1 = 936;
//#define OBJ_FRP256v1 1L, 2L, 250L, 1L, 223L, 101L, 256L, 1L
enum SN_chacha20 = "ChaCha";
enum LN_chacha20 = "chacha";
enum NID_chacha20 = 937;
enum SN_chacha20_poly1305 = "ChaCha20-Poly1305";
enum LN_chacha20_poly1305 = "chacha20-poly1305";
enum NID_chacha20_poly1305 = 967;
enum SN_gost89_ecb = "gost89-ecb";
enum NID_gost89_ecb = 938;
enum SN_gost89_cbc = "gost89-cbc";
enum NID_gost89_cbc = 939;
enum SN_tc26 = "tc26";
enum NID_tc26 = 940;
//#define OBJ_tc26 OBJ_member_body, 643L, 7L, 1L
enum SN_id_tc26_gost3411_2012_256 = "streebog256";
enum LN_id_tc26_gost3411_2012_256 = "GOST R 34.11-2012 (256 bit)";
enum NID_id_tc26_gost3411_2012_256 = 941;
//#define OBJ_id_tc26_gost3411_2012_256 OBJ_tc26, 1L, 2L, 2L
enum SN_id_tc26_gost3411_2012_512 = "streebog512";
enum LN_id_tc26_gost3411_2012_512 = "GOST R 34-11-2012 (512 bit)";
enum NID_id_tc26_gost3411_2012_512 = 942;
//#define OBJ_id_tc26_gost3411_2012_512 OBJ_tc26, 1L, 2L, 3L
enum SN_id_tc26_hmac_gost_3411_12_256 = "id-tc26-hmac-gost-3411-12-256";
enum LN_id_tc26_hmac_gost_3411_12_256 = "HMAC STREEBOG 256";
enum NID_id_tc26_hmac_gost_3411_12_256 = 999;
//#define OBJ_id_tc26_hmac_gost_3411_12_256 OBJ_tc26, 1L, 4L, 1L
enum SN_id_tc26_hmac_gost_3411_12_512 = "id-tc26-hmac-gost-3411-12-512";
enum LN_id_tc26_hmac_gost_3411_12_512 = "HMAC STREEBOG 512";
enum NID_id_tc26_hmac_gost_3411_12_512 = 1000;
//#define OBJ_id_tc26_hmac_gost_3411_12_512 OBJ_tc26, 1L, 4L, 2L
enum SN_id_tc26_gost_3410_12_256_paramSetA = "id-tc26-gost-3410-12-256-paramSetA";
enum LN_id_tc26_gost_3410_12_256_paramSetA = "GOST R 34.10-2012 (256 bit) ParamSet A";
enum NID_id_tc26_gost_3410_12_256_paramSetA = 993;
//#define OBJ_id_tc26_gost_3410_12_256_paramSetA OBJ_tc26, 2L, 1L, 1L, 1L
enum SN_id_tc26_gost_3410_12_256_paramSetB = "id-tc26-gost-3410-12-256-paramSetB";
enum LN_id_tc26_gost_3410_12_256_paramSetB = "GOST R 34.10-2012 (256 bit) ParamSet B";
enum NID_id_tc26_gost_3410_12_256_paramSetB = 994;
//#define OBJ_id_tc26_gost_3410_12_256_paramSetB OBJ_tc26, 2L, 1L, 1L, 2L
enum SN_id_tc26_gost_3410_12_256_paramSetC = "id-tc26-gost-3410-12-256-paramSetC";
enum LN_id_tc26_gost_3410_12_256_paramSetC = "GOST R 34.10-2012 (256 bit) ParamSet C";
enum NID_id_tc26_gost_3410_12_256_paramSetC = 995;
//#define OBJ_id_tc26_gost_3410_12_256_paramSetC OBJ_tc26, 2L, 1L, 1L, 3L
enum SN_id_tc26_gost_3410_12_256_paramSetD = "id-tc26-gost-3410-12-256-paramSetD";
enum LN_id_tc26_gost_3410_12_256_paramSetD = "GOST R 34.10-2012 (256 bit) ParamSet D";
enum NID_id_tc26_gost_3410_12_256_paramSetD = 996;
//#define OBJ_id_tc26_gost_3410_12_256_paramSetD OBJ_tc26, 2L, 1L, 1L, 4L
enum SN_id_tc26_gost_3410_12_512_paramSetTest = "id-tc26-gost-3410-12-512-paramSetTest";
enum LN_id_tc26_gost_3410_12_512_paramSetTest = "GOST R 34.10-2012 (512 bit) testing parameter set";
enum NID_id_tc26_gost_3410_12_512_paramSetTest = 997;
//#define OBJ_id_tc26_gost_3410_12_512_paramSetTest OBJ_tc26, 2L, 1L, 2L, 0L
enum SN_id_tc26_gost_3410_12_512_paramSetA = "id-tc26-gost-3410-12-512-paramSetA";
enum LN_id_tc26_gost_3410_12_512_paramSetA = "GOST R 34.10-2012 (512 bit) ParamSet A";
enum NID_id_tc26_gost_3410_12_512_paramSetA = 943;
//#define OBJ_id_tc26_gost_3410_12_512_paramSetA OBJ_tc26, 2L, 1L, 2L, 1L
enum SN_id_tc26_gost_3410_12_512_paramSetB = "id-tc26-gost-3410-12-512-paramSetB";
enum LN_id_tc26_gost_3410_12_512_paramSetB = "GOST R 34.10-2012 (512 bit) ParamSet B";
enum NID_id_tc26_gost_3410_12_512_paramSetB = 944;
//#define OBJ_id_tc26_gost_3410_12_512_paramSetB OBJ_tc26, 2L, 1L, 2L, 2L
enum SN_id_tc26_gost_3410_12_512_paramSetC = "id-tc26-gost-3410-12-512-paramSetC";
enum LN_id_tc26_gost_3410_12_512_paramSetC = "GOST R 34.10-2012 (512 bit) ParamSet C";
enum NID_id_tc26_gost_3410_12_512_paramSetC = 998;
//#define OBJ_id_tc26_gost_3410_12_512_paramSetC OBJ_tc26, 2L, 1L, 2L, 3L
enum SN_id_tc26_gost_28147_param_Z = "id-tc26-gost-28147-param-Z";
enum NID_id_tc26_gost_28147_param_Z = 945;
//#define OBJ_id_tc26_gost_28147_param_Z OBJ_tc26, 2L, 5L, 1L, 1L
enum SN_id_tc26_gost3410_2012_256 = "id-tc26-gost3410-2012-256";
enum LN_id_tc26_gost3410_2012_256 = "GOST R 34.10-2012 (256 bit)";
enum NID_id_tc26_gost3410_2012_256 = 946;
//#define OBJ_id_tc26_gost3410_2012_256 OBJ_tc26, 1L, 1L, 1L
enum SN_id_tc26_gost3410_2012_512 = "id-tc26-gost3410-2012-512";
enum LN_id_tc26_gost3410_2012_512 = "GOST R 34.10-2012 (512 bit)";
enum NID_id_tc26_gost3410_2012_512 = 947;
//#define OBJ_id_tc26_gost3410_2012_512 OBJ_tc26, 1L, 1L, 2L
enum SN_id_tc26_signwithdigest_gost3410_2012_256 = "id-tc26-signwithdigest-gost3410-2012-256";
enum LN_id_tc26_signwithdigest_gost3410_2012_256 = "GOST R 34.11-2012 with GOST R 34.10-2012 (256 bit)";
enum NID_id_tc26_signwithdigest_gost3410_2012_256 = 948;
//#define OBJ_id_tc26_signwithdigest_gost3410_2012_256 OBJ_tc26, 1L, 3L, 2L
enum SN_id_tc26_signwithdigest_gost3410_2012_512 = "id-tc26-signwithdigest-gost3410-2012-512";
enum LN_id_tc26_signwithdigest_gost3410_2012_512 = "GOST R 34.11-2012 with GOST R 34.10-2012 (512 bit)";
enum NID_id_tc26_signwithdigest_gost3410_2012_512 = 949;
//#define OBJ_id_tc26_signwithdigest_gost3410_2012_512 OBJ_tc26, 1L, 3L, 3L
enum SN_X25519 = "X25519";
enum NID_X25519 = 950;
//#define OBJ_X25519 1L, 3L, 101L, 110L
enum SN_X448 = "X448";
enum NID_X448 = 951;
//#define OBJ_X448 1L, 3L, 101L, 111L
enum SN_Ed25519 = "Ed25519";
enum NID_Ed25519 = 952;
//#define OBJ_Ed25519 1L, 3L, 101L, 112L
enum SN_Ed448 = "Ed448";
enum NID_Ed448 = 953;
//#define OBJ_Ed448 1L, 3L, 101L, 113L
enum SN_Ed25519ph = "Ed25519ph";
enum NID_Ed25519ph = 954;
//#define OBJ_Ed25519ph 1L, 3L, 101L, 114L
enum SN_Ed448ph = "Ed448ph";
enum NID_Ed448ph = 955;
//#define OBJ_Ed448ph 1L, 3L, 101L, 115L
enum SN_kx_rsa = "KxRSA";
enum LN_kx_rsa = "kx-rsa";
enum NID_kx_rsa = 959;
enum SN_kx_ecdhe = "KxECDHE";
enum LN_kx_ecdhe = "kx-ecdhe";
enum NID_kx_ecdhe = 960;
enum SN_kx_dhe = "KxDHE";
enum LN_kx_dhe = "kx-dhe";
enum NID_kx_dhe = 961;
enum SN_kx_gost = "KxGOST";
enum LN_kx_gost = "kx-gost";
enum NID_kx_gost = 962;
enum SN_auth_rsa = "AuthRSA";
enum LN_auth_rsa = "auth-rsa";
enum NID_auth_rsa = 963;
enum SN_auth_ecdsa = "AuthECDSA";
enum LN_auth_ecdsa = "auth-ecdsa";
enum NID_auth_ecdsa = 964;
enum SN_auth_gost01 = "AuthGOST01";
enum LN_auth_gost01 = "auth-gost01";
enum NID_auth_gost01 = 965;
enum SN_auth_null = "AuthNULL";
enum LN_auth_null = "auth-null";
enum NID_auth_null = 966;
|
D
|
module webkit2.PrintCustomWidget;
private import glib.ConstructionException;
private import glib.Str;
private import gobject.ObjectG;
private import gobject.Signals;
private import gtk.PageSetup;
private import gtk.PrintSettings;
private import gtk.Widget;
private import std.algorithm;
private import webkit2.c.functions;
public import webkit2.c.types;
/**
* A WebKitPrintCustomWidget allows to embed a custom widget in the print
* dialog by connecting to the #WebKitPrintOperation::create-custom-widget
* signal, creating a new WebKitPrintCustomWidget with
* webkit_print_custom_widget_new() and returning it from there. You can later
* use webkit_print_operation_run_dialog() to display the dialog.
*
* Since: 2.16
*/
public class PrintCustomWidget : ObjectG
{
/** the main Gtk struct */
protected WebKitPrintCustomWidget* webKitPrintCustomWidget;
/** Get the main Gtk struct */
public WebKitPrintCustomWidget* getPrintCustomWidgetStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return webKitPrintCustomWidget;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)webKitPrintCustomWidget;
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (WebKitPrintCustomWidget* webKitPrintCustomWidget, bool ownedRef = false)
{
this.webKitPrintCustomWidget = webKitPrintCustomWidget;
super(cast(GObject*)webKitPrintCustomWidget, ownedRef);
}
/** */
public static GType getType()
{
return webkit_print_custom_widget_get_type();
}
/**
* Create a new #WebKitPrintCustomWidget with given @widget and @title. The @widget
* ownership is taken and it is destroyed together with the dialog even if this
* object could still be alive at that point. You typically want to pass a container
* widget with multiple widgets in it.
*
* Params:
* widget = a #GtkWidget
* title = a @widget's title
*
* Returns: a new #WebKitPrintOperation.
*
* Since: 2.16
*
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this(Widget widget, string title)
{
auto __p = webkit_print_custom_widget_new((widget is null) ? null : widget.getWidgetStruct(), Str.toStringz(title));
if(__p is null)
{
throw new ConstructionException("null returned by new");
}
this(cast(WebKitPrintCustomWidget*) __p, true);
}
/**
* Return the value of #WebKitPrintCustomWidget:title property for the given
* @print_custom_widget object.
*
* Returns: Title of the @print_custom_widget.
*
* Since: 2.16
*/
public string getTitle()
{
return Str.toString(webkit_print_custom_widget_get_title(webKitPrintCustomWidget));
}
/**
* Return the value of #WebKitPrintCustomWidget:widget property for the given
* @print_custom_widget object. The returned value will always be valid if called
* from #WebKitPrintCustomWidget::apply or #WebKitPrintCustomWidget::update
* callbacks, but it will be %NULL if called after the
* #WebKitPrintCustomWidget::apply signal is emitted.
*
* Returns: a #GtkWidget.
*
* Since: 2.16
*/
public Widget getWidget()
{
auto __p = webkit_print_custom_widget_get_widget(webKitPrintCustomWidget);
if(__p is null)
{
return null;
}
return ObjectG.getDObject!(Widget)(cast(GtkWidget*) __p);
}
/**
* Emitted right before the printing will start. You should read the information
* from the widget and update the content based on it if necessary. The widget
* is not guaranteed to be valid at a later time.
*
* Since: 2.16
*/
gulong addOnApply(void delegate(PrintCustomWidget) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
return Signals.connect(this, "apply", dlg, connectFlags ^ ConnectFlags.SWAPPED);
}
/**
* Emitted after change of selected printer in the dialog. The actual page setup
* and print settings are available and the custom widget can actualize itself
* according to their values.
*
* Params:
* pageSetup = actual page setup
* printSettings = actual print settings
*
* Since: 2.16
*/
gulong addOnUpdate(void delegate(PageSetup, PrintSettings, PrintCustomWidget) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
return Signals.connect(this, "update", dlg, connectFlags ^ ConnectFlags.SWAPPED);
}
}
|
D
|
module boilerplate.autostring;
import std.format : format;
import std.meta : Alias;
import std.traits : Unqual;
version(unittest)
{
import std.conv : to;
import std.datetime : SysTime;
import unit_threaded.should;
}
/++
GenerateToString is a mixin string that automatically generates toString functions,
both sink-based and classic, customizable with UDA annotations on classes, members and functions.
+/
public enum string GenerateToString = `
import boilerplate.autostring : GenerateToStringTemplate;
mixin GenerateToStringTemplate;
mixin(typeof(this).generateToStringErrCheck());
mixin(typeof(this).generateToStringImpl());
`;
/++
When used with objects, toString methods of type string toString() are also created.
+/
@("generates legacy toString on objects")
unittest
{
class Class
{
mixin(GenerateToString);
}
(new Class).to!string.shouldEqual("Class()");
(new Class).toString.shouldEqual("Class()");
}
/++
A trailing underline in member names is removed when labeling.
+/
@("removes trailing underline")
unittest
{
struct Struct
{
int a_;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(a=0)");
}
/++
The `@(ToString.Exclude)` tag can be used to exclude a member.
+/
@("can exclude a member")
unittest
{
struct Struct
{
@(ToString.Exclude)
int a;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct()");
}
/++
The `@(ToString.Optional)` tag can be used to include a member only if it's in some form "present".
This means non-empty for arrays, non-null for objects, non-zero for ints.
+/
@("can optionally exclude member")
unittest
{
import std.typecons : Nullable, nullable;
class Class
{
mixin(GenerateToString);
}
struct Test // some type that is not comparable to null or 0
{
mixin(GenerateToString);
}
struct Struct
{
@(ToString.Optional)
int a;
@(ToString.Optional)
string s;
@(ToString.Optional)
Class obj;
@(ToString.Optional)
Nullable!Test nullable;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct()");
Struct(2, "hi", new Class, Test().nullable).to!string
.shouldEqual(`Struct(a=2, s="hi", obj=Class(), nullable=Test())`);
Struct(0, "", null, Nullable!Test()).to!string.shouldEqual("Struct()");
}
/++
The `@(ToString.Optional)` tag can be used with a condition parameter
indicating when the type is to be _included._
+/
@("can pass exclusion condition to Optional")
unittest
{
struct Struct
{
@(ToString.Optional!(a => a > 3))
int i;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct()");
Struct(3).to!string.shouldEqual("Struct()");
Struct(5).to!string.shouldEqual("Struct(i=5)");
}
/++
The `@(ToString.Include)` tag can be used to explicitly include a member.
This is intended to be used on property methods.
+/
@("can include a method")
unittest
{
struct Struct
{
@(ToString.Include)
int foo() const { return 5; }
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(foo=5)");
}
/++
The `@(ToString.Unlabeled)` tag will omit a field's name.
+/
@("can omit names")
unittest
{
struct Struct
{
@(ToString.Unlabeled)
int a;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(0)");
}
/++
Parent class `toString()` methods are included automatically as the first entry, except if the parent class is `Object`.
+/
@("can be used in both parent and child class")
unittest
{
class ParentClass { mixin(GenerateToString); }
class ChildClass : ParentClass { mixin(GenerateToString); }
(new ChildClass).to!string.shouldEqual("ChildClass(ParentClass())");
}
@("invokes manually implemented parent toString")
unittest
{
class ParentClass
{
override string toString() const
{
return "Some string";
}
}
class ChildClass : ParentClass { mixin(GenerateToString); }
(new ChildClass).to!string.shouldEqual("ChildClass(Some string)");
}
@("can partially override toString in child class")
unittest
{
class ParentClass
{
mixin(GenerateToString);
}
class ChildClass : ParentClass
{
override string toString() const
{
return "Some string";
}
mixin(GenerateToString);
}
(new ChildClass).to!string.shouldEqual("Some string");
}
@("invokes manually implemented string toString in same class")
unittest
{
class Class
{
override string toString() const
{
return "Some string";
}
mixin(GenerateToString);
}
(new Class).to!string.shouldEqual("Some string");
}
@("invokes manually implemented void toString in same class")
unittest
{
class Class
{
void toString(scope void delegate(const(char)[]) sink) const
{
sink("Some string");
}
mixin(GenerateToString);
}
(new Class).to!string.shouldEqual("Some string");
}
/++
Inclusion of parent class `toString()` can be prevented using `@(ToString.ExcludeSuper)`.
+/
@("can suppress parent class toString()")
unittest
{
class ParentClass { }
@(ToString.ExcludeSuper)
class ChildClass : ParentClass { mixin(GenerateToString); }
(new ChildClass).to!string.shouldEqual("ChildClass()");
}
/++
The `@(ToString.Naked)` tag will omit the name of the type and parentheses.
+/
@("can omit the type name")
unittest
{
@(ToString.Naked)
struct Struct
{
int a;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("a=0");
}
/++
Fields with the same name (ignoring capitalization) as their type, are unlabeled by default.
+/
@("does not label fields with the same name as the type")
unittest
{
struct Struct1 { mixin(GenerateToString); }
struct Struct2
{
Struct1 struct1;
mixin(GenerateToString);
}
Struct2.init.to!string.shouldEqual("Struct2(Struct1())");
}
@("does not label fields with the same name as the type, even if they're const")
unittest
{
struct Struct1 { mixin(GenerateToString); }
struct Struct2
{
const Struct1 struct1;
mixin(GenerateToString);
}
Struct2.init.to!string.shouldEqual("Struct2(Struct1())");
}
/++
This behavior can be prevented by explicitly tagging the field with `@(ToString.Labeled)`.
+/
@("does label fields tagged as labeled")
unittest
{
struct Struct1 { mixin(GenerateToString); }
struct Struct2
{
@(ToString.Labeled)
Struct1 struct1;
mixin(GenerateToString);
}
Struct2.init.to!string.shouldEqual("Struct2(struct1=Struct1())");
}
/++
Fields of type 'SysTime' and name 'time' are unlabeled by default.
+/
@("does not label SysTime time field correctly")
unittest
{
struct Struct { SysTime time; mixin(GenerateToString); }
Struct strct;
strct.time = SysTime.fromISOExtString("2003-02-01T11:55:00Z");
// see unittest/config/string.d
strct.to!string.shouldEqual("Struct(2003-02-01T11:55:00Z)");
}
/++
Fields named 'id' are unlabeled only if they define their own toString().
+/
@("does not label id fields with toString()")
unittest
{
struct IdType
{
string toString() const { return "ID"; }
}
struct Struct
{
IdType id;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(ID)");
}
/++
Otherwise, they are labeled as normal.
+/
@("labels id fields without toString")
unittest
{
struct Struct
{
int id;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(id=0)");
}
/++
Fields that are arrays with a name that is the pluralization of the array base type are also unlabeled by default,
as long as the array is NonEmpty. Otherwise, there would be no way to tell what the field contains.
+/
@("does not label fields named a plural of the basetype, if the type is an array")
unittest
{
import boilerplate.conditions : NonEmpty;
struct Value { mixin(GenerateToString); }
struct Entity { mixin(GenerateToString); }
struct Day { mixin(GenerateToString); }
struct Struct
{
@NonEmpty
Value[] values;
@NonEmpty
Entity[] entities;
@NonEmpty
Day[] days;
mixin(GenerateToString);
}
auto value = Struct(
[Value()],
[Entity()],
[Day()]);
value.to!string.shouldEqual("Struct([Value()], [Entity()], [Day()])");
}
@("does not label fields named a plural of the basetype, if the type is a BitFlags")
unittest
{
import std.typecons : BitFlags;
enum Flag
{
A = 1 << 0,
B = 1 << 1,
}
struct Struct
{
BitFlags!Flag flags;
mixin(GenerateToString);
}
auto value = Struct(BitFlags!Flag(Flag.A, Flag.B));
value.to!string.shouldEqual("Struct(Flag(A, B))");
}
/++
Fields that are not NonEmpty are always labeled.
This is because they can be empty, in which case you can't tell what's in them from naming.
+/
@("does label fields that may be empty")
unittest
{
import boilerplate.conditions : NonEmpty;
struct Value { mixin(GenerateToString); }
struct Struct
{
Value[] values;
mixin(GenerateToString);
}
Struct(null).to!string.shouldEqual("Struct(values=[])");
}
/++
`GenerateToString` can be combined with `GenerateFieldAccessors` without issue.
+/
@("does not collide with accessors")
unittest
{
struct Struct
{
import boilerplate.accessors : ConstRead, GenerateFieldAccessors;
@ConstRead
private int a_;
mixin(GenerateFieldAccessors);
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(a=0)");
}
@("supports child classes of abstract classes")
unittest
{
static abstract class ParentClass
{
}
class ChildClass : ParentClass
{
mixin(GenerateToString);
}
}
@("supports custom toString handlers")
unittest
{
struct Struct
{
@ToStringHandler!(i => i ? "yes" : "no")
int i;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(i=no)");
}
@("passes nullable unchanged to custom toString handlers")
unittest
{
import std.typecons : Nullable;
struct Struct
{
@ToStringHandler!(ni => ni.isNull ? "no" : "yes")
Nullable!int ni;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct(ni=no)");
}
// see unittest.config.string
@("supports optional BitFlags in structs")
unittest
{
import std.typecons : BitFlags;
enum Enum
{
A = 1,
B = 2,
}
struct Struct
{
@(ToString.Optional)
BitFlags!Enum field;
mixin(GenerateToString);
}
Struct.init.to!string.shouldEqual("Struct()");
}
@("prints hashmaps in deterministic order")
unittest
{
struct Struct
{
string[string] map;
mixin(GenerateToString);
}
bool foundCollision = false;
foreach (key1; ["opstop", "opsto"])
{
enum key2 = "foo"; // collide
const first = Struct([key1: null, key2: null]);
string[string] backwardsHashmap;
backwardsHashmap[key2] = null;
backwardsHashmap[key1] = null;
const second = Struct(backwardsHashmap);
if (first.map.keys != second.map.keys)
{
foundCollision = true;
first.to!string.shouldEqual(second.to!string);
}
}
assert(foundCollision, "none of the listed keys caused a hash collision");
}
@("applies custom formatters to types in hashmaps")
unittest
{
import std.datetime : SysTime;
struct Struct
{
SysTime[string] map;
mixin(GenerateToString);
}
const expected = "2003-02-01T11:55:00Z";
const value = Struct(["foo": SysTime.fromISOExtString(expected)]);
value.to!string.shouldEqual(`Struct(map=["foo": ` ~ expected ~ `])`);
}
@("can format associative array of Nullable SysTime")
unittest
{
import std.datetime : SysTime;
import std.typecons : Nullable;
struct Struct
{
Nullable!SysTime[string] map;
mixin(GenerateToString);
}
const expected = `Struct(map=["foo": null])`;
const value = Struct(["foo": Nullable!SysTime()]);
value.to!string.shouldEqual(expected);
}
@("can format associative array of type that cannot be sorted")
unittest
{
struct Struct
{
mixin(GenerateToString);
}
struct Struct2
{
bool[Struct] hashmap;
mixin(GenerateToString);
}
const expected = `Struct2(hashmap=[])`;
const value = Struct2(null);
value.to!string.shouldEqual(expected);
}
@("labels nested types with fully qualified names")
unittest
{
import std.datetime : SysTime;
import std.typecons : Nullable;
struct Struct
{
struct Struct2
{
mixin(GenerateToString);
}
Struct2 struct2;
mixin(GenerateToString);
}
const expected = `Struct(Struct.Struct2())`;
const value = Struct(Struct.Struct2());
value.to!string.shouldEqual(expected);
}
@("supports fully qualified names with quotes")
unittest
{
struct Struct(string s)
{
struct Struct2
{
mixin(GenerateToString);
}
Struct2 struct2;
mixin(GenerateToString);
}
const expected = `Struct!"foo"(Struct!"foo".Struct2())`;
const value = Struct!"foo"(Struct!"foo".Struct2());
value.to!string.shouldEqual(expected);
}
@("optional-always null Nullable")
unittest
{
import std.typecons : Nullable;
struct Struct
{
@(ToString.Optional!(a => true))
Nullable!int i;
mixin(GenerateToString);
}
Struct().to!string.shouldEqual("Struct(i=Nullable.null)");
}
@("force-included null Nullable")
unittest
{
import std.typecons : Nullable;
struct Struct
{
@(ToString.Include)
Nullable!int i;
mixin(GenerateToString);
}
Struct().to!string.shouldEqual("Struct(i=Nullable.null)");
}
// test for clean detection of Nullable
@("struct with isNull")
unittest
{
struct Inner
{
bool isNull() const { return false; }
mixin(GenerateToString);
}
struct Outer
{
Inner inner;
mixin(GenerateToString);
}
Outer().to!string.shouldEqual("Outer(Inner())");
}
mixin template GenerateToStringTemplate()
{
// this is a separate function to reduce the
// "warning: unreachable code" spam that is falsely created from static foreach
private static generateToStringErrCheck()
{
if (!__ctfe)
{
return null;
}
import boilerplate.autostring : ToString, typeName;
import boilerplate.util : GenNormalMemberTuple;
import std.string : format;
bool udaIncludeSuper;
bool udaExcludeSuper;
foreach (uda; __traits(getAttributes, typeof(this)))
{
static if (is(typeof(uda) == ToString))
{
switch (uda)
{
case ToString.IncludeSuper: udaIncludeSuper = true; break;
case ToString.ExcludeSuper: udaExcludeSuper = true; break;
default: break;
}
}
}
if (udaIncludeSuper && udaExcludeSuper)
{
return format!(`static assert(false, ` ~
`"Contradictory tags on '" ~ %(%s%) ~ "': IncludeSuper and ExcludeSuper");`)
([typeName!(typeof(this))]);
}
mixin GenNormalMemberTuple!true;
foreach (member; NormalMemberTuple)
{
enum error = checkAttributeConsistency!(__traits(getAttributes, __traits(getMember, typeof(this), member)));
static if (error)
{
return format!error(member);
}
}
return ``;
}
private static generateToStringImpl()
{
if (!__ctfe)
{
return null;
}
import boilerplate.autostring : isMemberUnlabeledByDefault, ToString, typeName;
import boilerplate.conditions : NonEmpty;
import boilerplate.util : GenNormalMemberTuple, udaIndex;
import std.meta : Alias;
import std.string : endsWith, format, split, startsWith, strip;
import std.traits : BaseClassesTuple, getUDAs, Unqual;
import std.typecons : Nullable;
// synchronized without lock contention is basically free, so always do it
// TODO enable when https://issues.dlang.org/show_bug.cgi?id=18504 is fixed
enum synchronize = false && is(typeof(this) == class);
const constExample = typeof(this).init;
auto normalExample = typeof(this).init;
enum alreadyHaveStringToString = __traits(hasMember, typeof(this), "toString")
&& is(typeof(normalExample.toString()) == string);
enum alreadyHaveUsableStringToString = alreadyHaveStringToString
&& is(typeof(constExample.toString()) == string);
enum alreadyHaveVoidToString = __traits(hasMember, typeof(this), "toString")
&& is(typeof(normalExample.toString((void delegate(const(char)[])).init)) == void);
enum alreadyHaveUsableVoidToString = alreadyHaveVoidToString
&& is(typeof(constExample.toString((void delegate(const(char)[])).init)) == void);
enum isObject = is(typeof(this): Object);
static if (isObject)
{
enum userDefinedStringToString = hasOwnStringToString!(typeof(this), typeof(super));
enum userDefinedVoidToString = hasOwnVoidToString!(typeof(this), typeof(super));
}
else
{
enum userDefinedStringToString = alreadyHaveStringToString;
enum userDefinedVoidToString = alreadyHaveVoidToString;
}
static if (userDefinedStringToString && userDefinedVoidToString)
{
string result = ``; // Nothing to be done.
}
// if the user has defined their own string toString() in this aggregate:
else static if (userDefinedStringToString)
{
// just call it.
static if (alreadyHaveUsableStringToString)
{
string result = `public void toString(scope void delegate(const(char)[]) sink) const {` ~
` sink(this.toString());` ~
` }`;
static if (isObject
&& is(typeof(typeof(super).init.toString((void delegate(const(char)[])).init)) == void))
{
result = `override ` ~ result;
}
}
else
{
string result = `static assert(false, "toString is not const in this class.");`;
}
}
// if the user has defined their own void toString() in this aggregate:
else
{
string result = null;
static if (!userDefinedVoidToString)
{
bool nakedMode;
bool udaIncludeSuper;
bool udaExcludeSuper;
foreach (uda; __traits(getAttributes, typeof(this)))
{
static if (is(typeof(uda) == ToStringEnum))
{
switch (uda)
{
case ToString.Naked: nakedMode = true; break;
case ToString.IncludeSuper: udaIncludeSuper = true; break;
case ToString.ExcludeSuper: udaExcludeSuper = true; break;
default: break;
}
}
}
string NamePlusOpenParen = typeName!(typeof(this)) ~ "(";
version(AutoStringDebug)
{
result ~= format!`pragma(msg, "%s %s");`(alreadyHaveStringToString, alreadyHaveVoidToString);
}
static if (isObject && alreadyHaveVoidToString) result ~= `override `;
result ~= `public void toString(scope void delegate(const(char)[]) sink) const {`
~ `import boilerplate.autostring: ToStringHandler;`
~ `import boilerplate.util: sinkWrite;`
~ `import std.traits: getUDAs;`;
static if (synchronize)
{
result ~= `synchronized (this) { `;
}
if (!nakedMode)
{
result ~= format!`sink(%(%s%));`([NamePlusOpenParen]);
}
bool includeSuper = false;
static if (isObject)
{
if (alreadyHaveUsableStringToString || alreadyHaveUsableVoidToString)
{
includeSuper = true;
}
}
if (udaIncludeSuper)
{
includeSuper = true;
}
else if (udaExcludeSuper)
{
includeSuper = false;
}
static if (isObject)
{
if (includeSuper)
{
static if (!alreadyHaveUsableStringToString && !alreadyHaveUsableVoidToString)
{
return `static assert(false, `
~ `"cannot include super class in GenerateToString: `
~ `parent class has no usable toString!");`;
}
else {
static if (alreadyHaveUsableVoidToString)
{
result ~= `super.toString(sink);`;
}
else
{
result ~= `sink(super.toString());`;
}
result ~= `bool comma = true;`;
}
}
else
{
result ~= `bool comma = false;`;
}
}
else
{
result ~= `bool comma = false;`;
}
result ~= `{`;
mixin GenNormalMemberTuple!(true);
foreach (member; NormalMemberTuple)
{
mixin("alias symbol = typeof(this)." ~ member ~ ";");
enum udaInclude = udaIndex!(ToString.Include, __traits(getAttributes, symbol)) != -1;
enum udaExclude = udaIndex!(ToString.Exclude, __traits(getAttributes, symbol)) != -1;
enum udaLabeled = udaIndex!(ToString.Labeled, __traits(getAttributes, symbol)) != -1;
enum udaUnlabeled = udaIndex!(ToString.Unlabeled, __traits(getAttributes, symbol)) != -1;
enum udaOptional = udaIndex!(ToString.Optional, __traits(getAttributes, symbol)) != -1;
enum udaToStringHandler = udaIndex!(ToStringHandler, __traits(getAttributes, symbol)) != -1;
enum udaNonEmpty = udaIndex!(NonEmpty, __traits(getAttributes, symbol)) != -1;
// see std.traits.isFunction!()
static if (
is(symbol == function)
|| is(typeof(symbol) == function)
|| (is(typeof(&symbol) U : U*) && is(U == function)))
{
enum isFunction = true;
}
else
{
enum isFunction = false;
}
enum includeOverride = udaInclude || udaOptional;
enum includeMember = (!isFunction || includeOverride) && !udaExclude;
static if (includeMember)
{
string memberName = member;
if (memberName.endsWith("_"))
{
memberName = memberName[0 .. $ - 1];
}
bool labeled = true;
static if (udaUnlabeled)
{
labeled = false;
}
if (isMemberUnlabeledByDefault!(Unqual!(typeof(symbol)))(memberName, udaNonEmpty))
{
labeled = false;
}
static if (udaLabeled)
{
labeled = true;
}
string membervalue = `this.` ~ member;
bool escapeStrings = true;
static if (udaToStringHandler)
{
alias Handlers = getUDAs!(symbol, ToStringHandler);
static assert(Handlers.length == 1);
static if (__traits(compiles, Handlers[0].Handler(typeof(symbol).init)))
{
membervalue = `getUDAs!(this.` ~ member ~ `, ToStringHandler)[0].Handler(`
~ membervalue
~ `)`;
escapeStrings = false;
}
else
{
return `static assert(false, "cannot determine how to call ToStringHandler");`;
}
}
string readMemberValue = membervalue;
string conditionalWritestmt; // formatted with sink.sinkWrite(... readMemberValue ... )
static if (udaOptional)
{
import std.array : empty;
enum optionalIndex = udaIndex!(ToString.Optional, __traits(getAttributes, symbol));
alias optionalUda = Alias!(__traits(getAttributes, symbol)[optionalIndex]);
static if (is(optionalUda == struct))
{
conditionalWritestmt = format!q{
if (__traits(getAttributes, %s)[%s].condition(%s)) { %%s }
} (membervalue, optionalIndex, membervalue);
}
else static if (__traits(compiles, typeof(symbol).init.isNull))
{
conditionalWritestmt = format!q{if (!%s.isNull) { %%s }}
(membervalue);
static if (is(typeof(symbol) : Nullable!T, T))
{
readMemberValue = membervalue ~ ".get";
}
}
else static if (__traits(compiles, typeof(symbol).init.empty))
{
conditionalWritestmt = format!q{import std.array : empty; if (!%s.empty) { %%s }}
(membervalue);
}
else static if (__traits(compiles, typeof(symbol).init !is null))
{
conditionalWritestmt = format!q{if (%s !is null) { %%s }}
(membervalue);
}
else static if (__traits(compiles, typeof(symbol).init != 0))
{
conditionalWritestmt = format!q{if (%s != 0) { %%s }}
(membervalue);
}
else static if (__traits(compiles, { if (typeof(symbol).init) { } }))
{
conditionalWritestmt = format!q{if (%s) { %%s }}
(membervalue);
}
else
{
return format!(`static assert(false, `
~ `"don't know how to figure out whether %s is present.");`)
(member);
}
}
else
{
// Nullables (without handler, that aren't force-included) fall back to optional
static if (!udaToStringHandler && !udaInclude &&
__traits(compiles, typeof(symbol).init.isNull))
{
conditionalWritestmt = format!q{if (!%s.isNull) { %%s }}
(membervalue);
static if (is(typeof(symbol) : Nullable!T, T))
{
readMemberValue = membervalue ~ ".get";
}
}
else
{
conditionalWritestmt = q{ %s };
}
}
string writestmt;
if (labeled)
{
writestmt = format!`sink.sinkWrite(comma, %s, "%s=%%s", %s);`
(escapeStrings, memberName, readMemberValue);
}
else
{
writestmt = format!`sink.sinkWrite(comma, %s, "%%s", %s);`
(escapeStrings, readMemberValue);
}
result ~= format(conditionalWritestmt, writestmt);
}
}
result ~= `} `;
if (!nakedMode)
{
result ~= `sink(")");`;
}
static if (synchronize)
{
result ~= `} `;
}
result ~= `} `;
}
// generate fallback string toString()
// that calls, specifically, *our own* toString impl.
// (this is important to break cycles when a subclass implements a toString that calls super.toString)
static if (isObject)
{
result ~= `override `;
}
result ~= `public string toString() const {`
~ `string result;`
~ `typeof(this).toString((const(char)[] part) { result ~= part; });`
~ `return result;`
~ `}`;
}
return result;
}
}
template checkAttributeConsistency(Attributes...)
{
enum checkAttributeConsistency = checkAttributeHelper();
private string checkAttributeHelper()
{
if (!__ctfe)
{
return null;
}
import std.string : format;
bool include, exclude, optional, labeled, unlabeled;
foreach (uda; Attributes)
{
static if (is(typeof(uda) == ToStringEnum))
{
switch (uda)
{
case ToString.Include: include = true; break;
case ToString.Exclude: exclude = true; break;
case ToString.Labeled: labeled = true; break;
case ToString.Unlabeled: unlabeled = true; break;
default: break;
}
}
else static if (is(uda == struct) && __traits(isSame, uda, ToString.Optional))
{
optional = true;
}
}
if (include && exclude)
{
return `static assert(false, "Contradictory tags on '%s': Include and Exclude");`;
}
if (include && optional)
{
return `static assert(false, "Redundant tags on '%s': Optional implies Include");`;
}
if (exclude && optional)
{
return `static assert(false, "Contradictory tags on '%s': Exclude and Optional");`;
}
if (labeled && unlabeled)
{
return `static assert(false, "Contradictory tags on '%s': Labeled and Unlabeled");`;
}
return null;
}
}
struct ToStringHandler(alias Handler_)
{
alias Handler = Handler_;
}
enum ToStringEnum
{
// these go on the class
Naked,
IncludeSuper,
ExcludeSuper,
// these go on the field/method
Unlabeled,
Labeled,
Exclude,
Include,
}
struct ToString
{
static foreach (name; __traits(allMembers, ToStringEnum))
{
mixin(format!q{enum %s = ToStringEnum.%s;}(name, name));
}
static struct Optional(alias condition_)
{
alias condition = condition_;
}
}
public bool isMemberUnlabeledByDefault(Type)(string field, bool attribNonEmpty)
{
import std.datetime : SysTime;
import std.range.primitives : ElementType, isInputRange;
import std.typecons : BitFlags;
field = field.toLower;
static if (isInputRange!Type)
{
alias BaseType = ElementType!Type;
if (field == BaseType.stringof.toLower.pluralize && attribNonEmpty)
{
return true;
}
}
else static if (is(Type: const BitFlags!BaseType, BaseType))
{
if (field == BaseType.stringof.toLower.pluralize)
{
return true;
}
}
return field == Type.stringof.toLower
|| (field == "time" && is(Type == SysTime))
|| (field == "id" && is(typeof(Type.toString)));
}
private string toLower(string text)
{
import std.string : stdToLower = toLower;
string result = null;
foreach (ub; cast(immutable(ubyte)[]) text)
{
if (ub >= 0x80) // utf-8, non-ascii
{
return text.stdToLower;
}
if (ub >= 'A' && ub <= 'Z')
{
result ~= cast(char) (ub + ('a' - 'A'));
}
else
{
result ~= cast(char) ub;
}
}
return result;
}
// http://code.activestate.com/recipes/82102/
private string pluralize(string label)
{
import std.algorithm.searching : contain = canFind;
string postfix = "s";
if (label.length > 2)
{
enum vowels = "aeiou";
if (label.stringEndsWith("ch") || label.stringEndsWith("sh"))
{
postfix = "es";
}
else if (auto before = label.stringEndsWith("y"))
{
if (!vowels.contain(label[$ - 2]))
{
postfix = "ies";
label = before;
}
}
else if (auto before = label.stringEndsWith("is"))
{
postfix = "es";
label = before;
}
else if ("sxz".contain(label[$-1]))
{
postfix = "es"; // glasses
}
}
return label ~ postfix;
}
@("has functioning pluralize()")
unittest
{
"dog".pluralize.shouldEqual("dogs");
"ash".pluralize.shouldEqual("ashes");
"day".pluralize.shouldEqual("days");
"entity".pluralize.shouldEqual("entities");
"thesis".pluralize.shouldEqual("theses");
"glass".pluralize.shouldEqual("glasses");
}
private string stringEndsWith(const string text, const string suffix)
{
import std.range : dropBack;
import std.string : endsWith;
if (text.endsWith(suffix))
{
return text.dropBack(suffix.length);
}
return null;
}
@("has functioning stringEndsWith()")
unittest
{
"".stringEndsWith("").shouldNotBeNull;
"".stringEndsWith("x").shouldBeNull;
"Hello".stringEndsWith("Hello").shouldNotBeNull;
"Hello".stringEndsWith("Hello").shouldEqual("");
"Hello".stringEndsWith("lo").shouldEqual("Hel");
}
template hasOwnFunction(Aggregate, Super, string Name, Type)
{
import std.meta : AliasSeq, Filter;
import std.traits : Unqual;
enum FunctionMatchesType(alias Fun) = is(Unqual!(typeof(Fun)) == Type);
alias MyFunctions = AliasSeq!(__traits(getOverloads, Aggregate, Name));
alias MatchingFunctions = Filter!(FunctionMatchesType, MyFunctions);
enum hasFunction = MatchingFunctions.length == 1;
alias SuperFunctions = AliasSeq!(__traits(getOverloads, Super, Name));
alias SuperMatchingFunctions = Filter!(FunctionMatchesType, SuperFunctions);
enum superHasFunction = SuperMatchingFunctions.length == 1;
static if (hasFunction)
{
static if (superHasFunction)
{
enum hasOwnFunction = !__traits(isSame, MatchingFunctions[0], SuperMatchingFunctions[0]);
}
else
{
enum hasOwnFunction = true;
}
}
else
{
enum hasOwnFunction = false;
}
}
/**
* Find qualified name of `T` including any containing types; not including containing functions or modules.
*/
public template typeName(T)
{
static if (__traits(compiles, __traits(parent, T)))
{
alias parent = Alias!(__traits(parent, T));
enum isSame = __traits(isSame, T, parent);
static if (!isSame && (
is(parent == struct) || is(parent == union) || is(parent == enum) ||
is(parent == class) || is(parent == interface)))
{
enum typeName = typeName!parent ~ "." ~ Unqual!T.stringof;
}
else
{
enum typeName = Unqual!T.stringof;
}
}
else
{
enum typeName = Unqual!T.stringof;
}
}
private final abstract class StringToStringSample {
override string toString();
}
private final abstract class VoidToStringSample {
void toString(scope void delegate(const(char)[]) sink);
}
enum hasOwnStringToString(Aggregate, Super)
= hasOwnFunction!(Aggregate, Super, "toString", typeof(StringToStringSample.toString));
enum hasOwnVoidToString(Aggregate, Super)
= hasOwnFunction!(Aggregate, Super, "toString", typeof(VoidToStringSample.toString));
@("correctly recognizes the existence of string toString() in a class")
unittest
{
class Class1
{
override string toString() { return null; }
static assert(!hasOwnVoidToString!(typeof(this), typeof(super)));
static assert(hasOwnStringToString!(typeof(this), typeof(super)));
}
class Class2
{
override string toString() const { return null; }
static assert(!hasOwnVoidToString!(typeof(this), typeof(super)));
static assert(hasOwnStringToString!(typeof(this), typeof(super)));
}
class Class3
{
void toString(scope void delegate(const(char)[]) sink) const { }
override string toString() const { return null; }
static assert(hasOwnVoidToString!(typeof(this), typeof(super)));
static assert(hasOwnStringToString!(typeof(this), typeof(super)));
}
class Class4
{
void toString(scope void delegate(const(char)[]) sink) const { }
static assert(hasOwnVoidToString!(typeof(this), typeof(super)));
static assert(!hasOwnStringToString!(typeof(this), typeof(super)));
}
class Class5
{
mixin(GenerateToString);
}
class ChildClass1 : Class1
{
static assert(!hasOwnStringToString!(typeof(this), typeof(super)));
}
class ChildClass2 : Class2
{
static assert(!hasOwnStringToString!(typeof(this), typeof(super)));
}
class ChildClass3 : Class3
{
static assert(!hasOwnStringToString!(typeof(this), typeof(super)));
}
class ChildClass5 : Class5
{
static assert(!hasOwnStringToString!(typeof(this), typeof(super)));
}
}
|
D
|
/Users/William/dev/rust/substrate-blockchain-test/substrate-test/runtime/target/debug/build/error-chain-8b85625c779b89e7/build_script_build-8b85625c779b89e7: /Users/William/.cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.12.1/build.rs
/Users/William/dev/rust/substrate-blockchain-test/substrate-test/runtime/target/debug/build/error-chain-8b85625c779b89e7/build_script_build-8b85625c779b89e7.d: /Users/William/.cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.12.1/build.rs
/Users/William/.cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.12.1/build.rs:
|
D
|
INSTANCE Mod_12018_DRA_Echse_AW (C_NPC)
{
//----- Monster ----
name = "Echsenmensch";
guild = GIL_DRACONIAN;
id = 12018;
level = 35;
voice = 23;
Npctype = NPCTYPE_MAIN;
exp = 1200;
//----- Attribute ----
attribute [ATR_STRENGTH] = 130;
attribute [ATR_DEXTERITY] = 130;
attribute [ATR_HITPOINTS_MAX] = 260;
attribute [ATR_HITPOINTS] = 260;
attribute [ATR_MANA_MAX] = 0;
attribute [ATR_MANA] = 0;
//----- Protection ----
protection [PROT_BLUNT] = 130;
protection [PROT_EDGE] = 130;
protection [PROT_POINT] = 130;
protection [PROT_FIRE] = 130;
protection [PROT_FLY] = 130;
protection [PROT_MAGIC] = 65;
//----- HitChances -----
HitChance [NPC_TALENT_1H] = 80;
HitChance [NPC_TALENT_2H] = 80;
HitChance [NPC_TALENT_BOW] = 80;
HitChance [NPC_TALENT_CROSSBOW] = 80;
//----- Damage Types ----
damagetype = DAM_EDGE;
// damage [DAM_INDEX_BLUNT] = 0;
// damage [DAM_INDEX_EDGE] = 0;
// damage [DAM_INDEX_POINT] = 0;
// damage [DAM_INDEX_FIRE] = 0;
// damage [DAM_INDEX_FLY] = 0;
// damage [DAM_INDEX_MAGIC] = 0;
//----- Kampf-Taktik ----
fight_tactic = FAI_ORC;
//----- Senses & Ranges ----
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = PERC_DIST_MONSTER_ACTIVE_MAX;
aivar[AIV_MM_FollowTime] = FOLLOWTIME_MEDIUM;
aivar[AIV_MM_FollowInWater] = FALSE;
aivar[AIV_MM_RestStart] = OnlyRoutine;
B_EchsenBody (self);
EquipItem (self, ItMw_2H_OrcSword_01);
//----- Daily Routine ----
daily_routine = Rtn_Start_12018;
};
FUNC VOID Rtn_Start_12018()
{
TA_Stand_WP_Orc (08,00,20,00,"BANDIT_FIGHT");
TA_Stand_WP_Orc (20,00,08,00,"BANDIT_FIGHT");
};
FUNC VOID Rtn_Schlacht_12018()
{
TA_Stand_WP_Orc (08,00,20,00,"ADW_PATH_TO_BL_01_B");
TA_Stand_WP_Orc (20,00,08,00,"ADW_PATH_TO_BL_01_B");
};
|
D
|
/**
Integration tests.
*/
module it;
public import unit_threaded;
import unit_threaded.integration;
version(Windows)
enum objectFileExtension = ".obj";
else
enum objectFileExtension = ".o";
version(dpp2)
alias WIP2 = ShouldFail;
else
enum WIP2;
mixin template shouldCompile(D dCode) {
import std.traits: getUDAs;
enum udasC = getUDAs!(__traits(parent, {}), C);
void verify() {
.shouldCompile(udasC[0], dCode);
}
}
string shouldCompile(in D dCode) {
return `mixin shouldCompile!(D(q{` ~ dCode.code ~ `})); verify;`;
}
/// C code
struct C {
string code;
}
/// C++ code
struct Cpp {
string code;
}
/// D code
struct D {
string code;
}
struct RuntimeArgs {
string[] args;
}
struct IncludeSandbox {
alias sandbox this;
Sandbox sandbox;
static auto opCall() @safe {
IncludeSandbox ret;
ret.sandbox = Sandbox();
return ret;
}
void run(string[] args...) @safe const {
import dpp.runtime.options: Options;
import dpp.runtime.app: dppRun = run;
import std.algorithm: map;
import std.array: array;
import std.process: environment;
const baseLineArgs = [
"d++",
"--include-path",
sandboxPath,
"--compiler",
environment.get("DC", "dmd"),
];
auto options = Options(baseLineArgs ~ args);
options.dppFileNames[] = options.dppFileNames.map!(a => sandbox.inSandboxPath(a)).array;
dppRun(options);
}
void runPreprocessOnly(in string[] args...) @safe const {
run(["--preprocess-only", "--keep-pre-cpp-files"] ~ args);
version(Windows) {
// Windows tests would sometimes fail saying the D modules
// don't exist... I didn't prove it, but my suspicion is
// just an async write hasn't completed yet. This sleep, while
// a filthy hack, worked consistently for me.
import core.thread : Thread, msecs;
() @trusted { Thread.sleep(500.msecs); }();
}
}
void shouldCompile(string file = __FILE__, size_t line = __LINE__)
(in string[] srcFiles...)
@safe const
{
try
sandbox.shouldSucceed!(file, line)([dCompiler, "-m64", "-o-", "-c"] ~ srcFiles);
catch(Exception e)
adjustMessage(e, srcFiles);
}
void shouldNotCompile(string file = __FILE__, size_t line = __LINE__)
(in string[] srcFiles...)
@safe const
{
try
sandbox.shouldFail!(file, line)([dCompiler, "-m64", "-o-", "-c"] ~ srcFiles);
catch(Exception e)
adjustMessage(e, srcFiles);
}
void shouldCompileButNotLink(string file = __FILE__, size_t line = __LINE__)
(in string[] srcFiles...)
@safe const
{
try
sandbox.shouldSucceed!(file, line)([dCompiler, "-c", "-ofblob" ~ objectFileExtension] ~ srcFiles);
catch(Exception e)
adjustMessage(e, srcFiles);
shouldFail(dCompiler, "-ofblob", "blob" ~ objectFileExtension);
}
private void adjustMessage(Exception e, in string[] srcFiles) @safe const {
import std.algorithm: map;
import std.array: join;
import std.file: readText;
import std.string: splitLines;
import std.range: enumerate;
import std.format: format;
throw new UnitTestException(
"\n\n" ~ e.msg ~ "\n\n" ~ srcFiles
.map!(a => a ~ ":\n----------\n" ~ readText(sandbox.inSandboxPath(a))
.splitLines
.enumerate(1)
.map!(b => format!"%5d: %s"(b[0], b[1]))
.dropPreamble
.join("\n")
)
.join("\n\n"), e.file, e.line);
}
private string includeLine(in string headerFileName) @safe pure nothrow const {
return `#include "` ~ inSandboxPath(headerFileName) ~ `"`;
}
void writeHeaderAndApp(in string headerFileName, in string headerText, in D app) @safe const {
writeFile(headerFileName, headerText);
// take care of including the header and putting the D
// code in a function
const dCode =
includeLine(headerFileName) ~ "\n" ~
`void main() {` ~ "\n" ~ app.code ~ "\n}\n";
writeFile("app.dpp", dCode);
}
}
private auto dropPreamble(R)(R lines) {
import dpp.runtime.app: preamble;
import std.array: array;
import std.range: walkLength, drop;
import std.string: splitLines;
const length = lines.save.walkLength;
const preambleLength = preamble.splitLines.length + 1;
return length > preambleLength ? lines.drop(preambleLength).array : lines.array;
}
/**
Convenience function in the typical case that a test has a C
header and a D main file.
*/
void shouldCompile(string file = __FILE__, size_t line = __LINE__)
(in C header, in D app, in string[] cmdLineArgs = [])
{
shouldCompile!(file, line)("hdr.h", header.code, app, cmdLineArgs);
}
/**
Convenience function in the typical case that a test has a C
header and a D main file.
*/
void shouldCompile(string file = __FILE__, size_t line = __LINE__)
(in Cpp header, in D app, in string[] cmdLineArgs = [])
{
shouldCompile!(file, line)("hdr.hpp", header.code, app, cmdLineArgs);
}
private void shouldCompile(string file = __FILE__, size_t line = __LINE__)
(in string headerFileName,
in string headerText,
in D app,
in string[] cmdLineArgs = [])
{
with(const IncludeSandbox()) {
writeHeaderAndApp(headerFileName, headerText, app);
runPreprocessOnly(cmdLineArgs ~ "app.dpp");
shouldCompile!(file, line)("app.d");
}
}
void shouldNotCompile(string file = __FILE__, size_t line = __LINE__)
(in C header, in D app)
{
with(const IncludeSandbox()) {
writeHeaderAndApp("hdr.h", header.code, app);
runPreprocessOnly("app.dpp");
shouldNotCompile!(file, line)("app.d");
}
}
alias shouldRun = shouldCompileAndRun;
/**
Convenience function in the typical case that a test has a C
header and a D main file.
*/
void shouldCompileAndRun(string file = __FILE__, size_t line = __LINE__)
(in C header, in C cSource, in D app, in RuntimeArgs args = RuntimeArgs())
{
shouldCompileAndRun!(file, line)("hdr.h", header.code, "c.c", cSource.code, app, args);
}
/**
Convenience function in the typical case that a test has a C
header and a D main file.
*/
void shouldCompileAndRun(string file = __FILE__, size_t line = __LINE__)
(in Cpp header, in Cpp cppSource, in D app, in RuntimeArgs args = RuntimeArgs())
{
shouldCompileAndRun!(file, line)("hdr.hpp", header.code, "cpp.cpp", cppSource.code, app, args);
}
private void shouldCompileAndRun
(string file = __FILE__, size_t line = __LINE__)
(
in string headerFileName,
in string headerText,
in string cSourceFileName,
in string cText, in D app,
in RuntimeArgs args = RuntimeArgs(),
)
{
import std.process: environment;
with(const IncludeSandbox()) {
writeHeaderAndApp(headerFileName, headerText, app);
writeFile(cSourceFileName, includeLine(headerFileName) ~ cText);
const isCpp = headerFileName == "hdr.hpp";
const compilerName = () {
if(environment.get("TRAVIS", "") == "")
return isCpp ? "clang++" : "clang";
else
return isCpp ? "g++" : "gcc";
}();
const compilerVersion = environment.get("TRAVIS", "") == "" ? "" : "-7";
const compiler = compilerName ~ compilerVersion;
const languageStandard = isCpp ? "-std=c++17" : "-std=c11";
const outputFileName = "c" ~ objectFileExtension;
shouldSucceed(compiler, "-o", outputFileName, "-g", languageStandard, "-c", cSourceFileName);
shouldExist(outputFileName);
runPreprocessOnly("app.dpp");
version(Windows)
// stdc++ is GNU-speak, on Windows, it uses the Microsoft lib
const string[] linkStdLib = [];
else
const linkStdLib = isCpp ? ["-L-lstdc++"] : [];
try
shouldSucceed!(file, line)([dCompiler, "-m64", "-g", "app.d", "c" ~ objectFileExtension] ~ linkStdLib);
catch(Exception e)
adjustMessage(e, ["app.d"]);
try
shouldSucceed!(file, line)(["./app"] ~ args.args);
catch(Exception e)
adjustMessage(e, ["app.d"]);
}
}
private string dCompiler() @safe {
import std.process: environment;
return environment.get("DC", "dmd");
}
|
D
|
// https://issues.dlang.org/show_bug.cgi?id=15019
// dmd -m32 -c all.d
import std.string;
struct Color()
{
static fromHex(char[] s)
{
import std.conv;
s.to!ubyte;
}
}
Color!() RGB ;
struct Matrix(T, int R, int C)
{
Vector!(T, C) row_t;
T[C] v; // all elements
/// Covnerts to pretty string.
string toString() const
{
try
return format("%s", v);
catch
assert(false); // should not happen since format is right
}
}
// GLSL is a big inspiration here
// we defines types with more or less the same names
template mat2x2(T) { Matrix!(T, 2, 2) mat2x2; }
template mat3x3(T) { Matrix!(T, 3, 3) mat3x3; }
template mat4x4(T) { Matrix!(T, 4, 4) mat4x4; }
alias mat2x2 mat2;
alias mat3x3 mat3; // shorter names for most common matrices
alias mat4x4 mat4;
string definePostfixAliases(string type)
{
return "alias " ~ type ~ "!byte " ~ type ~ "b;\n"
"alias " ~ type ~ "!ubyte " ~ type ~ "ub;\n"
"alias " ~ type ~ "!short " ~ type ~ "s;\n"
"alias " ~ type ~ "!ushort " ~ type ~ "us;\n"
"alias " ~ type ~ "!int " ~ type ~ "i;\n"
"alias " ~ type ~ "!uint " ~ type ~ "ui;\n"
"alias " ~ type ~ "!long " ~ type ~ "l;\n"
"alias " ~ type ~ "!ulong " ~ type ~ "ul;\n"
"alias " ~ type ~ "!float " ~ type ~ "f;\n"
"alias " ~ type ~ "!double " ~ type ~ "d;\n";
}
// define a lot of type names
mixin(definePostfixAliases("mat2"));
mixin(definePostfixAliases("mat3"));
mixin(definePostfixAliases("mat4"));
import std.string;
struct Vector(T, int N)
{
T[N] v;
string toString()
{
try
return format("%s", v);
catch
assert(false);
}
}
|
D
|
/*
Copyright (c) 2019-2020 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module dagon.game.deferredrenderer;
import dlib.core.memory;
import dlib.core.ownership;
import dagon.core.event;
import dagon.core.time;
import dagon.resource.scene;
import dagon.render.deferred;
import dagon.render.gbuffer;
import dagon.render.view;
import dagon.render.framebuffer;
import dagon.render.shadowpass;
import dagon.postproc.filterpass;
import dagon.postproc.shaders.denoise;
import dagon.game.renderer;
class DeferredRenderer: Renderer
{
GBuffer gbuffer;
DenoiseShader denoiseShader;
ShadowPass passShadow;
DeferredClearPass passClear;
DeferredBackgroundPass passBackground;
DeferredGeometryPass passStaticGeometry;
DeferredDecalPass passDecals;
DeferredGeometryPass passDynamicGeometry;
DeferredOcclusionPass passOcclusion;
FilterPass passOcclusionDenoise;
DeferredEnvironmentPass passEnvironment;
DeferredLightPass passLight;
DeferredParticlesPass passParticles;
DeferredForwardPass passForward;
DeferredDebugOutputPass passDebug;
RenderView occlusionView;
Framebuffer occlusionNoisyBuffer;
Framebuffer occlusionBuffer;
DebugOutputMode outputMode = DebugOutputMode.Radiance;
bool _ssaoEnabled = true;
int ssaoSamples = 10;
float ssaoRadius = 0.2f;
float ssaoPower = 7.0f;
float ssaoDenoise = 1.0f;
float _occlusionBufferDetail = 1.0;
void occlusionBufferDetail(float value) @property
{
_occlusionBufferDetail = value;
occlusionView.resize(cast(uint)(view.width * _occlusionBufferDetail), cast(uint)(view.height * _occlusionBufferDetail));
occlusionNoisyBuffer.resize(occlusionView.width, occlusionView.height);
occlusionBuffer.resize(occlusionView.width, occlusionView.height);
}
float occlusionBufferDetail() @property
{
return _occlusionBufferDetail;
}
this(EventManager eventManager, Owner owner)
{
super(eventManager, owner);
occlusionView = New!RenderView(0, 0, cast(uint)(view.width * _occlusionBufferDetail), cast(uint)(view.height * _occlusionBufferDetail), this);
occlusionNoisyBuffer = New!Framebuffer(occlusionView.width, occlusionView.height, FrameBufferFormat.R8, false, this);
occlusionBuffer = New!Framebuffer(occlusionView.width, occlusionView.height, FrameBufferFormat.R8, false, this);
// HDR buffer
auto radianceBuffer = New!Framebuffer(eventManager.windowWidth, eventManager.windowHeight, FrameBufferFormat.RGBA16F, true, this);
outputBuffer = radianceBuffer;
gbuffer = New!GBuffer(view.width, view.height, radianceBuffer, this);
passShadow = New!ShadowPass(pipeline);
passClear = New!DeferredClearPass(pipeline, gbuffer);
passBackground = New!DeferredBackgroundPass(pipeline, gbuffer);
passBackground.view = view;
passStaticGeometry = New!DeferredGeometryPass(pipeline, gbuffer);
passStaticGeometry.view = view;
passDecals = New!DeferredDecalPass(pipeline, gbuffer);
passDecals.view = view;
passDynamicGeometry = New!DeferredGeometryPass(pipeline, gbuffer);
passDynamicGeometry.view = view;
passOcclusion = New!DeferredOcclusionPass(pipeline, gbuffer);
passOcclusion.view = occlusionView;
passOcclusion.outputBuffer = occlusionNoisyBuffer;
denoiseShader = New!DenoiseShader(this);
passOcclusionDenoise = New!FilterPass(pipeline, denoiseShader);
passOcclusionDenoise.view = occlusionView;
passOcclusionDenoise.inputBuffer = occlusionNoisyBuffer;
passOcclusionDenoise.outputBuffer = occlusionBuffer;
passEnvironment = New!DeferredEnvironmentPass(pipeline, gbuffer);
passEnvironment.view = view;
passEnvironment.outputBuffer = radianceBuffer;
passEnvironment.occlusionBuffer = occlusionBuffer;
passLight = New!DeferredLightPass(pipeline, gbuffer);
passLight.view = view;
passLight.outputBuffer = radianceBuffer;
passLight.occlusionBuffer = occlusionBuffer;
passForward = New!DeferredForwardPass(pipeline, gbuffer);
passForward.view = view;
passForward.outputBuffer = radianceBuffer;
passParticles = New!DeferredParticlesPass(pipeline, gbuffer);
passParticles.view = view;
passParticles.outputBuffer = radianceBuffer;
passParticles.gbuffer = gbuffer;
passDebug = New!DeferredDebugOutputPass(pipeline, gbuffer);
passDebug.view = view;
passDebug.active = false;
passDebug.outputBuffer = radianceBuffer;
passDebug.occlusionBuffer = occlusionBuffer;
}
void ssaoEnabled(bool mode) @property
{
_ssaoEnabled = mode;
passOcclusion.active = mode;
passOcclusionDenoise.active = mode;
if (_ssaoEnabled)
{
passEnvironment.occlusionBuffer = occlusionBuffer;
passLight.occlusionBuffer = occlusionBuffer;
}
else
{
passEnvironment.occlusionBuffer = null;
passLight.occlusionBuffer = null;
}
}
bool ssaoEnabled() @property
{
return _ssaoEnabled;
}
override void scene(Scene s)
{
passShadow.group = s.spatial;
passShadow.lightGroup = s.lights;
passBackground.group = s.background;
passStaticGeometry.group = s.spatialOpaqueStatic;
passDecals.group = s.decals;
passDynamicGeometry.group = s.spatialOpaqueDynamic;
passLight.groupSunLights = s.sunLights;
passLight.groupAreaLights = s.areaLights;
passForward.group = s.spatialTransparent;
passParticles.group = s.spatial;
passBackground.state.environment = s.environment;
passStaticGeometry.state.environment = s.environment;
passDecals.state.environment = s.environment;
passDynamicGeometry.state.environment = s.environment;
passEnvironment.state.environment = s.environment;
passLight.state.environment = s.environment;
passForward.state.environment = s.environment;
passParticles.state.environment = s.environment;
passDebug.state.environment = s.environment;
}
override void update(Time t)
{
passShadow.camera = activeCamera;
passDebug.active = (outputMode != DebugOutputMode.Radiance);
passDebug.outputMode = outputMode;
passOcclusion.ssaoShader.samples = ssaoSamples;
passOcclusion.ssaoShader.radius = ssaoRadius;
passOcclusion.ssaoShader.power = ssaoPower;
denoiseShader.factor = ssaoDenoise;
super.update(t);
}
override void setViewport(uint x, uint y, uint w, uint h)
{
super.setViewport(x, y, w, h);
outputBuffer.resize(view.width, view.height);
gbuffer.resize(view.width, view.height);
occlusionView.resize(cast(uint)(view.width * _occlusionBufferDetail), cast(uint)(view.height * _occlusionBufferDetail));
occlusionNoisyBuffer.resize(occlusionView.width, occlusionView.height);
occlusionBuffer.resize(occlusionView.width, occlusionView.height);
}
}
|
D
|
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/Core.build/Objects-normal/x86_64/Thread+Async.o : /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Data+Base64URL.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/NestedData.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Thread+Async.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Deprecated.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/NotFound.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/ReflectionDecodable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/Decodable+Reflectable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Reflectable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/LosslessDataConvertible.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/File.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/MediaType.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/OptionalType.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Process+Execute.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/HeaderValue.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/DirectoryConfig.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CaseInsensitiveString.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Future+Unwrap.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/FutureEncoder.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CoreError.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/String+Utilities.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/DataCoders.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/ReflectionDecoders.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Exports.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Data+Hex.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/BasicKey.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/cpp_magic.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIODarwin/include/c_nio_darwin.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/c-atomics.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOLinux/include/c_nio_linux.h /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--6538424668019974428/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/Core.build/Objects-normal/x86_64/Thread+Async~partial.swiftmodule : /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Data+Base64URL.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/NestedData.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Thread+Async.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Deprecated.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/NotFound.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/ReflectionDecodable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/Decodable+Reflectable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Reflectable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/LosslessDataConvertible.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/File.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/MediaType.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/OptionalType.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Process+Execute.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/HeaderValue.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/DirectoryConfig.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CaseInsensitiveString.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Future+Unwrap.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/FutureEncoder.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CoreError.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/String+Utilities.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/DataCoders.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/ReflectionDecoders.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Exports.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Data+Hex.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/BasicKey.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/cpp_magic.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIODarwin/include/c_nio_darwin.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/c-atomics.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOLinux/include/c_nio_linux.h /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--6538424668019974428/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/Core.build/Objects-normal/x86_64/Thread+Async~partial.swiftdoc : /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Data+Base64URL.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/NestedData.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Thread+Async.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Deprecated.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/NotFound.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/ReflectionDecodable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/Decodable+Reflectable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Reflectable.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/LosslessDataConvertible.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/File.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/MediaType.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/OptionalType.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Process+Execute.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/HeaderValue.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/DirectoryConfig.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CaseInsensitiveString.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Future+Unwrap.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/FutureEncoder.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CoreError.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/String+Utilities.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/DataCoders.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/CodableReflection/ReflectionDecoders.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Exports.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/Data+Hex.swift /Users/petercernak/vapor/TILApp/.build/checkouts/core.git-5591983016255515332/Sources/Core/BasicKey.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/cpp_magic.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIODarwin/include/c_nio_darwin.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/c-atomics.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOLinux/include/c_nio_linux.h /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--6538424668019974428/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/Users/ivanchistyakov/Desktop/WallpaperMaster/DerivedData/WallpaperMaster/Build/Intermediates/WallpaperMaster.build/Debug/WallpaperMaster.build/Objects-normal/x86_64/PreferencesHolder.o : /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Queryable.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DesktopUpdater.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Document.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DescribedImage.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/NatGeoCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ImageSource.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Helpers.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Saver.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/NodeSet.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/StatusMenuController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Node.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ImageGetterDelegate.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Downloader.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ContactViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/BingCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ErrorHandler.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/SourcesViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Extensions.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/YandexCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/AppDelegate.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/PreferencesHolder.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Error.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/RGOCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/MainViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Element.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/SavedCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DateGenerator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/libxml2/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule
/Users/ivanchistyakov/Desktop/WallpaperMaster/DerivedData/WallpaperMaster/Build/Intermediates/WallpaperMaster.build/Debug/WallpaperMaster.build/Objects-normal/x86_64/PreferencesHolder~partial.swiftmodule : /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Queryable.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DesktopUpdater.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Document.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DescribedImage.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/NatGeoCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ImageSource.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Helpers.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Saver.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/NodeSet.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/StatusMenuController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Node.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ImageGetterDelegate.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Downloader.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ContactViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/BingCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ErrorHandler.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/SourcesViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Extensions.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/YandexCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/AppDelegate.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/PreferencesHolder.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Error.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/RGOCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/MainViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Element.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/SavedCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DateGenerator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/libxml2/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule
/Users/ivanchistyakov/Desktop/WallpaperMaster/DerivedData/WallpaperMaster/Build/Intermediates/WallpaperMaster.build/Debug/WallpaperMaster.build/Objects-normal/x86_64/PreferencesHolder~partial.swiftdoc : /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Queryable.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DesktopUpdater.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Document.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DescribedImage.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/NatGeoCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ImageSource.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Helpers.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Saver.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/NodeSet.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/StatusMenuController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Node.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ImageGetterDelegate.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Downloader.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ContactViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/BingCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/ErrorHandler.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/SourcesViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Extensions.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/YandexCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/AppDelegate.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/PreferencesHolder.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Error.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/RGOCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/MainViewController.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/Fuzi/Element.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/SavedCollection.swift /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/DateGenerator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/ivanchistyakov/Desktop/WallpaperMaster/WallpaperMaster/libxml2/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule
|
D
|
/home/teng/CLionProjects/linux_design/ex/grpc_ex/target/debug/deps/slab-9c1f11f900eb1368.rmeta: /home/teng/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/slab-0.4.2/src/lib.rs
/home/teng/CLionProjects/linux_design/ex/grpc_ex/target/debug/deps/slab-9c1f11f900eb1368.d: /home/teng/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/slab-0.4.2/src/lib.rs
/home/teng/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/slab-0.4.2/src/lib.rs:
|
D
|
instance Mod_748_NONE_Rengaru_NW (Npc_Default)
{
// ------ NSC ------
name = "Rengaru";
guild = GIL_OUT;
id = 748;
voice = 7;
flags = 0;
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 2);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_COWARD;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1h_Vlk_Sword);
// ------ Inventory ------
CreateInvItems (self, ItMi_Gold, 50); //hat er Nagur geklaut! Muss genau 50 im Inv haben M.F.
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_ToughBart01, BodyTex_N,ITAR_Vlk_02);
Mdl_SetModelFatness (self,0);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 30);
// ------ TA anmelden ------
daily_routine = Rtn_Start_748;
};
FUNC VOID Rtn_Start_748()
{
TA_Stand_ArmsCrossed (05,15,20,15,"NW_CITY_MERCHANT_PATH_35");
TA_Stand_Drinking (20,15,05,15,"NW_CITY_MERCHANT_PATH_35");
};
FUNC VOID Rtn_Dieb_748()
{
TA_Read_Bookstand (05,15,20,15,"NW_CITY_KANAL_ROOM_05_01");
TA_Read_Bookstand (20,15,05,15,"NW_CITY_KANAL_ROOM_05_01");
};
FUNC VOID Rtn_Tot_748 ()
{
TA_RunToWP (08,00,22,00,"TOT");
TA_RunToWP (22,00,08,00,"TOT");
};
|
D
|
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module derelict.assimp.functions;
private
{
import derelict.assimp.types;
}
extern(C)
{
alias nothrow const(aiScene)* function(const(char)*, uint) da_aiImportFile;
alias nothrow const(aiScene)* function(const(char)*, uint, aiFileIO*) da_aiImportFileEx;
alias nothrow const(aiScene)* function(const(char)*, uint, uint, const(char)*) da_aiImportFileFromMemory;
alias nothrow const(aiScene)* function(const(aiScene)*, uint) da_aiApplyPostProcessing;
alias nothrow aiLogStream function(aiDefaultLogStream, const(char)*) da_aiGetPredefinedLogStream;
alias nothrow void function(const(aiLogStream)*) da_aiAttachLogStream;
alias nothrow void function(aiBool) da_aiEnableVerboseLogging;
alias nothrow aiReturn function(const(aiLogStream)*) da_aiDetachLogStream;
alias nothrow void function() da_aiDetachAllLogStreams;
alias nothrow void function(const(aiScene)*) da_aiReleaseImport;
alias nothrow const(char)* function() da_aiGetErrorString;
alias nothrow aiBool function(const(char)*) da_aiIsExtensionSupported;
alias nothrow void function(aiString*) da_aiGetExtensionList;
alias nothrow void function(const(aiScene)*, aiMemoryInfo*) da_aiGetMemoryRequirements;
alias nothrow void function(const(char)*, int) da_aiSetImportPropertyInteger;
alias nothrow void function(const(char)*, float) da_aiSetImportPropertyFloat;
alias nothrow void function(const(char)*, const(aiString)*) da_aiSetImportPropertyString;
alias nothrow void function(aiQuaternion*, const(aiMatrix3x3)*) da_aiCreateQuaternionFromMatrix;
alias nothrow void function(const aiMatrix4x4*, aiVector3D*, aiQuaternion*, aiVector3D*) da_aiDecomposeMatrix;
alias nothrow void function(aiMatrix4x4*) da_aiTransposeMatrix4;
alias nothrow void function(aiMatrix3x3*) da_aiTransposeMatrix3;
alias nothrow void function(aiVector3D*, const(aiMatrix3x3)*) da_aiTransformVecByMatrix3;
alias nothrow void function(aiVector3D*, const(aiMatrix4x4)*) da_aiTransformVecByMatrix4;
alias nothrow void function(aiMatrix4x4*) da_aiMultiplyMatrix4;
alias nothrow void function(aiMatrix3x3*) da_aiMultiplyMatrix3;
alias nothrow void function(aiMatrix3x3*) da_aiIdentityMatrix3;
alias nothrow void function(aiMatrix4x4*) da_aiIdentityMatrix4;
alias nothrow const(char)* function() da_aiGetLegalString;
alias nothrow uint function() da_aiGetVersionMinor;
alias nothrow uint function() da_aiGetVersionMajor;
alias nothrow uint function() da_aiGetVersionRevision;
alias nothrow uint function() da_aiGetCompileFlags;
}
__gshared
{
da_aiImportFile aiImportFile;
da_aiImportFileEx aiImportFileEx;
da_aiImportFileFromMemory aiImportFileFromMemory;
da_aiApplyPostProcessing aiApplyPostProcessing;
da_aiGetPredefinedLogStream aiGetPredefinedLogStream;
da_aiAttachLogStream aiAttachLogStream;
da_aiEnableVerboseLogging aiEnableVerboseLogging;
da_aiDetachLogStream aiDetachLogStream;
da_aiDetachAllLogStreams aiDetachAllLogStreams;
da_aiReleaseImport aiReleaseImport;
da_aiGetErrorString aiGetErrorString;
da_aiIsExtensionSupported aiIsExtensionSupported;
da_aiGetExtensionList aiGetExtensionList;
da_aiGetMemoryRequirements aiGetMemoryRequirements;
da_aiSetImportPropertyInteger aiSetImportPropertyInteger;
da_aiSetImportPropertyFloat aiSetImportPropertyFloat;
da_aiSetImportPropertyString aiSetImportPropertyString;
da_aiCreateQuaternionFromMatrix aiCreateQuaternionFromMatrix;
da_aiDecomposeMatrix aiDecomposeMatrix;
da_aiTransposeMatrix4 aiTransposeMatrix4;
da_aiTransposeMatrix3 aiTransposeMatrix3;
da_aiTransformVecByMatrix3 aiTransformVecByMatrix3;
da_aiTransformVecByMatrix4 aiTransformVecByMatrix4;
da_aiMultiplyMatrix4 aiMultiplyMatrix4;
da_aiMultiplyMatrix3 aiMultiplyMatrix3;
da_aiIdentityMatrix3 aiIdentityMatrix3;
da_aiIdentityMatrix4 aiIdentityMatrix4;
da_aiGetLegalString aiGetLegalString;
da_aiGetVersionMinor aiGetVersionMinor;
da_aiGetVersionMajor aiGetVersionMajor;
da_aiGetVersionRevision aiGetVersionRevision;
da_aiGetCompileFlags aiGetCompileFlags;
}
|
D
|
/Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pulsator.build/Objects-normal/x86_64/Pulsator.o : /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Pods/Pulsator/Pulsator/Pulsator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Pods/Target\ Support\ Files/Pulsator/Pulsator-umbrella.h /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pulsator.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pulsator.build/Objects-normal/x86_64/Pulsator~partial.swiftmodule : /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Pods/Pulsator/Pulsator/Pulsator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Pods/Target\ Support\ Files/Pulsator/Pulsator-umbrella.h /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pulsator.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pulsator.build/Objects-normal/x86_64/Pulsator~partial.swiftdoc : /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Pods/Pulsator/Pulsator/Pulsator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Pods/Target\ Support\ Files/Pulsator/Pulsator-umbrella.h /Users/goudakazuma/Desktop/FUNHACK2017/MotionVisualize/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pulsator.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
|
D
|
import std.stdio;
import derelict.sdl2.sdl;
import derelict.sdl2.ttf;
import editor.editor : Editor;
import editor.color;
import ui.units;
import ui.pushbutton;
import ui.label;
private __gshared SDL_Window* window;
private __gshared SDL_Renderer* renderer;
private __gshared bool hasQuit;
private __gshared Editor editorInstance;
void main()
{
// Load SDL2
DerelictSDL2.load();
DerelictSDL2ttf.load();
sdlMain();
}
void sdlMain()
{
SDL_Init(SDL_INIT_VIDEO);
TTF_Init();
window = SDL_CreateWindow("pixpainter", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_OPENGL);
if (window == null)
{
writefln("Could not create window: %s", SDL_GetError());
return;
}
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
// TODO: Remove later
PushButton button = new PushButton("Hello World", Point(64, 64), Size(100, 24), 11);
Label aLabel = new Label("I am a label", Point(300, 50), 24, Color(0, 255, 0, 255), Color(100, 100, 100));
Label anotherLabel = new Label("I am also a label", Point(50, 300), 16, Color(255, 0, 0, 255));
button.initialize(renderer);
aLabel.initialize(renderer);
anotherLabel.initialize(renderer);
while (!hasQuit)
{
SDL_Event event;
while(SDL_PollEvent(&event))
{
button.processEvents(&event);
// Pump events from the event queue
if (event.type == SDL_QUIT) {
hasQuit = true;
}
}
// Render other stuff here
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
SDL_RenderClear(renderer);
button.render(renderer);
aLabel.render(renderer);
anotherLabel.render(renderer);
SDL_RenderPresent(renderer);
}
button.cleanup();
aLabel.cleanup();
anotherLabel.cleanup();
// Clean up
SDL_DestroyRenderer(renderer);
SDL_DestroyWindow(window);
TTF_Quit();
SDL_Quit();
}
|
D
|
module viz.structs;
import winapi, sys.DStructs, viz.control;
alias typeof(""c[]) Ткст;
alias typeof(""c.ptr) Ткст0;
alias typeof(" "c[0]) Сим;
alias typeof(""w[]) Шткст;
alias typeof(""w.ptr) Шткст0;
alias typeof(" "w[0]) Шим;
alias typeof(""d[]) Дткст;
alias typeof(""d.ptr) Дткст0;
alias typeof(" "d[0]) Дим;
extern(D):
struct ШрифтЛога
{
union
{
LOGFONTW шлш;
LOGFONTA шла;
}
alias шлш шл;
Ткст имяФаса;
}
struct КлассОкна
{
union
{
WNDCLASSW кош;
WNDCLASSA коа;
}
alias кош ко;
Ткст имяКласса;
}
struct ДанныеВызова
{
Объект delegate(Объект[]) дг;
Объект[] арги;
Объект результат;
Объект исключение = пусто;
}
struct ПарамВызоваВиз
{
проц function(УпрЭлт, т_мера[]) fp;
т_мера nparams;
т_мера[1] params;
}
struct ПростыеДанныеВызова
{
проц delegate() дг;
Объект исключение = пусто;
}
struct Сообщение
{
union
{
struct
{
УОК уок;
бцел сооб;
бцел парам1;
цел парам2;
}
package СООБ _винСооб;
}
цел результат;
static Сообщение opCall(УОК уок, бцел сооб, бцел парам1, цел парам2);
}
/// X and Y coordinate.
struct Точка
{
union
{
struct
{
цел ш;
цел в;
}
ТОЧКА точка;
}
/// Construct а new Точка.
static Точка opCall(цел ш, цел в);
static Точка opCall();
т_рав opEquals(Точка тчк);
Точка opAdd(Размер разм);
Точка opSub(Размер разм);
проц opAddAssign(Размер разм);
проц opSubAssign(Размер разм);
Точка opNeg();
}
/// ширина и высота.
struct Размер
{
union
{
struct
{
цел ширина;
цел высота;
}
РАЗМЕР размер;
}
/// Construct а new Размер.
static Размер opCall(цел ширина, цел высота);
static Размер opCall();
т_рав opEquals(Размер разм);
Размер opAdd(Размер разм);
Размер opSub(Размер разм);
проц opAddAssign(Размер разм);
проц opSubAssign(Размер разм);
}
/// X, Y, ширина and высота rectangle dimensions.
struct Прям // docmain
{
цел ш, в, ширина, высота;
// Used internally.
проц дайПрям(ПРЯМ* к);
Точка положение() ;
проц положение(Точка тчк) ;
Размер размер() ;
проц размер(Размер разм);
цел право() ;
цел низ() ;
/// Construct а new Прям.
static Прям opCall(цел ш, цел в, цел ширина, цел высота);
static Прям opCall(Точка положение, Размер размер);
static Прям opCall();
// Used internally.
static Прям opCall(ПРЯМ* прям) ;
/// Construct а new Прям from лево, верх, право and верх values.
static Прям изЛВПН(цел лево, цел верх, цел право, цел низ);
т_рав opEquals(Прям к);
бул содержит(цел c_x, цел c_y);
бул содержит(Точка поз);
// Contained entirely within -this-.
бул содержит(Прям к);
проц инфлируй(цел i_width, цел i_height);
проц инфлируй(Размер insz);
// Just tests if there's an intersection.
бул пересекаетсяС(Прям к);
проц смещение(цел ш, цел в);
проц смещение(Точка тчк);
}
unittest
{
Прям к = Прям(3, 3, 3, 3);
assert(к.содержит(3, 3));
assert(!к.содержит(3, 2));
assert(к.содержит(6, 6));
assert(!к.содержит(6, 7));
assert(к.содержит(к));
assert(к.содержит(Прям(4, 4, 2, 2)));
assert(!к.содержит(Прям(2, 4, 4, 2)));
assert(!к.содержит(Прям(4, 3, 2, 4)));
к.инфлируй(2, 1);
assert(к.ш == 1);
assert(к.право == 8);
assert(к.в == 2);
assert(к.низ == 7);
к.инфлируй(-2, -1);
assert(к == Прям(3, 3, 3, 3));
assert(к.пересекаетсяС(Прям(4, 4, 2, 9)));
assert(к.пересекаетсяС(Прям(3, 3, 1, 1)));
assert(к.пересекаетсяС(Прям(0, 3, 3, 0)));
assert(к.пересекаетсяС(Прям(3, 2, 0, 1)));
assert(!к.пересекаетсяС(Прям(3, 1, 0, 1)));
assert(к.пересекаетсяС(Прям(5, 6, 1, 1)));
assert(!к.пересекаетсяС(Прям(7, 6, 1, 1)));
assert(!к.пересекаетсяС(Прям(6, 7, 1, 1)));
}
/// Цвет значение representation
struct Цвет // docmain
{
/// Red, зелёный, синий and альфа channel цвет values.
ббайт к() ;
ббайт з() ;
ббайт с();
ббайт а() ;
/// Return the numeric цвет значение.
ЦВПредст вАкзс();
/// Return the numeric красный, зелёный and синий цвет значение.
ЦВПредст вКзс();
// Used internally.
УКисть создайКисть() ;
deprecated static Цвет opCall(ЦВПредст argb);
/// Construct а new цвет.
static Цвет opCall(ббайт альфа, Цвет ктрл);
static Цвет opCall(ббайт красный, ббайт зелёный, ббайт синий);
static Цвет opCall(ббайт альфа, ббайт красный, ббайт зелёный, ббайт синий);
//alias opCall изАкзс;
static Цвет изАкзс(ббайт альфа, ббайт красный, ббайт зелёный, ббайт синий);
static Цвет изКзс(ЦВПредст кзс);
static Цвет изКзс(ббайт альфа, ЦВПредст кзс);
static Цвет пуст() ;
/// Return а completely прозрачный цвет значение.
static Цвет прозрачный();
/// Blend colors; альфа channels are ignored.
// Blends the цвет channels half way.
// Does not consider альфа channels and discards them.
// The new blended цвет is returned; -this- Цвет is not изменён.
Цвет смешайСЦветом(Цвет ко);
/// Alpha blend this цвет with а background цвет to return а solid цвет (100% opaque).
// Blends with цветФона if this цвет has непрозрачность to produce а solid цвет.
// Returns the new solid цвет, or the original цвет if нет непрозрачность.
// If цветФона has непрозрачность, it is ignored.
// The new blended цвет is returned; -this- Цвет is not изменён.
Цвет плотныйЦвет(Цвет цветФона);
package static Цвет системныйЦвет(цел индексЦвета);
// Gets цвет индекс or ИНДЕКС_НЕВЕРНОГО_СИСТЕМНОГО_ЦВЕТА.
package цел _systemColorIndex() ;
package const ббайт ИНДЕКС_НЕВЕРНОГО_СИСТЕМНОГО_ЦВЕТА = ббайт.max;
private:
union _цвет
{
struct
{
align(1):
ббайт красный;
ббайт зелёный;
ббайт синий;
ббайт альфа;
}
ЦВПредст цпредст;
}
static assert(_цвет.sizeof == бцел.sizeof);
_цвет цвет;
ббайт sysIndex = ИНДЕКС_НЕВЕРНОГО_СИСТЕМНОГО_ЦВЕТА;
проц оцениЦвет();
}
/// Параметры создания УпрЭлт.
struct ПарамыСозд
{
Ткст имяКласса;
Ткст заглавие;
ук парам;
УОК родитель;
HMENU меню;
экз экземп;
цел ш;
цел в;
цел ширина;
цел высота;
DWORD стильКласса;
DWORD допСтиль;
DWORD стиль;
}
|
D
|
dependencies: /Users/christianmeyer/Cpp/ch5/P5_1/P5_1/main.cpp \
/Users/christianmeyer/Cpp/ch5/P5_1/P5_1/person.h
|
D
|
import std.stdio;
import vibe.d;
import kafkad.client;
shared static this()
{
debug setLogLevel(LogLevel.debug_);
auto settings = new HTTPServerSettings;
settings.port = 8080;
listenHTTP(settings, &handleRequest);
producerTid = runTask({
Configuration config;
// adjust config's properties if necessary
config.metadataRefreshRetryCount = 0;
Client client = new Client([BrokerAddress("127.0.0.1", 9092)], "kafka-d", config);
Producer producer = new Producer(client, "httplog", 0);
for (;;) {
receive((string s) {
try {
producer.pushMessage(null, cast(ubyte[])s);
} catch (Exception ex) {
// this producer is now invalid and removed from the client, create another one to continue
producer = new Producer(client, "httplog", 0);
}
});
}
});
setMaxMailboxSize(producerTid, 100, OnCrowding.throwException);
}
shared Tid producerTid;
void handleRequest(HTTPServerRequest req,
HTTPServerResponse res)
{
if (req.path == "/")
res.writeBody("Hello, World!", "text/plain");
try {
send(producerTid, req.path);
} catch (MailboxFull) {
// message queue is full, this may indicate that producer is blocking, no connection, etc.
logInfo("Couldn't log to kafka");
}
}
|
D
|
module dsl.syntax.Visitor;
import dsl.syntax.Lexer, dsl.ast.PreInline;
import dsl.syntax.Word, dsl.syntax.Keys;
import dsl.syntax.Tokens, dsl.syntax.SyntaxError;
import std.stdio, std.outbuffer;
import std.container;
import std.algorithm, std.conv;
import std.math;
import dsl.ast._;
class Visitor {
private Lexer _lex;
private Token[] _ultimeOp;
private Token[] _expOp;
private Token[] _ulowOp;
private Token[] _lowOp;
private Token[] _highOp;
private Token[] _befUnary;
private Token[] _afUnary;
private Token[] _suiteElem;
private Token[] _forbiddenIds;
this (string file, bool isFile = true) {
this ();
if (isFile)
this._lex = new Lexer (file,
[Tokens.SPACE, Tokens.RETOUR, Tokens.RRETOUR, Tokens.TAB],
[[Tokens.LCOMM2, Tokens.RCOMM2],
[Tokens.LCOMM1, Tokens.RETOUR]]);
else
this._lex = new StringLexer (file,
[Tokens.SPACE, Tokens.RETOUR, Tokens.RRETOUR, Tokens.TAB],
[[Tokens.LCOMM2, Tokens.RCOMM2],
[Tokens.LCOMM1, Tokens.RETOUR]]);
}
this () {
this._ultimeOp = [Tokens.DIV_AFF, Tokens.AND_AFF, Tokens.PIPE_EQUAL,
Tokens.MINUS_AFF, Tokens.PLUS_AFF, Tokens.LEFTD_AFF,
Tokens.RIGHTD_AFF, Tokens.EQUAL, Tokens.STAR_EQUAL,
Tokens.PERCENT_EQUAL, Tokens.XOR_EQUAL,
Tokens.DXOR_EQUAL, Tokens.TILDE_EQUAL];
this._expOp = [Tokens.DPIPE, Tokens.DAND];
this._ulowOp = [Tokens.INF, Tokens.SUP, Tokens.INF_EQUAL,
Tokens.SUP_EQUAL, Tokens.NOT_EQUAL, Tokens.NOT_INF,
Tokens.NOT_INF_EQUAL, Tokens.NOT_SUP,
Tokens.NOT_SUP_EQUAL, Tokens.DEQUAL];
this._lowOp = [Tokens.PLUS, Tokens.PIPE, Tokens.LEFTD,
Tokens.XOR, Tokens.TILDE, Tokens.MINUS,
Tokens.RIGHTD];
this._highOp = [Tokens.DIV, Tokens.AND, Tokens.STAR, Tokens.PERCENT,
Tokens.DXOR];
this._suiteElem = [Tokens.LPAR, Tokens.LCRO, Tokens.DOT, Tokens.DCOLON];
this._afUnary = [Tokens.DPLUS, Tokens.DMINUS];
this._befUnary = [Tokens.MINUS, Tokens.AND, Tokens.STAR, Tokens.NOT];
this._forbiddenIds = [Keys.IF, Keys.RETURN,
Keys.FOR, Keys.WHILE, Keys.BREAK,
Keys.IN, Keys.ELSE, Keys.TRUE,
Keys.FALSE, Keys.NULL, Keys.CAST,
Keys.FUNCTION, Keys.AUTO
];
}
ref Lexer lexer () {
return this._lex;
}
/**
*/
Program visit () {
Array!Function funcs;
Array!Struct str;
Array!Inline inlines;
Array!GlobLambda globLmbd;
Array!Skeleton skels;
while (true) {
Word word = this._lex.next ();
if (word.isEof) break;
else if (word == Keys.FUNCTION) {
funcs.insertBack (visitFunction ());
} else if (word == Keys.STRUCT) {
str.insertBack (visitStruct ());
} else if (word == Tokens.SHARP) {
auto decl = visitInline ();
if (auto inline = cast (Inline) decl)
inlines.insertBack (inline);
else globLmbd.insertBack (cast (GlobLambda) (decl));
} else if (word == Keys.SKEL) {
skels.insertBack (visitSkeleton ());
}
}
return new Program (this._lex.filename, funcs, str, inlines, skels, globLmbd);
}
Function visitFunction () {
auto begin = this._lex.rewind.next ();
auto ident = visitIdentifiant ();
this._lex.next (Tokens.LPAR);
auto func = new Function (begin, ident);
while (true) {
func.addParam (visitTypeVar ());
auto next = this._lex.next (Tokens.RPAR, Tokens.COMA);
if (next == Tokens.RPAR) break;
}
func.setBlock (visitBlock ());
func.setEnd (this._lex.next ());
this._lex.rewind ();
return func;
}
Struct visitStruct () {
auto ident = visitIdentifiant ();
auto next = this._lex.next (Tokens.LACC);
next = this._lex.next ();
auto str = new Struct (ident);
if (next != Tokens.RACC) {
this._lex.rewind ();
while (true) {
auto type = visitTypeVarFStruct ();
if (type !is null) {
next = this._lex.next (Tokens.SEMI_COLON, Tokens.LPAR);
if (next == Tokens.SEMI_COLON) str.addVar (type);
else ignoreUntilClose ();
}
next = this._lex.next ();
if (next == Tokens.RACC) break;
else this._lex.rewind ();
}
}
return str;
}
Declaration visitGlobLambda (Word begin) {
auto lmbd = new GlobLambda (begin);
while (true) {
lmbd.vars.insertBack (visitVar);
auto next = this._lex.next (Tokens.COMA, Tokens.RPAR);
if (next == Tokens.RPAR) break;
}
auto next = this._lex.next (Tokens.IMPLIQUE, Tokens.LACC);
if (next == Tokens.IMPLIQUE) {
lmbd.expression = visitExpression ();
} else {
this._lex.rewind ();
lmbd.block = visitBlock ();
}
lmbd.end = this._lex.rewind.next ();
return lmbd;
}
Declaration visitInline () {
auto begin = this._lex.rewind.next ();
auto next = this._lex.next ();
Expression id;
if (next == Tokens.LPAR) return visitGlobLambda (begin);
if (next == Tokens.LCRO) {
id = visitExpression ();
next = this._lex.next (Tokens.RCRO);
next = this._lex.next (Tokens.DOT);
} else {
auto dec = Word (next.locus, "0");
this._lex.rewind ();
id = new Decimal (dec);
}
auto ident = visitIdentifiant ();
next = this._lex.next (Tokens.SEMI_COLON, Tokens.NOT);
auto inline = new Inline (begin, id, ident, ident);
if (next == Tokens.NOT) {
next = this._lex.next (Tokens.LPAR);
while (true) {
next = this._lex.next ();
this._lex.rewind ();
if (next == Tokens.LPAR) {
inline.addTemplate (visitLambda ());
} else {
auto type = visitIdentifiant ();
next = this._lex.next ();
if (next == Tokens.IMPLIQUE)
inline.addTemplate (createLambda (type, visitExpression));
else {
this._lex.rewind ();
inline.addTemplate (new Var (type));
}
}
next = this._lex.next (Tokens.COMA, Tokens.RPAR);
if (next == Tokens.RPAR) break;
}
this._lex.next (Tokens.SEMI_COLON);
inline.end = next;
}
return inline;
}
Skeleton visitSkeleton () {
auto begin = this._lex.rewind.next ();
auto ident = visitIdentifiant ();
this._lex.next (Tokens.LPAR);
auto skel = new Skeleton (begin, ident);
while (true) {
auto next = this._lex.next ();
if (next == Keys.ALIAS) {
skel.addFnName (visitIdentifiant ());
} else {
this._lex.rewind ();
skel.addTemplate (visitVar ());
}
next = this._lex.next (Tokens.COMA, Tokens.RPAR);
if (next == Tokens.RPAR) break;
}
this._lex.next (Tokens.LPAR);
while (true) {
skel.addParam (visitTypeVar ());
auto next = this._lex.next (Tokens.RPAR, Tokens.COMA);
if (next == Tokens.RPAR) break;
}
skel.block = visitBlock ();
skel.end = this._lex.next ();
this._lex.rewind ();
return skel;
}
Block visitBlock () {
auto next = this._lex.next (Tokens.LACC);
auto block = new Block (next);
next = this._lex.next ();
if (next != Tokens.RACC) {
this._lex.rewind ();
while (true) {
block.addInst (visitInstruction ());
next = this._lex.next ();
if (next == Tokens.RACC) break;
else this._lex.rewind ();
}
}
return block;
}
Instruction visitInstruction () {
auto tok = this._lex.next ();
if (tok == Keys.IF) return visitIf ();
else if (tok == Keys.RETURN) return visitReturn ();
else if (tok == Keys.FOR) return visitFor ();
else if (tok == Keys.WHILE) return visitWhile ();
else if (tok == Keys.BREAK) return visitBreak ();
else if (tok == Keys.LOCAL) return visitLocal ();
else if (tok == Keys.AUTO) return visitAuto ();
else {
this._lex.rewind ();
auto retour = visitExpressionUlt ();
this._lex.next (Tokens.SEMI_COLON);
return retour;
}
}
If visitIf () {
auto begin = this._lex.rewind.next ();
auto test = visitExpression ();
auto next = this._lex.next ();
this._lex.rewind ();
Block block;
if (next == Tokens.LACC) block = visitBlock ();
else {
block = new Block (next);
block.addInst (visitInstruction ());
}
auto _if = new If (begin, test, block);
next = this._lex.next ();
if (next == Keys.ELSE)
_if.setElse (visitElse ());
else this._lex.rewind ();
return _if;
}
If visitElse () {
auto begin = this._lex.rewind.next ();
auto next = this._lex.next ();
if (next == Keys.IF) return visitIf ();
else {
this._lex.rewind ();
Block block;
if (next == Tokens.LACC) block = visitBlock ();
else {
block = new Block (next);
block.addInst (visitInstruction ());
}
return new If (begin, null, block);
}
}
Lambda visitLambda () {
auto begin = this._lex.next ();
auto lmbd = new Lambda (begin);
if (begin != Tokens.LPAR) {
this._lex.rewind ();
lmbd.addParam (visitVar ());
} else {
while (true) {
lmbd.addParam (visitVar ());
auto next = this._lex.next (Tokens.COMA, Tokens.RPAR);
if (next == Tokens.RPAR) break;
}
}
this._lex.next (Tokens.IMPLIQUE);
lmbd.content = visitExpression ();
return lmbd;
}
Lambda createLambda (Word ident, Expression content) {
auto lmbd = new Lambda (ident);
lmbd.addParam (new Var (ident));
lmbd.content = content;
return lmbd;
}
Instruction visitReturn () {
auto begin = this._lex.rewind.next ();
auto exp = visitExpression ();
this._lex.next (Tokens.SEMI_COLON);
return new Return (begin, exp);
}
Instruction visitFor () {
auto begin = this._lex.rewind.next ();
auto _for = new For (begin);
this._lex.next (Tokens.LPAR);
auto next = this._lex.next ();
if (next != Tokens.SEMI_COLON) {
if (next == Keys.AUTO) _for.setBegin (visitAuto ());
else {
this._lex.rewind ();
_for.setBegin (visitExpressionUlt ());
this._lex.next (Tokens.SEMI_COLON);
}
}
next = this._lex.next ();
if (next != Tokens.SEMI_COLON) {
this._lex.rewind ();
_for.setTest (visitExpression ());
this._lex.next (Tokens.SEMI_COLON);
}
next = this._lex.next ();
if (next != Tokens.RPAR) {
this._lex.rewind ();
while (true) {
_for.addIter (visitExpressionUlt ());
next = this._lex.next (Tokens.COMA, Tokens.RPAR);
if (next == Tokens.RPAR) break;
}
}
next = this._lex.next ();
this._lex.rewind ();
if (next == Tokens.LACC) _for.setBlock (visitBlock ());
else {
auto block = new Block (next);
block.addInst (visitInstruction ());
_for.setBlock (block);
}
return _for;
}
Instruction visitWhile () {
auto begin = this._lex.rewind.next ();
auto _while = new While (begin);
_while.setTest (visitExpression ());
auto next = this._lex.next ();
this._lex.rewind ();
if (next == Tokens.LACC) _while.setBlock (visitBlock ());
else {
auto block = new Block (next);
block.addInst (visitInstruction ());
_while.setBlock (block);
}
return _while;
}
Instruction visitBreak () {
auto begin = this._lex.rewind.next ();
this._lex.next (Tokens.SEMI_COLON);
return new Break (begin);
}
Instruction visitLocal () {
auto begin = this._lex.rewind.next ();
auto loc = new Local (begin);
loc.type = visitType ();
loc.ident = visitIdentifiant ();
return loc;
}
Instruction visitAuto () {
auto begin = this._lex.rewind.next ();
auto _auto = new Auto (begin);
while (true) {
auto var = visitVar ();
this._lex.next (Tokens.EQUAL);
auto expr = visitExpressionUlt ();
_auto.addInit (var, expr);
auto next = this._lex.next (Tokens.COMA, Tokens.SEMI_COLON);
if (next == Tokens.SEMI_COLON) break;
}
return _auto;
}
/**
expressionult := expression (_ultimeop expression)*
*/
private Expression visitExpressionUlt () {
auto left = visitExpression ();
auto tok = _lex.next ();
if (find(_ultimeOp, tok) != []) {
auto right = visitExpressionUlt ();
return visitExpressionUlt (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitExpressionUlt (Expression left) {
auto tok = _lex.next ();
if (find (_ultimeOp, tok) != []) {
auto right = visitExpressionUlt ();
return visitExpressionUlt (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitExpression () {
auto left = visitUlow ();
auto tok = _lex.next ();
if (find (_expOp, tok) != []) {
auto right = visitUlow ();
return visitExpression (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitExpression (Expression left) {
auto tok = _lex.next ();
if (find (_expOp, tok) != []) {
auto right = visitUlow ();
return visitExpression (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitUlow () {
auto left = visitLow ();
auto tok = _lex.next ();
if (find (_ulowOp, tok) != [] || tok == Keys.IS) {
auto right = visitLow ();
return visitUlow (new Binary (tok, left, right));
} else {
if (tok == Tokens.NOT) {
auto suite = _lex.next ();
if (suite == Keys.IS) {
auto right = visitLow ();
tok.str = Keys.NOT_IS;
return visitUlow (new Binary (tok, left, right));
} else _lex.rewind ();
} else if (tok == Tokens.DDOT) {
auto right = visitLow ();
return visitUlow (new Binary (tok, left, right));
}
_lex.rewind ();
}
return left;
}
private Expression visitNumeric (Word begin) {
foreach (it ; 0 .. begin.str.length) {
if (begin.str [it] < '0' || begin.str [it] > '9') {
throw new SyntaxError (begin);
}
}
auto next = _lex.next ();
if (next == Tokens.DOT) {
next = _lex.next ();
auto suite = next.str;
foreach (it ; next.str) {
if (it < '0' || it > '9') {
suite = "0";
_lex.rewind ();
break;
}
}
return new Float (begin, suite);
} else _lex.rewind ();
return new Decimal (begin);
}
private Expression visitFloat (Word begin) {
auto next = _lex.next ();
foreach (it ; next.str) {
if (it < '0' || it > '9')
throw new SyntaxError (next);
}
return new Float (next);
}
private short fromHexa (string elem) {
short total = 0;
ulong size = elem.length - 1;
foreach (it ; elem [0 .. $]) {
if (it >= 'a') {
total += pow (16, size) * (it - 'a' + 10);
} else
total += pow (16, size) * (it - '0');
size -= 1;
}
return total;
}
private short fromOctal (string elem) {
short total = 0;
ulong size = elem.length - 1;
foreach (it ; elem [0 .. $]) {
total += pow (8, size) * (it - '0');
size -= 1;
}
return total;
}
private short getFromLX (string elem) {
foreach (it ; elem [2 .. $])
if ((it < 'a' || it > 'f') && (it < '0' || it > '9'))
return -1;
auto escape = elem [2 .. $];
return fromHexa (escape);
}
private short getFromOc (string elem) {
foreach (it ; elem [1 .. $])
if (it < '0' || it > '7') return -1;
auto escape = elem [1 .. $];
return fromOctal (escape);
}
private short isChar (string value) {
auto escape = ["\\a": '\a', "\\b" : '\b', "\\f" : '\f',
"\\n" : '\n', "\\r" : '\r', "\\t" : '\t',
"\\v" : '\v', "\\" : '\\', "\'" : '\'',
"\"" : '\"', "\?": '\?'];
if (value.length == 0) return -1;
if (value.length == 1) return cast(short) (value[0]);
auto val = (value in escape);
if (val !is null) return cast(short) *val;
if (value[0] == Keys.ANTI [0]) {
if (value.length == 4 && value[1] == Keys.LX [0]) {
return getFromLX (value);
} else if (value.length > 1 && value.length < 5) {
return getFromOc (value);
}
}
return -1;
}
private Expression visitString () {
_lex.skipEnable (Tokens.SPACE, false);
_lex.commentEnable (false);
Word next;
string val = ""; bool anti = false;
while (1) {
next = _lex.next ();
if (next.isEof ()) throw new SyntaxError (next);
else if (next == Tokens.GUILL && !anti) break;
else val ~= next.str;
if (next == Keys.ANTI) anti = true;
else anti = false;
}
_lex.skipEnable (Tokens.SPACE);
_lex.skipEnable (Tokens.RETOUR);
_lex.skipEnable (Tokens.RRETOUR);
_lex.skipEnable (Tokens.TAB);
_lex.commentEnable ();
return new String (next, val);
}
private Expression visitChar () {
_lex.skipEnable (Tokens.SPACE, false);
_lex.commentEnable (false);
Word next;
string val = ""; bool anti = false;
while (1) {
next = _lex.next ();
if (next.isEof ()) throw new SyntaxError (next);
else if (next == Tokens.APOS && !anti) break;
else val ~= next.str;
if (next == Keys.ANTI) anti = true;
else anti = false;
}
_lex.skipEnable (Tokens.SPACE);
_lex.skipEnable (Tokens.RETOUR);
_lex.skipEnable (Tokens.RRETOUR);
_lex.skipEnable (Tokens.TAB);
_lex.commentEnable ();
auto c = isChar (val);
if (c <= 0) throw new SyntaxError (next);
return new Char (next, cast (ubyte) c);
}
private Expression visitUlow (Expression left) {
auto tok = _lex.next ();
if (find (_ulowOp, tok) != [] || tok == Keys.IS) {
auto right = visitLow ();
return visitUlow (new Binary (tok, left, right));
} else {
if (tok == Tokens.NOT) {
auto suite = _lex.next ();
if (suite == Keys.IS) {
auto right = visitLow ();
tok.str = Keys.NOT_IS;
return visitUlow (new Binary (tok, left, right));
} else _lex.rewind ();
} else if (tok == Tokens.DDOT) {
auto right = visitLow ();
return visitHigh (new Binary (tok, left, right));
}
_lex.rewind ();
}
return left;
}
private Expression visitLow () {
auto left = visitHigh ();
auto tok = _lex.next ();
if (find (_lowOp, tok) != []) {
auto right = visitHigh ();
return visitLow (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitLow (Expression left) {
auto tok = _lex.next ();
if (find (_lowOp, tok) != []) {
auto right = visitHigh ();
return visitLow (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitHigh () {
auto left = visitPth ();
auto tok = _lex.next ();
if (find (_highOp, tok) != []) {
auto right = visitPth ();
return visitHigh (new Binary (tok, left, right));
} else if (tok == Keys.IN) {
auto right = visitPth ();
return visitHigh (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitHigh (Expression left) {
auto tok = _lex.next ();
if (find (_highOp, tok) != []) {
auto right = visitPth ();
return visitHigh (new Binary (tok, left, right));
} else if (tok == Keys.IN) {
auto right = visitPth ();
return visitHigh (new Binary (tok, left, right));
} else _lex.rewind ();
return left;
}
private Expression visitPth () {
auto tok = _lex.next ();
if (find (_befUnary, tok) != []) {
return visitBeforePth (tok);
} else {
if (tok != Tokens.LPAR) {
this._lex.rewind ();
return visitPthWPar (tok);
} else {
auto exp = visitExpression ();
this._lex.next (Tokens.RPAR);
return exp;
}
}
}
private Expression visitConstante () {
auto tok = this._lex.next ();
if (tok.isEof ()) return null;
if (tok.str [0] >= '0'&& tok.str [0] <= '9')
return visitNumeric (tok);
else if (tok == Tokens.DOT)
return visitFloat (tok);
else if (tok == Tokens.GUILL)
return visitString ();
else if (tok == Tokens.APOS)
return visitChar ();
else if (tok == Keys.TRUE || tok == Keys.FALSE)
return new Bool (tok);
else _lex.rewind ();
return null;
}
private Expression visitPthWPar (Word tok) {
auto constante = visitConstante ();
if (constante !is null) {
tok = this._lex.next ();
if (find (_suiteElem, tok) != []) {
return visitSuite (tok, constante);
} else this._lex.rewind ();
return constante;
}
auto left = visitLeftOp ();
tok = _lex.next ();
if (find (_afUnary, tok) != []) {
return visitAfter (tok, left);
} else _lex.rewind ();
return left;
}
private Expression visitLeftOp () {
auto word = this._lex.next ();
if (word == Keys.CAST) {
return visitCast ();
} else if (word == Tokens.LCRO) {
return visitConstArray ();
} else this._lex.rewind ();
auto var = visitVar ();
auto next = _lex.next ();
if (find (_suiteElem, next) != [])
return visitSuite (next, var);
else _lex.rewind ();
return var;
}
private Var visitVar () {
auto ident = visitIdentifiant ();
return new Var (ident);
}
private Expression visitConstArray () {
this._lex.rewind ();
auto begin = this._lex.next ();
auto array = new ConstArray (begin);
auto word = this._lex.next ();
if (word != Tokens.RCRO) {
this._lex.rewind ();
array.addParam (visitExpression ());
while (true) {
word = this._lex.next ();
if (word == Tokens.RCRO) break;
else if (word != Tokens.COMA) throw new SyntaxError (word, [Tokens.COMA, Tokens.RCRO]);
array.addParam (visitExpression ());
}
}
return new ConstArray (begin);
}
private Expression visitCast () {
this._lex.rewind ();
auto begin = this._lex.next ();
auto word = this._lex.next (Tokens.LPAR);
auto next = this._lex.next ();
auto type = visitType ();
this._lex.next (Tokens.RPAR);
auto expr = visitExpression ();
return new Cast (begin, type, expr);
}
private Expression visitSuite (Word token, Expression left) {
if (token == Tokens.LPAR) return visitPar (left);
else if (token == Tokens.LCRO) return visitAccess (left);
else if (token == Tokens.DOT) return visitDot (left);
else
throw new SyntaxError (token);
}
/**
par := '(' (expression (',' expression)*)? ')'
*/
private Expression visitPar (Expression left) {
_lex.rewind ();
auto beg = _lex.next (), next = _lex.next ();
auto suite = next;
auto params = new ParamList ();
if (next != Tokens.RPAR) {
_lex.rewind ();
while (1) {
params.addParam (visitExpression ());
next = _lex.next ();
if (next == Tokens.RPAR) break;
else if (next != Tokens.COMA)
throw new SyntaxError (next, [Tokens.RPAR, Tokens.COMA]);
}
}
auto retour = new Par (beg, next, left, params);
next = _lex.next ();
if (find (_suiteElem, next) != [])
return visitSuite (next, retour);
else if (find (_afUnary, next) != [])
return visitAfter (next, retour);
_lex.rewind ();
return retour;
}
/**
access := '[' (expression (',' expression)*)? ']'
*/
private Expression visitAccess (Expression left) {
_lex.rewind ();
auto beg = _lex.next (), next = _lex.next ();
auto suite = next;
auto params = new ParamList ();
if (next != Tokens.RCRO) {
_lex.rewind ();
while (1) {
params.addParam (visitExpression ());
next = _lex.next ();
if (next == Tokens.RCRO) break;
else if (next != Tokens.COMA)
throw new SyntaxError (next, [Tokens.RCRO, Tokens.COMA]);
}
}
auto retour = new Access (beg, next, left, params);
next = _lex.next ();
if (find (_suiteElem, next) != [])
return visitSuite (next, retour);
else if (find(_afUnary, next) != [])
return visitAfter (next, retour);
_lex.rewind ();
return retour;
}
/**
dot := '.' identifiant
*/
private Expression visitDot (Expression left) {
_lex.rewind ();
auto begin = _lex.next ();
auto right = visitVar ();
auto retour = new Dot (begin, left, right);
auto next = _lex.next ();
if (find (_suiteElem, next) != [])
return visitSuite (next, retour);
else if (find (_afUnary, next) != [])
return visitAfter (next, retour);
_lex.rewind ();
return retour;
}
private Expression visitAfter (Word word, Expression left) {
return new AfUnary (word, left);
}
private Expression visitBeforePth (Word word) {
auto elem = visitPth ();
return new BefUnary (word, elem);
}
private TypedVar visitTypeVar () {
auto next = this._lex.next ();
auto isLocal = true;
if (next != Keys.LOCAL) {
isLocal = false;
this._lex.rewind ();
}
auto type = visitType ();
auto name = visitIdentifiant ();
return new TypedVar (type, name, isLocal);
}
private TypedVar visitTypeVarFStruct () {
auto type = visitType ();
auto next = this._lex.next ();
if (next == Tokens.LPAR) {
ignoreUntilClose ();
return null;
} else {
this._lex.rewind ();
auto name = visitIdentifiant ();
return new TypedVar (type, name, false);
}
}
private void ignoreUntilClose () {
auto nb = 1;
while (true) {
auto next = this._lex.next ();
if (next == Tokens.LACC) nb ++;
else if (next == Tokens.RACC) {
nb --;
if (nb <= 1) break;
}
}
}
private Type visitType (bool need = false) {
auto ident = visitIdentifiant ();
auto type = new Type (ident);
auto next = this._lex.next ();
if (next == Tokens.LCRO) {
next = this._lex.next ();
if (next != Tokens.RCRO) {
type.setLen (visitExpression ());
this._lex.next (Tokens.RCRO);
} else {
type.isArray = true;
}
} else this._lex.rewind ();
return type;
}
Word visitIdentifiant () {
auto ident = this._lex.next ();
if (ident.isToken ())
throw new SyntaxError (ident, ["'Identifiant'"]);
if (find !"b == a" (this._forbiddenIds, ident) != [])
throw new SyntaxError (ident, ["'Identifiant'"]);
if (ident.str.length == 0) throw new SyntaxError (ident, ["'Identifiant'"]);
auto i = 0;
foreach (it ; ident.str) {
if ((it >= 'a' && it <= 'z') || (it >= 'A' && it <= 'Z')) break;
else if (it != '_') throw new SyntaxError (ident, ["'identifiant'"]);
i++;
}
i++;
if (ident.str.length < i)
throw new SyntaxError (ident, ["'Identifiant'"]);
foreach (it ; ident.str [i .. $]) {
if ((it < 'a' || it > 'z')
&& (it < 'A' || it > 'Z')
&& (it != '_')
&& (it < '0' || it > '9'))
throw new SyntaxError (ident, ["'Identifiant'"]);
}
return ident;
}
}
|
D
|
/**
Copyright: 2018 Mark Fisher
License:
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
**/
module dxx.app.resource.workspace;
private import aermicioi.aedi;
private import dxx.app.resource;
private import dxx.app.document;
interface Workspace {
enum ResourceLocation {
CONFIG,SYSTEM,PROJECT
};
Project getProject(string name);
Project[] getProjects();
Resource getResource(string uri,ResourceSet owner);
string getNativePath(string uri);
string getNativePath(Project);
}
class WorkspaceDefault : Workspace {
@autowired
URIResolver uriResolver;
@autowired
ResourceValidator validator;
Project[string] projects;
override Resource getResource(string uri,ResourceSet owner) {
return uriResolver.resolveURI(uri,owner);
}
string getNativePath(string uri) {
return uri;
}
string getNativePath(Project p) {
return getNativePath(p.uri);
}
Project getProject(string name) {
if(auto x = name in projects) return *x;
return null;
}
Project[] getProjects() {
return projects.values;
}
}
|
D
|
import std.stdio;
void main() {
double zero = 0;
double infinity = double.infinity;
writeln("any expression with nan: ", double.nan + 1);
writeln("zero / zero : ", zero / zero);
writeln("zero * infinity : ", zero * infinity);
writeln("infinity / infinity : ", infinity / infinity);
writeln("infinity - infinity : ", infinity - infinity);
}
|
D
|
someone who has committed a crime or has been legally convicted of a crime
bringing or deserving severe rebuke or censure
guilty of crime or serious offense
involving or being or having the nature of a crime
|
D
|
module game.nurse.interact;
import optional;
import game.model.cache;
import hardware.sound;
public import game.nurse.savestat;
class InteractiveNurse : SaveStatingNurse {
/*
* Forwarding constructor. We get to own the replay, but not the level
* or the EffectManager. EffectManager must exist for interactive mode.
*/
this(in Level lev, Replay rp, EffectManager ef)
{
assert (ef !is null);
super(lev, rp, some(ef));
}
void updateTo(in Phyu targetPhyu, in DuringTurbo duringTurbo)
{
while (! doneAnimating && upd < targetPhyu) {
updateOnce();
considerAutoSavestateIfCloseTo(targetPhyu, duringTurbo);
}
}
void terminateSingleplayerWithNuke()
{
if (everybodyOutOfLix)
return;
replay.terminateSingleplayerWithNukeAfter(upd);
}
void applyChangesToLand() { model.applyChangesToLand(); }
protected:
override void onAutoSave()
{
// It seems dubious to do drawing to bitmaps during calc/update.
// However, savestates save the land too, and they should
// hold the correctly updated land. We could save an instance
// of a PhysicsDrawer along inside the savestate, but then we would
// redraw over and over when loading from this state during
// framestepping backwards. Instead, let's calculate the land now.
model.applyChangesToLand();
}
override void onCutReplay()
{
playLoud(Sound.SCISSORS);
}
}
|
D
|
func void b_story_feueraufnahme()
{
var C_NPC magier_1;
var C_NPC magier_2;
var C_NPC magier_3;
var C_NPC magier_4;
if(CORRISTO_KDFAUFNAHME == 4)
{
Npc_ExchangeRoutine(self,"KDFRITUAL");
magier_1 = Hlp_GetNpc(kdf_400_rodriguez);
Wld_PlayEffect("SPELLFX_TELEPORT_RING",magier_1,magier_1,0,0,0,FALSE);
AI_Teleport(magier_1,"OCC_CHAPEL_MAGE_01");
Npc_ExchangeRoutine(magier_1,"KDFRITUAL");
AI_ContinueRoutine(magier_1);
magier_2 = Hlp_GetNpc(kdf_401_damarok);
Wld_PlayEffect("SPELLFX_TELEPORT_RING",magier_2,magier_2,0,0,0,FALSE);
AI_Teleport(magier_2,"OCC_CHAPEL_MAGE_04");
Npc_ExchangeRoutine(magier_2,"KDFRITUAL");
AI_ContinueRoutine(magier_2);
magier_3 = Hlp_GetNpc(kdf_403_drago);
Wld_PlayEffect("SPELLFX_TELEPORT_RING",magier_3,magier_3,0,0,0,FALSE);
AI_Teleport(magier_3,"OCC_CHAPEL_MAGE_03");
Npc_ExchangeRoutine(magier_3,"KDFRITUAL");
AI_ContinueRoutine(magier_3);
magier_4 = Hlp_GetNpc(kdf_405_torrez);
Wld_PlayEffect("SPELLFX_TELEPORT_RING",magier_4,magier_4,0,0,0,FALSE);
AI_Teleport(magier_4,"OCC_CHAPEL_MAGE_02");
Npc_ExchangeRoutine(magier_4,"KDFRITUAL");
AI_ContinueRoutine(magier_4);
}
else if(CORRISTO_KDFAUFNAHME == 5)
{
magier_1 = Hlp_GetNpc(kdf_400_rodriguez);
AI_AlignToWP(magier_1);
magier_2 = Hlp_GetNpc(kdf_401_damarok);
AI_AlignToWP(magier_2);
magier_3 = Hlp_GetNpc(kdf_403_drago);
AI_AlignToWP(magier_3);
magier_4 = Hlp_GetNpc(kdf_405_torrez);
AI_AlignToWP(magier_4);
}
else if(CORRISTO_KDFAUFNAHME == 6)
{
Npc_ExchangeRoutine(self,"START");
magier_1 = Hlp_GetNpc(kdf_400_rodriguez);
Npc_ExchangeRoutine(magier_1,"START");
AI_ContinueRoutine(magier_1);
magier_2 = Hlp_GetNpc(kdf_402_corristo);
Npc_ExchangeRoutine(magier_2,"START");
AI_ContinueRoutine(magier_2);
magier_3 = Hlp_GetNpc(kdf_403_drago);
Npc_ExchangeRoutine(magier_3,"START");
AI_ContinueRoutine(magier_3);
magier_4 = Hlp_GetNpc(kdf_405_torrez);
Npc_ExchangeRoutine(magier_4,"START");
AI_ContinueRoutine(magier_4);
};
};
|
D
|
module orly.engine.renderer.texture;
import orly.engine.backend.ibackend;
class Texture {
private:
int id;
int width, height;
public:
/**
Creates a new texture from specified RGBA data.
*/
this(int width, int height, ubyte* data) {
id = Backend.TextureCreate(width, height, data);
Backend.TextureGenerateMipmap(MinFilter.LinearMipmapLinear, MagFilter.Linear); // TODO: Mipmapy wybierane gdzie indziej
Backend.TextureWrapMode(WrapMode.Repeat, WrapMode.Repeat);
}
/**
Creates a new, empty texture.
*/
this(int width, int height, MinFilter minFilter = MinFilter.LinearMipmapLinear, MagFilter magFilter = MagFilter.Linear) {
id = Backend.TextureCreate(width, height);
Backend.TextureGenerateMipmap(minFilter, magFilter); // TODO: Mipmapy wybierane gdzie indziej
Backend.TextureWrapMode(WrapMode.Repeat, WrapMode.Repeat);
}
~this() {
Backend.TextureDestroy(id);
}
// TODO: Texture parameters
@property int Id() { return id; }
@property int Width() { return width; }
@property int Height() { return height; }
/**
Binds the texture.
*/
void Bind() {
Backend.TextureBind(id);
}
/**
Unbinds the texture.
*/
void Unbind() {
Backend.TextureUnbind();
}
}
|
D
|
instance PAL_274_Ritter(Npc_Default)
{
name[0] = NAME_Ritter;
guild = GIL_PAL;
id = 274;
voice = 9;
flags = 0;
npcType = NPCTYPE_OCAMBIENT;
aivar[91] = TRUE;
B_SetAttributesToChapter(self,4);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_1h_Pal_Sword);
EquipItem(self,ItRw_Mil_Crossbow);
EquipItem(self,itsh_paladin_a);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_P_Tough_Torrez,BodyTex_P,ItAr_PAL_M);
Mdl_SetModelFatness(self,0);
Mdl_ApplyOverlayMds(self,"Humans_Militia.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,65);
daily_routine = Rtn_Start_274;
};
func void Rtn_Start_274()
{
TA_Smalltalk(8,0,23,0,"OC_TO_MAGE");
TA_Smalltalk(23,0,8,0,"OC_KNECHTCAMP_02");
};
|
D
|
/**
This is a submodule of $(MREF std, experimental, ndslice).
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Ilya Yaroshenko
Source: $(PHOBOSSRC std/_experimental/_ndslice/_slice.d)
Macros:
SUBREF = $(REF_ALTTEXT $(TT $2), $2, std,experimental, ndslice, $1)$(NBSP)
T2=$(TR $(TDNW $(LREF $1)) $(TD $+))
T4=$(TR $(TDNW $(LREF $1)) $(TD $2) $(TD $3) $(TD $4))
STD = $(TD $(SMALL $0))
*/
/// @@@DEPRECATED_2017-04@@@
deprecated("Please use mir-algorithm DUB package: http://github.com/libmir/mir-algorithm")
module std.experimental.ndslice.slice;
import std.traits;
import std.meta;
import std.typecons; //: Flag, Yes, No;
import std.range.primitives; //: hasLength;
import std.experimental.ndslice.internal;
/++
Creates an n-dimensional slice-shell over a `range`.
Params:
range = a random access range or an array; only index operator
`auto opIndex(size_t index)` is required for ranges. The length of the
range should be equal to the sum of shift and the product of
lengths. If `ad`, the length of the
range should be greater than or equal to the sum of shift and the product of
lengths.
lengths = list of lengths for each dimension
shift = index of the first element of a `range`.
The first `shift` elements of range are ignored.
Names = names of elements in a slice tuple.
Slice tuple is a slice, which holds single set of lengths and strides
for a number of ranges.
ra = If `yes`, the array will be replaced with
its pointer to improve performance.
Use `no` for compile time function evaluation.
ad = If `yes`, no assert error will be thrown for range, which
has a length and its length is greater then the sum of shift and the product of
lengths.
Returns:
n-dimensional slice
+/
auto sliced(
Flag!"replaceArrayWithPointer" ra = Yes.replaceArrayWithPointer,
Flag!"allowDownsize" ad = No.allowDownsize,
Range, size_t N)(Range range, size_t[N] lengths...)
if (!isStaticArray!Range && !isNarrowString!Range && N)
{
return .sliced!(ra, ad)(range, lengths, 0);
}
///ditto
auto sliced(
Flag!"replaceArrayWithPointer" ra = Yes.replaceArrayWithPointer,
Flag!"allowDownsize" ad = No.allowDownsize,
size_t N, Range)(Range range, size_t[N] lengths, size_t shift = 0)
if (!isStaticArray!Range && !isNarrowString!Range && N)
in
{
static if (hasLength!Range)
{
static if (ad)
{
assert(lengthsProduct!N(lengths) + shift <= range.length,
"Range length must be greater than or equal to the sum of shift and the product of lengths."
~ tailErrorMessage!());
}
else
{
assert(lengthsProduct!N(lengths) + shift == range.length,
"Range length must be equal to the sum of shift and the product of lengths."
~ tailErrorMessage!());
}
}
}
body
{
static if (isDynamicArray!Range && ra)
{
Slice!(N, typeof(range.ptr)) ret = void;
ret._ptr = range.ptr + shift;
}
else
{
alias S = Slice!(N, ImplicitlyUnqual!(typeof(range)));
static if (hasElaborateAssign!(S.PureRange))
S ret;
else
S ret = void;
static if (hasPtrBehavior!(S.PureRange))
{
static if (S.NSeq.length == 1)
ret._ptr = range;
else
ret._ptr = range._ptr;
ret._ptr += shift;
}
else
{
static if (S.NSeq.length == 1)
{
ret._ptr._range = range;
ret._ptr._shift = shift;
}
else
{
ret._ptr = range._ptr;
ret._ptr._shift += range._strides[0] * shift;
}
}
}
ret._lengths[N - 1] = lengths[N - 1];
static if (ret.NSeq.length == 1)
ret._strides[N - 1] = 1;
else
ret._strides[N - 1] = range._strides[0];
foreach_reverse (i; Iota!(0, N - 1))
{
ret._lengths[i] = lengths[i];
ret._strides[i] = ret._strides[i + 1] * ret._lengths[i + 1];
}
foreach (i; Iota!(N, ret.PureN))
{
ret._lengths[i] = range._lengths[i - N + 1];
ret._strides[i] = range._strides[i - N + 1];
}
return ret;
}
private enum bool _isSlice(T) = is(T : Slice!(N, Range), size_t N, Range);
///ditto
template sliced(Names...)
if (Names.length && !anySatisfy!(isType, Names) && allSatisfy!(isStringValue, Names))
{
mixin (
"
auto sliced(
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Flag!`allowDownsize` ad = No.allowDownsize,
" ~ _Range_Types!Names ~ "
size_t N)
(" ~ _Range_DeclarationList!Names ~
"size_t[N] lengths...)
{
alias sl = .sliced!Names;
return sl!(ra, ad)(" ~ _Range_Values!Names ~ "lengths, 0);
}
auto sliced(
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Flag!`allowDownsize` ad = No.allowDownsize,
size_t N, " ~ _Range_Types!Names ~ ")
(" ~ _Range_DeclarationList!Names ~"
size_t[N] lengths,
size_t shift = 0)
{
alias RS = AliasSeq!(" ~ _Range_Types!Names ~ ");"
~ q{
import std.meta : staticMap;
static assert(!anySatisfy!(_isSlice, RS),
`Packed slices are not allowed in slice tuples`
~ tailErrorMessage!());
alias PT = PtrTuple!Names;
alias SPT = PT!(staticMap!(PrepareRangeType, RS));
static if (hasElaborateAssign!SPT)
SPT range;
else
SPT range = void;
version(assert) immutable minLength = lengthsProduct!N(lengths) + shift;
foreach (i, name; Names)
{
alias T = typeof(range.ptrs[i]);
alias R = RS[i];
static assert(!isStaticArray!R);
static assert(!isNarrowString!R);
mixin (`alias r = range_` ~ name ~`;`);
static if (hasLength!R)
{
static if (ad)
{
assert(minLength <= r.length,
`length of range '` ~ name ~`' must be greater than or equal `
~ `to the sum of shift and the product of lengths.`
~ tailErrorMessage!());
}
else
{
assert(minLength == r.length,
`length of range '` ~ name ~`' must be equal `
~ `to the sum of shift and the product of lengths.`
~ tailErrorMessage!());
}
}
static if (isDynamicArray!T && ra)
range.ptrs[i] = r.ptr;
else
range.ptrs[i] = T(0, r);
}
return .sliced!(ra, ad, N, SPT)(range, lengths, shift);
}
~ "}");
}
/// ditto
auto sliced(
Flag!"replaceArrayWithPointer" ra = Yes.replaceArrayWithPointer,
Flag!"allowDownsize" ad = No.allowDownsize,
Range)(Range range)
if (!isStaticArray!Range && !isNarrowString!Range && hasLength!Range)
{
return .sliced!(ra, ad, 1, Range)(range, [range.length]);
}
/// Creates a slice from an array.
pure nothrow @system unittest
{
auto slice = slice!int(5, 6, 7);
assert(slice.length == 5);
assert(slice.elementsCount == 5 * 6 * 7);
static assert(is(typeof(slice) == Slice!(3, int*)));
}
/// Creates a slice using shift parameter.
@safe @nogc pure nothrow unittest
{
import std.range : iota;
auto slice = (5 * 6 * 7 + 9).iota.sliced([5, 6, 7], 9);
assert(slice.length == 5);
assert(slice.elementsCount == 5 * 6 * 7);
assert(slice[0, 0, 0] == 9);
}
/// Creates an 1-dimensional slice over a range.
@safe @nogc pure nothrow unittest
{
import std.range : iota;
auto slice = 10.iota.sliced;
assert(slice.length == 10);
}
/// $(LINK2 https://en.wikipedia.org/wiki/Vandermonde_matrix, Vandermonde matrix)
pure nothrow @system unittest
{
auto vandermondeMatrix(Slice!(1, double*) x)
{
auto ret = slice!double(x.length, x.length);
foreach (i; 0 .. x.length)
foreach (j; 0 .. x.length)
ret[i, j] = x[i] ^^ j;
return ret;
}
auto x = [1.0, 2, 3, 4, 5].sliced(5);
auto v = vandermondeMatrix(x);
assert(v ==
[[ 1.0, 1, 1, 1, 1],
[ 1.0, 2, 4, 8, 16],
[ 1.0, 3, 9, 27, 81],
[ 1.0, 4, 16, 64, 256],
[ 1.0, 5, 25, 125, 625]]);
}
/++
Creates a slice composed of named elements, each one of which corresponds
to a given argument. See also $(LREF assumeSameStructure).
+/
pure nothrow @system unittest
{
import std.algorithm.comparison : equal;
import std.experimental.ndslice.selection : byElement;
import std.range : iota;
auto alpha = 12.iota;
auto beta = new int[12];
auto m = sliced!("a", "b")(alpha, beta, 4, 3);
foreach (r; m)
foreach (e; r)
e.b = e.a;
assert(equal(alpha, beta));
beta[] = 0;
foreach (e; m.byElement)
e.b = e.a;
assert(equal(alpha, beta));
}
/// Random access range primitives for slices over user defined types
pure nothrow @nogc @system unittest
{
struct MyIota
{
//`[index]` operator overloading
auto opIndex(size_t index)
{
return index;
}
}
alias S = Slice!(3, MyIota);
import std.range.primitives;
static assert(hasLength!S);
static assert(hasSlicing!S);
static assert(isRandomAccessRange!S);
auto slice = MyIota().sliced(20, 10);
assert(slice[1, 2] == 12);
auto sCopy = slice.save;
assert(slice[1, 2] == 12);
}
/// Slice tuple and flags
pure nothrow @nogc @system unittest
{
import std.typecons : Yes, No;
static immutable a = [1, 2, 3, 4, 5, 6];
static immutable b = [1.0, 2, 3, 4, 5, 6];
alias namedSliced = sliced!("a", "b");
auto slice = namedSliced!(No.replaceArrayWithPointer, Yes.allowDownsize)
(a, b, 2, 3);
assert(slice[1, 2].a == slice[1, 2].b);
}
// sliced slice
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto data = new int[24];
foreach (int i,ref e; data)
e = i;
auto a = data[0 .. 10].sliced(10)[0 .. 6].sliced(2, 3);
auto b = iotaSlice(10)[0 .. 6].sliced(2, 3);
assert(a == b);
a[] += b;
foreach (int i, e; data[0 .. 6])
assert(e == 2*i);
foreach (int i, e; data[6..$])
assert(e == i+6);
auto c = data.sliced(12, 2)[0 .. 6].sliced(2, 3);
auto d = iotaSlice(12, 2)[0 .. 6].sliced(2, 3);
auto cc = data[0 .. 12].sliced(2, 3, 2);
auto dc = iotaSlice(2, 3, 2);
assert(c._lengths == cc._lengths);
assert(c._strides == cc._strides);
assert(d._lengths == dc._lengths);
assert(d._strides == dc._strides);
assert(cc == c);
assert(dc == d);
auto e = data.sliced(8, 3)[0 .. 5].sliced(5);
auto f = iotaSlice(8, 3)[0 .. 5].sliced(5);
assert(e == data[0 .. 15].sliced(5, 3));
assert(f == iotaSlice(5, 3));
}
nothrow @system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto sl = iotaSlice([0, 0], 1);
assert(sl.empty!0);
assert(sl.empty!1);
auto gcsl1 = sl.slice;
auto gcsl2 = slice!double(0, 0);
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
auto tup2 = makeSlice!size_t(Mallocator.instance, sl);
auto tup1 = makeSlice!double(Mallocator.instance, 0, 0);
Mallocator.instance.dispose(tup1.array);
Mallocator.instance.dispose(tup2.array);
}
private template _Range_Types(Names...)
{
static if (Names.length)
enum string _Range_Types = "Range_" ~ Names[0] ~ ", " ~ _Range_Types!(Names[1..$]);
else
enum string _Range_Types = "";
}
private template _Range_Values(Names...)
{
static if (Names.length)
enum string _Range_Values = "range_" ~ Names[0] ~ ", " ~ _Range_Values!(Names[1..$]);
else
enum string _Range_Values = "";
}
private template _Range_DeclarationList(Names...)
{
static if (Names.length)
{
enum string _Range_DeclarationList = "Range_" ~ Names[0] ~ " range_"
~ Names[0] ~ ", " ~ _Range_DeclarationList!(Names[1..$]);
}
else
enum string _Range_DeclarationList = "";
}
private template _Slice_DeclarationList(Names...)
{
static if (Names.length)
{
enum string _Slice_DeclarationList = "Slice!(N, Range_" ~ Names[0] ~ ") slice_"
~ Names[0] ~ ", " ~ _Slice_DeclarationList!(Names[1..$]);
}
else
enum string _Slice_DeclarationList = "";
}
/++
Groups slices into a slice tuple. The slices must have identical structure.
Slice tuple is a slice, which holds single set of lengths and strides
for a number of ranges.
Params:
Names = names of elements in a slice tuple
Returns:
n-dimensional slice
See_also: $(LREF .Slice.structure).
+/
template assumeSameStructure(Names...)
if (Names.length && !anySatisfy!(isType, Names) && allSatisfy!(isStringValue, Names))
{
mixin (
"
auto assumeSameStructure(
size_t N, " ~ _Range_Types!Names ~ ")
(" ~ _Slice_DeclarationList!Names ~ ")
{
alias RS = AliasSeq!(" ~_Range_Types!Names ~ ");"
~ q{
import std.meta : staticMap;
static assert(!anySatisfy!(_isSlice, RS),
`Packed slices not allowed in slice tuples`
~ tailErrorMessage!());
alias PT = PtrTuple!Names;
alias SPT = PT!(staticMap!(PrepareRangeType, RS));
static if (hasElaborateAssign!SPT)
Slice!(N, SPT) ret;
else
Slice!(N, SPT) ret = void;
mixin (`alias slice0 = slice_` ~ Names[0] ~`;`);
ret._lengths = slice0._lengths;
ret._strides = slice0._strides;
ret._ptr.ptrs[0] = slice0._ptr;
foreach (i, name; Names[1..$])
{
mixin (`alias slice = slice_` ~ name ~`;`);
assert(ret._lengths == slice._lengths,
`Shapes must be identical`
~ tailErrorMessage!());
assert(ret._strides == slice._strides,
`Strides must be identical`
~ tailErrorMessage!());
ret._ptr.ptrs[i+1] = slice._ptr;
}
return ret;
}
~ "}");
}
///
pure nothrow @system unittest
{
import std.algorithm.comparison : equal;
import std.experimental.ndslice.selection : byElement, iotaSlice;
auto alpha = iotaSlice(4, 3);
auto beta = slice!int(4, 3);
auto m = assumeSameStructure!("a", "b")(alpha, beta);
foreach (r; m)
foreach (e; r)
e.b = cast(int) e.a;
assert(alpha == beta);
beta[] = 0;
foreach (e; m.byElement)
e.b = cast(int) e.a;
assert(alpha == beta);
}
///
@safe @nogc pure nothrow unittest
{
import std.algorithm.iteration : map, sum, reduce;
import std.algorithm.comparison : max;
import std.experimental.ndslice.iteration : transposed;
import std.typecons : No;
/// Returns maximal column average.
auto maxAvg(S)(S matrix) {
return matrix.transposed.map!sum.reduce!max
/ matrix.length;
}
enum matrix = [1, 2,
3, 4].sliced!(No.replaceArrayWithPointer)(2, 2);
///Сompile time function evaluation
static assert(maxAvg(matrix) == 3);
}
///
@safe @nogc pure nothrow unittest
{
import std.algorithm.iteration : map, sum, reduce;
import std.algorithm.comparison : max;
import std.experimental.ndslice.iteration : transposed;
import std.typecons : No;
/// Returns maximal column average.
auto maxAvg(S)(S matrix) {
return matrix.transposed.map!sum.reduce!max
/ matrix.length;
}
enum matrix = [1, 2,
3, 4].sliced!(No.replaceArrayWithPointer)(2, 2);
///Сompile time function evaluation
static assert(maxAvg(matrix) == 3);
}
/++
Creates an array and an n-dimensional slice over it.
Params:
lengths = list of lengths for each dimension
slice = slice to copy shape and data from
Returns:
n-dimensional slice
+/
Slice!(N, Select!(ra, T*, T[]))
slice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
size_t N)(size_t[N] lengths...)
{
immutable len = lengthsProduct(lengths);
return new T[len].sliced!ra(lengths);
}
/// ditto
auto slice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
size_t N)(size_t[N] lengths, T init)
{
immutable len = lengthsProduct(lengths);
static if (ra && !hasElaborateAssign!T)
{
import std.array : uninitializedArray;
auto arr = uninitializedArray!(Unqual!T[])(len);
}
else
{
auto arr = new Unqual!T[len];
}
arr[] = init;
auto ret = .sliced!ra(cast(T[]) arr, lengths);
return ret;
}
/// ditto
auto slice(
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
size_t N, Range)(Slice!(N, Range) slice)
{
auto ret = .slice!(Unqual!(slice.DeepElemType), ra)(slice.shape);
ret[] = slice;
return ret;
}
///
pure nothrow @system unittest
{
auto tensor = slice!int(5, 6, 7);
assert(tensor.length == 5);
assert(tensor.elementsCount == 5 * 6 * 7);
static assert(is(typeof(tensor) == Slice!(3, int*)));
// creates duplicate using `slice`
auto dup = tensor.slice;
assert(dup == tensor);
}
///
pure nothrow @system unittest
{
auto tensor = slice([2, 3], 5);
assert(tensor.elementsCount == 2 * 3);
assert(tensor[1, 1] == 5);
}
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto tensor = iotaSlice(2, 3).slice;
assert(tensor == [[0, 1, 2], [3, 4, 5]]);
}
/++
Creates an uninitialized array and an n-dimensional slice over it.
Params:
lengths = list of lengths for each dimension
Returns:
uninitialized n-dimensional slice
+/
auto uninitializedSlice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
size_t N)(size_t[N] lengths...)
{
immutable len = lengthsProduct(lengths);
import std.array : uninitializedArray;
auto arr = uninitializedArray!(T[])(len);
return arr.sliced!ra(lengths);
}
///
pure nothrow @system unittest
{
auto tensor = uninitializedSlice!int(5, 6, 7);
assert(tensor.length == 5);
assert(tensor.elementsCount == 5 * 6 * 7);
static assert(is(typeof(tensor) == Slice!(3, int*)));
}
/++
Allocates an array through a specified allocator and creates an n-dimensional slice over it.
See also $(MREF std, experimental, allocator).
Params:
alloc = allocator
lengths = list of lengths for each dimension
init = default value for array initialization
slice = slice to copy shape and data from
Returns:
a structure with fields `array` and `slice`
Note:
`makeSlice` always returns slice with mutable elements
+/
auto makeSlice(
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Allocator,
size_t N, Range)(auto ref Allocator alloc, Slice!(N, Range) slice)
{
alias T = Unqual!(slice.DeepElemType);
return makeSlice!(T, ra)(alloc, slice);
}
/// ditto
SliceAllocationResult!(N, T, ra)
makeSlice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Allocator,
size_t N)(auto ref Allocator alloc, size_t[N] lengths...)
{
import std.experimental.allocator : makeArray;
immutable len = lengthsProduct(lengths);
auto array = alloc.makeArray!T(len);
auto slice = array.sliced!ra(lengths);
return typeof(return)(array, slice);
}
/// ditto
SliceAllocationResult!(N, T, ra)
makeSlice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Allocator,
size_t N)(auto ref Allocator alloc, size_t[N] lengths, T init)
{
import std.experimental.allocator : makeArray;
immutable len = lengthsProduct(lengths);
auto array = alloc.makeArray!T(len, init);
auto slice = array.sliced!ra(lengths);
return typeof(return)(array, slice);
}
/// ditto
SliceAllocationResult!(N, T, ra)
makeSlice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Allocator,
size_t N, Range)(auto ref Allocator alloc, Slice!(N, Range) slice)
{
import std.experimental.allocator : makeArray;
import std.experimental.ndslice.selection : byElement;
auto array = alloc.makeArray!T(slice.byElement);
auto _slice = array.sliced!ra(slice.shape);
return typeof(return)(array, _slice);
}
///
@nogc @system unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
auto tup = makeSlice!int(Mallocator.instance, 2, 3, 4);
assert(tup.array.length == 24);
assert(tup.slice.elementsCount == 24);
assert(tup.array.ptr == &tup.slice[0, 0, 0]);
// makes duplicate using `makeSlice`
tup.slice[0, 0, 0] = 3;
auto dup = makeSlice(Mallocator.instance, tup.slice);
assert(dup.slice == tup.slice);
Mallocator.instance.dispose(tup.array);
Mallocator.instance.dispose(dup.array);
}
/// Initialization with default value
@nogc @system unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
auto tup = makeSlice(Mallocator.instance, [2, 3, 4], 10);
auto slice = tup.slice;
assert(slice[1, 1, 1] == 10);
Mallocator.instance.dispose(tup.array);
}
@nogc @system unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
// cast to your own type
auto tup = makeSlice!double(Mallocator.instance, [2, 3, 4], 10);
auto slice = tup.slice;
assert(slice[1, 1, 1] == 10.0);
Mallocator.instance.dispose(tup.array);
}
/++
Allocates an uninitialized array through a specified allocator and creates an n-dimensional slice over it.
See also $(MREF std, experimental, allocator).
Params:
alloc = allocator
lengths = list of lengths for each dimension
Returns:
a structure with fields `array` and `slice`
+/
SliceAllocationResult!(N, T, ra)
makeUninitializedSlice(T,
Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
Allocator,
size_t N)(auto ref Allocator alloc, size_t[N] lengths...)
{
immutable len = lengthsProduct(lengths);
auto array = cast(T[]) alloc.allocate(len * T.sizeof);
auto slice = array.sliced!ra(lengths);
return typeof(return)(array, slice);
}
///
@nogc @system unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
auto tup = makeUninitializedSlice!int(Mallocator.instance, 2, 3, 4);
assert(tup.array.length == 24);
assert(tup.slice.elementsCount == 24);
assert(tup.array.ptr == &tup.slice[0, 0, 0]);
Mallocator.instance.dispose(tup.array);
}
/++
Structure used by $(LREF makeSlice) and $(LREF makeUninitializedSlice).
+/
struct SliceAllocationResult(size_t N, T, Flag!`replaceArrayWithPointer` ra)
{
///
T[] array;
///
Slice!(N, Select!(ra, T*, T[])) slice;
}
/++
Creates a common n-dimensional array from a slice.
Params:
slice = slice
Returns:
multidimensional D array
+/
auto ndarray(size_t N, Range)(Slice!(N, Range) slice)
{
import std.array : array;
static if (N == 1)
{
return array(slice);
}
else
{
import std.algorithm.iteration : map;
return array(slice.map!(a => .ndarray(a)));
}
}
///
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4);
auto m = slice.ndarray;
static assert(is(typeof(m) == size_t[][]));
assert(m == [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]]);
}
/++
Allocates a common n-dimensional array using data from a slice.
Params:
alloc = allocator (optional)
slice = slice
Returns:
multidimensional D array
+/
auto makeNdarray(T, Allocator, size_t N, Range)(auto ref Allocator alloc, Slice!(N, Range) slice)
{
import std.experimental.allocator : makeArray;
static if (N == 1)
{
return makeArray!T(alloc, slice);
}
else
{
alias E = typeof(makeNdarray!T(alloc, slice[0]));
auto ret = makeArray!E(alloc, slice.length);
foreach (i, ref e; ret)
e = .makeNdarray!T(alloc, slice[i]);
return ret;
}
}
///
@nogc @system unittest
{
import std.experimental.allocator;
import std.experimental.allocator.mallocator;
import std.experimental.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4);
auto m = Mallocator.instance.makeNdarray!long(slice);
static assert(is(typeof(m) == long[][]));
static immutable ar = [[0L, 1, 2, 3], [4L, 5, 6, 7], [8L, 9, 10, 11]];
assert(m == ar);
foreach (ref row; m)
Mallocator.instance.dispose(row);
Mallocator.instance.dispose(m);
}
deprecated("use: auto shape(T)(T[] array, ref int err) @property")
auto shape(T)(T[] array) @property
{
static if (isDynamicArray!T)
{
int err;
auto ret = shape(array, err);
if (err)
throw new SliceException("ndarray should be an n-dimensional parallelotope.");
return ret;
}
else
{
size_t[1] ret = void;
ret[0] = array.length;
return ret;
}
}
@safe pure unittest
{
size_t[2] shape = [[1, 2, 3], [4, 5, 6]].shape;
assert(shape == [2, 3]);
import std.exception : assertThrown;
assertThrown([[1, 2], [4, 5, 6]].shape);
}
@system unittest
{
auto array = [[1, 2, 3], [4, 5, 6]];
auto slice = array.shape.slice!int;
slice[] = [[1, 2, 3], [4, 5, 6]];
assert(slice == array);
}
@safe pure unittest
{
size_t[2] shape = (int[][]).init.shape;
assert(shape[0] == 0);
assert(shape[1] == 0);
}
/++
Shape of a common n-dimensional array.
Params:
array = common n-dimensional array
err = error flag
Returns:
static array of dimensions type of `size_t[n]`
+/
auto shape(T)(T[] array, ref int err) @property
{
static if (isDynamicArray!T)
{
size_t[1 + typeof(shape(T.init)).length] ret;
if (array.length)
{
ret[0] = array.length;
ret[1..$] = shape(array[0]);
foreach (ar; array)
if (shape(ar) != ret[1..$])
{
err = -1;
goto R;
}
}
}
else
{
size_t[1] ret = void;
ret[0] = array.length;
}
err = 0;
R:
return ret;
}
///
nothrow @safe pure unittest
{
int err;
size_t[2] shape = [[1, 2, 3], [4, 5, 6]].shape(err);
assert(shape == [2, 3]);
assert(err == 0);
[[1, 2], [4, 5, 6]].shape(err);
assert(err != 0);
}
/// Slice from ndarray
nothrow @system unittest
{
int err;
auto array = [[1, 2, 3], [4, 5, 6]];
auto slice = array.shape(err).slice!int;
assert(err == 0);
slice[] = [[1, 2, 3], [4, 5, 6]];
assert(slice == array);
}
nothrow @safe pure unittest
{
int err;
size_t[2] shape = (int[][]).init.shape(err);
assert(err == 0);
assert(shape[0] == 0);
assert(shape[1] == 0);
}
/++
Convenience function that creates a lazy view,
where each element of the original slice is converted to the type `T`.
It uses $(SUBREF selection, mapSlice) and $(REF_ALTTEXT $(TT to), to, std,conv)$(NBSP)
composition under the hood.
Params:
slice = a slice to create a view on.
Returns:
A lazy slice with elements converted to the type `T`.
+/
template as(T)
{
///
auto as(size_t N, Range)(Slice!(N, Range) slice)
{
static if (is(slice.DeepElemType == T))
{
return slice;
}
else
{
import std.conv : to;
import std.experimental.ndslice.selection : mapSlice;
return mapSlice!(to!T)(slice);
}
}
}
///
@system unittest
{
import std.experimental.ndslice.slice : as;
import std.experimental.ndslice.selection : diagonal;
auto matrix = slice!double([2, 2], 0);
auto stringMatrixView = matrix.as!string;
assert(stringMatrixView ==
[["0", "0"],
["0", "0"]]);
matrix.diagonal[] = 1;
assert(stringMatrixView ==
[["1", "0"],
["0", "1"]]);
/// allocate new slice composed of strings
Slice!(2, string*) stringMatrix = stringMatrixView.slice;
}
/++
Base Exception class for $(MREF std, experimental, ndslice).
+/
deprecated("Not nothrow or @nogc ndslice API is deprecated.")
class SliceException: Exception
{
///
this(
string msg,
string file = __FILE__,
uint line = cast(uint)__LINE__,
Throwable next = null
) pure nothrow @nogc @safe
{
super(msg, file, line, next);
}
}
/++
Returns the element type of the `Slice` type.
+/
alias DeepElementType(S : Slice!(N, Range), size_t N, Range) = S.DeepElemType;
///
@system unittest
{
import std.range : iota;
static assert(is(DeepElementType!(Slice!(4, const(int)[])) == const(int)));
static assert(is(DeepElementType!(Slice!(4, immutable(int)*)) == immutable(int)));
static assert(is(DeepElementType!(Slice!(4, typeof(100.iota))) == int));
//packed slice
static assert(is(DeepElementType!(Slice!(2, Slice!(5, int*))) == Slice!(4, int*)));
}
/++
Presents $(LREF .Slice.structure).
+/
struct Structure(size_t N)
{
///
size_t[N] lengths;
///
sizediff_t[N] strides;
}
/++
Presents an n-dimensional view over a range.
$(H3 Definitions)
In order to change data in a slice using
overloaded operators such as `=`, `+=`, `++`,
a syntactic structure of type
`<slice to change>[<index and interval sequence...>]` must be used.
It is worth noting that just like for regular arrays, operations `a = b`
and `a[] = b` have different meanings.
In the first case, after the operation is carried out, `a` simply points at the same data as `b`
does, and the data which `a` previously pointed at remains unmodified.
Here, `а` and `b` must be of the same type.
In the second case, `a` points at the same data as before,
but the data itself will be changed. In this instance, the number of dimensions of `b`
may be less than the number of dimensions of `а`; and `b` can be a Slice,
a regular multidimensional array, or simply a value (e.g. a number).
In the following table you will find the definitions you might come across
in comments on operator overloading.
$(BOOKTABLE
$(TR $(TH Definition) $(TH Examples at `N == 3`))
$(TR $(TD An $(B interval) is a part of a sequence of type `i .. j`.)
$(STD `2..$-3`, `0 .. 4`))
$(TR $(TD An $(B index) is a part of a sequence of type `i`.)
$(STD `3`, `$-1`))
$(TR $(TD A $(B partially defined slice) is a sequence composed of
$(B intervals) and $(B indexes) with an overall length strictly less than `N`.)
$(STD `[3]`, `[0..$]`, `[3, 3]`, `[0..$,0 .. 3]`, `[0..$,2]`))
$(TR $(TD A $(B fully defined index) is a sequence
composed only of $(B indexes) with an overall length equal to `N`.)
$(STD `[2,3,1]`))
$(TR $(TD A $(B fully defined slice) is an empty sequence
or a sequence composed of $(B indexes) and at least one
$(B interval) with an overall length equal to `N`.)
$(STD `[]`, `[3..$,0 .. 3,0..$-1]`, `[2,0..$,1]`))
)
$(H3 Internal Binary Representation)
Multidimensional Slice is a structure that consists of lengths, strides, and a pointer.
For ranges, a shell is used instead of a pointer.
This shell contains a shift of the current initial element of a multidimensional slice
and the range itself. With the exception of overloaded operators, no functions in this
package change or copy data. The operations are only carried out on lengths, strides,
and pointers. If a slice is defined over a range, only the shift of the initial element
changes instead of the pointer.
$(H4 Internal Representation for Pointers)
Type definition
-------
Slice!(N, T*)
-------
Schema
-------
Slice!(N, T*)
size_t[N] lengths
sizediff_t[N] strides
T* ptr
-------
Example:
Definitions
-------
import std.experimental.ndslice;
auto a = new double[24];
Slice!(3, double*) s = a.sliced(2, 3, 4);
Slice!(3, double*) t = s.transposed!(1, 2, 0);
Slice!(3, double*) r = t.reversed!1;
-------
Representation
-------
s________________________
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= 4
strides[2] ::= 1
ptr ::= &a[0]
t____transposed!(1, 2, 0)
lengths[0] ::= 3
lengths[1] ::= 4
lengths[2] ::= 2
strides[0] ::= 4
strides[1] ::= 1
strides[2] ::= 12
ptr ::= &a[0]
r______________reversed!1
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= -4
strides[2] ::= 1
ptr ::= &a[8] // (old_strides[1] * (lengths[1] - 1)) = 8
-------
$(H4 Internal Representation for Ranges)
Type definition
-------
Slice!(N, Range)
-------
Representation
-------
Slice!(N, Range)
size_t[N] lengths
sizediff_t[N] strides
PtrShell!T ptr
sizediff_t shift
Range range
-------
Example:
Definitions
-------
import std.experimental.ndslice;
import std.range : iota;
auto a = iota(24);
alias A = typeof(a);
Slice!(3, A) s = a.sliced(2, 3, 4);
Slice!(3, A) t = s.transposed!(1, 2, 0);
Slice!(3, A) r = t.reversed!1;
-------
Representation
-------
s________________________
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= 4
strides[2] ::= 1
shift ::= 0
range ::= a
t____transposed!(1, 2, 0)
lengths[0] ::= 3
lengths[1] ::= 4
lengths[2] ::= 2
strides[0] ::= 4
strides[1] ::= 1
strides[2] ::= 12
shift ::= 0
range ::= a
r______________reversed!1
lengths[0] ::= 2
lengths[1] ::= 3
lengths[2] ::= 4
strides[0] ::= 12
strides[1] ::= -4
strides[2] ::= 1
shift ::= 8 // (old_strides[1] * (lengths[1] - 1)) = 8
range ::= a
-------
+/
struct Slice(size_t _N, _Range)
if (_N && _N < 256LU && ((!is(Unqual!_Range : Slice!(N0, Range0), size_t N0, Range0)
&& (isPointer!_Range || is(typeof(_Range.init[size_t.init]))))
|| is(_Range == Slice!(N1, Range1), size_t N1, Range1)))
{
@fmb:
package:
enum doUnittest = is(_Range == int*) && _N == 1;
alias N = _N;
alias Range = _Range;
alias This = Slice!(N, Range);
static if (is(Range == Slice!(N_, Range_), size_t N_, Range_))
{
enum size_t PureN = N + Range.PureN - 1;
alias PureRange = Range.PureRange;
alias NSeq = AliasSeq!(N, Range.NSeq);
}
else
{
alias PureN = N;
alias PureRange = Range;
alias NSeq = AliasSeq!(N);
}
alias PureThis = Slice!(PureN, PureRange);
static assert(PureN < 256, "Slice: Pure N should be less than 256");
static if (N == 1)
alias ElemType = typeof(Range.init[size_t.init]);
else
alias ElemType = Slice!(N-1, Range);
static if (NSeq.length == 1)
alias DeepElemType = typeof(Range.init[size_t.init]);
else
static if (Range.N == 1)
alias DeepElemType = Range.ElemType;
else
alias DeepElemType = Slice!(Range.N - 1, Range.Range);
enum hasAccessByRef = isPointer!PureRange ||
__traits(compiles, &_ptr[0]);
enum PureIndexLength(Slices...) = Filter!(isIndex, Slices).length;
enum isPureSlice(Slices...) =
Slices.length <= N
&& PureIndexLength!Slices < N
&& allSatisfy!(templateOr!(isIndex, is_Slice), Slices);
enum isFullPureSlice(Slices...) =
Slices.length == 0
|| Slices.length == N
&& PureIndexLength!Slices < N
&& allSatisfy!(templateOr!(isIndex, is_Slice), Slices);
sizediff_t backIndex(size_t dimension = 0)() @property const
if (dimension < N)
{
return _strides[dimension] * (_lengths[dimension] - 1);
}
size_t indexStride(size_t I)(size_t[I] _indexes...) const
{
static if (_indexes.length)
{
size_t stride = _strides[0] * _indexes[0];
assert(_indexes[0] < _lengths[0], indexError!(0, N));
foreach (i; Iota!(1, I)) //static
{
assert(_indexes[i] < _lengths[i], indexError!(i, N));
stride += _strides[i] * _indexes[i];
}
return stride;
}
else
{
return 0;
}
}
size_t mathIndexStride(size_t I)(size_t[I] _indexes...) const
{
static if (_indexes.length)
{
size_t stride = _strides[0] * _indexes[N - 1];
assert(_indexes[N - 1] < _lengths[0], indexError!(N - 1, N));
foreach_reverse (i; Iota!(0, I - 1)) //static
{
assert(_indexes[i] < _lengths[N - 1 - i], indexError!(i, N));
stride += _strides[N - 1 - i] * _indexes[i];
}
return stride;
}
else
{
return 0;
}
}
static if (!hasPtrBehavior!PureRange)
this(in size_t[PureN] lengths, in sizediff_t[PureN] strides, PtrShell!PureRange shell)
{
foreach (i; Iota!(0, PureN))
_lengths[i] = lengths[i];
foreach (i; Iota!(0, PureN))
_strides[i] = strides[i];
_ptr = shell;
}
public:
/// Direct access to the lengths. Use for ndslice plugins only.
size_t[PureN] _lengths;
/// Direct access to the strides. Use for ndslice plugins only.
sizediff_t[PureN] _strides;
/// Direct access to the pointer. Use for ndslice plugins only.
SlicePtr!PureRange _ptr;
/++
This constructor should be used only for integration with other languages or libraries such as Julia and numpy.
Params:
lengths = lengths
strides = strides
range = range or pointer to iterate on
+/
this(in size_t[PureN] lengths, in sizediff_t[PureN] strides, PureRange range)
{
foreach (i; Iota!(0, PureN))
_lengths[i] = lengths[i];
foreach (i; Iota!(0, PureN))
_strides[i] = strides[i];
static if (hasPtrBehavior!PureRange)
_ptr = range;
else
_ptr._range = range;
}
static if (doUnittest)
/// Creates a 2-dimentional slice with custom strides.
@nogc nothrow pure
@system unittest
{
import std.experimental.ndslice.selection : byElement;
import std.algorithm.comparison : equal;
import std.range : only;
uint[8] array = [1, 2, 3, 4, 5, 6, 7, 8];
auto slice = Slice!(2, uint*)([2, 2], [4, 1], array.ptr);
assert(&slice[0, 0] == &array[0]);
assert(&slice[0, 1] == &array[1]);
assert(&slice[1, 0] == &array[4]);
assert(&slice[1, 1] == &array[5]);
assert(slice.byElement.equal(only(1, 2, 5, 6)));
array[2] = 42;
assert(slice.byElement.equal(only(1, 2, 5, 6)));
array[1] = 99;
assert(slice.byElement.equal(only(1, 99, 5, 6)));
}
static if (isPointer!PureRange)
{
static if (NSeq.length == 1)
private alias ConstThis = Slice!(N, const(Unqual!DeepElemType)*);
else
private alias ConstThis = Slice!(N, Range.ConstThis);
static if (!is(ConstThis == This))
{
/++
Implicit cast to const slices in case of underlaying range is a pointer.
+/
ref ConstThis toConst() const @trusted pure nothrow @nogc
{
pragma(inline, true);
return *cast(ConstThis*) &this;
}
/// ditto
alias toConst this;
}
}
static if (doUnittest)
///
@system unittest
{
Slice!(2, double*) nn;
Slice!(2, immutable(double)*) ni;
Slice!(2, const(double)*) nc;
const Slice!(2, double*) cn;
const Slice!(2, immutable(double)*) ci;
const Slice!(2, const(double)*) cc;
immutable Slice!(2, double*) in_;
immutable Slice!(2, immutable(double)*) ii;
immutable Slice!(2, const(double)*) ic;
nc = nc; nc = cn; nc = in_;
nc = nc; nc = cc; nc = ic;
nc = ni; nc = ci; nc = ii;
void fun(size_t N, T)(Slice!(N, const(T)*) sl)
{
//...
}
fun(nn); fun(cn); fun(in_);
fun(nc); fun(cc); fun(ic);
fun(ni); fun(ci); fun(ii);
}
static if (doUnittest)
@system unittest
{
Slice!(2, Slice!(2, double*)) nn;
Slice!(2, Slice!(2, immutable(double)*)) ni;
Slice!(2, Slice!(2, const(double)*)) nc;
const Slice!(2, Slice!(2, double*)) cn;
const Slice!(2, Slice!(2, immutable(double)*)) ci;
const Slice!(2, Slice!(2, const(double)*)) cc;
immutable Slice!(2, Slice!(2, double*) )in_;
immutable Slice!(2, Slice!(2, immutable(double)*)) ii;
immutable Slice!(2, Slice!(2, const(double)*)) ic;
nc = nn; nc = cn; nc = in_;
nc = nc; nc = cc; nc = ic;
nc = ni; nc = ci; nc = ii;
void fun(size_t N, size_t M, T)(Slice!(N, Slice!(M, const(T)*)) sl)
{
//...
}
fun(nn); fun(cn); fun(in_);
fun(nc); fun(cc); fun(ic);
fun(ni); fun(ci); fun(ii);
}
/++
Returns:
Pointer to the first element of a slice if slice is defined as `Slice!(N, T*)`
or plain structure with two fields `shift` and `range` otherwise.
In second case the expression `range[shift]` refers to the first element.
For slices with named elements the type of a return value
has the same behavior like a pointer.
Note:
`ptr` is defined only for non-packed slices.
Attention:
`ptr` refers to the first element in the memory representation
if and only if all strides are positive.
+/
static if (is(PureRange == Range))
auto ptr() @property
{
static if (hasPtrBehavior!PureRange)
{
return _ptr;
}
else
{
static struct Ptr { size_t shift; Range range; }
return Ptr(_ptr._shift, _ptr._range);
}
}
/++
Returns: static array of lengths
See_also: $(LREF .Slice.structure)
+/
size_t[N] shape() @property const
{
return _lengths[0 .. N];
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 5)
.shape == cast(size_t[3])[3, 4, 5]);
}
static if (doUnittest)
/// Packed slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : pack, iotaSlice;
assert(iotaSlice(3, 4, 5, 6, 7)
.pack!2
.shape == cast(size_t[3])[3, 4, 5]);
}
/++
Returns: static array of lengths and static array of strides
See_also: $(LREF .Slice.shape)
+/
Structure!N structure() @property const
{
return typeof(return)(_lengths[0 .. N], _strides[0 .. N]);
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 5)
.structure == Structure!3([3, 4, 5], [20, 5, 1]));
}
static if (doUnittest)
/// Modified regular slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : pack, iotaSlice;
import std.experimental.ndslice.iteration : reversed, strided, transposed;
assert(iotaSlice(3, 4, 50)
.reversed!2 //makes stride negative
.strided!2(6) //multiplies stride by 6 and changes corresponding length
.transposed!2 //brings dimension `2` to the first position
.structure == Structure!3([9, 3, 4], [-6, 200, 50]));
}
static if (doUnittest)
/// Packed slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : pack, iotaSlice;
assert(iotaSlice(3, 4, 5, 6, 7)
.pack!2
.structure == Structure!3([3, 4, 5], [20 * 42, 5 * 42, 1 * 42]));
}
/++
Forward range primitive.
+/
auto save() @property
{
return this;
}
static if (doUnittest)
/// Forward range
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto slice = iotaSlice(2, 3).save;
}
static if (doUnittest)
/// Pointer type.
pure nothrow @system unittest
{
//slice type is `Slice!(2, int*)`
auto slice = slice!int(2, 3).save;
}
/++
Multidimensional `length` property.
Returns: length of the corresponding dimension
See_also: $(LREF .Slice.shape), $(LREF .Slice.structure)
+/
size_t length(size_t dimension = 0)() @property const
if (dimension < N)
{
return _lengths[dimension];
}
static if (doUnittest)
///
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4, 5);
assert(slice.length == 3);
assert(slice.length!0 == 3);
assert(slice.length!1 == 4);
assert(slice.length!2 == 5);
}
alias opDollar = length;
/++
Multidimensional `stride` property.
Returns: stride of the corresponding dimension
See_also: $(LREF .Slice.structure)
+/
sizediff_t stride(size_t dimension = 0)() @property const
if (dimension < N)
{
return _strides[dimension];
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto slice = iotaSlice(3, 4, 5);
assert(slice.stride == 20);
assert(slice.stride!0 == 20);
assert(slice.stride!1 == 5);
assert(slice.stride!2 == 1);
}
static if (doUnittest)
/// Modified regular slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.iteration : reversed, strided, swapped;
import std.experimental.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 50)
.reversed!2 //makes stride negative
.strided!2(6) //multiplies stride by 6 and changes the corresponding length
.swapped!(1, 2) //swaps dimensions `1` and `2`
.stride!1 == -6);
}
/++
Multidimensional input range primitive.
+/
bool empty(size_t dimension = 0)()
@property const
if (dimension < N)
{
return _lengths[dimension] == 0;
}
///ditto
auto ref front(size_t dimension = 0)() @property
if (dimension < N)
{
assert(!empty!dimension);
static if (PureN == 1)
{
return _ptr[0];
}
else
{
static if (hasElaborateAssign!PureRange)
ElemType ret;
else
ElemType ret = void;
foreach (i; Iota!(0, dimension))
{
ret._lengths[i] = _lengths[i];
ret._strides[i] = _strides[i];
}
foreach (i; Iota!(dimension, PureN-1))
{
ret._lengths[i] = _lengths[i + 1];
ret._strides[i] = _strides[i + 1];
}
ret._ptr = _ptr;
return ret;
}
}
static if (PureN == 1 && isMutable!DeepElemType && !hasAccessByRef)
{
///ditto
auto front(size_t dimension = 0, T)(T value) @property
if (dimension == 0)
{
assert(!empty!dimension);
return _ptr[0] = value;
}
}
///ditto
auto ref back(size_t dimension = 0)() @property
if (dimension < N)
{
assert(!empty!dimension);
static if (PureN == 1)
{
return _ptr[backIndex];
}
else
{
static if (hasElaborateAssign!PureRange)
ElemType ret;
else
ElemType ret = void;
foreach (i; Iota!(0, dimension))
{
ret._lengths[i] = _lengths[i];
ret._strides[i] = _strides[i];
}
foreach (i; Iota!(dimension, PureN-1))
{
ret._lengths[i] = _lengths[i + 1];
ret._strides[i] = _strides[i + 1];
}
ret._ptr = _ptr + backIndex!dimension;
return ret;
}
}
static if (PureN == 1 && isMutable!DeepElemType && !hasAccessByRef)
{
///ditto
auto back(size_t dimension = 0, T)(T value) @property
if (dimension == 0)
{
assert(!empty!dimension);
return _ptr[backIndex] = value;
}
}
///ditto
void popFront(size_t dimension = 0)()
if (dimension < N)
{
assert(_lengths[dimension], __FUNCTION__ ~ ": length!" ~ dimension.stringof ~ " should be greater than 0.");
_lengths[dimension]--;
_ptr += _strides[dimension];
}
///ditto
void popBack(size_t dimension = 0)()
if (dimension < N)
{
assert(_lengths[dimension], __FUNCTION__ ~ ": length!" ~ dimension.stringof ~ " should be greater than 0.");
_lengths[dimension]--;
}
///ditto
void popFrontExactly(size_t dimension = 0)(size_t n)
if (dimension < N)
{
assert(n <= _lengths[dimension],
__FUNCTION__ ~ ": n should be less than or equal to length!" ~ dimension.stringof);
_lengths[dimension] -= n;
_ptr += _strides[dimension] * n;
}
///ditto
void popBackExactly(size_t dimension = 0)(size_t n)
if (dimension < N)
{
assert(n <= _lengths[dimension],
__FUNCTION__ ~ ": n should be less than or equal to length!" ~ dimension.stringof);
_lengths[dimension] -= n;
}
///ditto
void popFrontN(size_t dimension = 0)(size_t n)
if (dimension < N)
{
import std.algorithm.comparison : min;
popFrontExactly!dimension(min(n, _lengths[dimension]));
}
///ditto
void popBackN(size_t dimension = 0)(size_t n)
if (dimension < N)
{
import std.algorithm.comparison : min;
popBackExactly!dimension(min(n, _lengths[dimension]));
}
static if (doUnittest)
///
@safe @nogc pure nothrow unittest
{
import std.range.primitives;
import std.experimental.ndslice.selection : iotaSlice;
auto slice = iotaSlice(10, 20, 30);
static assert(isRandomAccessRange!(typeof(slice)));
static assert(hasSlicing!(typeof(slice)));
static assert(hasLength!(typeof(slice)));
assert(slice.shape == cast(size_t[3])[10, 20, 30]);
slice.popFront;
slice.popFront!1;
slice.popBackExactly!2(4);
assert(slice.shape == cast(size_t[3])[9, 19, 26]);
auto matrix = slice.front!1;
assert(matrix.shape == cast(size_t[2])[9, 26]);
auto column = matrix.back!1;
assert(column.shape == cast(size_t[1])[9]);
slice.popFrontExactly!1(slice.length!1);
assert(slice.empty == false);
assert(slice.empty!1 == true);
assert(slice.empty!2 == false);
assert(slice.shape == cast(size_t[3])[9, 0, 26]);
assert(slice.back.front!1.empty);
slice.popFrontN!0(40);
slice.popFrontN!2(40);
assert(slice.shape == cast(size_t[3])[0, 0, 0]);
}
package void popFront(size_t dimension)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(_lengths[dimension], ": length!dim should be greater than 0.");
_lengths[dimension]--;
_ptr += _strides[dimension];
}
package void popBack(size_t dimension)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(_lengths[dimension], ": length!dim should be greater than 0.");
_lengths[dimension]--;
}
package void popFrontExactly(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(n <= _lengths[dimension], __FUNCTION__ ~ ": n should be less than or equal to length!dim");
_lengths[dimension] -= n;
_ptr += _strides[dimension] * n;
}
package void popBackExactly(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
assert(n <= _lengths[dimension], __FUNCTION__ ~ ": n should be less than or equal to length!dim");
_lengths[dimension] -= n;
}
package void popFrontN(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
import std.algorithm.comparison : min;
popFrontExactly(dimension, min(n, _lengths[dimension]));
}
package void popBackN(size_t dimension, size_t n)
{
assert(dimension < N, __FUNCTION__ ~ ": dimension should be less than N = " ~ N.stringof);
import std.algorithm.comparison : min;
popBackExactly(dimension, min(n, _lengths[dimension]));
}
/++
Returns: `true` if for any dimension the length equals to `0`, and `false` otherwise.
+/
bool anyEmpty() const
{
foreach (i; Iota!(0, N))
if (_lengths[i] == 0)
return true;
return false;
}
static if (doUnittest)
///
@system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto s = iotaSlice(2, 3);
assert(!s.anyEmpty);
s.popFrontExactly!1(3);
assert(s.anyEmpty);
}
/++
Convenience function for backward indexing.
Returns: `this[$-index[0], $-index[1], ..., $-index[N-1]]`
+/
auto ref backward(size_t[N] index)
{
foreach (i; Iota!(0, N))
index[i] = _lengths[i] - index[i];
return this[index];
}
static if (doUnittest)
///
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto s = iotaSlice(2, 3);
assert(s[$ - 1, $ - 2] == s.backward([1, 2]));
}
/++
Returns: Total number of elements in a slice
+/
size_t elementsCount() const
{
size_t len = 1;
foreach (i; Iota!(0, N))
len *= _lengths[i];
return len;
}
static if (doUnittest)
/// Regular slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
assert(iotaSlice(3, 4, 5).elementsCount == 60);
}
static if (doUnittest)
/// Packed slice
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : pack, evertPack, iotaSlice;
auto slice = iotaSlice(3, 4, 5, 6, 7, 8);
auto p = slice.pack!2;
assert(p.elementsCount == 360);
assert(p[0, 0, 0, 0].elementsCount == 56);
assert(p.evertPack.elementsCount == 56);
}
/++
Overloading `==` and `!=`
+/
bool opEquals(size_t NR, RangeR)(Slice!(NR, RangeR) rslice)
if (Slice!(NR, RangeR).PureN == PureN)
{
foreach (i; Iota!(0, PureN))
if (this._lengths[i] != rslice._lengths[i])
return false;
static if (
!hasReference!(typeof(this))
&& !hasReference!(typeof(rslice))
&& __traits(compiles, this._ptr == rslice._ptr)
)
{
if (this._strides == rslice._strides && this._ptr == rslice._ptr)
return true;
}
foreach (i; Iota!(0, PureN))
if (this._lengths[i] == 0)
return true;
import std.experimental.ndslice.selection : unpack;
return opEqualsImpl(this.unpack, rslice.unpack);
}
///ditto
bool opEquals(T)(T[] rarrary)
{
auto slice = this;
if (slice.length != rarrary.length)
return false;
if (rarrary.length) do
{
if (slice.front != rarrary.front)
return false;
slice.popFront;
rarrary.popFront;
}
while (rarrary.length);
return true;
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = [1, 2, 3, 4].sliced(2, 2);
assert(a != [1, 2, 3, 4, 5, 6].sliced(2, 3));
assert(a != [[1, 2, 3], [4, 5, 6]]);
assert(a == [1, 2, 3, 4].sliced(2, 2));
assert(a == [[1, 2], [3, 4]]);
assert(a != [9, 2, 3, 4].sliced(2, 2));
assert(a != [[9, 2], [3, 4]]);
}
static if (doUnittest)
pure nothrow @system unittest
{
import std.experimental.ndslice.iteration : dropExactly;
import std.experimental.ndslice.selection : iotaSlice;
assert(iotaSlice(2, 3).slice.dropExactly!0(2) == iotaSlice([4, 3], 2).dropExactly!0(4));
}
/++
Computes hash value using MurmurHash3 algorithms without the finalization step.
Built-in associative arrays have the finalization step.
Returns: Hash value type of `size_t`.
See_also: $(LREF Slice.toMurmurHash3), $(MREF std, _digest, murmurhash).
+/
size_t toHash() const @safe
{
static if (size_t.sizeof == 8)
{
auto ret = toMurmurHash3!128;
return ret[0] ^ ret[1];
}
else
{
return toMurmurHash3!32;
}
}
static if (doUnittest)
///
pure nothrow @nogc @safe
unittest
{
import std.experimental.ndslice.selection : iotaSlice;
const sl = iotaSlice(3, 7);
size_t hash = sl.toHash;
}
static if (doUnittest)
///
pure nothrow
@system unittest
{
import std.experimental.ndslice.iteration : allReversed;
import std.experimental.ndslice.selection : iotaSlice;
// hash is the same for allocated data and for generated data
auto a = iotaSlice(3, 7);
auto b = iotaSlice(3, 7).slice;
assert(a.toHash == b.toHash);
assert(typeid(typeof(a)).getHash(&a) == typeid(typeof(b)).getHash(&b));
// hash does not depend on strides
a = iotaSlice(3, 7).allReversed;
b = iotaSlice(3, 7).allReversed.slice;
assert(a.toHash == b.toHash);
assert(typeid(typeof(a)).getHash(&a) == typeid(typeof(b)).getHash(&b));
}
/++
Computes hash value using MurmurHash3 algorithms without the finalization step.
Returns:
Hash value type of `MurmurHash3!(size, opt).get()`.
See_also: $(LREF Slice.toHash), $(MREF std, _digest, murmurhash)
+/
auto toMurmurHash3(uint size /* 32 or 128 */ , uint opt = size_t.sizeof == 8 ? 64 : 32)() const @trusted
{
import std.digest.murmurhash : MurmurHash3;
enum msg = "unable to compute hash value for type " ~ DeepElemType.stringof;
static if (size_t.sizeof == 8)
auto hasher = MurmurHash3!(size, opt)(length);
else
auto hasher = MurmurHash3!(size, opt)(cast(uint) length);
enum hasMMH3 = __traits(compiles, {
MurmurHash3!(size, opt) hasher;
foreach (elem; (Unqual!This).init)
hasher.putElement(elem.toMurmurHash3!(size, opt));
});
static if (PureN == 1 && !hasMMH3)
{
static if (ElemType.sizeof <= 8 * hasher.Element.sizeof && __traits(isPOD, ElemType))
{
alias E = Unqual!ElemType;
}
else
{
alias E = size_t;
}
enum K = hasher.Element.sizeof / E.sizeof + bool(hasher.Element.sizeof % E.sizeof != 0);
enum B = E.sizeof / hasher.Element.sizeof + bool(E.sizeof % hasher.Element.sizeof != 0);
static assert(K == 1 || B == 1);
static union U
{
hasher.Element[B] blocks;
E[K] elems;
}
U u;
auto r = cast(Unqual!This) this;
// if element is smaller then blocks
static if (K > 1)
{
// cut tail composed of elements from the front
if (auto rem = r.length % K)
{
do
{
static if (is(E == Unqual!ElemType))
u.elems[rem] = cast() r.front;
else
static if (__traits(compiles, r.front.toHash))
u.elems[rem] = r.front.toHash;
else
static if (__traits(compiles, typeid(ElemType).getHash(&r.front)))
u.elems[rem] = typeid(ElemType).getHash(&r.front);
else
{
auto f = r.front;
u.elems[rem] = typeid(ElemType).getHash(&f);
}
r.popFront;
}
while (--rem);
hasher.putElement(u.blocks[0]);
}
}
// if hashing elements in memory
static if (is(E == ElemType) && (isPointer!Range || isDynamicArray!Range))
{
import std.math : isPowerOf2;
// .. and elements can fill entire block
static if (ElemType.sizeof.isPowerOf2)
{
// then try to optimize blocking
if (stride == 1)
{
static if (isPointer!Range)
{
hasher.putElements(cast(hasher.Element[]) r._ptr[0 .. r.length]);
}
else
{
hasher.putElements(
cast(hasher.Element[]) r._ptr._range[r._ptr._shift .. r.length + r._ptr._shift]);
}
return hasher.get;
}
}
}
while (r.length)
{
foreach (k; Iota!(0, K))
{
static if (is(E == Unqual!ElemType))
u.elems[k] = cast() r.front;
else
static if (__traits(compiles, r.front.toHash))
u.elems[k] = r.front.toHash;
else
static if (__traits(compiles, typeid(ElemType).getHash(&r.front)))
u.elems[k] = typeid(ElemType).getHash(&r.front);
else
{
auto f = r.front;
u.elems[k] = typeid(ElemType).getHash(&f);
}
r.popFront;
}
foreach (b; Iota!(0, B))
{
hasher.putElement(u.blocks[b]);
}
}
}
else
{
foreach (elem; cast(Unqual!This) this)
hasher.putElement(elem.toMurmurHash3!(size, opt));
}
return hasher.get;
}
_Slice opSlice(size_t dimension)(size_t i, size_t j)
if (dimension < N)
in {
assert(i <= j,
"Slice.opSlice!" ~ dimension.stringof ~ ": the left bound must be less than or equal to the right bound.");
enum errorMsg = ": difference between the right and the left bounds"
~ " must be less than or equal to the length of the given dimension.";
assert(j - i <= _lengths[dimension],
"Slice.opSlice!" ~ dimension.stringof ~ errorMsg);
}
body
{
return typeof(return)(i, j);
}
/++
$(BOLD Fully defined index)
+/
auto ref opIndex(size_t I)(size_t[I] _indexes...)
if (I && I <= N)
{
static if (I == PureN)
return _ptr[indexStride(_indexes)];
else
static if (N == I)
return DeepElemType(_lengths[N .. $], _strides[N .. $], _ptr + indexStride(_indexes));
else
return Slice!(N - I, Range)(_lengths[I .. $], _strides[I .. $], _ptr + indexStride(_indexes));
}
///ditto
auto ref opCall()(size_t[N] _indexes...)
{
static if (PureN == N)
return _ptr[mathIndexStride(_indexes)];
else
return DeepElemType(_lengths[N .. $], _strides[N .. $], _ptr + mathIndexStride(_indexes));
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto slice = slice!int(5, 2);
auto q = &slice[3, 1]; // D & C order
auto p = &slice(1, 3); // Math & Fortran order
assert(p is q);
*q = 4;
assert(slice[3, 1] == 4); // D & C order
assert(slice(1, 3) == 4); // Math & Fortran order
size_t[2] indexP = [1, 3];
size_t[2] indexQ = [3, 1];
assert(slice[indexQ] == 4); // D & C order
assert(slice(indexP) == 4); // Math & Fortran order
}
static if (doUnittest)
pure nothrow @system unittest
{
// check with different PureN
import std.experimental.ndslice.selection : pack, iotaSlice;
auto pElements = iotaSlice(2, 3, 4, 5).pack!2;
import std.range : iota;
import std.algorithm.comparison : equal;
// D & C order
assert(pElements[$-1, $-1][$-1].equal([5].iotaSlice(115)));
assert(pElements[[1, 2]][$-1].equal([5].iotaSlice(115)));
// Math & Fortran
assert(pElements(2, 1)[$-1].equal([5].iotaSlice(115)));
assert(pElements([2, 1])[$-1].equal([5].iotaSlice(115)));
}
/++
$(BOLD Partially or fully defined slice.)
+/
auto opIndex(Slices...)(Slices slices)
if (isPureSlice!Slices)
{
static if (Slices.length)
{
enum size_t j(size_t n) = n - Filter!(isIndex, Slices[0 .. n+1]).length;
enum size_t F = PureIndexLength!Slices;
enum size_t S = Slices.length;
static assert(N-F > 0);
size_t stride;
static if (hasElaborateAssign!PureRange)
Slice!(N-F, Range) ret;
else
Slice!(N-F, Range) ret = void;
foreach (i, slice; slices) //static
{
static if (isIndex!(Slices[i]))
{
assert(slice < _lengths[i], "Slice.opIndex: index must be less than length");
stride += _strides[i] * slice;
}
else
{
stride += _strides[i] * slice.i;
ret._lengths[j!i] = slice.j - slice.i;
ret._strides[j!i] = _strides[i];
}
}
foreach (i; Iota!(S, PureN))
{
ret._lengths[i - F] = _lengths[i];
ret._strides[i - F] = _strides[i];
}
ret._ptr = _ptr + stride;
return ret;
}
else
{
return this;
}
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto slice = slice!int(5, 3);
/// Fully defined slice
assert(slice[] == slice);
auto sublice = slice[0..$-2, 1..$];
/// Partially defined slice
auto row = slice[3];
auto col = slice[0..$, 1];
}
static if (doUnittest)
pure nothrow @system unittest
{
auto slice = slice!(int, No.replaceArrayWithPointer)(5, 3);
/// Fully defined slice
assert(slice[] == slice);
auto sublice = slice[0..$-2, 1..$];
/// Partially defined slice
auto row = slice[3];
auto col = slice[0..$, 1];
}
static if (isMutable!DeepElemType)
{
/++
Assignment of a value of `Slice` type to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if both slices have the last stride equals to 1.
+/
void opIndexAssign(size_t RN, RRange, Slices...)(Slice!(RN, RRange) value, Slices slices)
if (isFullPureSlice!Slices && RN <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!""(this[slices], value);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] = b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
// fills both rows with b[0]
a[0..$, 0..$-1] = b[0];
assert(a == [[1, 2, 0], [1, 2, 0]]);
a[1, 0..$-1] = b[1];
assert(a[1] == [3, 4, 0]);
a[1, 0..$-1][] = b[0];
assert(a[1] == [1, 2, 0]);
}
static if (doUnittest)
/// Left slice is packed
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : blocks, iotaSlice;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] = iotaSlice(2, 2);
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
/// Both slices are packed
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : blocks, iotaSlice, pack;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] = iotaSlice(2, 2, 2).pack!1;
assert(a ==
[[0, 1, 2, 3],
[0, 1, 2, 3],
[4, 5, 6, 7],
[4, 5, 6, 7]]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] = b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] = b[0];
assert(a == [[1, 2, 0], [1, 2, 0]]);
a[1, 0..$-1] = b[1];
assert(a[1] == [3, 4, 0]);
a[1, 0..$-1][] = b[0];
assert(a[1] == [1, 2, 0]);
}
/++
Assignment of a regular multidimensional array to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexAssign(T, Slices...)(T[] value, Slices slices)
if (isFullPureSlice!Slices
&& !isDynamicArray!DeepElemType
&& DynamicArrayDimensionsCount!(T[]) <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!""(this[slices], value);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
auto b = [[1, 2], [3, 4]];
a[] = [[1, 2, 3], [4, 5, 6]];
assert(a == [[1, 2, 3], [4, 5, 6]]);
a[0..$, 0..$-1] = [[1, 2], [3, 4]];
assert(a == [[1, 2, 3], [3, 4, 6]]);
a[0..$, 0..$-1] = [1, 2];
assert(a == [[1, 2, 3], [1, 2, 6]]);
a[1, 0..$-1] = [3, 4];
assert(a[1] == [3, 4, 6]);
a[1, 0..$-1][] = [3, 4];
assert(a[1] == [3, 4, 6]);
}
static if (doUnittest)
/// Packed slices
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : blocks;
auto a = slice!int(4, 4);
a.blocks(2, 2)[] = [[0, 1], [2, 3]];
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
auto b = [[1, 2], [3, 4]];
a[] = [[1, 2, 3], [4, 5, 6]];
assert(a == [[1, 2, 3], [4, 5, 6]]);
a[0..$, 0..$-1] = [[1, 2], [3, 4]];
assert(a == [[1, 2, 3], [3, 4, 6]]);
a[0..$, 0..$-1] = [1, 2];
assert(a == [[1, 2, 3], [1, 2, 6]]);
a[1, 0..$-1] = [3, 4];
assert(a[1] == [3, 4, 6]);
a[1, 0..$-1][] = [3, 4];
assert(a[1] == [3, 4, 6]);
}
/++
Assignment of a value (e.g. a number) to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexAssign(T, Slices...)(T value, Slices slices)
if (isFullPureSlice!Slices
&& (!isDynamicArray!T || isDynamicArray!DeepElemType)
&& !is(T : Slice!(RN, RRange), size_t RN, RRange))
{
opIndexAssignImpl!""(this[slices], value);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
a[] = 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
a[0..$, 0..$-1] = 1;
assert(a == [[1, 1, 9], [1, 1, 9]]);
a[0..$, 0..$-1] = 2;
assert(a == [[2, 2, 9], [2, 2, 9]]);
a[1, 0..$-1] = 3;
assert(a[1] == [3, 3, 9]);
a[1, 0..$-1] = 4;
assert(a[1] == [4, 4, 9]);
a[1, 0..$-1][] = 5;
assert(a[1] == [5, 5, 9]);
}
static if (doUnittest)
/// Packed slices have the same behavior.
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : pack;
auto a = slice!int(2, 3).pack!1;
a[] = 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[] = 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
a[0..$, 0..$-1] = 1;
assert(a == [[1, 1, 9], [1, 1, 9]]);
a[0..$, 0..$-1] = 2;
assert(a == [[2, 2, 9], [2, 2, 9]]);
a[1, 0..$-1] = 3;
assert(a[1] == [3, 3, 9]);
a[1, 0..$-1] = 4;
assert(a[1] == [4, 4, 9]);
a[1, 0..$-1][] = 5;
assert(a[1] == [5, 5, 9]);
}
static if (PureN == N)
/++
Assignment of a value (e.g. a number) to a $(B fully defined index).
+/
auto ref opIndexAssign(T)(T value, size_t[N] _indexes...)
{
return _ptr[indexStride(_indexes)] = value;
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
a[1, 2] = 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[1, 2] = 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = new int[6].sliced(2, 3);
a[[1, 2]] = 3;
assert(a[[1, 2]] == 3);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = new int[6].sliced!(No.replaceArrayWithPointer)(2, 3);
a[[1, 2]] = 3;
assert(a[[1, 2]] == 3);
}
static if (PureN == N)
/++
Op Assignment `op=` of a value (e.g. a number) to a $(B fully defined index).
+/
auto ref opIndexOpAssign(string op, T)(T value, size_t[N] _indexes...)
{
return mixin (`_ptr[indexStride(_indexes)] ` ~ op ~ `= value`);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
a[1, 2] += 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = new int[6].sliced(2, 3);
a[[1, 2]] += 3;
assert(a[[1, 2]] == 3);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[1, 2] += 3;
assert(a[1, 2] == 3);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = new int[6].sliced!(No.replaceArrayWithPointer)(2, 3);
a[[1, 2]] += 3;
assert(a[[1, 2]] == 3);
}
/++
Op Assignment `op=` of a value of `Slice` type to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if both slices have the last stride equals to 1.
+/
void opIndexOpAssign(string op, size_t RN, RRange, Slices...)(Slice!(RN, RRange) value, Slices slices)
if (isFullPureSlice!Slices
&& RN <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!op(this[slices], value);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] += b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += b[0];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += b[1];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += b[0];
assert(a[1] == [8, 12, 0]);
}
static if (doUnittest)
/// Left slice is packed
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : blocks, iotaSlice;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] += iotaSlice(2, 2);
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
/// Both slices are packed
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : blocks, iotaSlice, pack;
auto a = slice!size_t(4, 4);
a.blocks(2, 2)[] += iotaSlice(2, 2, 2).pack!1;
assert(a ==
[[0, 1, 2, 3],
[0, 1, 2, 3],
[4, 5, 6, 7],
[4, 5, 6, 7]]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
auto b = [1, 2, 3, 4].sliced(2, 2);
a[0..$, 0..$-1] += b;
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += b[0];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += b[1];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += b[0];
assert(a[1] == [8, 12, 0]);
}
/++
Op Assignment `op=` of a regular multidimensional array to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexOpAssign(string op, T, Slices...)(T[] value, Slices slices)
if (isFullPureSlice!Slices
&& !isDynamicArray!DeepElemType
&& DynamicArrayDimensionsCount!(T[]) <= ReturnType!(opIndex!Slices).N)
{
opIndexAssignImpl!op(this[slices], value);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
a[0..$, 0..$-1] += [[1, 2], [3, 4]];
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += [1, 2];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += [3, 4];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += [1, 2];
assert(a[1] == [8, 12, 0]);
}
static if (doUnittest)
/// Packed slices
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : blocks;
auto a = slice!int(4, 4);
a.blocks(2, 2)[] += [[0, 1], [2, 3]];
assert(a ==
[[0, 0, 1, 1],
[0, 0, 1, 1],
[2, 2, 3, 3],
[2, 2, 3, 3]]);
}
static if (doUnittest)
/// Packed slices have the same behavior.
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : pack;
auto a = slice!int(2, 3).pack!1;
a[] += 9;
assert(a == [[9, 9, 9], [9, 9, 9]]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[0..$, 0..$-1] += [[1, 2], [3, 4]];
assert(a == [[1, 2, 0], [3, 4, 0]]);
a[0..$, 0..$-1] += [1, 2];
assert(a == [[2, 4, 0], [4, 6, 0]]);
a[1, 0..$-1] += [3, 4];
assert(a[1] == [7, 10, 0]);
a[1, 0..$-1][] += [1, 2];
assert(a[1] == [8, 12, 0]);
}
/++
Op Assignment `op=` of a value (e.g. a number) to a $(B fully defined slice).
Optimization:
SIMD instructions may be used if the slice has the last stride equals to 1.
+/
void opIndexOpAssign(string op, T, Slices...)(T value, Slices slices)
if (isFullPureSlice!Slices
&& (!isDynamicArray!T || isDynamicArray!DeepElemType)
&& !is(T : Slice!(RN, RRange), size_t RN, RRange))
{
opIndexAssignImpl!op(this[slices], value);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
a[] += 1;
assert(a == [[1, 1, 1], [1, 1, 1]]);
a[0..$, 0..$-1] += 2;
assert(a == [[3, 3, 1], [3, 3, 1]]);
a[1, 0..$-1] += 3;
assert(a[1] == [6, 6, 1]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
a[] += 1;
assert(a == [[1, 1, 1], [1, 1, 1]]);
a[0..$, 0..$-1] += 2;
assert(a == [[3, 3, 1], [3, 3, 1]]);
a[1, 0..$-1] += 3;
assert(a[1] == [6, 6, 1]);
}
static if (PureN == N)
/++
Increment `++` and Decrement `--` operators for a $(B fully defined index).
+/
auto ref opIndexUnary(string op)(size_t[N] _indexes...)
// @@@workaround@@@ for Issue 16473
//if (op == `++` || op == `--`)
{
return mixin (`` ~ op ~ `_ptr[indexStride(_indexes)]`);
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
++a[1, 2];
assert(a[1, 2] == 1);
}
// Issue 16473
static if (doUnittest)
@system unittest
{
auto sl = slice!double(2, 5);
auto d = -sl[0, 1];
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
++a[1, 2];
assert(a[1, 2] == 1);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = new int[6].sliced(2, 3);
++a[[1, 2]];
assert(a[[1, 2]] == 1);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = new int[6].sliced!(No.replaceArrayWithPointer)(2, 3);
++a[[1, 2]];
assert(a[[1, 2]] == 1);
}
static if (PureN == N)
/++
Increment `++` and Decrement `--` operators for a $(B fully defined slice).
+/
void opIndexUnary(string op, Slices...)(Slices slices)
if (isFullPureSlice!Slices && (op == `++` || op == `--`))
{
auto sl = this[slices];
static if (sl.N == 1)
{
for (; sl.length; sl.popFront)
{
mixin (op ~ `sl.front;`);
}
}
else
{
foreach (v; sl)
{
mixin (op ~ `v[];`);
}
}
}
static if (doUnittest)
///
pure nothrow @system unittest
{
auto a = slice!int(2, 3);
++a[];
assert(a == [[1, 1, 1], [1, 1, 1]]);
--a[1, 0..$-1];
assert(a[1] == [0, 0, 1]);
}
static if (doUnittest)
pure nothrow @system unittest
{
auto a = slice!(int, No.replaceArrayWithPointer)(2, 3);
++a[];
assert(a == [[1, 1, 1], [1, 1, 1]]);
--a[1, 0..$-1];
assert(a[1] == [0, 0, 1]);
}
}
}
/++
Slicing, indexing, and arithmetic operations.
+/
pure nothrow @system unittest
{
import std.experimental.ndslice.iteration : transposed;
import std.experimental.ndslice.selection : iotaSlice;
auto tensor = iotaSlice(3, 4, 5).slice;
assert(tensor[1, 2] == tensor[1][2]);
assert(tensor[1, 2, 3] == tensor[1][2][3]);
assert( tensor[0..$, 0..$, 4] == tensor.transposed!2[4]);
assert(&tensor[0..$, 0..$, 4][1, 2] is &tensor[1, 2, 4]);
tensor[1, 2, 3]++; //`opIndex` returns value by reference.
--tensor[1, 2, 3]; //`opUnary`
++tensor[];
tensor[] -= 1;
// `opIndexAssing` accepts only fully defined indexes and slices.
// Use an additional empty slice `[]`.
static assert(!__traits(compiles, tensor[0 .. 2] *= 2));
tensor[0 .. 2][] *= 2; //OK, empty slice
tensor[0 .. 2, 3, 0..$] /= 2; //OK, 3 index or slice positions are defined.
//fully defined index may be replaced by a static array
size_t[3] index = [1, 2, 3];
assert(tensor[index] == tensor[1, 2, 3]);
}
/++
Operations with rvalue slices.
+/
pure nothrow @system unittest
{
import std.experimental.ndslice.iteration : transposed, everted;
auto tensor = slice!int(3, 4, 5);
auto matrix = slice!int(3, 4);
auto vector = slice!int(3);
foreach (i; 0 .. 3)
vector[i] = i;
// fills matrix columns
matrix.transposed[] = vector;
// fills tensor with vector
// transposed tensor shape is (4, 5, 3)
// vector shape is ( 3)
tensor.transposed!(1, 2)[] = vector;
// transposed tensor shape is (5, 3, 4)
// matrix shape is ( 3, 4)
tensor.transposed!2[] += matrix;
// transposed tensor shape is (5, 4, 3)
// transposed matrix shape is ( 4, 3)
tensor.everted[] ^= matrix.transposed; // XOR
}
/++
Creating a slice from text.
See also $(MREF std, format).
+/
@system unittest
{
import std.algorithm, std.conv, std.exception, std.format,
std.functional, std.string, std.range;
Slice!(2, int*) toMatrix(string str)
{
string[][] data = str.lineSplitter.filter!(not!empty).map!split.array;
size_t rows = data .length.enforce("empty input");
size_t columns = data[0].length.enforce("empty first row");
data.each!(a => enforce(a.length == columns, "rows have different lengths"));
auto slice = slice!int(rows, columns);
foreach (i, line; data)
foreach (j, num; line)
slice[i, j] = num.to!int;
return slice;
}
auto input = "\r1 2 3\r\n 4 5 6\n";
auto matrix = toMatrix(input);
assert(matrix == [[1, 2, 3], [4, 5, 6]]);
// back to text
auto text2 = format("%(%(%s %)\n%)\n", matrix);
assert(text2 == "1 2 3\n4 5 6\n");
}
// Slicing
@safe @nogc pure nothrow unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto a = iotaSlice(10, 20, 30, 40);
auto b = a[0..$, 10, 4 .. 27, 4];
auto c = b[2 .. 9, 5 .. 10];
auto d = b[3..$, $-2];
assert(b[4, 17] == a[4, 10, 21, 4]);
assert(c[1, 2] == a[3, 10, 11, 4]);
assert(d[3] == a[6, 10, 25, 4]);
}
// Operator overloading. # 1
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
void fun(ref size_t x) { x *= 3; }
auto tensor = iotaSlice(8, 9, 10).slice;
++tensor[];
fun(tensor[0, 0, 0]);
assert(tensor[0, 0, 0] == 3);
tensor[0, 0, 0] *= 4;
tensor[0, 0, 0]--;
assert(tensor[0, 0, 0] == 11);
}
// Operator overloading. # 2
pure nothrow @system unittest
{
import std.algorithm.iteration : map;
import std.array : array;
import std.bigint;
import std.range : iota;
auto matrix = 72
.iota
.map!(i => BigInt(i))
.array
.sliced(8, 9);
matrix[3 .. 6, 2] += 100;
foreach (i; 0 .. 8)
foreach (j; 0 .. 9)
if (i >= 3 && i < 6 && j == 2)
assert(matrix[i, j] >= 100);
else
assert(matrix[i, j] < 100);
}
// Operator overloading. # 3
pure nothrow @system unittest
{
import std.experimental.ndslice.selection : iotaSlice;
auto matrix = iotaSlice(8, 9).slice;
matrix[] = matrix;
matrix[] += matrix;
assert(matrix[2, 3] == (2 * 9 + 3) * 2);
auto vec = iotaSlice([9], 100);
matrix[] = vec;
foreach (v; matrix)
assert(v == vec);
matrix[] += vec;
foreach (vector; matrix)
foreach (elem; vector)
assert(elem >= 200);
}
// Type deduction
@system unittest
{
// Arrays
foreach (T; AliasSeq!(int, const int, immutable int))
static assert(is(typeof((T[]).init.sliced(3, 4)) == Slice!(2, T*)));
// Container Array
import std.container.array;
Array!int ar;
ar.length = 12;
Slice!(2, typeof(ar[])) arSl = ar[].sliced(3, 4);
// Implicit conversion of a range to its unqualified type.
import std.range : iota;
auto i0 = 60.iota;
const i1 = 60.iota;
immutable i2 = 60.iota;
alias S = Slice!(3, typeof(iota(0)));
foreach (i; AliasSeq!(i0, i1, i2))
static assert(is(typeof(i.sliced(3, 4, 5)) == S));
}
// Test for map #1
@system unittest
{
import std.algorithm.iteration : map;
import std.range.primitives;
auto slice = [1, 2, 3, 4].sliced(2, 2);
auto r = slice.map!(a => a.map!(a => a * 6));
assert(r.front.front == 6);
assert(r.front.back == 12);
assert(r.back.front == 18);
assert(r.back.back == 24);
assert(r[0][0] == 6);
assert(r[0][1] == 12);
assert(r[1][0] == 18);
assert(r[1][1] == 24);
static assert(hasSlicing!(typeof(r)));
static assert(isForwardRange!(typeof(r)));
static assert(isRandomAccessRange!(typeof(r)));
}
// Test for map #2
@system unittest
{
import std.algorithm.iteration : map;
import std.range.primitives;
auto data = [1, 2, 3, 4].map!(a => a * 2);
static assert(hasSlicing!(typeof(data)));
static assert(isForwardRange!(typeof(data)));
static assert(isRandomAccessRange!(typeof(data)));
auto slice = data.sliced(2, 2);
static assert(hasSlicing!(typeof(slice)));
static assert(isForwardRange!(typeof(slice)));
static assert(isRandomAccessRange!(typeof(slice)));
auto r = slice.map!(a => a.map!(a => a * 3));
static assert(hasSlicing!(typeof(r)));
static assert(isForwardRange!(typeof(r)));
static assert(isRandomAccessRange!(typeof(r)));
assert(r.front.front == 6);
assert(r.front.back == 12);
assert(r.back.front == 18);
assert(r.back.back == 24);
assert(r[0][0] == 6);
assert(r[0][1] == 12);
assert(r[1][0] == 18);
assert(r[1][1] == 24);
}
private bool opEqualsImpl
(size_t N, RangeL, RangeR)(
Slice!(N, RangeL) ls,
Slice!(N, RangeR) rs)
{
do
{
static if (Slice!(N, RangeL).PureN == 1)
{
if (ls.front != rs.front)
return false;
}
else
{
if (!opEqualsImpl(ls.front, rs.front))
return false;
}
rs.popFront;
ls.popFront;
}
while (ls.length);
return true;
}
private void opIndexAssignImpl(
string op,
size_t NL, RangeL,
size_t NR, RangeR)(
Slice!(NL, RangeL) ls,
Slice!(NR, RangeR) rs)
if (NL >= NR)
{
assert(_checkAssignLengths(ls, rs),
__FUNCTION__ ~ ": arguments must have the corresponding shape.");
foreach (i; Iota!(0, ls.PureN))
if (ls._lengths[i] == 0)
return;
static if (isMemory!RangeL && isMemory!RangeR && ls.NSeq.length == rs.NSeq.length)
{
if (ls._strides[$ - 1] == 1 && rs._strides[$ - 1] == 1)
{
_indexAssign!(true, op)(ls, rs);
return;
}
}
else
static if (isMemory!RangeL && ls.NSeq.length > rs.NSeq.length)
{
if (ls._strides[$ - 1] == 1)
{
_indexAssign!(true, op)(ls, rs);
return;
}
}
_indexAssign!(false, op)(ls, rs);
}
pure nothrow @system unittest
{
import std.experimental.ndslice.iteration : dropExactly;
import std.experimental.ndslice.selection : byElement;
auto sl1 = slice!double([2, 3], 2);
auto sl2 = slice!double([2, 3], 3);
sl1.dropExactly!0(2)[] = sl2.dropExactly!0(2);
foreach (e; sl1.byElement)
assert(e == 2);
sl1.dropExactly!0(2)[] = sl2.dropExactly!0(2).ndarray;
foreach (e; sl1.byElement)
assert(e == 2);
}
private void opIndexAssignImpl
(string op, size_t NL, RangeL, T)(
Slice!(NL, RangeL) ls, T rs)
if (!is(T : Slice!(NR, RangeR), size_t NR, RangeR))
{
foreach (i; Iota!(0, ls.PureN))
if (ls._lengths[i] == 0)
return;
static if (isMemory!RangeL)
{
if (ls._strides[$ - 1] == 1)
{
_indexAssign!(true, op)(ls, rs);
return;
}
}
_indexAssign!(false, op)(ls, rs);
}
pure nothrow @system unittest
{
import std.internal.test.dummyrange;
foreach (RB; AliasSeq!(ReturnBy.Reference, ReturnBy.Value))
{
DummyRange!(RB, Length.Yes, RangeType.Random) range;
range.reinit;
assert(range.length >= 10);
auto slice = range.sliced(10);
assert(slice[0] == range[0]);
auto save0 = range[0];
slice[0] += 10;
++slice[0];
assert(slice[0] == save0 + 11);
slice[5 .. $][2] = 333;
assert(range[7] == 333);
}
}
// toHash test
@system unittest
{
import std.conv : to;
import std.complex;
import std.experimental.ndslice.iteration : allReversed;
static assert(__traits(isPOD, uint[2]));
static assert(__traits(isPOD, double));
static assert(__traits(isPOD, Complex!double));
foreach (T; AliasSeq!(
byte, short, int, long,
float, double, real,
Complex!float, Complex!double, Complex!real))
{
auto a = slice!(T, No.replaceArrayWithPointer)(3, 7);
auto b = slice!T(3, 7).allReversed;
size_t i;
foreach (row; a)
foreach (ref e; row)
e = to!T(i++);
b[] = a;
assert(typeid(a.This).getHash(&a) == typeid(b.This).getHash(&b), T.stringof);
}
}
@system unittest
{
int[] arr = [1, 2, 3];
auto ptr = arr.ptrShell;
assert(ptr[0] == 1);
auto ptrCopy = ptr.save;
ptrCopy._range.popFront;
assert(ptr[0] == 1);
assert(ptrCopy[0] == 2);
}
pure nothrow @system unittest
{
auto a = new int[20], b = new int[20];
alias T = PtrTuple!("a", "b");
alias S = T!(int*, int*);
static assert(hasUDA!(S, LikePtr));
auto t = S(a.ptr, b.ptr);
t[4].a++;
auto r = t[4];
r.b = r.a * 2;
assert(b[4] == 2);
t[0].a++;
r = t[0];
r.b = r.a * 2;
assert(b[0] == 2);
}
private template PrepareRangeType(Range)
{
static if (isPointer!Range)
alias PrepareRangeType = Range;
else
alias PrepareRangeType = PtrShell!Range;
}
private enum bool isType(alias T) = false;
private enum bool isType(T) = true;
private enum isStringValue(alias T) = is(typeof(T) : string);
private void _indexAssignKernel(string op, TL, TR)(size_t c, TL l, TR r)
{
do
{
mixin("l[0] " ~ op ~ "= r[0];");
++r;
++l;
}
while (--c);
}
private void _indexAssignValKernel(string op, TL, TR)(size_t c, TL l, TR r)
{
do
{
mixin("l[0] " ~ op ~ "= r;");
++l;
}
while (--c);
}
private void _indexAssign(bool lastStrideEquals1, string op, size_t NL, RangeL, size_t NR, RangeR)
(Slice!(NL, RangeL) ls, Slice!(NR, RangeR) rs)
if (NL >= NR)
{
static if (NL == 1)
{
static if (lastStrideEquals1 && ls.PureN == 1)
{
_indexAssignKernel!op(ls._lengths[0], ls._ptr, rs._ptr);
}
else
{
do
{
static if (ls.PureN == 1)
mixin("ls.front " ~ op ~ "= rs.front;");
else
_indexAssign!(lastStrideEquals1, op)(ls.front, rs.front);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
}
else
static if (NL == NR)
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs.front);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
else
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
private void _indexAssign(bool lastStrideEquals1, string op, size_t NL, RangeL, T)(Slice!(NL, RangeL) ls, T[] rs)
if (DynamicArrayDimensionsCount!(T[]) <= NL)
{
assert(ls.length == rs.length, __FUNCTION__ ~ ": argument must have the same length.");
static if (NL == 1)
{
static if (lastStrideEquals1 && ls.PureN == 1)
{
_indexAssignKernel!op(ls._lengths[0], ls._ptr, rs.ptr);
}
else
{
do
{
static if (ls.PureN == 1)
mixin("ls.front " ~ op ~ "= rs[0];");
else
_indexAssign!(lastStrideEquals1, op)(ls.front, rs[0]);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
}
else
static if (NL == DynamicArrayDimensionsCount!(T[]))
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs[0]);
rs.popFront;
ls.popFront;
}
while (ls.length);
}
else
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
private void _indexAssign(bool lastStrideEquals1, string op, size_t NL, RangeL, T)(Slice!(NL, RangeL) ls, T rs)
if ((!isDynamicArray!T || isDynamicArray!(Slice!(NL, RangeL).DeepElemType))
&& !is(T : Slice!(NR, RangeR), size_t NR, RangeR))
{
static if (NL == 1)
{
static if (lastStrideEquals1 && ls.PureN == 1)
{
_indexAssignValKernel!op(ls._lengths[0], ls._ptr, rs);
}
else
{
do
{
static if (ls.PureN == 1)
mixin("ls.front " ~ op ~ "= rs;");
else
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
else
{
do
{
_indexAssign!(lastStrideEquals1, op)(ls.front, rs);
ls.popFront;
}
while (ls.length);
}
}
private bool _checkAssignLengths(size_t NL, RangeL, size_t NR, RangeR)(Slice!(NL, RangeL) ls, Slice!(NR, RangeR) rs)
if (NL >= NR)
{
foreach (i; Iota!(0, NR))
if (ls._lengths[i + NL - NR] != rs._lengths[i])
return false;
static if (ls.PureN > NL && rs.PureN > NR)
{
ls.DeepElemType a;
rs.DeepElemType b;
a._lengths = ls._lengths[NL .. $];
b._lengths = rs._lengths[NR .. $];
return _checkAssignLengths(a, b);
}
else
{
return true;
}
}
@safe pure nothrow @nogc unittest
{
import std.experimental.ndslice.selection : iotaSlice;
assert(_checkAssignLengths(iotaSlice(2, 2), iotaSlice(2, 2)));
assert(!_checkAssignLengths(iotaSlice(2, 2), iotaSlice(2, 3)));
assert(!_checkAssignLengths(iotaSlice(2, 2), iotaSlice(3, 2)));
assert(!_checkAssignLengths(iotaSlice(2, 2), iotaSlice(3, 3)));
}
|
D
|
module kratos.component.physics;
import kratos.ecs.scene : SceneComponent;
import kratos.ecs.entity : Component;
import kratos.ecs.component : Dependency, dependency, byName, optional, ignore;
import kratos.component.time : Time;
import kratos.component.transform : Transform, Transformation;
import kgl3n.vector : vec2, vec3, vec4;
import kgl3n.quaternion : quat;
import derelict.ode.ode;
public final class RigidBody : Component
{
private PhysicsWorld world;
private dBodyID bodyId;
private @dependency(Dependency.Direction.Write) Transform transform;
private Transformation previousStepTransformation;
private Transformation currentStepTransformation;
//The ODE docs aren't quite clear how long I can keep these around..
private float[] positionStore;
private float[] rotationStore;
this()
{
world = scene.components.firstOrAdd!PhysicsWorld;
bodyId = world.createBody();
dBodySetData(bodyId, cast(void*)this);
dBodySetMovedCallback(bodyId, &bodyMovedCallback);
positionStore = dBodyGetPosition(bodyId)[0 .. 3];
rotationStore = dBodyGetRotation(bodyId)[0 .. 4];
}
~this()
{
//TODO: Destroy attached joints
dBodyDestroy(bodyId);
}
public void addForce(vec3 force)
{
dBodyAddForce(bodyId, force.x, force.y, force.z);
}
public void addRelativeForce(vec3 force)
{
dBodyAddRelForce(bodyId, force.x, force.y, force.z);
}
public void addForceAtWorldPosition(vec3 force, vec3 pos)
{
dBodyAddForceAtPos(bodyId, force.x, force.y, force.z, pos.x, pos.y, pos.z);
}
public void addForceAtLocalPosition(vec3 force, vec3 pos)
{
dBodyAddForceAtRelPos(bodyId, force.x, force.y, force.z, pos.x, pos.y, pos.z);
}
public void addRelativeForceAtWorldPosition(vec3 force, vec3 pos)
{
dBodyAddRelForceAtPos(bodyId, force.x, force.y, force.z, pos.x, pos.y, pos.z);
}
public void addRelativeForceAtRelativePosition(vec3 force, vec3 pos)
{
dBodyAddRelForceAtRelPos(bodyId, force.x, force.y, force.z, pos.x, pos.y, pos.z);
}
public void addTorque(vec3 torque)
{
dBodyAddTorque(bodyId, torque.x, torque.y, torque.z);
}
void setForce(vec3 force)
{
dBodySetForce(bodyId, force.x, force.y, force.z);
}
void setTorque(vec3 torque)
{
dBodySetTorque(bodyId, torque.x, torque.y, torque.z);
}
@property
{
vec3 force()
{
return vec3(dBodyGetForce(bodyId)[0..3]);
}
vec3 torque()
{
return vec3(dBodyGetTorque(bodyId)[0..3]);
}
bool kinematic()
{
return !!dBodyIsKinematic(bodyId);
}
void kinematic(bool isKinematic)
{
isKinematic ? dBodySetKinematic(bodyId) : dBodySetDynamic(bodyId);
}
bool enabled()
{
return !!dBodyIsEnabled(bodyId);
}
void enabled(bool isEnabled)
{
isEnabled ? dBodyEnable(bodyId) : dBodyDisable(bodyId);
}
bool autoDisable()
{
return !!dBodyGetAutoDisableFlag(bodyId);
}
void autoDisable(bool autoDisable)
{
dBodySetAutoDisableFlag(bodyId, autoDisable);
}
float autoDisableLinearThreshold()
{
return dBodyGetAutoDisableLinearThreshold(bodyId);
}
void autoDisableLinearThreshold(float threshold)
{
dBodySetAutoDisableLinearThreshold(bodyId, threshold);
}
float autoDisableAngularThreshold()
{
return dBodyGetAutoDisableAngularThreshold(bodyId);
}
void autoDisableAngularThreshold(float threshold)
{
dBodySetAutoDisableAngularThreshold(bodyId, threshold);
}
float autoDisableTime()
{
return dBodyGetAutoDisableTime(bodyId);
}
void autoDisableTime(float time)
{
dBodySetAutoDisableTime(bodyId, time);
}
bool affectedByGravity()
{
return !!dBodyGetGravityMode(bodyId);
}
void affectedByGravity(bool affectedByGravity)
{
dBodySetGravityMode(bodyId, affectedByGravity);
}
}
public void initialize()
{
assert(transform.isRoot, "Rigid body transforms should be root");
previousStepTransformation = currentStepTransformation = transform.localTransformation;
auto position = currentStepTransformation.position;
auto rotation = currentStepTransformation.rotation;
dBodySetPosition(bodyId, position.x, position.y, position.z);
dBodySetQuaternion(bodyId, rotation.quaternion.wxyz.vector);
}
public void frameUpdate()
{
transform.localTransformation = Transformation.interpolate(previousStepTransformation, currentStepTransformation, world.phase);
}
public void physicsPreStepUpdate()
{
previousStepTransformation = currentStepTransformation;
}
private void onMoved()
{
currentStepTransformation.position.vector[] = positionStore[];
currentStepTransformation.rotation.quaternion = vec4(rotationStore).yzwx;
}
private static extern(C) void bodyMovedCallback(dBodyID bodyId)
{
auto movedBody = cast(RigidBody)dBodyGetData(bodyId);
movedBody.onMoved();
}
}
private struct PhysicsMaterialProperties
{
@optional:
float friction = 1;
float bounciness = 0;
@property
{
int flags() const nothrow @nogc
{
return
//dContactFDir1 | // Auto generate friction direction for now
(dContactBounce * (bounciness != 0));
}
}
private dSurfaceParameters toOdeParams() const nothrow @nogc
{
dSurfaceParameters params;
params.mode = flags;
params.mu = friction;
params.rho = 0;
params.rho2 = 0;
params.rhoN = 0;
params.bounce = bounciness;
return params;
}
static PhysicsMaterialProperties combine(PhysicsMaterialProperties m1, PhysicsMaterialProperties m2) nothrow @nogc
{
import std.algorithm.comparison : max;
return PhysicsMaterialProperties
(
(m1.friction + m2.friction) * 0.5f,
max(m1.bounciness, m2.bounciness)
);
}
}
final class PhysicsMaterial : Component
{
private PhysicsMaterialProperties properties;
static PhysicsMaterial fromRepresentation(PhysicsMaterialProperties properties)
{
auto material = new PhysicsMaterial;
material.properties = properties;
return material;
}
PhysicsMaterialProperties toRepresentation()
{
return properties;
}
}
abstract class CollisionGeometry : Component
{
private @dependency PhysicsMaterial material;
private dGeomID _geomId;
protected RigidBody rigidBody; // Can be null
~this()
{
dGeomDestroy(_geomId);
}
protected @ignore @property
{
dGeomID geomId()
{
return _geomId;
}
void geomId(dGeomID id)
{
assert(_geomId is null);
_geomId = id;
dGeomSetData(_geomId, cast(void*)this);
}
}
//For use in subclass constructors..
protected final @property worldCollisionSpaceId()
{
return scene.components.firstOrAdd!CollisionWorld.spaceId;
}
}
abstract class PlaceableCollisionGeometry : CollisionGeometry
{
@optional:
protected @dependency Transform transform;
private Transform.ChangedRegistration transformChanged;
private vec3 _offsetPosition;
private quat _offsetRotation;
public final @property
{
vec3 offsetPosition() const
{
return _offsetPosition;
}
void offsetPosition(vec3 offset)
{
_offsetPosition = offset;
if(rigidBody !is null)
{
dGeomSetOffsetPosition(geomId, offset.x, offset.y, offset.z);
}
}
quat offsetRotation() const
{
return _offsetRotation;
}
void offsetRotation(quat offset)
{
_offsetRotation = offset;
if(rigidBody !is null)
{
auto rot = offset.quaternion.wxyz.vector;
dGeomSetOffsetQuaternion(geomId, rot);
}
}
}
public final void initialize()
{
rigidBody = owner.components.first!RigidBody;
if(rigidBody is null)
{
transformChanged = transform.onWorldTransformChanged.register(&updateGeomTransform);
}
else
{
dGeomSetBody(geomId, rigidBody.bodyId);
// The setter will now pass it through to ODE due to rigidBody !is null
offsetPosition = offsetPosition;
offsetRotation = offsetRotation;
}
}
private void updateGeomTransform(Transform transform)
{
auto transformation = transform.worldTransformation;
auto pos = transformation.position;
dGeomSetPosition(geomId, pos.x, pos.y, pos.z);
auto rot = transformation.rotation.quaternion.wxyz.vector;
dGeomSetQuaternion(geomId, rot);
}
}
final class CollisionSphere : PlaceableCollisionGeometry
{
@optional:
this()
{
geomId = dCreateSphere(worldCollisionSpaceId, 1);
}
@property
{
float radius()
{
return dGeomSphereGetRadius(geomId);
}
void radius(float radius)
{
dGeomSphereSetRadius(geomId, radius);
}
}
}
final class CollisionBox : PlaceableCollisionGeometry
{
@optional:
this()
{
geomId = dCreateBox(worldCollisionSpaceId, 1, 1, 1);
}
@property
{
vec3 extent()
{
vec4 result;
dGeomBoxGetLengths(geomId, result.vector);
return result.xyz * 0.5f;
}
void extent(vec3 extent)
{
extent *= 2;
dGeomBoxSetLengths(geomId, extent.x, extent.y, extent.z);
}
}
}
final class CollisionCapsule : PlaceableCollisionGeometry
{
@optional:
private vec2 rl = vec2(1, 1);
this()
{
geomId = dCreateCapsule(worldCollisionSpaceId, rl.x, rl.y);
}
@property
{
float radius() const
{
return rl.x;
}
void radius(float r)
{
rl.x = r;
dGeomCapsuleSetParams(geomId, r, rl.y);
}
float length() const
{
return rl.y;
}
void length(float l)
{
rl.y = l;
dGeomCapsuleSetParams(geomId, rl.x, l);
}
}
}
final class CollisionCylinder : PlaceableCollisionGeometry
{
@optional:
private vec2 rl = vec2(1, 1);
this()
{
geomId = dCreateCylinder(worldCollisionSpaceId, rl.x, rl.y);
}
@property
{
float radius() const
{
return rl.x;
}
void radius(float r)
{
rl.x = r;
dGeomCylinderSetParams(geomId, r, rl.y);
}
float length() const
{
return rl.y;
}
void length(float l)
{
rl.y = l;
dGeomCylinderSetParams(geomId, rl.x, l);
}
}
}
public final class PhysicsWorld : SceneComponent
{
@optional:
enum SteppingMode
{
Fast,
Accurate
}
private dWorldID worldId;
private float _stepSize = 0.05f;;
@byName
SteppingMode steppingMode = SteppingMode.Fast;
private @dependency Time time;
private float accumulator = 0;
this()
{
worldId = dWorldCreate();
gravity = vec3(0, -9.81f, 0);
autoDisable = true;
}
~this()
{
dWorldDestroy(worldId);
}
public void frameUpdate()
{
accumulator += time.delta;
//TODO: Max steps per frame
while(accumulator >= stepSize)
{
scene.rootDispatcher.physicsPreStepUpdate();
final switch(steppingMode)
{
case SteppingMode.Accurate: dWorldStep(worldId, stepSize); break;
case SteppingMode.Fast: dWorldQuickStep(worldId, stepSize); break;
}
scene.rootDispatcher.physicsPostStepUpdate();
accumulator -= stepSize;
}
}
@property
{
void gravity(vec3 gravity)
{
dWorldSetGravity(worldId, gravity.x, gravity.y, gravity.z);
}
vec3 gravity()
{
dVector3 retVal;
dWorldGetGravity(worldId, retVal);
return vec3(retVal[0 .. 3]);
}
void errorCorrection(float erp)
{
//TODO: Range checking
dWorldSetERP(worldId, erp);
}
float errorCorrection()
{
return dWorldGetERP(worldId);
}
void constraintForceMixing(float cfm)
{
//TODO: Range checking
dWorldSetCFM(worldId, cfm);
}
float constraintForceMixing()
{
return dWorldGetCFM(worldId);
}
void autoDisable(bool autoDisable)
{
dWorldSetAutoDisableFlag(worldId, autoDisable);
}
bool autoDisable()
{
return !!dWorldGetAutoDisableFlag(worldId);
}
void autoDisableLinearThreshold(float treshold)
{
dWorldSetAutoDisableLinearThreshold(worldId, treshold);
}
float autoDisableLinearThreshold()
{
return dWorldGetAutoDisableLinearThreshold(worldId);
}
void autoDisableAngularTreshold(float treshold)
{
dWorldSetAutoDisableAngularThreshold(worldId, treshold);
}
float autoDisableAngularTreshold()
{
return dWorldGetAutoDisableAngularThreshold(worldId);
}
void autoDisableSteps(int steps)
{
dWorldSetAutoDisableSteps(worldId, steps);
}
int autoDisableSteps()
{
return dWorldGetAutoDisableSteps(worldId);
}
void autoDisableTime(float time)
{
dWorldSetAutoDisableTime(worldId, time);
}
float autoDisableTime()
{
return dWorldGetAutoDisableTime(worldId);
}
void fastStepIterations(int iterations)
{
dWorldSetQuickStepNumIterations(worldId, iterations);
}
int fastStepIterations()
{
return dWorldGetQuickStepNumIterations(worldId);
}
void fastStepOverRelaxation(float overRelaxation)
{
dWorldSetQuickStepW(worldId, overRelaxation);
}
float fastStepOverRelaxation()
{
return dWorldGetQuickStepW(worldId);
}
void stepSize(float stepSize)
{
//TODO: Range check
_stepSize = stepSize;
}
float stepSize()
{
return _stepSize;
}
void linearDamping(float damping)
{
dWorldSetLinearDamping(worldId, damping);
}
float linearDamping()
{
return dWorldGetLinearDamping(worldId);
}
void angularDamping(float damping)
{
dWorldSetAngularDamping(worldId, damping);
}
float angularDamping()
{
return dWorldGetAngularDamping(worldId);
}
void linearDampingTreshold(float treshold)
{
dWorldSetLinearDampingThreshold(worldId, treshold);
}
float linearDampingTreshold()
{
return dWorldGetLinearDampingThreshold(worldId);
}
void angularDampingTreshold(float treshold)
{
dWorldSetAngularDampingThreshold(worldId, treshold);
}
float angularDampingTreshold()
{
return dWorldGetAngularDampingThreshold(worldId);
}
void maxAngularSpeed(float speed)
{
dWorldSetMaxAngularSpeed(worldId, speed);
}
float maxAngularSpeed()
{
return dWorldGetMaxAngularSpeed(worldId);
}
void maxContactCorrectingVelocity(float velocity)
{
dWorldSetContactMaxCorrectingVel(worldId, velocity);
}
float maxContactCorrectingVelocity()
{
return dWorldGetContactMaxCorrectingVel(worldId);
}
void contactSurfaceDepth(float depth)
{
dWorldSetContactSurfaceLayer(worldId, depth);
}
float contactSurfaceDepth()
{
return dWorldGetContactSurfaceLayer(worldId);
}
float phase()
{
return accumulator / stepSize;
}
}
private dBodyID createBody()
{
return dBodyCreate(worldId);
}
}
final class CollisionWorld : SceneComponent
{
private @dependency(Dependency.Direction.Unordered) PhysicsWorld physicsWorld;
private dSpaceID spaceId;
private dJointGroupID contactJointGroupId;
this()
{
//TODO: Support QuadTreeSpace
spaceId = dHashSpaceCreate(null);
contactJointGroupId = dJointGroupCreate(0);
}
~this()
{
dJointGroupDestroy(contactJointGroupId);
dSpaceDestroy(spaceId);
}
void physicsPreStepUpdate()
{
dSpaceCollide(spaceId, cast(void*)this, &geometryNearCallback);
}
void physicsPostStepUpdate()
{
dJointGroupEmpty(contactJointGroupId);
}
private static extern(C) void geometryNearCallback(void* data, dGeomID geom1, dGeomID geom2) nothrow @nogc
{
//TODO: Support nested spaces.
auto _this = cast(CollisionWorld)data;
//TODO: I have no idea if this is a sensible amount..
enum MaxContacts = 3;
static assert(MaxContacts < ushort.max);
dContactGeom[MaxContacts] contacts;
auto actualContacts = dCollide(geom1, geom2, contacts.length, contacts.ptr, dContactGeom.sizeof);
foreach(contact; contacts[0 .. actualContacts])
{
_this.createContactJoint(contact);
}
}
private void createContactJoint(dContactGeom contactGeom) nothrow @nogc
{
auto geom1 = cast(CollisionGeometry)dGeomGetData(contactGeom.g1);
auto geom2 = cast(CollisionGeometry)dGeomGetData(contactGeom.g2);
auto combinedMaterial = PhysicsMaterialProperties.combine(geom1.material.properties, geom2.material.properties);
auto contact = dContact
(
combinedMaterial.toOdeParams,
contactGeom
);
auto joint = dJointCreateContact(physicsWorld.worldId, contactJointGroupId, &contact);
auto bodyId1 = geom1.rigidBody is null ? null : geom1.rigidBody.bodyId;
auto bodyId2 = geom2.rigidBody is null ? null : geom2.rigidBody.bodyId;
dJointAttach(joint, bodyId1, bodyId2);
}
}
shared static this()
{
DerelictODE.load();
//NOTE: Initializing ODE in this way binds it to the main thread. Will cause breakage if the ECS becomes multithreaded
dInitODE();
}
shared static ~this()
{
dCloseODE();
DerelictODE.unload();
}
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.